1. Packages
  2. AWS
  3. API Docs
  4. worklink
  5. WebsiteCertificateAuthorityAssociation
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.worklink.WebsiteCertificateAuthorityAssociation

Explore with Pulumi AI

Provides a AWS WorkLink Website Certificate Authority Association resource.

!> WARNING: The aws.worklink.WebsiteCertificateAuthorityAssociation resource has been deprecated and will be removed in a future version. Use Amazon WorkSpaces Secure Browser instead.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";

const example = new aws.worklink.Fleet("example", {name: "example"});
const test = new aws.worklink.WebsiteCertificateAuthorityAssociation("test", {
    fleetArn: testAwsWorklinkFleet.arn,
    certificate: std.file({
        input: "certificate.pem",
    }).then(invoke => invoke.result),
});
Copy
import pulumi
import pulumi_aws as aws
import pulumi_std as std

example = aws.worklink.Fleet("example", name="example")
test = aws.worklink.WebsiteCertificateAuthorityAssociation("test",
    fleet_arn=test_aws_worklink_fleet["arn"],
    certificate=std.file(input="certificate.pem").result)
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/worklink"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := worklink.NewFleet(ctx, "example", &worklink.FleetArgs{
			Name: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		invokeFile, err := std.File(ctx, &std.FileArgs{
			Input: "certificate.pem",
		}, nil)
		if err != nil {
			return err
		}
		_, err = worklink.NewWebsiteCertificateAuthorityAssociation(ctx, "test", &worklink.WebsiteCertificateAuthorityAssociationArgs{
			FleetArn:    pulumi.Any(testAwsWorklinkFleet.Arn),
			Certificate: pulumi.String(invokeFile.Result),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Std = Pulumi.Std;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.WorkLink.Fleet("example", new()
    {
        Name = "example",
    });

    var test = new Aws.WorkLink.WebsiteCertificateAuthorityAssociation("test", new()
    {
        FleetArn = testAwsWorklinkFleet.Arn,
        Certificate = Std.File.Invoke(new()
        {
            Input = "certificate.pem",
        }).Apply(invoke => invoke.Result),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.worklink.Fleet;
import com.pulumi.aws.worklink.FleetArgs;
import com.pulumi.aws.worklink.WebsiteCertificateAuthorityAssociation;
import com.pulumi.aws.worklink.WebsiteCertificateAuthorityAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Fleet("example", FleetArgs.builder()
            .name("example")
            .build());

        var test = new WebsiteCertificateAuthorityAssociation("test", WebsiteCertificateAuthorityAssociationArgs.builder()
            .fleetArn(testAwsWorklinkFleet.arn())
            .certificate(StdFunctions.file(FileArgs.builder()
                .input("certificate.pem")
                .build()).result())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:worklink:Fleet
    properties:
      name: example
  test:
    type: aws:worklink:WebsiteCertificateAuthorityAssociation
    properties:
      fleetArn: ${testAwsWorklinkFleet.arn}
      certificate:
        fn::invoke:
          function: std:file
          arguments:
            input: certificate.pem
          return: result
Copy

Create WebsiteCertificateAuthorityAssociation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WebsiteCertificateAuthorityAssociation(name: string, args: WebsiteCertificateAuthorityAssociationArgs, opts?: CustomResourceOptions);
@overload
def WebsiteCertificateAuthorityAssociation(resource_name: str,
                                           args: WebsiteCertificateAuthorityAssociationArgs,
                                           opts: Optional[ResourceOptions] = None)

@overload
def WebsiteCertificateAuthorityAssociation(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           certificate: Optional[str] = None,
                                           fleet_arn: Optional[str] = None,
                                           display_name: Optional[str] = None)
func NewWebsiteCertificateAuthorityAssociation(ctx *Context, name string, args WebsiteCertificateAuthorityAssociationArgs, opts ...ResourceOption) (*WebsiteCertificateAuthorityAssociation, error)
public WebsiteCertificateAuthorityAssociation(string name, WebsiteCertificateAuthorityAssociationArgs args, CustomResourceOptions? opts = null)
public WebsiteCertificateAuthorityAssociation(String name, WebsiteCertificateAuthorityAssociationArgs args)
public WebsiteCertificateAuthorityAssociation(String name, WebsiteCertificateAuthorityAssociationArgs args, CustomResourceOptions options)
type: aws:worklink:WebsiteCertificateAuthorityAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var websiteCertificateAuthorityAssociationResource = new Aws.WorkLink.WebsiteCertificateAuthorityAssociation("websiteCertificateAuthorityAssociationResource", new()
{
    Certificate = "string",
    FleetArn = "string",
    DisplayName = "string",
});
Copy
example, err := worklink.NewWebsiteCertificateAuthorityAssociation(ctx, "websiteCertificateAuthorityAssociationResource", &worklink.WebsiteCertificateAuthorityAssociationArgs{
	Certificate: pulumi.String("string"),
	FleetArn:    pulumi.String("string"),
	DisplayName: pulumi.String("string"),
})
Copy
var websiteCertificateAuthorityAssociationResource = new WebsiteCertificateAuthorityAssociation("websiteCertificateAuthorityAssociationResource", WebsiteCertificateAuthorityAssociationArgs.builder()
    .certificate("string")
    .fleetArn("string")
    .displayName("string")
    .build());
Copy
website_certificate_authority_association_resource = aws.worklink.WebsiteCertificateAuthorityAssociation("websiteCertificateAuthorityAssociationResource",
    certificate="string",
    fleet_arn="string",
    display_name="string")
Copy
const websiteCertificateAuthorityAssociationResource = new aws.worklink.WebsiteCertificateAuthorityAssociation("websiteCertificateAuthorityAssociationResource", {
    certificate: "string",
    fleetArn: "string",
    displayName: "string",
});
Copy
type: aws:worklink:WebsiteCertificateAuthorityAssociation
properties:
    certificate: string
    displayName: string
    fleetArn: string
Copy

WebsiteCertificateAuthorityAssociation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The WebsiteCertificateAuthorityAssociation resource accepts the following input properties:

Certificate
This property is required.
Changes to this property will trigger replacement.
string
The root certificate of the Certificate Authority.
FleetArn
This property is required.
Changes to this property will trigger replacement.
string
The ARN of the fleet.
DisplayName Changes to this property will trigger replacement. string
The certificate name to display.
Certificate
This property is required.
Changes to this property will trigger replacement.
string
The root certificate of the Certificate Authority.
FleetArn
This property is required.
Changes to this property will trigger replacement.
string
The ARN of the fleet.
DisplayName Changes to this property will trigger replacement. string
The certificate name to display.
certificate
This property is required.
Changes to this property will trigger replacement.
String
The root certificate of the Certificate Authority.
fleetArn
This property is required.
Changes to this property will trigger replacement.
String
The ARN of the fleet.
displayName Changes to this property will trigger replacement. String
The certificate name to display.
certificate
This property is required.
Changes to this property will trigger replacement.
string
The root certificate of the Certificate Authority.
fleetArn
This property is required.
Changes to this property will trigger replacement.
string
The ARN of the fleet.
displayName Changes to this property will trigger replacement. string
The certificate name to display.
certificate
This property is required.
Changes to this property will trigger replacement.
str
The root certificate of the Certificate Authority.
fleet_arn
This property is required.
Changes to this property will trigger replacement.
str
The ARN of the fleet.
display_name Changes to this property will trigger replacement. str
The certificate name to display.
certificate
This property is required.
Changes to this property will trigger replacement.
String
The root certificate of the Certificate Authority.
fleetArn
This property is required.
Changes to this property will trigger replacement.
String
The ARN of the fleet.
displayName Changes to this property will trigger replacement. String
The certificate name to display.

Outputs

All input properties are implicitly available as output properties. Additionally, the WebsiteCertificateAuthorityAssociation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
WebsiteCaId string
A unique identifier for the Certificate Authority.
Id string
The provider-assigned unique ID for this managed resource.
WebsiteCaId string
A unique identifier for the Certificate Authority.
id String
The provider-assigned unique ID for this managed resource.
websiteCaId String
A unique identifier for the Certificate Authority.
id string
The provider-assigned unique ID for this managed resource.
websiteCaId string
A unique identifier for the Certificate Authority.
id str
The provider-assigned unique ID for this managed resource.
website_ca_id str
A unique identifier for the Certificate Authority.
id String
The provider-assigned unique ID for this managed resource.
websiteCaId String
A unique identifier for the Certificate Authority.

Look up Existing WebsiteCertificateAuthorityAssociation Resource

Get an existing WebsiteCertificateAuthorityAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: WebsiteCertificateAuthorityAssociationState, opts?: CustomResourceOptions): WebsiteCertificateAuthorityAssociation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        certificate: Optional[str] = None,
        display_name: Optional[str] = None,
        fleet_arn: Optional[str] = None,
        website_ca_id: Optional[str] = None) -> WebsiteCertificateAuthorityAssociation
func GetWebsiteCertificateAuthorityAssociation(ctx *Context, name string, id IDInput, state *WebsiteCertificateAuthorityAssociationState, opts ...ResourceOption) (*WebsiteCertificateAuthorityAssociation, error)
public static WebsiteCertificateAuthorityAssociation Get(string name, Input<string> id, WebsiteCertificateAuthorityAssociationState? state, CustomResourceOptions? opts = null)
public static WebsiteCertificateAuthorityAssociation get(String name, Output<String> id, WebsiteCertificateAuthorityAssociationState state, CustomResourceOptions options)
resources:  _:    type: aws:worklink:WebsiteCertificateAuthorityAssociation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Certificate Changes to this property will trigger replacement. string
The root certificate of the Certificate Authority.
DisplayName Changes to this property will trigger replacement. string
The certificate name to display.
FleetArn Changes to this property will trigger replacement. string
The ARN of the fleet.
WebsiteCaId string
A unique identifier for the Certificate Authority.
Certificate Changes to this property will trigger replacement. string
The root certificate of the Certificate Authority.
DisplayName Changes to this property will trigger replacement. string
The certificate name to display.
FleetArn Changes to this property will trigger replacement. string
The ARN of the fleet.
WebsiteCaId string
A unique identifier for the Certificate Authority.
certificate Changes to this property will trigger replacement. String
The root certificate of the Certificate Authority.
displayName Changes to this property will trigger replacement. String
The certificate name to display.
fleetArn Changes to this property will trigger replacement. String
The ARN of the fleet.
websiteCaId String
A unique identifier for the Certificate Authority.
certificate Changes to this property will trigger replacement. string
The root certificate of the Certificate Authority.
displayName Changes to this property will trigger replacement. string
The certificate name to display.
fleetArn Changes to this property will trigger replacement. string
The ARN of the fleet.
websiteCaId string
A unique identifier for the Certificate Authority.
certificate Changes to this property will trigger replacement. str
The root certificate of the Certificate Authority.
display_name Changes to this property will trigger replacement. str
The certificate name to display.
fleet_arn Changes to this property will trigger replacement. str
The ARN of the fleet.
website_ca_id str
A unique identifier for the Certificate Authority.
certificate Changes to this property will trigger replacement. String
The root certificate of the Certificate Authority.
displayName Changes to this property will trigger replacement. String
The certificate name to display.
fleetArn Changes to this property will trigger replacement. String
The ARN of the fleet.
websiteCaId String
A unique identifier for the Certificate Authority.

Import

Using pulumi import, import WorkLink Website Certificate Authority using FLEET-ARN,WEBSITE-CA-ID. For example:

$ pulumi import aws:worklink/websiteCertificateAuthorityAssociation:WebsiteCertificateAuthorityAssociation example arn:aws:worklink::123456789012:fleet/example,abcdefghijk
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.