1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. ClusterCompleteCredentialRotationManagement
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.ContainerEngine.ClusterCompleteCredentialRotationManagement

Explore with Pulumi AI

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

Complete cluster credential rotation. Retire old credentials from kubernetes components.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testClusterCompleteCredentialRotationManagement = new oci.containerengine.ClusterCompleteCredentialRotationManagement("test_cluster_complete_credential_rotation_management", {clusterId: testCluster.id}, {
    dependsOn: [testClusterStartCredentialRotationManagement],
});
Copy
import pulumi
import pulumi_oci as oci

test_cluster_complete_credential_rotation_management = oci.container_engine.ClusterCompleteCredentialRotationManagement("test_cluster_complete_credential_rotation_management", cluster_id=test_cluster["id"],
opts = pulumi.ResourceOptions(depends_on=[test_cluster_start_credential_rotation_management]))
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.NewClusterCompleteCredentialRotationManagement(ctx, "test_cluster_complete_credential_rotation_management", &containerengine.ClusterCompleteCredentialRotationManagementArgs{
			ClusterId: pulumi.Any(testCluster.Id),
		}, pulumi.DependsOn([]pulumi.Resource{
			testClusterStartCredentialRotationManagement,
		}))
		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 testClusterCompleteCredentialRotationManagement = new Oci.ContainerEngine.ClusterCompleteCredentialRotationManagement("test_cluster_complete_credential_rotation_management", new()
    {
        ClusterId = testCluster.Id,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            testClusterStartCredentialRotationManagement,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ContainerEngine.ClusterCompleteCredentialRotationManagement;
import com.pulumi.oci.ContainerEngine.ClusterCompleteCredentialRotationManagementArgs;
import com.pulumi.resources.CustomResourceOptions;
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 testClusterCompleteCredentialRotationManagement = new ClusterCompleteCredentialRotationManagement("testClusterCompleteCredentialRotationManagement", ClusterCompleteCredentialRotationManagementArgs.builder()
            .clusterId(testCluster.id())
            .build(), CustomResourceOptions.builder()
                .dependsOn(testClusterStartCredentialRotationManagement)
                .build());

    }
}
Copy
resources:
  testClusterCompleteCredentialRotationManagement:
    type: oci:ContainerEngine:ClusterCompleteCredentialRotationManagement
    name: test_cluster_complete_credential_rotation_management
    properties:
      clusterId: ${testCluster.id}
    options:
      dependsOn:
        - ${testClusterStartCredentialRotationManagement}
Copy

Create ClusterCompleteCredentialRotationManagement Resource

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

Constructor syntax

new ClusterCompleteCredentialRotationManagement(name: string, args: ClusterCompleteCredentialRotationManagementArgs, opts?: CustomResourceOptions);
@overload
def ClusterCompleteCredentialRotationManagement(resource_name: str,
                                                args: ClusterCompleteCredentialRotationManagementArgs,
                                                opts: Optional[ResourceOptions] = None)

@overload
def ClusterCompleteCredentialRotationManagement(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                cluster_id: Optional[str] = None)
func NewClusterCompleteCredentialRotationManagement(ctx *Context, name string, args ClusterCompleteCredentialRotationManagementArgs, opts ...ResourceOption) (*ClusterCompleteCredentialRotationManagement, error)
public ClusterCompleteCredentialRotationManagement(string name, ClusterCompleteCredentialRotationManagementArgs args, CustomResourceOptions? opts = null)
public ClusterCompleteCredentialRotationManagement(String name, ClusterCompleteCredentialRotationManagementArgs args)
public ClusterCompleteCredentialRotationManagement(String name, ClusterCompleteCredentialRotationManagementArgs args, CustomResourceOptions options)
type: oci:ContainerEngine:ClusterCompleteCredentialRotationManagement
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. ClusterCompleteCredentialRotationManagementArgs
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. ClusterCompleteCredentialRotationManagementArgs
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. ClusterCompleteCredentialRotationManagementArgs
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. ClusterCompleteCredentialRotationManagementArgs
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. ClusterCompleteCredentialRotationManagementArgs
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 clusterCompleteCredentialRotationManagementResource = new Oci.ContainerEngine.ClusterCompleteCredentialRotationManagement("clusterCompleteCredentialRotationManagementResource", new()
{
    ClusterId = "string",
});
Copy
example, err := ContainerEngine.NewClusterCompleteCredentialRotationManagement(ctx, "clusterCompleteCredentialRotationManagementResource", &ContainerEngine.ClusterCompleteCredentialRotationManagementArgs{
	ClusterId: pulumi.String("string"),
})
Copy
var clusterCompleteCredentialRotationManagementResource = new ClusterCompleteCredentialRotationManagement("clusterCompleteCredentialRotationManagementResource", ClusterCompleteCredentialRotationManagementArgs.builder()
    .clusterId("string")
    .build());
Copy
cluster_complete_credential_rotation_management_resource = oci.container_engine.ClusterCompleteCredentialRotationManagement("clusterCompleteCredentialRotationManagementResource", cluster_id="string")
Copy
const clusterCompleteCredentialRotationManagementResource = new oci.containerengine.ClusterCompleteCredentialRotationManagement("clusterCompleteCredentialRotationManagementResource", {clusterId: "string"});
Copy
type: oci:ContainerEngine:ClusterCompleteCredentialRotationManagement
properties:
    clusterId: string
Copy

ClusterCompleteCredentialRotationManagement 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 ClusterCompleteCredentialRotationManagement resource accepts the following input properties:

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

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

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

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

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

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 ClusterCompleteCredentialRotationManagement 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 ClusterCompleteCredentialRotationManagement Resource

Get an existing ClusterCompleteCredentialRotationManagement 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?: ClusterCompleteCredentialRotationManagementState, opts?: CustomResourceOptions): ClusterCompleteCredentialRotationManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None) -> ClusterCompleteCredentialRotationManagement
func GetClusterCompleteCredentialRotationManagement(ctx *Context, name string, id IDInput, state *ClusterCompleteCredentialRotationManagementState, opts ...ResourceOption) (*ClusterCompleteCredentialRotationManagement, error)
public static ClusterCompleteCredentialRotationManagement Get(string name, Input<string> id, ClusterCompleteCredentialRotationManagementState? state, CustomResourceOptions? opts = null)
public static ClusterCompleteCredentialRotationManagement get(String name, Output<String> id, ClusterCompleteCredentialRotationManagementState state, CustomResourceOptions options)
resources:  _:    type: oci:ContainerEngine:ClusterCompleteCredentialRotationManagement    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:
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

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

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

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

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

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.