aws.workspacesweb.TrustStore
Explore with Pulumi AI
Resource for managing an AWS WorkSpaces Web Trust Store.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";
const example = new aws.workspacesweb.TrustStore("example", {certificates: [{
body: std.file({
input: "certificate.pem",
}).then(invoke => invoke.result),
}]});
import pulumi
import pulumi_aws as aws
import pulumi_std as std
example = aws.workspacesweb.TrustStore("example", certificates=[{
"body": std.file(input="certificate.pem").result,
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/workspacesweb"
"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 {
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "certificate.pem",
}, nil)
if err != nil {
return err
}
_, err = workspacesweb.NewTrustStore(ctx, "example", &workspacesweb.TrustStoreArgs{
Certificates: workspacesweb.TrustStoreCertificateArray{
&workspacesweb.TrustStoreCertificateArgs{
Body: pulumi.String(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.WorkSpacesWeb.TrustStore("example", new()
{
Certificates = new[]
{
new Aws.WorkSpacesWeb.Inputs.TrustStoreCertificateArgs
{
Body = 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.workspacesweb.TrustStore;
import com.pulumi.aws.workspacesweb.TrustStoreArgs;
import com.pulumi.aws.workspacesweb.inputs.TrustStoreCertificateArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.FileArgs;
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 TrustStore("example", TrustStoreArgs.builder()
.certificates(TrustStoreCertificateArgs.builder()
.body(StdFunctions.file(FileArgs.builder()
.input("certificate.pem")
.build()).result())
.build())
.build());
}
}
resources:
example:
type: aws:workspacesweb:TrustStore
properties:
certificates:
- body:
fn::invoke:
function: std:file
arguments:
input: certificate.pem
return: result
Multiple Certificates
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";
const example = new aws.workspacesweb.TrustStore("example", {
certificates: [
{
body: std.file({
input: "certificate1.pem",
}).then(invoke => invoke.result),
},
{
body: std.file({
input: "certificate2.pem",
}).then(invoke => invoke.result),
},
],
tags: {
Name: "example-trust-store",
},
});
import pulumi
import pulumi_aws as aws
import pulumi_std as std
example = aws.workspacesweb.TrustStore("example",
certificates=[
{
"body": std.file(input="certificate1.pem").result,
},
{
"body": std.file(input="certificate2.pem").result,
},
],
tags={
"Name": "example-trust-store",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/workspacesweb"
"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 {
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "certificate1.pem",
}, nil)
if err != nil {
return err
}
invokeFile1, err := std.File(ctx, &std.FileArgs{
Input: "certificate2.pem",
}, nil)
if err != nil {
return err
}
_, err = workspacesweb.NewTrustStore(ctx, "example", &workspacesweb.TrustStoreArgs{
Certificates: workspacesweb.TrustStoreCertificateArray{
&workspacesweb.TrustStoreCertificateArgs{
Body: pulumi.String(invokeFile.Result),
},
&workspacesweb.TrustStoreCertificateArgs{
Body: pulumi.String(invokeFile1.Result),
},
},
Tags: pulumi.StringMap{
"Name": pulumi.String("example-trust-store"),
},
})
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.WorkSpacesWeb.TrustStore("example", new()
{
Certificates = new[]
{
new Aws.WorkSpacesWeb.Inputs.TrustStoreCertificateArgs
{
Body = Std.File.Invoke(new()
{
Input = "certificate1.pem",
}).Apply(invoke => invoke.Result),
},
new Aws.WorkSpacesWeb.Inputs.TrustStoreCertificateArgs
{
Body = Std.File.Invoke(new()
{
Input = "certificate2.pem",
}).Apply(invoke => invoke.Result),
},
},
Tags =
{
{ "Name", "example-trust-store" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.workspacesweb.TrustStore;
import com.pulumi.aws.workspacesweb.TrustStoreArgs;
import com.pulumi.aws.workspacesweb.inputs.TrustStoreCertificateArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.FileArgs;
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 TrustStore("example", TrustStoreArgs.builder()
.certificates(
TrustStoreCertificateArgs.builder()
.body(StdFunctions.file(FileArgs.builder()
.input("certificate1.pem")
.build()).result())
.build(),
TrustStoreCertificateArgs.builder()
.body(StdFunctions.file(FileArgs.builder()
.input("certificate2.pem")
.build()).result())
.build())
.tags(Map.of("Name", "example-trust-store"))
.build());
}
}
resources:
example:
type: aws:workspacesweb:TrustStore
properties:
certificates:
- body:
fn::invoke:
function: std:file
arguments:
input: certificate1.pem
return: result
- body:
fn::invoke:
function: std:file
arguments:
input: certificate2.pem
return: result
tags:
Name: example-trust-store
Create TrustStore Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrustStore(name: string, args?: TrustStoreArgs, opts?: CustomResourceOptions);
@overload
def TrustStore(resource_name: str,
args: Optional[TrustStoreArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TrustStore(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificates: Optional[Sequence[TrustStoreCertificateArgs]] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewTrustStore(ctx *Context, name string, args *TrustStoreArgs, opts ...ResourceOption) (*TrustStore, error)
public TrustStore(string name, TrustStoreArgs? args = null, CustomResourceOptions? opts = null)
public TrustStore(String name, TrustStoreArgs args)
public TrustStore(String name, TrustStoreArgs args, CustomResourceOptions options)
type: aws:workspacesweb:TrustStore
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 TrustStoreArgs
- 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 TrustStoreArgs
- 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 TrustStoreArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrustStoreArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrustStoreArgs
- 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 awsTrustStoreResource = new Aws.WorkSpacesWeb.TrustStore("awsTrustStoreResource", new()
{
Certificates = new[]
{
new Aws.WorkSpacesWeb.Inputs.TrustStoreCertificateArgs
{
Body = "string",
Issuer = "string",
NotValidAfter = "string",
NotValidBefore = "string",
Subject = "string",
Thumbprint = "string",
},
},
Region = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := workspacesweb.NewTrustStore(ctx, "awsTrustStoreResource", &workspacesweb.TrustStoreArgs{
Certificates: workspacesweb.TrustStoreCertificateArray{
&workspacesweb.TrustStoreCertificateArgs{
Body: pulumi.String("string"),
Issuer: pulumi.String("string"),
NotValidAfter: pulumi.String("string"),
NotValidBefore: pulumi.String("string"),
Subject: pulumi.String("string"),
Thumbprint: pulumi.String("string"),
},
},
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var awsTrustStoreResource = new com.pulumi.aws.workspacesweb.TrustStore("awsTrustStoreResource", com.pulumi.aws.workspacesweb.TrustStoreArgs.builder()
.certificates(TrustStoreCertificateArgs.builder()
.body("string")
.issuer("string")
.notValidAfter("string")
.notValidBefore("string")
.subject("string")
.thumbprint("string")
.build())
.region("string")
.tags(Map.of("string", "string"))
.build());
aws_trust_store_resource = aws.workspacesweb.TrustStore("awsTrustStoreResource",
certificates=[{
"body": "string",
"issuer": "string",
"not_valid_after": "string",
"not_valid_before": "string",
"subject": "string",
"thumbprint": "string",
}],
region="string",
tags={
"string": "string",
})
const awsTrustStoreResource = new aws.workspacesweb.TrustStore("awsTrustStoreResource", {
certificates: [{
body: "string",
issuer: "string",
notValidAfter: "string",
notValidBefore: "string",
subject: "string",
thumbprint: "string",
}],
region: "string",
tags: {
string: "string",
},
});
type: aws:workspacesweb:TrustStore
properties:
certificates:
- body: string
issuer: string
notValidAfter: string
notValidBefore: string
subject: string
thumbprint: string
region: string
tags:
string: string
TrustStore 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 TrustStore resource accepts the following input properties:
- Certificates
List<Trust
Store Certificate> - Set of certificates to include in the trust store. See Certificate below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Certificates
[]Trust
Store Certificate Args - Set of certificates to include in the trust store. See Certificate below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- certificates
List<Trust
Store Certificate> - Set of certificates to include in the trust store. See Certificate below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- certificates
Trust
Store Certificate[] - Set of certificates to include in the trust store. See Certificate below.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- certificates
Sequence[Trust
Store Certificate Args] - Set of certificates to include in the trust store. See Certificate below.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- certificates List<Property Map>
- Set of certificates to include in the trust store. See Certificate below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrustStore resource produces the following output properties:
- Associated
Portal List<string>Arns - List of ARNs of the web portals associated with the trust store.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Trust
Store stringArn - ARN of the trust store.
- Associated
Portal []stringArns - List of ARNs of the web portals associated with the trust store.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Trust
Store stringArn - ARN of the trust store.
- associated
Portal List<String>Arns - List of ARNs of the web portals associated with the trust store.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust
Store StringArn - ARN of the trust store.
- associated
Portal string[]Arns - List of ARNs of the web portals associated with the trust store.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust
Store stringArn - ARN of the trust store.
- associated_
portal_ Sequence[str]arns - List of ARNs of the web portals associated with the trust store.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust_
store_ strarn - ARN of the trust store.
- associated
Portal List<String>Arns - List of ARNs of the web portals associated with the trust store.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust
Store StringArn - ARN of the trust store.
Look up Existing TrustStore Resource
Get an existing TrustStore 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?: TrustStoreState, opts?: CustomResourceOptions): TrustStore
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
associated_portal_arns: Optional[Sequence[str]] = None,
certificates: Optional[Sequence[TrustStoreCertificateArgs]] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
trust_store_arn: Optional[str] = None) -> TrustStore
func GetTrustStore(ctx *Context, name string, id IDInput, state *TrustStoreState, opts ...ResourceOption) (*TrustStore, error)
public static TrustStore Get(string name, Input<string> id, TrustStoreState? state, CustomResourceOptions? opts = null)
public static TrustStore get(String name, Output<String> id, TrustStoreState state, CustomResourceOptions options)
resources: _: type: aws:workspacesweb:TrustStore 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.
- Associated
Portal List<string>Arns - List of ARNs of the web portals associated with the trust store.
- Certificates
List<Trust
Store Certificate> - Set of certificates to include in the trust store. See Certificate below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Trust
Store stringArn - ARN of the trust store.
- Associated
Portal []stringArns - List of ARNs of the web portals associated with the trust store.
- Certificates
[]Trust
Store Certificate Args - Set of certificates to include in the trust store. See Certificate below.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Trust
Store stringArn - ARN of the trust store.
- associated
Portal List<String>Arns - List of ARNs of the web portals associated with the trust store.
- certificates
List<Trust
Store Certificate> - Set of certificates to include in the trust store. See Certificate below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust
Store StringArn - ARN of the trust store.
- associated
Portal string[]Arns - List of ARNs of the web portals associated with the trust store.
- certificates
Trust
Store Certificate[] - Set of certificates to include in the trust store. See Certificate below.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust
Store stringArn - ARN of the trust store.
- associated_
portal_ Sequence[str]arns - List of ARNs of the web portals associated with the trust store.
- certificates
Sequence[Trust
Store Certificate Args] - Set of certificates to include in the trust store. See Certificate below.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust_
store_ strarn - ARN of the trust store.
- associated
Portal List<String>Arns - List of ARNs of the web portals associated with the trust store.
- certificates List<Property Map>
- Set of certificates to include in the trust store. See Certificate below.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- Map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - trust
Store StringArn - ARN of the trust store.
Supporting Types
TrustStoreCertificate, TrustStoreCertificateArgs
- Body string
- Certificate body in PEM format.
- Issuer string
- Certificate issuer.
- Not
Valid stringAfter - Date and time when the certificate expires in RFC3339 format.
- Not
Valid stringBefore - Date and time when the certificate becomes valid in RFC3339 format.
- Subject string
- Certificate subject.
- Thumbprint string
- Certificate thumbprint.
- Body string
- Certificate body in PEM format.
- Issuer string
- Certificate issuer.
- Not
Valid stringAfter - Date and time when the certificate expires in RFC3339 format.
- Not
Valid stringBefore - Date and time when the certificate becomes valid in RFC3339 format.
- Subject string
- Certificate subject.
- Thumbprint string
- Certificate thumbprint.
- body String
- Certificate body in PEM format.
- issuer String
- Certificate issuer.
- not
Valid StringAfter - Date and time when the certificate expires in RFC3339 format.
- not
Valid StringBefore - Date and time when the certificate becomes valid in RFC3339 format.
- subject String
- Certificate subject.
- thumbprint String
- Certificate thumbprint.
- body string
- Certificate body in PEM format.
- issuer string
- Certificate issuer.
- not
Valid stringAfter - Date and time when the certificate expires in RFC3339 format.
- not
Valid stringBefore - Date and time when the certificate becomes valid in RFC3339 format.
- subject string
- Certificate subject.
- thumbprint string
- Certificate thumbprint.
- body str
- Certificate body in PEM format.
- issuer str
- Certificate issuer.
- not_
valid_ strafter - Date and time when the certificate expires in RFC3339 format.
- not_
valid_ strbefore - Date and time when the certificate becomes valid in RFC3339 format.
- subject str
- Certificate subject.
- thumbprint str
- Certificate thumbprint.
- body String
- Certificate body in PEM format.
- issuer String
- Certificate issuer.
- not
Valid StringAfter - Date and time when the certificate expires in RFC3339 format.
- not
Valid StringBefore - Date and time when the certificate becomes valid in RFC3339 format.
- subject String
- Certificate subject.
- thumbprint String
- Certificate thumbprint.
Import
Using pulumi import
, import WorkSpaces Web Trust Store using the trust_store_arn
. For example:
$ pulumi import aws:workspacesweb/trustStore:TrustStore example arn:aws:workspaces-web:us-west-2:123456789012:trustStore/trust_store-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.