aws logo
AWS Classic v5.29.0, Feb 1 23

aws.worklink.WebsiteCertificateAuthorityAssociation

Import

WorkLink Website Certificate Authority can be imported using FLEET-ARN,WEBSITE-CA-ID, e.g.,

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

Example Usage

using System.Collections.Generic;
using System.IO;
using Pulumi;
using Aws = Pulumi.Aws;

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

    var test = new Aws.WorkLink.WebsiteCertificateAuthorityAssociation("test", new()
    {
        FleetArn = aws_worklink_fleet.Test.Arn,
        Certificate = File.ReadAllText("certificate.pem"),
    });

});
package main

import (
	"io/ioutil"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/worklink"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := ioutil.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := worklink.NewFleet(ctx, "example", nil)
		if err != nil {
			return err
		}
		_, err = worklink.NewWebsiteCertificateAuthorityAssociation(ctx, "test", &worklink.WebsiteCertificateAuthorityAssociationArgs{
			FleetArn:    pulumi.Any(aws_worklink_fleet.Test.Arn),
			Certificate: readFileOrPanic("certificate.pem"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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.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");

        var test = new WebsiteCertificateAuthorityAssociation("test", WebsiteCertificateAuthorityAssociationArgs.builder()        
            .fleetArn(aws_worklink_fleet.test().arn())
            .certificate(Files.readString(Paths.get("certificate.pem")))
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.worklink.Fleet("example")
test = aws.worklink.WebsiteCertificateAuthorityAssociation("test",
    fleet_arn=aws_worklink_fleet["test"]["arn"],
    certificate=(lambda path: open(path).read())("certificate.pem"))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as fs from "fs";

const example = new aws.worklink.Fleet("example", {});
const test = new aws.worklink.WebsiteCertificateAuthorityAssociation("test", {
    fleetArn: aws_worklink_fleet.test.arn,
    certificate: fs.readFileSync("certificate.pem"),
});
resources:
  example:
    type: aws:worklink:Fleet
  test:
    type: aws:worklink:WebsiteCertificateAuthorityAssociation
    properties:
      fleetArn: ${aws_worklink_fleet.test.arn}
      certificate:
        fn::readFile: certificate.pem

Create WebsiteCertificateAuthorityAssociation Resource

new WebsiteCertificateAuthorityAssociation(name: string, args: WebsiteCertificateAuthorityAssociationArgs, opts?: CustomResourceOptions);
@overload
def WebsiteCertificateAuthorityAssociation(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           certificate: Optional[str] = None,
                                           display_name: Optional[str] = None,
                                           fleet_arn: Optional[str] = None)
@overload
def WebsiteCertificateAuthorityAssociation(resource_name: str,
                                           args: WebsiteCertificateAuthorityAssociationArgs,
                                           opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args 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 string
The unique name of the resource.
args WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args WebsiteCertificateAuthorityAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The WebsiteCertificateAuthorityAssociation resource accepts the following input properties:

Certificate string

The root certificate of the Certificate Authority.

FleetArn string

The ARN of the fleet.

DisplayName string

The certificate name to display.

Certificate string

The root certificate of the Certificate Authority.

FleetArn string

The ARN of the fleet.

DisplayName string

The certificate name to display.

certificate String

The root certificate of the Certificate Authority.

fleetArn String

The ARN of the fleet.

displayName String

The certificate name to display.

certificate string

The root certificate of the Certificate Authority.

fleetArn string

The ARN of the fleet.

displayName string

The certificate name to display.

certificate str

The root certificate of the Certificate Authority.

fleet_arn str

The ARN of the fleet.

display_name str

The certificate name to display.

certificate String

The root certificate of the Certificate Authority.

fleetArn String

The ARN of the fleet.

displayName 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)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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
The unique name of the resulting resource.
id
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 string

The root certificate of the Certificate Authority.

DisplayName string

The certificate name to display.

FleetArn string

The ARN of the fleet.

WebsiteCaId string

A unique identifier for the Certificate Authority.

Certificate string

The root certificate of the Certificate Authority.

DisplayName string

The certificate name to display.

FleetArn string

The ARN of the fleet.

WebsiteCaId string

A unique identifier for the Certificate Authority.

certificate String

The root certificate of the Certificate Authority.

displayName String

The certificate name to display.

fleetArn String

The ARN of the fleet.

websiteCaId String

A unique identifier for the Certificate Authority.

certificate string

The root certificate of the Certificate Authority.

displayName string

The certificate name to display.

fleetArn string

The ARN of the fleet.

websiteCaId string

A unique identifier for the Certificate Authority.

certificate str

The root certificate of the Certificate Authority.

display_name str

The certificate name to display.

fleet_arn str

The ARN of the fleet.

website_ca_id str

A unique identifier for the Certificate Authority.

certificate String

The root certificate of the Certificate Authority.

displayName String

The certificate name to display.

fleetArn String

The ARN of the fleet.

websiteCaId String

A unique identifier for the Certificate Authority.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.