1. Packages
  2. AWS
  3. API Docs
  4. workspacesweb
  5. TrustStoreAssociation
AWS v7.7.0 published on Friday, Sep 5, 2025 by Pulumi

aws.workspacesweb.TrustStoreAssociation

Explore with Pulumi AI

aws logo
AWS v7.7.0 published on Friday, Sep 5, 2025 by Pulumi

    Resource for managing an AWS WorkSpaces Web Trust Store Association.

    Example Usage

    Basic Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      example:
        type: aws:workspacesweb:Portal
        properties:
          displayName: example
      exampleTrustStore:
        type: aws:workspacesweb:TrustStore
        name: example
        properties:
          certificateList:
            - fn::invoke:
                function: std:base64encode
                arguments:
                  input:
                    fn::invoke:
                      function: std:file
                      arguments:
                        input: certificate.pem
                      return: result
                return: result
      exampleTrustStoreAssociation:
        type: aws:workspacesweb:TrustStoreAssociation
        name: example
        properties:
          trustStoreArn: ${exampleTrustStore.trustStoreArn}
          portalArn: ${example.portalArn}
    

    Create TrustStoreAssociation Resource

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

    Constructor syntax

    new TrustStoreAssociation(name: string, args: TrustStoreAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def TrustStoreAssociation(resource_name: str,
                              args: TrustStoreAssociationArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def TrustStoreAssociation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              portal_arn: Optional[str] = None,
                              trust_store_arn: Optional[str] = None,
                              region: Optional[str] = None)
    func NewTrustStoreAssociation(ctx *Context, name string, args TrustStoreAssociationArgs, opts ...ResourceOption) (*TrustStoreAssociation, error)
    public TrustStoreAssociation(string name, TrustStoreAssociationArgs args, CustomResourceOptions? opts = null)
    public TrustStoreAssociation(String name, TrustStoreAssociationArgs args)
    public TrustStoreAssociation(String name, TrustStoreAssociationArgs args, CustomResourceOptions options)
    
    type: aws:workspacesweb:TrustStoreAssociation
    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 TrustStoreAssociationArgs
    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 TrustStoreAssociationArgs
    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 TrustStoreAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrustStoreAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrustStoreAssociationArgs
    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 trustStoreAssociationResource = new Aws.WorkSpacesWeb.TrustStoreAssociation("trustStoreAssociationResource", new()
    {
        PortalArn = "string",
        TrustStoreArn = "string",
        Region = "string",
    });
    
    example, err := workspacesweb.NewTrustStoreAssociation(ctx, "trustStoreAssociationResource", &workspacesweb.TrustStoreAssociationArgs{
    	PortalArn:     pulumi.String("string"),
    	TrustStoreArn: pulumi.String("string"),
    	Region:        pulumi.String("string"),
    })
    
    var trustStoreAssociationResource = new TrustStoreAssociation("trustStoreAssociationResource", TrustStoreAssociationArgs.builder()
        .portalArn("string")
        .trustStoreArn("string")
        .region("string")
        .build());
    
    trust_store_association_resource = aws.workspacesweb.TrustStoreAssociation("trustStoreAssociationResource",
        portal_arn="string",
        trust_store_arn="string",
        region="string")
    
    const trustStoreAssociationResource = new aws.workspacesweb.TrustStoreAssociation("trustStoreAssociationResource", {
        portalArn: "string",
        trustStoreArn: "string",
        region: "string",
    });
    
    type: aws:workspacesweb:TrustStoreAssociation
    properties:
        portalArn: string
        region: string
        trustStoreArn: string
    

    TrustStoreAssociation 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 TrustStoreAssociation resource accepts the following input properties:

    PortalArn string

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    TrustStoreArn string
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    PortalArn string

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    TrustStoreArn string
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portalArn String

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    trustStoreArn String
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portalArn string

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    trustStoreArn string
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portal_arn str

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    trust_store_arn str
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    portalArn String

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    trustStoreArn String
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TrustStoreAssociation Resource

    Get an existing TrustStoreAssociation 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?: TrustStoreAssociationState, opts?: CustomResourceOptions): TrustStoreAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            portal_arn: Optional[str] = None,
            region: Optional[str] = None,
            trust_store_arn: Optional[str] = None) -> TrustStoreAssociation
    func GetTrustStoreAssociation(ctx *Context, name string, id IDInput, state *TrustStoreAssociationState, opts ...ResourceOption) (*TrustStoreAssociation, error)
    public static TrustStoreAssociation Get(string name, Input<string> id, TrustStoreAssociationState? state, CustomResourceOptions? opts = null)
    public static TrustStoreAssociation get(String name, Output<String> id, TrustStoreAssociationState state, CustomResourceOptions options)
    resources:  _:    type: aws:workspacesweb:TrustStoreAssociation    get:      id: ${id}
    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:
    PortalArn string

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    TrustStoreArn string
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    PortalArn string

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    TrustStoreArn string
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    portalArn String

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    trustStoreArn String
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    portalArn string

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    trustStoreArn string
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    portal_arn str

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    trust_store_arn str
    ARN of the trust store to associate with the portal. Forces replacement if changed.
    portalArn String

    ARN of the portal to associate with the trust store. Forces replacement if changed.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    trustStoreArn String
    ARN of the trust store to associate with the portal. Forces replacement if changed.

    Import

    Using pulumi import, import WorkSpaces Web Trust Store Association using the trust_store_arn,portal_arn. For example:

    $ pulumi import aws:workspacesweb/trustStoreAssociation:TrustStoreAssociation example arn:aws:workspaces-web:us-west-2:123456789012:trustStore/trust_store-id-12345678,arn:aws:workspaces-web:us-west-2:123456789012:portal/portal-id-12345678
    

    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
    AWS v7.7.0 published on Friday, Sep 5, 2025 by Pulumi
      AI Agentic Workflows: Register now