1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. ClusterStartCredentialRotationManagement
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.ContainerEngine.ClusterStartCredentialRotationManagement

Explore with Pulumi AI

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,
});
Copy
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"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
resources:
  testClusterStartCredentialRotationManagement:
    type: oci:ContainerEngine:ClusterStartCredentialRotationManagement
    name: test_cluster_start_credential_rotation_management
    properties:
      autoCompletionDelayDuration: ${clusterStartCredentialRotationManagementAutoCompletionDelayDuration}
      clusterId: ${testCluster.id}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ClusterStartCredentialRotationManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ClusterStartCredentialRotationManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ClusterStartCredentialRotationManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := ContainerEngine.NewClusterStartCredentialRotationManagement(ctx, "clusterStartCredentialRotationManagementResource", &ContainerEngine.ClusterStartCredentialRotationManagementArgs{
	AutoCompletionDelayDuration: pulumi.String("string"),
	ClusterId:                   pulumi.String("string"),
})
Copy
var clusterStartCredentialRotationManagementResource = new ClusterStartCredentialRotationManagement("clusterStartCredentialRotationManagementResource", ClusterStartCredentialRotationManagementArgs.builder()
    .autoCompletionDelayDuration("string")
    .clusterId("string")
    .build());
Copy
cluster_start_credential_rotation_management_resource = oci.container_engine.ClusterStartCredentialRotationManagement("clusterStartCredentialRotationManagementResource",
    auto_completion_delay_duration="string",
    cluster_id="string")
Copy
const clusterStartCredentialRotationManagementResource = new oci.containerengine.ClusterStartCredentialRotationManagement("clusterStartCredentialRotationManagementResource", {
    autoCompletionDelayDuration: "string",
    clusterId: "string",
});
Copy
type: oci:ContainerEngine:ClusterStartCredentialRotationManagement
properties:
    autoCompletionDelayDuration: string
    clusterId: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ClusterStartCredentialRotationManagement resource accepts the following input properties:

AutoCompletionDelayDuration
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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)
resources:  _:    type: oci:ContainerEngine:ClusterStartCredentialRotationManagement    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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.