Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.certificatemanager/v1.TrustConfig
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new TrustConfig in a given project and location.
Create TrustConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrustConfig(name: string, args: TrustConfigArgs, opts?: CustomResourceOptions);
@overload
def TrustConfig(resource_name: str,
args: TrustConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrustConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
trust_config_id: Optional[str] = None,
description: Optional[str] = None,
etag: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
trust_stores: Optional[Sequence[TrustStoreArgs]] = None)
func NewTrustConfig(ctx *Context, name string, args TrustConfigArgs, opts ...ResourceOption) (*TrustConfig, error)
public TrustConfig(string name, TrustConfigArgs args, CustomResourceOptions? opts = null)
public TrustConfig(String name, TrustConfigArgs args)
public TrustConfig(String name, TrustConfigArgs args, CustomResourceOptions options)
type: google-native:certificatemanager/v1:TrustConfig
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 TrustConfigArgs
- 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 TrustConfigArgs
- 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 TrustConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrustConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrustConfigArgs
- 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 trustConfigResource = new GoogleNative.CertificateManager.V1.TrustConfig("trustConfigResource", new()
{
TrustConfigId = "string",
Description = "string",
Etag = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
TrustStores = new[]
{
new GoogleNative.CertificateManager.V1.Inputs.TrustStoreArgs
{
IntermediateCas = new[]
{
new GoogleNative.CertificateManager.V1.Inputs.IntermediateCAArgs
{
PemCertificate = "string",
},
},
TrustAnchors = new[]
{
new GoogleNative.CertificateManager.V1.Inputs.TrustAnchorArgs
{
PemCertificate = "string",
},
},
},
},
});
example, err := certificatemanager.NewTrustConfig(ctx, "trustConfigResource", &certificatemanager.TrustConfigArgs{
TrustConfigId: pulumi.String("string"),
Description: pulumi.String("string"),
Etag: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
TrustStores: certificatemanager.TrustStoreArray{
&certificatemanager.TrustStoreArgs{
IntermediateCas: certificatemanager.IntermediateCAArray{
&certificatemanager.IntermediateCAArgs{
PemCertificate: pulumi.String("string"),
},
},
TrustAnchors: certificatemanager.TrustAnchorArray{
&certificatemanager.TrustAnchorArgs{
PemCertificate: pulumi.String("string"),
},
},
},
},
})
var trustConfigResource = new TrustConfig("trustConfigResource", TrustConfigArgs.builder()
.trustConfigId("string")
.description("string")
.etag("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.trustStores(TrustStoreArgs.builder()
.intermediateCas(IntermediateCAArgs.builder()
.pemCertificate("string")
.build())
.trustAnchors(TrustAnchorArgs.builder()
.pemCertificate("string")
.build())
.build())
.build());
trust_config_resource = google_native.certificatemanager.v1.TrustConfig("trustConfigResource",
trust_config_id="string",
description="string",
etag="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string",
trust_stores=[{
"intermediate_cas": [{
"pem_certificate": "string",
}],
"trust_anchors": [{
"pem_certificate": "string",
}],
}])
const trustConfigResource = new google_native.certificatemanager.v1.TrustConfig("trustConfigResource", {
trustConfigId: "string",
description: "string",
etag: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
trustStores: [{
intermediateCas: [{
pemCertificate: "string",
}],
trustAnchors: [{
pemCertificate: "string",
}],
}],
});
type: google-native:certificatemanager/v1:TrustConfig
properties:
description: string
etag: string
labels:
string: string
location: string
name: string
project: string
trustConfigId: string
trustStores:
- intermediateCas:
- pemCertificate: string
trustAnchors:
- pemCertificate: string
TrustConfig 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 TrustConfig resource accepts the following input properties:
- Trust
Config stringId - Required. A user-provided name of the TrustConfig. Must match the regexp
[a-z0-9-]{1,63}
. - Description string
- One or more paragraphs of text description of a TrustConfig.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels Dictionary<string, string>
- Set of labels associated with a TrustConfig.
- Location string
- Name string
- A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern
projects/*/locations/*/trustConfigs/*
. - Project string
- Trust
Stores List<Pulumi.Google Native. Certificate Manager. V1. Inputs. Trust Store> - Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed.
- Trust
Config stringId - Required. A user-provided name of the TrustConfig. Must match the regexp
[a-z0-9-]{1,63}
. - Description string
- One or more paragraphs of text description of a TrustConfig.
- Etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- Labels map[string]string
- Set of labels associated with a TrustConfig.
- Location string
- Name string
- A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern
projects/*/locations/*/trustConfigs/*
. - Project string
- Trust
Stores []TrustStore Args - Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed.
- trust
Config StringId - Required. A user-provided name of the TrustConfig. Must match the regexp
[a-z0-9-]{1,63}
. - description String
- One or more paragraphs of text description of a TrustConfig.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String,String>
- Set of labels associated with a TrustConfig.
- location String
- name String
- A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern
projects/*/locations/*/trustConfigs/*
. - project String
- trust
Stores List<TrustStore> - Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed.
- trust
Config stringId - Required. A user-provided name of the TrustConfig. Must match the regexp
[a-z0-9-]{1,63}
. - description string
- One or more paragraphs of text description of a TrustConfig.
- etag string
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels {[key: string]: string}
- Set of labels associated with a TrustConfig.
- location string
- name string
- A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern
projects/*/locations/*/trustConfigs/*
. - project string
- trust
Stores TrustStore[] - Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed.
- trust_
config_ strid - Required. A user-provided name of the TrustConfig. Must match the regexp
[a-z0-9-]{1,63}
. - description str
- One or more paragraphs of text description of a TrustConfig.
- etag str
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Mapping[str, str]
- Set of labels associated with a TrustConfig.
- location str
- name str
- A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern
projects/*/locations/*/trustConfigs/*
. - project str
- trust_
stores Sequence[TrustStore Args] - Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed.
- trust
Config StringId - Required. A user-provided name of the TrustConfig. Must match the regexp
[a-z0-9-]{1,63}
. - description String
- One or more paragraphs of text description of a TrustConfig.
- etag String
- This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- labels Map<String>
- Set of labels associated with a TrustConfig.
- location String
- name String
- A user-defined name of the trust config. TrustConfig names must be unique globally and match pattern
projects/*/locations/*/trustConfigs/*
. - project String
- trust
Stores List<Property Map> - Set of trust stores to perform validation against. This field is supported when TrustConfig is configured with Load Balancers, currently not supported for SPIFFE certificate validation. Only one TrustStore specified is currently allowed.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrustConfig resource produces the following output properties:
- Create
Time string - The creation timestamp of a TrustConfig.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update timestamp of a TrustConfig.
- Create
Time string - The creation timestamp of a TrustConfig.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update timestamp of a TrustConfig.
- create
Time String - The creation timestamp of a TrustConfig.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update timestamp of a TrustConfig.
- create
Time string - The creation timestamp of a TrustConfig.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - The last update timestamp of a TrustConfig.
- create_
time str - The creation timestamp of a TrustConfig.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - The last update timestamp of a TrustConfig.
- create
Time String - The creation timestamp of a TrustConfig.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update timestamp of a TrustConfig.
Supporting Types
IntermediateCA, IntermediateCAArgs
- Pem
Certificate string - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- Pem
Certificate string - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate string - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem_
certificate str - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
IntermediateCAResponse, IntermediateCAResponseArgs
- Pem
Certificate string - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- Pem
Certificate string - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate string - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem_
certificate str - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM intermediate certificate used for building up paths for validation. Each certificate provided in PEM format may occupy up to 5kB.
TrustAnchor, TrustAnchorArgs
- Pem
Certificate string - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- Pem
Certificate string - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate string - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem_
certificate str - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
TrustAnchorResponse, TrustAnchorResponseArgs
- Pem
Certificate string - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- Pem
Certificate string - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate string - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem_
certificate str - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
- pem
Certificate String - PEM root certificate of the PKI used for validation. Each certificate provided in PEM format may occupy up to 5kB.
TrustStore, TrustStoreArgs
- Intermediate
Cas List<Pulumi.Google Native. Certificate Manager. V1. Inputs. Intermediate CA> - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- Trust
Anchors List<Pulumi.Google Native. Certificate Manager. V1. Inputs. Trust Anchor> - List of Trust Anchors to be used while performing validation against a given TrustStore.
- Intermediate
Cas []IntermediateCA - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- Trust
Anchors []TrustAnchor - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate
Cas List<IntermediateCA> - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust
Anchors List<TrustAnchor> - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate
Cas IntermediateCA[] - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust
Anchors TrustAnchor[] - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate_
cas Sequence[IntermediateCA] - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust_
anchors Sequence[TrustAnchor] - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate
Cas List<Property Map> - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust
Anchors List<Property Map> - List of Trust Anchors to be used while performing validation against a given TrustStore.
TrustStoreResponse, TrustStoreResponseArgs
- Intermediate
Cas List<Pulumi.Google Native. Certificate Manager. V1. Inputs. Intermediate CAResponse> - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- Trust
Anchors List<Pulumi.Google Native. Certificate Manager. V1. Inputs. Trust Anchor Response> - List of Trust Anchors to be used while performing validation against a given TrustStore.
- Intermediate
Cas []IntermediateCAResponse - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- Trust
Anchors []TrustAnchor Response - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate
Cas List<IntermediateCAResponse> - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust
Anchors List<TrustAnchor Response> - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate
Cas IntermediateCAResponse[] - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust
Anchors TrustAnchor Response[] - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate_
cas Sequence[IntermediateCAResponse] - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust_
anchors Sequence[TrustAnchor Response] - List of Trust Anchors to be used while performing validation against a given TrustStore.
- intermediate
Cas List<Property Map> - Set of intermediate CA certificates used for the path building phase of chain validation. The field is currently not supported if TrustConfig is used for the workload certificate feature.
- trust
Anchors List<Property Map> - List of Trust Anchors to be used while performing validation against a given TrustStore.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.