Manages a Certificate Authority (CA).
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Create Ca Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ca(name: string, args: CaArgs, opts?: CustomResourceOptions);@overload
def Ca(resource_name: str,
args: CaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ca(resource_name: str,
opts: Optional[ResourceOptions] = None,
ca_pem: Optional[str] = None,
description: Optional[str] = None,
timeouts: Optional[CaTimeoutsArgs] = None)func NewCa(ctx *Context, name string, args CaArgs, opts ...ResourceOption) (*Ca, error)public Ca(string name, CaArgs args, CustomResourceOptions? opts = null)type: outscale:Ca
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 CaArgs
- 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 CaArgs
- 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 CaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CaArgs
- 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 caResource = new Outscale.Ca("caResource", new()
{
CaPem = "string",
Description = "string",
Timeouts = new Outscale.Inputs.CaTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := outscale.NewCa(ctx, "caResource", &outscale.CaArgs{
CaPem: pulumi.String("string"),
Description: pulumi.String("string"),
Timeouts: &outscale.CaTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var caResource = new Ca("caResource", CaArgs.builder()
.caPem("string")
.description("string")
.timeouts(CaTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
ca_resource = outscale.Ca("caResource",
ca_pem="string",
description="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const caResource = new outscale.Ca("caResource", {
caPem: "string",
description: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: outscale:Ca
properties:
caPem: string
description: string
timeouts:
create: string
delete: string
read: string
update: string
Ca 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 Ca resource accepts the following input properties:
- Ca
Pem string - The CA in PEM format.
- Description string
- The description of the CA.
- Timeouts
Ca
Timeouts
- Ca
Pem string - The CA in PEM format.
- Description string
- The description of the CA.
- Timeouts
Ca
Timeouts Args
- ca
Pem String - The CA in PEM format.
- description String
- The description of the CA.
- timeouts
Ca
Timeouts
- ca
Pem string - The CA in PEM format.
- description string
- The description of the CA.
- timeouts
Ca
Timeouts
- ca_
pem str - The CA in PEM format.
- description str
- The description of the CA.
- timeouts
Ca
Timeouts Args
- ca
Pem String - The CA in PEM format.
- description String
- The description of the CA.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the Ca resource produces the following output properties:
- Ca
Fingerprint string - The fingerprint of the CA.
- Ca
Id string - The ID of the CA.
- Id string
- The provider-assigned unique ID for this managed resource.
- Request
Id string
- Ca
Fingerprint string - The fingerprint of the CA.
- Ca
Id string - The ID of the CA.
- Id string
- The provider-assigned unique ID for this managed resource.
- Request
Id string
- ca
Fingerprint String - The fingerprint of the CA.
- ca
Id String - The ID of the CA.
- id String
- The provider-assigned unique ID for this managed resource.
- request
Id String
- ca
Fingerprint string - The fingerprint of the CA.
- ca
Id string - The ID of the CA.
- id string
- The provider-assigned unique ID for this managed resource.
- request
Id string
- ca_
fingerprint str - The fingerprint of the CA.
- ca_
id str - The ID of the CA.
- id str
- The provider-assigned unique ID for this managed resource.
- request_
id str
- ca
Fingerprint String - The fingerprint of the CA.
- ca
Id String - The ID of the CA.
- id String
- The provider-assigned unique ID for this managed resource.
- request
Id String
Look up Existing Ca Resource
Get an existing Ca 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?: CaState, opts?: CustomResourceOptions): Ca@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ca_fingerprint: Optional[str] = None,
ca_id: Optional[str] = None,
ca_pem: Optional[str] = None,
description: Optional[str] = None,
request_id: Optional[str] = None,
timeouts: Optional[CaTimeoutsArgs] = None) -> Cafunc GetCa(ctx *Context, name string, id IDInput, state *CaState, opts ...ResourceOption) (*Ca, error)public static Ca Get(string name, Input<string> id, CaState? state, CustomResourceOptions? opts = null)public static Ca get(String name, Output<String> id, CaState state, CustomResourceOptions options)resources: _: type: outscale:Ca get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ca
Fingerprint string - The fingerprint of the CA.
- Ca
Id string - The ID of the CA.
- Ca
Pem string - The CA in PEM format.
- Description string
- The description of the CA.
- Request
Id string - Timeouts
Ca
Timeouts
- Ca
Fingerprint string - The fingerprint of the CA.
- Ca
Id string - The ID of the CA.
- Ca
Pem string - The CA in PEM format.
- Description string
- The description of the CA.
- Request
Id string - Timeouts
Ca
Timeouts Args
- ca
Fingerprint String - The fingerprint of the CA.
- ca
Id String - The ID of the CA.
- ca
Pem String - The CA in PEM format.
- description String
- The description of the CA.
- request
Id String - timeouts
Ca
Timeouts
- ca
Fingerprint string - The fingerprint of the CA.
- ca
Id string - The ID of the CA.
- ca
Pem string - The CA in PEM format.
- description string
- The description of the CA.
- request
Id string - timeouts
Ca
Timeouts
- ca_
fingerprint str - The fingerprint of the CA.
- ca_
id str - The ID of the CA.
- ca_
pem str - The CA in PEM format.
- description str
- The description of the CA.
- request_
id str - timeouts
Ca
Timeouts Args
- ca
Fingerprint String - The fingerprint of the CA.
- ca
Id String - The ID of the CA.
- ca
Pem String - The CA in PEM format.
- description String
- The description of the CA.
- request
Id String - timeouts Property Map
Supporting Types
CaTimeouts, CaTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
A CA can be imported using its ID. For example:
console
$ pulumi import outscale:index/ca:Ca ImportedCa ca-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscaleTerraform Provider.
