RegionSslCertificate
A RegionSslCertificate resource, used for HTTPS load balancing. This resource provides a mechanism to upload an SSL key and certificate to the load balancer to serve secure connections from the user.
To get more information about RegionSslCertificate, see:
- API documentation
- How-to Guides
Warning: All arguments including
certificateandprivate_keywill be stored in the raw state as plain-text. Read more about secrets in state.
Create a RegionSslCertificate Resource
new RegionSslCertificate(name: string, args: RegionSslCertificateArgs, opts?: CustomResourceOptions);def RegionSslCertificate(resource_name, opts=None, certificate=None, description=None, name=None, name_prefix=None, private_key=None, project=None, region=None, __props__=None);func NewRegionSslCertificate(ctx *Context, name string, args RegionSslCertificateArgs, opts ...ResourceOption) (*RegionSslCertificate, error)public RegionSslCertificate(string name, RegionSslCertificateArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RegionSslCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RegionSslCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegionSslCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RegionSslCertificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RegionSslCertificate resource accepts the following input properties:
- Certificate string
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- Private
Key string The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- Description string
An optional description of this resource.
- 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.- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
- Certificate string
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- Private
Key string The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- Description string
An optional description of this resource.
- 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.- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
- certificate string
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- private
Key string The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- description string
An optional description of this resource.
- 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.- name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
- certificate str
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- private_
key str The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- description str
An optional description of this resource.
- 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.- name_
prefix str Creates a unique name beginning with the specified prefix. Conflicts with
name.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the RegionSslCertificate resource produces the following output properties:
- Certificate
Id int The unique identifier for the resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string The URI of the created resource.
- Certificate
Id int The unique identifier for the resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Self
Link string The URI of the created resource.
- certificate
Id number The unique identifier for the resource.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- id string
- The provider-assigned unique ID for this managed resource.
- self
Link string The URI of the created resource.
- certificate_
id float The unique identifier for the resource.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- id str
- The provider-assigned unique ID for this managed resource.
- self_
link str The URI of the created resource.
Look up an Existing RegionSslCertificate Resource
Get an existing RegionSslCertificate 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?: RegionSslCertificateState, opts?: CustomResourceOptions): RegionSslCertificatestatic get(resource_name, id, opts=None, certificate=None, certificate_id=None, creation_timestamp=None, description=None, name=None, name_prefix=None, private_key=None, project=None, region=None, self_link=None, __props__=None);func GetRegionSslCertificate(ctx *Context, name string, id IDInput, state *RegionSslCertificateState, opts ...ResourceOption) (*RegionSslCertificate, error)public static RegionSslCertificate Get(string name, Input<string> id, RegionSslCertificateState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Certificate string
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- Certificate
Id int The unique identifier for the resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional description of this resource.
- 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.- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name.- Private
Key string The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
- Self
Link string The URI of the created resource.
- Certificate string
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- Certificate
Id int The unique identifier for the resource.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
An optional description of this resource.
- 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.- Name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name.- Private
Key string The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
- Self
Link string The URI of the created resource.
- certificate string
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- certificate
Id number The unique identifier for the resource.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- description string
An optional description of this resource.
- 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.- name
Prefix string Creates a unique name beginning with the specified prefix. Conflicts with
name.- private
Key string The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
- self
Link string The URI of the created resource.
- certificate str
The certificate in PEM format. The certificate chain must be no greater than 5 certs long. The chain must include at least one intermediate cert. Note: This property is sensitive and will not be displayed in the plan.
- certificate_
id float The unique identifier for the resource.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- description str
An optional description of this resource.
- 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.- name_
prefix str Creates a unique name beginning with the specified prefix. Conflicts with
name.- private_
key str The write-only private key in PEM format. Note: This property is sensitive and will not be displayed in the plan.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
The Region in which the created regional ssl certificate should reside. If it is not provided, the provider region is used.
- self_
link str The URI of the created resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.