gcp.networksecurity.ClientTlsPolicy
Explore with Pulumi AI
ClientTlsPolicy is a resource that specifies how a client should authenticate connections to backends of a service. This resource itself does not affect configuration unless it is attached to a backend service resource.
To get more information about ClientTlsPolicy, see:
- API documentation
- How-to Guides
Example Usage
Network Security Client Tls Policy Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.networksecurity.ClientTlsPolicy("default", {
name: "my-client-tls-policy",
labels: {
foo: "bar",
},
description: "my description",
sni: "secure.example.com",
});
import pulumi
import pulumi_gcp as gcp
default = gcp.networksecurity.ClientTlsPolicy("default",
name="my-client-tls-policy",
labels={
"foo": "bar",
},
description="my description",
sni="secure.example.com")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networksecurity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networksecurity.NewClientTlsPolicy(ctx, "default", &networksecurity.ClientTlsPolicyArgs{
Name: pulumi.String("my-client-tls-policy"),
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
Description: pulumi.String("my description"),
Sni: pulumi.String("secure.example.com"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.NetworkSecurity.ClientTlsPolicy("default", new()
{
Name = "my-client-tls-policy",
Labels =
{
{ "foo", "bar" },
},
Description = "my description",
Sni = "secure.example.com",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networksecurity.ClientTlsPolicy;
import com.pulumi.gcp.networksecurity.ClientTlsPolicyArgs;
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 default_ = new ClientTlsPolicy("default", ClientTlsPolicyArgs.builder()
.name("my-client-tls-policy")
.labels(Map.of("foo", "bar"))
.description("my description")
.sni("secure.example.com")
.build());
}
}
resources:
default:
type: gcp:networksecurity:ClientTlsPolicy
properties:
name: my-client-tls-policy
labels:
foo: bar
description: my description
sni: secure.example.com
Network Security Client Tls Policy Advanced
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.networksecurity.ClientTlsPolicy("default", {
name: "my-client-tls-policy",
labels: {
foo: "bar",
},
description: "my description",
clientCertificate: {
certificateProviderInstance: {
pluginInstance: "google_cloud_private_spiffe",
},
},
serverValidationCas: [{
grpcEndpoint: {
targetUri: "unix:mypath",
},
}],
});
import pulumi
import pulumi_gcp as gcp
default = gcp.networksecurity.ClientTlsPolicy("default",
name="my-client-tls-policy",
labels={
"foo": "bar",
},
description="my description",
client_certificate={
"certificate_provider_instance": {
"plugin_instance": "google_cloud_private_spiffe",
},
},
server_validation_cas=[{
"grpc_endpoint": {
"target_uri": "unix:mypath",
},
}])
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networksecurity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networksecurity.NewClientTlsPolicy(ctx, "default", &networksecurity.ClientTlsPolicyArgs{
Name: pulumi.String("my-client-tls-policy"),
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
Description: pulumi.String("my description"),
ClientCertificate: &networksecurity.ClientTlsPolicyClientCertificateArgs{
CertificateProviderInstance: &networksecurity.ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs{
PluginInstance: pulumi.String("google_cloud_private_spiffe"),
},
},
ServerValidationCas: networksecurity.ClientTlsPolicyServerValidationCaArray{
&networksecurity.ClientTlsPolicyServerValidationCaArgs{
GrpcEndpoint: &networksecurity.ClientTlsPolicyServerValidationCaGrpcEndpointArgs{
TargetUri: pulumi.String("unix:mypath"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.NetworkSecurity.ClientTlsPolicy("default", new()
{
Name = "my-client-tls-policy",
Labels =
{
{ "foo", "bar" },
},
Description = "my description",
ClientCertificate = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyClientCertificateArgs
{
CertificateProviderInstance = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs
{
PluginInstance = "google_cloud_private_spiffe",
},
},
ServerValidationCas = new[]
{
new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyServerValidationCaArgs
{
GrpcEndpoint = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyServerValidationCaGrpcEndpointArgs
{
TargetUri = "unix:mypath",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networksecurity.ClientTlsPolicy;
import com.pulumi.gcp.networksecurity.ClientTlsPolicyArgs;
import com.pulumi.gcp.networksecurity.inputs.ClientTlsPolicyClientCertificateArgs;
import com.pulumi.gcp.networksecurity.inputs.ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs;
import com.pulumi.gcp.networksecurity.inputs.ClientTlsPolicyServerValidationCaArgs;
import com.pulumi.gcp.networksecurity.inputs.ClientTlsPolicyServerValidationCaGrpcEndpointArgs;
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 default_ = new ClientTlsPolicy("default", ClientTlsPolicyArgs.builder()
.name("my-client-tls-policy")
.labels(Map.of("foo", "bar"))
.description("my description")
.clientCertificate(ClientTlsPolicyClientCertificateArgs.builder()
.certificateProviderInstance(ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs.builder()
.pluginInstance("google_cloud_private_spiffe")
.build())
.build())
.serverValidationCas(ClientTlsPolicyServerValidationCaArgs.builder()
.grpcEndpoint(ClientTlsPolicyServerValidationCaGrpcEndpointArgs.builder()
.targetUri("unix:mypath")
.build())
.build())
.build());
}
}
resources:
default:
type: gcp:networksecurity:ClientTlsPolicy
properties:
name: my-client-tls-policy
labels:
foo: bar
description: my description
clientCertificate:
certificateProviderInstance:
pluginInstance: google_cloud_private_spiffe
serverValidationCas:
- grpcEndpoint:
targetUri: unix:mypath
Create ClientTlsPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClientTlsPolicy(name: string, args?: ClientTlsPolicyArgs, opts?: CustomResourceOptions);
@overload
def ClientTlsPolicy(resource_name: str,
args: Optional[ClientTlsPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ClientTlsPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_certificate: Optional[ClientTlsPolicyClientCertificateArgs] = None,
description: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
server_validation_cas: Optional[Sequence[ClientTlsPolicyServerValidationCaArgs]] = None,
sni: Optional[str] = None)
func NewClientTlsPolicy(ctx *Context, name string, args *ClientTlsPolicyArgs, opts ...ResourceOption) (*ClientTlsPolicy, error)
public ClientTlsPolicy(string name, ClientTlsPolicyArgs? args = null, CustomResourceOptions? opts = null)
public ClientTlsPolicy(String name, ClientTlsPolicyArgs args)
public ClientTlsPolicy(String name, ClientTlsPolicyArgs args, CustomResourceOptions options)
type: gcp:networksecurity:ClientTlsPolicy
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 ClientTlsPolicyArgs
- 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 ClientTlsPolicyArgs
- 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 ClientTlsPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClientTlsPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClientTlsPolicyArgs
- 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 clientTlsPolicyResource = new Gcp.NetworkSecurity.ClientTlsPolicy("clientTlsPolicyResource", new()
{
ClientCertificate = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyClientCertificateArgs
{
CertificateProviderInstance = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs
{
PluginInstance = "string",
},
GrpcEndpoint = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyClientCertificateGrpcEndpointArgs
{
TargetUri = "string",
},
},
Description = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
ServerValidationCas = new[]
{
new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyServerValidationCaArgs
{
CertificateProviderInstance = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyServerValidationCaCertificateProviderInstanceArgs
{
PluginInstance = "string",
},
GrpcEndpoint = new Gcp.NetworkSecurity.Inputs.ClientTlsPolicyServerValidationCaGrpcEndpointArgs
{
TargetUri = "string",
},
},
},
Sni = "string",
});
example, err := networksecurity.NewClientTlsPolicy(ctx, "clientTlsPolicyResource", &networksecurity.ClientTlsPolicyArgs{
ClientCertificate: &networksecurity.ClientTlsPolicyClientCertificateArgs{
CertificateProviderInstance: &networksecurity.ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs{
PluginInstance: pulumi.String("string"),
},
GrpcEndpoint: &networksecurity.ClientTlsPolicyClientCertificateGrpcEndpointArgs{
TargetUri: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
ServerValidationCas: networksecurity.ClientTlsPolicyServerValidationCaArray{
&networksecurity.ClientTlsPolicyServerValidationCaArgs{
CertificateProviderInstance: &networksecurity.ClientTlsPolicyServerValidationCaCertificateProviderInstanceArgs{
PluginInstance: pulumi.String("string"),
},
GrpcEndpoint: &networksecurity.ClientTlsPolicyServerValidationCaGrpcEndpointArgs{
TargetUri: pulumi.String("string"),
},
},
},
Sni: pulumi.String("string"),
})
var clientTlsPolicyResource = new ClientTlsPolicy("clientTlsPolicyResource", ClientTlsPolicyArgs.builder()
.clientCertificate(ClientTlsPolicyClientCertificateArgs.builder()
.certificateProviderInstance(ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs.builder()
.pluginInstance("string")
.build())
.grpcEndpoint(ClientTlsPolicyClientCertificateGrpcEndpointArgs.builder()
.targetUri("string")
.build())
.build())
.description("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.serverValidationCas(ClientTlsPolicyServerValidationCaArgs.builder()
.certificateProviderInstance(ClientTlsPolicyServerValidationCaCertificateProviderInstanceArgs.builder()
.pluginInstance("string")
.build())
.grpcEndpoint(ClientTlsPolicyServerValidationCaGrpcEndpointArgs.builder()
.targetUri("string")
.build())
.build())
.sni("string")
.build());
client_tls_policy_resource = gcp.networksecurity.ClientTlsPolicy("clientTlsPolicyResource",
client_certificate={
"certificate_provider_instance": {
"plugin_instance": "string",
},
"grpc_endpoint": {
"target_uri": "string",
},
},
description="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string",
server_validation_cas=[{
"certificate_provider_instance": {
"plugin_instance": "string",
},
"grpc_endpoint": {
"target_uri": "string",
},
}],
sni="string")
const clientTlsPolicyResource = new gcp.networksecurity.ClientTlsPolicy("clientTlsPolicyResource", {
clientCertificate: {
certificateProviderInstance: {
pluginInstance: "string",
},
grpcEndpoint: {
targetUri: "string",
},
},
description: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
serverValidationCas: [{
certificateProviderInstance: {
pluginInstance: "string",
},
grpcEndpoint: {
targetUri: "string",
},
}],
sni: "string",
});
type: gcp:networksecurity:ClientTlsPolicy
properties:
clientCertificate:
certificateProviderInstance:
pluginInstance: string
grpcEndpoint:
targetUri: string
description: string
labels:
string: string
location: string
name: string
project: string
serverValidationCas:
- certificateProviderInstance:
pluginInstance: string
grpcEndpoint:
targetUri: string
sni: string
ClientTlsPolicy 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 ClientTlsPolicy resource accepts the following input properties:
- Client
Certificate ClientTls Policy Client Certificate - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- Description string
- A free-text description of the resource. Max length 1024 characters.
- Labels Dictionary<string, string>
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- The location of the client tls policy.
The default value is
global
. - Name string
- Name of the ClientTlsPolicy resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Server
Validation List<ClientCas Tls Policy Server Validation Ca> - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- Sni string
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- Client
Certificate ClientTls Policy Client Certificate Args - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- Description string
- A free-text description of the resource. Max length 1024 characters.
- Labels map[string]string
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- The location of the client tls policy.
The default value is
global
. - Name string
- Name of the ClientTlsPolicy resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Server
Validation []ClientCas Tls Policy Server Validation Ca Args - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- Sni string
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- client
Certificate ClientTls Policy Client Certificate - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- description String
- A free-text description of the resource. Max length 1024 characters.
- labels Map<String,String>
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- The location of the client tls policy.
The default value is
global
. - name String
- Name of the ClientTlsPolicy resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server
Validation List<ClientCas Tls Policy Server Validation Ca> - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni String
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- client
Certificate ClientTls Policy Client Certificate - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- description string
- A free-text description of the resource. Max length 1024 characters.
- labels {[key: string]: string}
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location string
- The location of the client tls policy.
The default value is
global
. - name string
- Name of the ClientTlsPolicy resource.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server
Validation ClientCas Tls Policy Server Validation Ca[] - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni string
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- client_
certificate ClientTls Policy Client Certificate Args - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- description str
- A free-text description of the resource. Max length 1024 characters.
- labels Mapping[str, str]
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location str
- The location of the client tls policy.
The default value is
global
. - name str
- Name of the ClientTlsPolicy resource.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server_
validation_ Sequence[Clientcas Tls Policy Server Validation Ca Args] - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni str
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- client
Certificate Property Map - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- description String
- A free-text description of the resource. Max length 1024 characters.
- labels Map<String>
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- The location of the client tls policy.
The default value is
global
. - name String
- Name of the ClientTlsPolicy resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server
Validation List<Property Map>Cas - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni String
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
Outputs
All input properties are implicitly available as output properties. Additionally, the ClientTlsPolicy resource produces the following output properties:
- Create
Time string - Time the ClientTlsPolicy was created in UTC.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Time the ClientTlsPolicy was updated in UTC.
- Create
Time string - Time the ClientTlsPolicy was created in UTC.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string - Time the ClientTlsPolicy was updated in UTC.
- create
Time String - Time the ClientTlsPolicy was created in UTC.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String - Time the ClientTlsPolicy was updated in UTC.
- create
Time string - Time the ClientTlsPolicy was created in UTC.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time string - Time the ClientTlsPolicy was updated in UTC.
- create_
time str - Time the ClientTlsPolicy was created in UTC.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- update_
time str - Time the ClientTlsPolicy was updated in UTC.
- create
Time String - Time the ClientTlsPolicy was created in UTC.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String - Time the ClientTlsPolicy was updated in UTC.
Look up Existing ClientTlsPolicy Resource
Get an existing ClientTlsPolicy 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?: ClientTlsPolicyState, opts?: CustomResourceOptions): ClientTlsPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_certificate: Optional[ClientTlsPolicyClientCertificateArgs] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
server_validation_cas: Optional[Sequence[ClientTlsPolicyServerValidationCaArgs]] = None,
sni: Optional[str] = None,
update_time: Optional[str] = None) -> ClientTlsPolicy
func GetClientTlsPolicy(ctx *Context, name string, id IDInput, state *ClientTlsPolicyState, opts ...ResourceOption) (*ClientTlsPolicy, error)
public static ClientTlsPolicy Get(string name, Input<string> id, ClientTlsPolicyState? state, CustomResourceOptions? opts = null)
public static ClientTlsPolicy get(String name, Output<String> id, ClientTlsPolicyState 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.
- Client
Certificate ClientTls Policy Client Certificate - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- Create
Time string - Time the ClientTlsPolicy was created in UTC.
- Description string
- A free-text description of the resource. Max length 1024 characters.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels Dictionary<string, string>
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- The location of the client tls policy.
The default value is
global
. - Name string
- Name of the ClientTlsPolicy resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Server
Validation List<ClientCas Tls Policy Server Validation Ca> - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- Sni string
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- Update
Time string - Time the ClientTlsPolicy was updated in UTC.
- Client
Certificate ClientTls Policy Client Certificate Args - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- Create
Time string - Time the ClientTlsPolicy was created in UTC.
- Description string
- A free-text description of the resource. Max length 1024 characters.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Labels map[string]string
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- The location of the client tls policy.
The default value is
global
. - Name string
- Name of the ClientTlsPolicy resource.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Server
Validation []ClientCas Tls Policy Server Validation Ca Args - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- Sni string
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- Update
Time string - Time the ClientTlsPolicy was updated in UTC.
- client
Certificate ClientTls Policy Client Certificate - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- create
Time String - Time the ClientTlsPolicy was created in UTC.
- description String
- A free-text description of the resource. Max length 1024 characters.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String,String>
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- The location of the client tls policy.
The default value is
global
. - name String
- Name of the ClientTlsPolicy resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- server
Validation List<ClientCas Tls Policy Server Validation Ca> - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni String
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- update
Time String - Time the ClientTlsPolicy was updated in UTC.
- client
Certificate ClientTls Policy Client Certificate - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- create
Time string - Time the ClientTlsPolicy was created in UTC.
- description string
- A free-text description of the resource. Max length 1024 characters.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels {[key: string]: string}
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location string
- The location of the client tls policy.
The default value is
global
. - name string
- Name of the ClientTlsPolicy resource.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- server
Validation ClientCas Tls Policy Server Validation Ca[] - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni string
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- update
Time string - Time the ClientTlsPolicy was updated in UTC.
- client_
certificate ClientTls Policy Client Certificate Args - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- create_
time str - Time the ClientTlsPolicy was created in UTC.
- description str
- A free-text description of the resource. Max length 1024 characters.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Mapping[str, str]
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location str
- The location of the client tls policy.
The default value is
global
. - name str
- Name of the ClientTlsPolicy resource.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- server_
validation_ Sequence[Clientcas Tls Policy Server Validation Ca Args] - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni str
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- update_
time str - Time the ClientTlsPolicy was updated in UTC.
- client
Certificate Property Map - Defines a mechanism to provision client identity (public and private keys) for peer to peer authentication. The presence of this dictates mTLS. Structure is documented below.
- create
Time String - Time the ClientTlsPolicy was created in UTC.
- description String
- A free-text description of the resource. Max length 1024 characters.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- labels Map<String>
- Set of label tags associated with the ClientTlsPolicy resource.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- The location of the client tls policy.
The default value is
global
. - name String
- Name of the ClientTlsPolicy resource.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- server
Validation List<Property Map>Cas - Defines the mechanism to obtain the Certificate Authority certificate to validate the server certificate. If empty, client does not validate the server certificate. Structure is documented below.
- sni String
- Server Name Indication string to present to the server during TLS handshake. E.g: "secure.example.com".
- update
Time String - Time the ClientTlsPolicy was updated in UTC.
Supporting Types
ClientTlsPolicyClientCertificate, ClientTlsPolicyClientCertificateArgs
- Certificate
Provider ClientInstance Tls Policy Client Certificate Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- Grpc
Endpoint ClientTls Policy Client Certificate Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- Certificate
Provider ClientInstance Tls Policy Client Certificate Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- Grpc
Endpoint ClientTls Policy Client Certificate Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate
Provider ClientInstance Tls Policy Client Certificate Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc
Endpoint ClientTls Policy Client Certificate Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate
Provider ClientInstance Tls Policy Client Certificate Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc
Endpoint ClientTls Policy Client Certificate Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate_
provider_ Clientinstance Tls Policy Client Certificate Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc_
endpoint ClientTls Policy Client Certificate Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate
Provider Property MapInstance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc
Endpoint Property Map - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
ClientTlsPolicyClientCertificateCertificateProviderInstance, ClientTlsPolicyClientCertificateCertificateProviderInstanceArgs
- Plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- Plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance String - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin_
instance str - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance String - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
ClientTlsPolicyClientCertificateGrpcEndpoint, ClientTlsPolicyClientCertificateGrpcEndpointArgs
- Target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- Target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri String - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target_
uri str - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri String - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
ClientTlsPolicyServerValidationCa, ClientTlsPolicyServerValidationCaArgs
- Certificate
Provider ClientInstance Tls Policy Server Validation Ca Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- Grpc
Endpoint ClientTls Policy Server Validation Ca Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- Certificate
Provider ClientInstance Tls Policy Server Validation Ca Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- Grpc
Endpoint ClientTls Policy Server Validation Ca Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate
Provider ClientInstance Tls Policy Server Validation Ca Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc
Endpoint ClientTls Policy Server Validation Ca Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate
Provider ClientInstance Tls Policy Server Validation Ca Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc
Endpoint ClientTls Policy Server Validation Ca Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate_
provider_ Clientinstance Tls Policy Server Validation Ca Certificate Provider Instance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc_
endpoint ClientTls Policy Server Validation Ca Grpc Endpoint - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
- certificate
Provider Property MapInstance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information. Structure is documented below.
- grpc
Endpoint Property Map - gRPC specific configuration to access the gRPC server to obtain the cert and private key. Structure is documented below.
ClientTlsPolicyServerValidationCaCertificateProviderInstance, ClientTlsPolicyServerValidationCaCertificateProviderInstanceArgs
- Plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- Plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance String - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin_
instance str - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance String - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
ClientTlsPolicyServerValidationCaGrpcEndpoint, ClientTlsPolicyServerValidationCaGrpcEndpointArgs
- Target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- Target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri String - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target_
uri str - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri String - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
Import
ClientTlsPolicy can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/clientTlsPolicies/{{name}}
{{project}}/{{location}}/{{name}}
{{location}}/{{name}}
When using the pulumi import
command, ClientTlsPolicy can be imported using one of the formats above. For example:
$ pulumi import gcp:networksecurity/clientTlsPolicy:ClientTlsPolicy default projects/{{project}}/locations/{{location}}/clientTlsPolicies/{{name}}
$ pulumi import gcp:networksecurity/clientTlsPolicy:ClientTlsPolicy default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:networksecurity/clientTlsPolicy:ClientTlsPolicy default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.