1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. ClusterStartCredentialRotationManagement
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.ContainerEngine.ClusterStartCredentialRotationManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This resource provides the Cluster Start Credential Rotation Management resource in Oracle Cloud Infrastructure Container Engine service.

    Start cluster credential rotation by adding new credentials, old credentials will still work after this operation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testClusterStartCredentialRotationManagement = new oci.containerengine.ClusterStartCredentialRotationManagement("test_cluster_start_credential_rotation_management", {
        autoCompletionDelayDuration: clusterStartCredentialRotationManagementAutoCompletionDelayDuration,
        clusterId: testCluster.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cluster_start_credential_rotation_management = oci.container_engine.ClusterStartCredentialRotationManagement("test_cluster_start_credential_rotation_management",
        auto_completion_delay_duration=cluster_start_credential_rotation_management_auto_completion_delay_duration,
        cluster_id=test_cluster["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ContainerEngine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ContainerEngine.NewClusterStartCredentialRotationManagement(ctx, "test_cluster_start_credential_rotation_management", &ContainerEngine.ClusterStartCredentialRotationManagementArgs{
    			AutoCompletionDelayDuration: pulumi.Any(clusterStartCredentialRotationManagementAutoCompletionDelayDuration),
    			ClusterId:                   pulumi.Any(testCluster.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testClusterStartCredentialRotationManagement = new Oci.ContainerEngine.ClusterStartCredentialRotationManagement("test_cluster_start_credential_rotation_management", new()
        {
            AutoCompletionDelayDuration = clusterStartCredentialRotationManagementAutoCompletionDelayDuration,
            ClusterId = testCluster.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ContainerEngine.ClusterStartCredentialRotationManagement;
    import com.pulumi.oci.ContainerEngine.ClusterStartCredentialRotationManagementArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testClusterStartCredentialRotationManagement = new ClusterStartCredentialRotationManagement("testClusterStartCredentialRotationManagement", ClusterStartCredentialRotationManagementArgs.builder()
                .autoCompletionDelayDuration(clusterStartCredentialRotationManagementAutoCompletionDelayDuration)
                .clusterId(testCluster.id())
                .build());
    
        }
    }
    
    resources:
      testClusterStartCredentialRotationManagement:
        type: oci:ContainerEngine:ClusterStartCredentialRotationManagement
        name: test_cluster_start_credential_rotation_management
        properties:
          autoCompletionDelayDuration: ${clusterStartCredentialRotationManagementAutoCompletionDelayDuration}
          clusterId: ${testCluster.id}
    

    Create ClusterStartCredentialRotationManagement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClusterStartCredentialRotationManagement(name: string, args: ClusterStartCredentialRotationManagementArgs, opts?: CustomResourceOptions);
    @overload
    def ClusterStartCredentialRotationManagement(resource_name: str,
                                                 args: ClusterStartCredentialRotationManagementArgs,
                                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClusterStartCredentialRotationManagement(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 auto_completion_delay_duration: Optional[str] = None,
                                                 cluster_id: Optional[str] = None)
    func NewClusterStartCredentialRotationManagement(ctx *Context, name string, args ClusterStartCredentialRotationManagementArgs, opts ...ResourceOption) (*ClusterStartCredentialRotationManagement, error)
    public ClusterStartCredentialRotationManagement(string name, ClusterStartCredentialRotationManagementArgs args, CustomResourceOptions? opts = null)
    public ClusterStartCredentialRotationManagement(String name, ClusterStartCredentialRotationManagementArgs args)
    public ClusterStartCredentialRotationManagement(String name, ClusterStartCredentialRotationManagementArgs args, CustomResourceOptions options)
    
    type: oci:ContainerEngine:ClusterStartCredentialRotationManagement
    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 ClusterStartCredentialRotationManagementArgs
    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 ClusterStartCredentialRotationManagementArgs
    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 ClusterStartCredentialRotationManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterStartCredentialRotationManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterStartCredentialRotationManagementArgs
    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 clusterStartCredentialRotationManagementResource = new Oci.ContainerEngine.ClusterStartCredentialRotationManagement("clusterStartCredentialRotationManagementResource", new()
    {
        AutoCompletionDelayDuration = "string",
        ClusterId = "string",
    });
    
    example, err := ContainerEngine.NewClusterStartCredentialRotationManagement(ctx, "clusterStartCredentialRotationManagementResource", &ContainerEngine.ClusterStartCredentialRotationManagementArgs{
    	AutoCompletionDelayDuration: pulumi.String("string"),
    	ClusterId:                   pulumi.String("string"),
    })
    
    var clusterStartCredentialRotationManagementResource = new ClusterStartCredentialRotationManagement("clusterStartCredentialRotationManagementResource", ClusterStartCredentialRotationManagementArgs.builder()
        .autoCompletionDelayDuration("string")
        .clusterId("string")
        .build());
    
    cluster_start_credential_rotation_management_resource = oci.container_engine.ClusterStartCredentialRotationManagement("clusterStartCredentialRotationManagementResource",
        auto_completion_delay_duration="string",
        cluster_id="string")
    
    const clusterStartCredentialRotationManagementResource = new oci.containerengine.ClusterStartCredentialRotationManagement("clusterStartCredentialRotationManagementResource", {
        autoCompletionDelayDuration: "string",
        clusterId: "string",
    });
    
    type: oci:ContainerEngine:ClusterStartCredentialRotationManagement
    properties:
        autoCompletionDelayDuration: string
        clusterId: string
    

    ClusterStartCredentialRotationManagement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ClusterStartCredentialRotationManagement resource accepts the following input properties:

    AutoCompletionDelayDuration string
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    ClusterId string

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AutoCompletionDelayDuration string
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    ClusterId string

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    autoCompletionDelayDuration String
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    clusterId String

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    autoCompletionDelayDuration string
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    clusterId string

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    auto_completion_delay_duration str
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    cluster_id str

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    autoCompletionDelayDuration String
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    clusterId String

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClusterStartCredentialRotationManagement resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClusterStartCredentialRotationManagement Resource

    Get an existing ClusterStartCredentialRotationManagement 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?: ClusterStartCredentialRotationManagementState, opts?: CustomResourceOptions): ClusterStartCredentialRotationManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_completion_delay_duration: Optional[str] = None,
            cluster_id: Optional[str] = None) -> ClusterStartCredentialRotationManagement
    func GetClusterStartCredentialRotationManagement(ctx *Context, name string, id IDInput, state *ClusterStartCredentialRotationManagementState, opts ...ResourceOption) (*ClusterStartCredentialRotationManagement, error)
    public static ClusterStartCredentialRotationManagement Get(string name, Input<string> id, ClusterStartCredentialRotationManagementState? state, CustomResourceOptions? opts = null)
    public static ClusterStartCredentialRotationManagement get(String name, Output<String> id, ClusterStartCredentialRotationManagementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutoCompletionDelayDuration string
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    ClusterId string

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AutoCompletionDelayDuration string
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    ClusterId string

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    autoCompletionDelayDuration String
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    clusterId String

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    autoCompletionDelayDuration string
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    clusterId string

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    auto_completion_delay_duration str
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    cluster_id str

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    autoCompletionDelayDuration String
    The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days.
    clusterId String

    The OCID of the cluster.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi