1. Packages
  2. Ibm Provider
  3. API Docs
  4. KmsKeyPolicies
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.KmsKeyPolicies

Explore with Pulumi AI

ibm logo
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

    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:

    InstanceId string
    The key-protect instance ID for creating policies.
    Alias string
    The alias created for the key.
    DualAuthDeletes List<KmsKeyPoliciesDualAuthDelete>

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    EndpointType string
    The type of the public or private endpoint to be used for fetching policies.
    KeyId string
    The ID of the key.
    KmsKeyPoliciesId string
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    Rotations List<KmsKeyPoliciesRotation>

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    Timeouts KmsKeyPoliciesTimeouts
    InstanceId string
    The key-protect instance ID for creating policies.
    Alias string
    The alias created for the key.
    DualAuthDeletes []KmsKeyPoliciesDualAuthDeleteArgs

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    EndpointType string
    The type of the public or private endpoint to be used for fetching policies.
    KeyId string
    The ID of the key.
    KmsKeyPoliciesId string
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    Rotations []KmsKeyPoliciesRotationArgs

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    Timeouts KmsKeyPoliciesTimeoutsArgs
    instanceId String
    The key-protect instance ID for creating policies.
    alias String
    The alias created for the key.
    dualAuthDeletes List<KmsKeyPoliciesDualAuthDelete>

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    endpointType String
    The type of the public or private endpoint to be used for fetching policies.
    keyId String
    The ID of the key.
    kmsKeyPoliciesId String
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    rotations List<KmsKeyPoliciesRotation>

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    timeouts KmsKeyPoliciesTimeouts
    instanceId string
    The key-protect instance ID for creating policies.
    alias string
    The alias created for the key.
    dualAuthDeletes KmsKeyPoliciesDualAuthDelete[]

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    endpointType string
    The type of the public or private endpoint to be used for fetching policies.
    keyId string
    The ID of the key.
    kmsKeyPoliciesId string
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    rotations KmsKeyPoliciesRotation[]

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    timeouts KmsKeyPoliciesTimeouts
    instance_id str
    The key-protect instance ID for creating policies.
    alias str
    The alias created for the key.
    dual_auth_deletes Sequence[KmsKeyPoliciesDualAuthDeleteArgs]

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_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_policies_id str
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    rotations Sequence[KmsKeyPoliciesRotationArgs]

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    timeouts KmsKeyPoliciesTimeoutsArgs
    instanceId String
    The key-protect instance ID for creating policies.
    alias String
    The alias created for the key.
    dualAuthDeletes List<Property Map>

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    endpointType String
    The type of the public or private endpoint to be used for fetching policies.
    keyId String
    The ID of the key.
    kmsKeyPoliciesId String
    (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 and dual_auth_delete is required

    Nested 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.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    ResourceCrn string
    The crn of the resource
    ResourceName string
    The name of the resource
    ResourceStatus string
    The status of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    ResourceCrn string
    The crn of the resource
    ResourceName string
    The name of the resource
    ResourceStatus string
    The status of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    resourceCrn String
    The crn of the resource
    resourceName String
    The name of the resource
    resourceStatus String
    The status of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    resourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    resourceCrn string
    The crn of the resource
    resourceName string
    The name of the resource
    resourceStatus string
    The status of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    resource_controller_url str
    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.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    resourceCrn String
    The crn of the resource
    resourceName String
    The name of the resource
    resourceStatus 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.
    The following state arguments are supported:
    Alias string
    The alias created for the key.
    DualAuthDeletes List<KmsKeyPoliciesDualAuthDelete>

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    EndpointType string
    The type of the public or private endpoint to be used for fetching policies.
    InstanceId string
    The key-protect instance ID for creating policies.
    KeyId string
    The ID of the key.
    KmsKeyPoliciesId string
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    ResourceCrn string
    The crn of the resource
    ResourceName string
    The name of the resource
    ResourceStatus string
    The status of the resource
    Rotations List<KmsKeyPoliciesRotation>

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    Timeouts KmsKeyPoliciesTimeouts
    Alias string
    The alias created for the key.
    DualAuthDeletes []KmsKeyPoliciesDualAuthDeleteArgs

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    EndpointType string
    The type of the public or private endpoint to be used for fetching policies.
    InstanceId string
    The key-protect instance ID for creating policies.
    KeyId string
    The ID of the key.
    KmsKeyPoliciesId string
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    ResourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    ResourceCrn string
    The crn of the resource
    ResourceName string
    The name of the resource
    ResourceStatus string
    The status of the resource
    Rotations []KmsKeyPoliciesRotationArgs

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    Timeouts KmsKeyPoliciesTimeoutsArgs
    alias String
    The alias created for the key.
    dualAuthDeletes List<KmsKeyPoliciesDualAuthDelete>

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    endpointType String
    The type of the public or private endpoint to be used for fetching policies.
    instanceId String
    The key-protect instance ID for creating policies.
    keyId String
    The ID of the key.
    kmsKeyPoliciesId String
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    resourceCrn String
    The crn of the resource
    resourceName String
    The name of the resource
    resourceStatus String
    The status of the resource
    rotations List<KmsKeyPoliciesRotation>

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    timeouts KmsKeyPoliciesTimeouts
    alias string
    The alias created for the key.
    dualAuthDeletes KmsKeyPoliciesDualAuthDelete[]

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    endpointType string
    The type of the public or private endpoint to be used for fetching policies.
    instanceId string
    The key-protect instance ID for creating policies.
    keyId string
    The ID of the key.
    kmsKeyPoliciesId string
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    resourceControllerUrl string
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    resourceCrn string
    The crn of the resource
    resourceName string
    The name of the resource
    resourceStatus string
    The status of the resource
    rotations KmsKeyPoliciesRotation[]

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    timeouts KmsKeyPoliciesTimeouts
    alias str
    The alias created for the key.
    dual_auth_deletes Sequence[KmsKeyPoliciesDualAuthDeleteArgs]

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_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_policies_id str
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    resource_controller_url str
    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[KmsKeyPoliciesRotationArgs]

    The key rotation time interval in months, with a minimum of 1, and a maximum of 12. Atleast one of rotation and dual_auth_delete is required

    Nested scheme for rotation:

    timeouts KmsKeyPoliciesTimeoutsArgs
    alias String
    The alias created for the key.
    dualAuthDeletes List<Property Map>

    Data associated with the dual authorization delete policy. Atleast one of rotation and dual_auth_delete is required.

    Nested scheme for dual_auth_delete:

    endpointType String
    The type of the public or private endpoint to be used for fetching policies.
    instanceId String
    The key-protect instance ID for creating policies.
    keyId String
    The ID of the key.
    kmsKeyPoliciesId String
    (String) The v4 UUID used to uniquely identify the policy resource, as specified by RFC 4122.
    resourceControllerUrl String
    The URL of the IBM Cloud dashboard that can be used to explore and view details about the resource
    resourceCrn String
    The crn of the resource
    resourceName String
    The name of the resource
    resourceStatus 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 and dual_auth_delete is required

    Nested 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.
    CreatedBy string
    (String) The unique ID for the resource that created the policy.
    CreationDate 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.
    LastUpdateDate string
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    UpdatedBy 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.
    CreatedBy string
    (String) The unique ID for the resource that created the policy.
    CreationDate 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.
    LastUpdateDate string
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    UpdatedBy 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.
    createdBy String
    (String) The unique ID for the resource that created the policy.
    creationDate 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.
    lastUpdateDate String
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    updatedBy 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.
    createdBy string
    (String) The unique ID for the resource that created the policy.
    creationDate 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.
    lastUpdateDate string
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    updatedBy 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_date str
    (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.
    createdBy String
    (String) The unique ID for the resource that created the policy.
    creationDate 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.
    lastUpdateDate String
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    updatedBy String
    (String) The unique ID for the resource that updated the policy.

    KmsKeyPoliciesRotation, KmsKeyPoliciesRotationArgs

    CreatedBy string
    (String) The unique ID for the resource that created the policy.
    CreationDate 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.
    IntervalMonth double
    Specifies the key rotation time interval in months
    LastUpdateDate string
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    UpdatedBy string
    (String) The unique ID for the resource that updated the policy.
    CreatedBy string
    (String) The unique ID for the resource that created the policy.
    CreationDate 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.
    IntervalMonth float64
    Specifies the key rotation time interval in months
    LastUpdateDate string
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    UpdatedBy string
    (String) The unique ID for the resource that updated the policy.
    createdBy String
    (String) The unique ID for the resource that created the policy.
    creationDate 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.
    intervalMonth Double
    Specifies the key rotation time interval in months
    lastUpdateDate String
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    updatedBy String
    (String) The unique ID for the resource that updated the policy.
    createdBy string
    (String) The unique ID for the resource that created the policy.
    creationDate 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.
    intervalMonth number
    Specifies the key rotation time interval in months
    lastUpdateDate string
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    updatedBy 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_date str
    (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.
    createdBy String
    (String) The unique ID for the resource that created the policy.
    creationDate 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.
    intervalMonth Number
    Specifies the key rotation time interval in months
    lastUpdateDate String
    (Timestamp) The date when the policy last replaced or modified. The date format follows RFC 3339.
    updatedBy String
    (String) The unique ID for the resource that updated the policy.

    KmsKeyPoliciesTimeouts, KmsKeyPoliciesTimeoutsArgs

    Create string
    Update string
    Create string
    Update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    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.
    ibm logo
    ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud