gcp.compute.SSLPolicy
Explore with Pulumi AI
Represents a SSL policy. SSL policies give you the ability to control the features of SSL that your SSL proxy or HTTPS load balancer negotiates.
To get more information about SslPolicy, see:
- API documentation
- How-to Guides
Example Usage
Ssl Policy Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var prod_ssl_policy = new Gcp.Compute.SSLPolicy("prod-ssl-policy", new()
{
Profile = "MODERN",
});
var nonprod_ssl_policy = new Gcp.Compute.SSLPolicy("nonprod-ssl-policy", new()
{
MinTlsVersion = "TLS_1_2",
Profile = "MODERN",
});
var custom_ssl_policy = new Gcp.Compute.SSLPolicy("custom-ssl-policy", new()
{
CustomFeatures = new[]
{
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
},
MinTlsVersion = "TLS_1_2",
Profile = "CUSTOM",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewSSLPolicy(ctx, "prod-ssl-policy", &compute.SSLPolicyArgs{
Profile: pulumi.String("MODERN"),
})
if err != nil {
return err
}
_, err = compute.NewSSLPolicy(ctx, "nonprod-ssl-policy", &compute.SSLPolicyArgs{
MinTlsVersion: pulumi.String("TLS_1_2"),
Profile: pulumi.String("MODERN"),
})
if err != nil {
return err
}
_, err = compute.NewSSLPolicy(ctx, "custom-ssl-policy", &compute.SSLPolicyArgs{
CustomFeatures: pulumi.StringArray{
pulumi.String("TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"),
pulumi.String("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"),
},
MinTlsVersion: pulumi.String("TLS_1_2"),
Profile: pulumi.String("CUSTOM"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.SSLPolicy;
import com.pulumi.gcp.compute.SSLPolicyArgs;
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 prod_ssl_policy = new SSLPolicy("prod-ssl-policy", SSLPolicyArgs.builder()
.profile("MODERN")
.build());
var nonprod_ssl_policy = new SSLPolicy("nonprod-ssl-policy", SSLPolicyArgs.builder()
.minTlsVersion("TLS_1_2")
.profile("MODERN")
.build());
var custom_ssl_policy = new SSLPolicy("custom-ssl-policy", SSLPolicyArgs.builder()
.customFeatures(
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384")
.minTlsVersion("TLS_1_2")
.profile("CUSTOM")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
prod_ssl_policy = gcp.compute.SSLPolicy("prod-ssl-policy", profile="MODERN")
nonprod_ssl_policy = gcp.compute.SSLPolicy("nonprod-ssl-policy",
min_tls_version="TLS_1_2",
profile="MODERN")
custom_ssl_policy = gcp.compute.SSLPolicy("custom-ssl-policy",
custom_features=[
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
],
min_tls_version="TLS_1_2",
profile="CUSTOM")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const prod_ssl_policy = new gcp.compute.SSLPolicy("prod-ssl-policy", {profile: "MODERN"});
const nonprod_ssl_policy = new gcp.compute.SSLPolicy("nonprod-ssl-policy", {
minTlsVersion: "TLS_1_2",
profile: "MODERN",
});
const custom_ssl_policy = new gcp.compute.SSLPolicy("custom-ssl-policy", {
customFeatures: [
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
],
minTlsVersion: "TLS_1_2",
profile: "CUSTOM",
});
resources:
prod-ssl-policy:
type: gcp:compute:SSLPolicy
properties:
profile: MODERN
nonprod-ssl-policy:
type: gcp:compute:SSLPolicy
properties:
minTlsVersion: TLS_1_2
profile: MODERN
custom-ssl-policy:
type: gcp:compute:SSLPolicy
properties:
customFeatures:
- TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
- TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
minTlsVersion: TLS_1_2
profile: CUSTOM
Create SSLPolicy Resource
new SSLPolicy(name: string, args?: SSLPolicyArgs, opts?: CustomResourceOptions);
@overload
def SSLPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_features: Optional[Sequence[str]] = None,
description: Optional[str] = None,
min_tls_version: Optional[str] = None,
name: Optional[str] = None,
profile: Optional[str] = None,
project: Optional[str] = None)
@overload
def SSLPolicy(resource_name: str,
args: Optional[SSLPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewSSLPolicy(ctx *Context, name string, args *SSLPolicyArgs, opts ...ResourceOption) (*SSLPolicy, error)
public SSLPolicy(string name, SSLPolicyArgs? args = null, CustomResourceOptions? opts = null)
public SSLPolicy(String name, SSLPolicyArgs args)
public SSLPolicy(String name, SSLPolicyArgs args, CustomResourceOptions options)
type: gcp:compute:SSLPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SSLPolicyArgs
- 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 SSLPolicyArgs
- 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 SSLPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SSLPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SSLPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SSLPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SSLPolicy resource accepts the following input properties:
- Custom
Features List<string> Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- Description string
An optional description of this resource.
- Min
Tls stringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Profile string
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Custom
Features []string Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- Description string
An optional description of this resource.
- Min
Tls stringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Profile string
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- custom
Features List<String> Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description String
An optional description of this resource.
- min
Tls StringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile String
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- custom
Features string[] Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description string
An optional description of this resource.
- min
Tls stringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile string
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- custom_
features Sequence[str] Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description str
An optional description of this resource.
- min_
tls_ strversion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile str
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- custom
Features List<String> Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description String
An optional description of this resource.
- min
Tls StringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile String
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the SSLPolicy resource produces the following output properties:
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Enabled
Features List<string> The list of features enabled in the SSL policy.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string The URI of the created resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Enabled
Features []string The list of features enabled in the SSL policy.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Id string
The provider-assigned unique ID for this managed resource.
- Self
Link string The URI of the created resource.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- enabled
Features List<String> The list of features enabled in the SSL policy.
- fingerprint String
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String The URI of the created resource.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- enabled
Features string[] The list of features enabled in the SSL policy.
- fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- id string
The provider-assigned unique ID for this managed resource.
- self
Link string The URI of the created resource.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- enabled_
features Sequence[str] The list of features enabled in the SSL policy.
- fingerprint str
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- id str
The provider-assigned unique ID for this managed resource.
- self_
link str The URI of the created resource.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- enabled
Features List<String> The list of features enabled in the SSL policy.
- fingerprint String
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- id String
The provider-assigned unique ID for this managed resource.
- self
Link String The URI of the created resource.
Look up Existing SSLPolicy Resource
Get an existing SSLPolicy 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?: SSLPolicyState, opts?: CustomResourceOptions): SSLPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
creation_timestamp: Optional[str] = None,
custom_features: Optional[Sequence[str]] = None,
description: Optional[str] = None,
enabled_features: Optional[Sequence[str]] = None,
fingerprint: Optional[str] = None,
min_tls_version: Optional[str] = None,
name: Optional[str] = None,
profile: Optional[str] = None,
project: Optional[str] = None,
self_link: Optional[str] = None) -> SSLPolicy
func GetSSLPolicy(ctx *Context, name string, id IDInput, state *SSLPolicyState, opts ...ResourceOption) (*SSLPolicy, error)
public static SSLPolicy Get(string name, Input<string> id, SSLPolicyState? state, CustomResourceOptions? opts = null)
public static SSLPolicy get(String name, Output<String> id, SSLPolicyState 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.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Custom
Features List<string> Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- Description string
An optional description of this resource.
- Enabled
Features List<string> The list of features enabled in the SSL policy.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Min
Tls stringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Profile string
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URI of the created resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Custom
Features []string Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- Description string
An optional description of this resource.
- Enabled
Features []string The list of features enabled in the SSL policy.
- Fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- Min
Tls stringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- Name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Profile string
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Self
Link string The URI of the created resource.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- custom
Features List<String> Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description String
An optional description of this resource.
- enabled
Features List<String> The list of features enabled in the SSL policy.
- fingerprint String
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- min
Tls StringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile String
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String The URI of the created resource.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- custom
Features string[] Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description string
An optional description of this resource.
- enabled
Features string[] The list of features enabled in the SSL policy.
- fingerprint string
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- min
Tls stringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name string
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile string
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link string The URI of the created resource.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- custom_
features Sequence[str] Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description str
An optional description of this resource.
- enabled_
features Sequence[str] The list of features enabled in the SSL policy.
- fingerprint str
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- min_
tls_ strversion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name str
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile str
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self_
link str The URI of the created resource.
- creation
Timestamp String Creation timestamp in RFC3339 text format.
- custom
Features List<String> Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. This can be one of
COMPATIBLE
,MODERN
,RESTRICTED
, orCUSTOM
. If usingCUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for which ciphers are available to use. Note: this argument must be present when using theCUSTOM
profile. This argument must not be present when using any other profile.- description String
An optional description of this resource.
- enabled
Features List<String> The list of features enabled in the SSL policy.
- fingerprint String
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking.
- min
Tls StringVersion The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. Default value is
TLS_1_0
. Possible values are:TLS_1_0
,TLS_1_1
,TLS_1_2
.- name String
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- profile String
Profile specifies the set of SSL features that can be used by the load balancer when negotiating SSL with clients. If using
CUSTOM
, the set of SSL features to enable must be specified in thecustomFeatures
field. See the official documentation for information on what cipher suites each profile provides. IfCUSTOM
is used, thecustom_features
attribute must be set. Default value isCOMPATIBLE
. Possible values are:COMPATIBLE
,MODERN
,RESTRICTED
,CUSTOM
.- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- self
Link String The URI of the created resource.
Import
SslPolicy can be imported using any of these accepted formats* projects/{{project}}/global/sslPolicies/{{name}}
* {{project}}/{{name}}
* {{name}}
In Terraform v1.5.0 and later, use an import
block to import SslPolicy using one of the formats above. For exampletf import {
id = “projects/{{project}}/global/sslPolicies/{{name}}”
to = google_compute_ssl_policy.default }
$ pulumi import gcp:compute/sSLPolicy:SSLPolicy When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), SslPolicy can be imported using one of the formats above. For example
$ pulumi import gcp:compute/sSLPolicy:SSLPolicy default projects/{{project}}/global/sslPolicies/{{name}}
$ pulumi import gcp:compute/sSLPolicy:SSLPolicy default {{project}}/{{name}}
$ pulumi import gcp:compute/sSLPolicy:SSLPolicy default {{name}}
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.