1. Packages
  2. AWS Classic
  3. API Docs
  4. worklink
  5. WebsiteCertificateAuthorityAssociation

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.worklink.WebsiteCertificateAuthorityAssociation

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

    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),
    });
    
    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)
    
    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: invokeFile.Result,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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),
        });
    
    });
    
    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());
    
        }
    }
    
    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
    

    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 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.

    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",
    });
    
    example, err := worklink.NewWebsiteCertificateAuthorityAssociation(ctx, "websiteCertificateAuthorityAssociationResource", &worklink.WebsiteCertificateAuthorityAssociationArgs{
    	Certificate: pulumi.String("string"),
    	FleetArn:    pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    })
    
    var websiteCertificateAuthorityAssociationResource = new WebsiteCertificateAuthorityAssociation("websiteCertificateAuthorityAssociationResource", WebsiteCertificateAuthorityAssociationArgs.builder()
        .certificate("string")
        .fleetArn("string")
        .displayName("string")
        .build());
    
    website_certificate_authority_association_resource = aws.worklink.WebsiteCertificateAuthorityAssociation("websiteCertificateAuthorityAssociationResource",
        certificate="string",
        fleet_arn="string",
        display_name="string")
    
    const websiteCertificateAuthorityAssociationResource = new aws.worklink.WebsiteCertificateAuthorityAssociation("websiteCertificateAuthorityAssociationResource", {
        certificate: "string",
        fleetArn: "string",
        displayName: "string",
    });
    
    type: aws:worklink:WebsiteCertificateAuthorityAssociation
    properties:
        certificate: string
        displayName: string
        fleetArn: string
    

    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.

    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
    

    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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi