ibm.KmsKeyPolicies
Explore with Pulumi AI
Example Usage
Create KmsKeyPolicies Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KmsKeyPolicies(name: string, args: KmsKeyPoliciesArgs, opts?: CustomResourceOptions);
@overload
def KmsKeyPolicies(resource_name: str,
args: KmsKeyPoliciesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KmsKeyPolicies(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
alias: Optional[str] = None,
dual_auth_deletes: Optional[Sequence[KmsKeyPoliciesDualAuthDeleteArgs]] = None,
endpoint_type: Optional[str] = None,
key_id: Optional[str] = None,
kms_key_policies_id: Optional[str] = None,
rotations: Optional[Sequence[KmsKeyPoliciesRotationArgs]] = None,
timeouts: Optional[KmsKeyPoliciesTimeoutsArgs] = None)
func NewKmsKeyPolicies(ctx *Context, name string, args KmsKeyPoliciesArgs, opts ...ResourceOption) (*KmsKeyPolicies, error)
public KmsKeyPolicies(string name, KmsKeyPoliciesArgs args, CustomResourceOptions? opts = null)
public KmsKeyPolicies(String name, KmsKeyPoliciesArgs args)
public KmsKeyPolicies(String name, KmsKeyPoliciesArgs args, CustomResourceOptions options)
type: ibm:KmsKeyPolicies
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 KmsKeyPoliciesArgs
- 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 KmsKeyPoliciesArgs
- 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 KmsKeyPoliciesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KmsKeyPoliciesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KmsKeyPoliciesArgs
- 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 kmsKeyPoliciesResource = new Ibm.KmsKeyPolicies("kmsKeyPoliciesResource", new()
{
InstanceId = "string",
Alias = "string",
DualAuthDeletes = new[]
{
new Ibm.Inputs.KmsKeyPoliciesDualAuthDeleteArgs
{
Enabled = false,
CreatedBy = "string",
CreationDate = "string",
Crn = "string",
Id = "string",
LastUpdateDate = "string",
UpdatedBy = "string",
},
},
EndpointType = "string",
KeyId = "string",
KmsKeyPoliciesId = "string",
Rotations = new[]
{
new Ibm.Inputs.KmsKeyPoliciesRotationArgs
{
CreatedBy = "string",
CreationDate = "string",
Crn = "string",
Enabled = false,
Id = "string",
IntervalMonth = 0,
LastUpdateDate = "string",
UpdatedBy = "string",
},
},
Timeouts = new Ibm.Inputs.KmsKeyPoliciesTimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := ibm.NewKmsKeyPolicies(ctx, "kmsKeyPoliciesResource", &ibm.KmsKeyPoliciesArgs{
InstanceId: pulumi.String("string"),
Alias: pulumi.String("string"),
DualAuthDeletes: .KmsKeyPoliciesDualAuthDeleteArray{
&.KmsKeyPoliciesDualAuthDeleteArgs{
Enabled: pulumi.Bool(false),
CreatedBy: pulumi.String("string"),
CreationDate: pulumi.String("string"),
Crn: pulumi.String("string"),
Id: pulumi.String("string"),
LastUpdateDate: pulumi.String("string"),
UpdatedBy: pulumi.String("string"),
},
},
EndpointType: pulumi.String("string"),
KeyId: pulumi.String("string"),
KmsKeyPoliciesId: pulumi.String("string"),
Rotations: .KmsKeyPoliciesRotationArray{
&.KmsKeyPoliciesRotationArgs{
CreatedBy: pulumi.String("string"),
CreationDate: pulumi.String("string"),
Crn: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Id: pulumi.String("string"),
IntervalMonth: pulumi.Float64(0),
LastUpdateDate: pulumi.String("string"),
UpdatedBy: pulumi.String("string"),
},
},
Timeouts: &.KmsKeyPoliciesTimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var kmsKeyPoliciesResource = new KmsKeyPolicies("kmsKeyPoliciesResource", KmsKeyPoliciesArgs.builder()
.instanceId("string")
.alias("string")
.dualAuthDeletes(KmsKeyPoliciesDualAuthDeleteArgs.builder()
.enabled(false)
.createdBy("string")
.creationDate("string")
.crn("string")
.id("string")
.lastUpdateDate("string")
.updatedBy("string")
.build())
.endpointType("string")
.keyId("string")
.kmsKeyPoliciesId("string")
.rotations(KmsKeyPoliciesRotationArgs.builder()
.createdBy("string")
.creationDate("string")
.crn("string")
.enabled(false)
.id("string")
.intervalMonth(0)
.lastUpdateDate("string")
.updatedBy("string")
.build())
.timeouts(KmsKeyPoliciesTimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
kms_key_policies_resource = ibm.KmsKeyPolicies("kmsKeyPoliciesResource",
instance_id="string",
alias="string",
dual_auth_deletes=[{
"enabled": False,
"created_by": "string",
"creation_date": "string",
"crn": "string",
"id": "string",
"last_update_date": "string",
"updated_by": "string",
}],
endpoint_type="string",
key_id="string",
kms_key_policies_id="string",
rotations=[{
"created_by": "string",
"creation_date": "string",
"crn": "string",
"enabled": False,
"id": "string",
"interval_month": 0,
"last_update_date": "string",
"updated_by": "string",
}],
timeouts={
"create": "string",
"update": "string",
})
const kmsKeyPoliciesResource = new ibm.KmsKeyPolicies("kmsKeyPoliciesResource", {
instanceId: "string",
alias: "string",
dualAuthDeletes: [{
enabled: false,
createdBy: "string",
creationDate: "string",
crn: "string",
id: "string",
lastUpdateDate: "string",
updatedBy: "string",
}],
endpointType: "string",
keyId: "string",
kmsKeyPoliciesId: "string",
rotations: [{
createdBy: "string",
creationDate: "string",
crn: "string",
enabled: false,
id: "string",
intervalMonth: 0,
lastUpdateDate: "string",
updatedBy: "string",
}],
timeouts: {
create: "string",
update: "string",
},
});
type: ibm:KmsKeyPolicies
properties:
alias: string
dualAuthDeletes:
- createdBy: string
creationDate: string
crn: string
enabled: false
id: string
lastUpdateDate: string
updatedBy: string
endpointType: string
instanceId: string
keyId: string
kmsKeyPoliciesId: string
rotations:
- createdBy: string
creationDate: string
crn: string
enabled: false
id: string
intervalMonth: 0
lastUpdateDate: string
updatedBy: string
timeouts:
create: string
update: string
KmsKeyPolicies 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 KmsKeyPolicies resource accepts the following input properties:
- Instance
Id string - The key-protect instance ID for creating policies.
- Alias string
- The alias created for the key.
- Dual
Auth List<KmsDeletes Key Policies Dual Auth Delete> Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- Endpoint
Type string - The type of the public or private endpoint to be used for fetching policies.
- Key
Id string - The ID of the key.
- Kms
Key stringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Rotations
List<Kms
Key Policies Rotation> The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- Timeouts
Kms
Key Policies Timeouts
- Instance
Id string - The key-protect instance ID for creating policies.
- Alias string
- The alias created for the key.
- Dual
Auth []KmsDeletes Key Policies Dual Auth Delete Args Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- Endpoint
Type string - The type of the public or private endpoint to be used for fetching policies.
- Key
Id string - The ID of the key.
- Kms
Key stringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Rotations
[]Kms
Key Policies Rotation Args The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- Timeouts
Kms
Key Policies Timeouts Args
- instance
Id String - The key-protect instance ID for creating policies.
- alias String
- The alias created for the key.
- dual
Auth List<KmsDeletes Key Policies Dual Auth Delete> Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint
Type String - The type of the public or private endpoint to be used for fetching policies.
- key
Id String - The ID of the key.
- kms
Key StringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- rotations
List<Kms
Key Policies Rotation> The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts
Kms
Key Policies Timeouts
- instance
Id string - The key-protect instance ID for creating policies.
- alias string
- The alias created for the key.
- dual
Auth KmsDeletes Key Policies Dual Auth Delete[] Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint
Type string - The type of the public or private endpoint to be used for fetching policies.
- key
Id string - The ID of the key.
- kms
Key stringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- rotations
Kms
Key Policies Rotation[] The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts
Kms
Key Policies Timeouts
- instance_
id str - The key-protect instance ID for creating policies.
- alias str
- The alias created for the key.
- dual_
auth_ Sequence[Kmsdeletes Key Policies Dual Auth Delete Args] Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint_
type str - The type of the public or private endpoint to be used for fetching policies.
- key_
id str - The ID of the key.
- kms_
key_ strpolicies_ id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- rotations
Sequence[Kms
Key Policies Rotation Args] The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts
Kms
Key Policies Timeouts Args
- instance
Id String - The key-protect instance ID for creating policies.
- alias String
- The alias created for the key.
- dual
Auth List<Property Map>Deletes Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint
Type String - The type of the public or private endpoint to be used for fetching policies.
- key
Id String - The ID of the key.
- kms
Key StringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- rotations List<Property Map>
The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the KmsKeyPolicies resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- Resource
Crn string - The crn of the resource
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- Resource
Crn string - The crn of the resource
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource
Crn String - The crn of the resource
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource
Crn string - The crn of the resource
- resource
Name string - The name of the resource
- resource
Status string - The status of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource_
crn str - The crn of the resource
- resource_
name str - The name of the resource
- resource_
status str - The status of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource
Crn String - The crn of the resource
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
Look up Existing KmsKeyPolicies Resource
Get an existing KmsKeyPolicies 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?: KmsKeyPoliciesState, opts?: CustomResourceOptions): KmsKeyPolicies
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alias: Optional[str] = None,
dual_auth_deletes: Optional[Sequence[KmsKeyPoliciesDualAuthDeleteArgs]] = None,
endpoint_type: Optional[str] = None,
instance_id: Optional[str] = None,
key_id: Optional[str] = None,
kms_key_policies_id: Optional[str] = None,
resource_controller_url: Optional[str] = None,
resource_crn: Optional[str] = None,
resource_name: Optional[str] = None,
resource_status: Optional[str] = None,
rotations: Optional[Sequence[KmsKeyPoliciesRotationArgs]] = None,
timeouts: Optional[KmsKeyPoliciesTimeoutsArgs] = None) -> KmsKeyPolicies
func GetKmsKeyPolicies(ctx *Context, name string, id IDInput, state *KmsKeyPoliciesState, opts ...ResourceOption) (*KmsKeyPolicies, error)
public static KmsKeyPolicies Get(string name, Input<string> id, KmsKeyPoliciesState? state, CustomResourceOptions? opts = null)
public static KmsKeyPolicies get(String name, Output<String> id, KmsKeyPoliciesState state, CustomResourceOptions options)
resources: _: type: ibm:KmsKeyPolicies 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.
- Alias string
- The alias created for the key.
- Dual
Auth List<KmsDeletes Key Policies Dual Auth Delete> Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- Endpoint
Type string - The type of the public or private endpoint to be used for fetching policies.
- Instance
Id string - The key-protect instance ID for creating policies.
- Key
Id string - The ID of the key.
- Kms
Key stringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- Resource
Crn string - The crn of the resource
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Rotations
List<Kms
Key Policies Rotation> The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- Timeouts
Kms
Key Policies Timeouts
- Alias string
- The alias created for the key.
- Dual
Auth []KmsDeletes Key Policies Dual Auth Delete Args Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- Endpoint
Type string - The type of the public or private endpoint to be used for fetching policies.
- Instance
Id string - The key-protect instance ID for creating policies.
- Key
Id string - The ID of the key.
- Kms
Key stringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- Resource
Crn string - The crn of the resource
- Resource
Name string - The name of the resource
- Resource
Status string - The status of the resource
- Rotations
[]Kms
Key Policies Rotation Args The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- Timeouts
Kms
Key Policies Timeouts Args
- alias String
- The alias created for the key.
- dual
Auth List<KmsDeletes Key Policies Dual Auth Delete> Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint
Type String - The type of the public or private endpoint to be used for fetching policies.
- instance
Id String - The key-protect instance ID for creating policies.
- key
Id String - The ID of the key.
- kms
Key StringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource
Crn String - The crn of the resource
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- rotations
List<Kms
Key Policies Rotation> The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts
Kms
Key Policies Timeouts
- alias string
- The alias created for the key.
- dual
Auth KmsDeletes Key Policies Dual Auth Delete[] Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint
Type string - The type of the public or private endpoint to be used for fetching policies.
- instance
Id string - The key-protect instance ID for creating policies.
- key
Id string - The ID of the key.
- kms
Key stringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- resource
Controller stringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource
Crn string - The crn of the resource
- resource
Name string - The name of the resource
- resource
Status string - The status of the resource
- rotations
Kms
Key Policies Rotation[] The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts
Kms
Key Policies Timeouts
- alias str
- The alias created for the key.
- dual_
auth_ Sequence[Kmsdeletes Key Policies Dual Auth Delete Args] Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint_
type str - The type of the public or private endpoint to be used for fetching policies.
- instance_
id str - The key-protect instance ID for creating policies.
- key_
id str - The ID of the key.
- kms_
key_ strpolicies_ id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- resource_
controller_ strurl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource_
crn str - The crn of the resource
- resource_
name str - The name of the resource
- resource_
status str - The status of the resource
- rotations
Sequence[Kms
Key Policies Rotation Args] The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts
Kms
Key Policies Timeouts Args
- alias String
- The alias created for the key.
- dual
Auth List<Property Map>Deletes Data associated with the dual authorization delete policy. Atleast one of
rotation
anddual_auth_delete
is required.Nested scheme for
dual_auth_delete
:- endpoint
Type String - The type of the public or private endpoint to be used for fetching policies.
- instance
Id String - The key-protect instance ID for creating policies.
- key
Id String - The ID of the key.
- kms
Key StringPolicies Id - (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- resource
Controller StringUrl - The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
- resource
Crn String - The crn of the resource
- resource
Name String - The name of the resource
- resource
Status String - The status of the resource
- rotations List<Property Map>
The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of
rotation
anddual_auth_delete
is requiredNested scheme for
rotation
:- timeouts Property Map
Supporting Types
KmsKeyPoliciesDualAuthDelete, KmsKeyPoliciesDualAuthDeleteArgs
- Enabled bool
- If set to true, Key Protect enables a dual authorization policy on a single key.
- Created
By string - (String) The unique ID for the resource that created the policy.
- Creation
Date string - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- Crn string
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- Id string
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Last
Update stringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- Updated
By string - (String) The unique ID for the resource that updated the policy.
- Enabled bool
- If set to true, Key Protect enables a dual authorization policy on a single key.
- Created
By string - (String) The unique ID for the resource that created the policy.
- Creation
Date string - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- Crn string
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- Id string
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Last
Update stringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- Updated
By string - (String) The unique ID for the resource that updated the policy.
- enabled Boolean
- If set to true, Key Protect enables a dual authorization policy on a single key.
- created
By String - (String) The unique ID for the resource that created the policy.
- creation
Date String - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn String
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- id String
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- last
Update StringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated
By String - (String) The unique ID for the resource that updated the policy.
- enabled boolean
- If set to true, Key Protect enables a dual authorization policy on a single key.
- created
By string - (String) The unique ID for the resource that created the policy.
- creation
Date string - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn string
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- id string
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- last
Update stringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated
By string - (String) The unique ID for the resource that updated the policy.
- enabled bool
- If set to true, Key Protect enables a dual authorization policy on a single key.
- created_
by str - (String) The unique ID for the resource that created the policy.
- creation_
date str - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn str
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- id str
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- last_
update_ strdate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated_
by str - (String) The unique ID for the resource that updated the policy.
- enabled Boolean
- If set to true, Key Protect enables a dual authorization policy on a single key.
- created
By String - (String) The unique ID for the resource that created the policy.
- creation
Date String - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn String
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- id String
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- last
Update StringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated
By String - (String) The unique ID for the resource that updated the policy.
KmsKeyPoliciesRotation, KmsKeyPoliciesRotationArgs
- Created
By string - (String) The unique ID for the resource that created the policy.
- Creation
Date string - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- Crn string
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- Enabled bool
- If set to true, Key Protect enables a rotation policy on a single key.
- Id string
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Interval
Month double - Specifies the key rotation time interval in months
- Last
Update stringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- Updated
By string - (String) The unique ID for the resource that updated the policy.
- Created
By string - (String) The unique ID for the resource that created the policy.
- Creation
Date string - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- Crn string
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- Enabled bool
- If set to true, Key Protect enables a rotation policy on a single key.
- Id string
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- Interval
Month float64 - Specifies the key rotation time interval in months
- Last
Update stringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- Updated
By string - (String) The unique ID for the resource that updated the policy.
- created
By String - (String) The unique ID for the resource that created the policy.
- creation
Date String - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn String
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- enabled Boolean
- If set to true, Key Protect enables a rotation policy on a single key.
- id String
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- interval
Month Double - Specifies the key rotation time interval in months
- last
Update StringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated
By String - (String) The unique ID for the resource that updated the policy.
- created
By string - (String) The unique ID for the resource that created the policy.
- creation
Date string - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn string
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- enabled boolean
- If set to true, Key Protect enables a rotation policy on a single key.
- id string
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- interval
Month number - Specifies the key rotation time interval in months
- last
Update stringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated
By string - (String) The unique ID for the resource that updated the policy.
- created_
by str - (String) The unique ID for the resource that created the policy.
- creation_
date str - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn str
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- enabled bool
- If set to true, Key Protect enables a rotation policy on a single key.
- id str
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- interval_
month float - Specifies the key rotation time interval in months
- last_
update_ strdate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated_
by str - (String) The unique ID for the resource that updated the policy.
- created
By String - (String) The unique ID for the resource that created the policy.
- creation
Date String - (Timestamp) The date the policy was created. The date format follows RFC 3339.
- crn String
- (String) The Cloud Resource Name (CRN) that uniquely identifies your cloud resources.
- enabled Boolean
- If set to true, Key Protect enables a rotation policy on a single key.
- id String
- (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
- interval
Month Number - Specifies the key rotation time interval in months
- last
Update StringDate - (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
- updated
By String - (String) The unique ID for the resource that updated the policy.
KmsKeyPoliciesTimeouts, KmsKeyPoliciesTimeoutsArgs
Import
ibm_kms_key_policies can be imported using id and crn, eg ibm_kms_key_policies.crn
$ pulumi import ibm:index/kmsKeyPolicies:KmsKeyPolicies crn crn:v1:bluemix:public:kms:us-south:a/faf6addbf6bf4768hhhhe342a5bdd702:05f5bf91-ec66-462f-80eb-8yyui138a315:key:52448f62-9272-4d29-a515-15019e3e5asd
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.