1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. ClusterCompleteCredentialRotationManagement
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.ContainerEngine.ClusterCompleteCredentialRotationManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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],
    });
    
    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]))
    
    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
    	})
    }
    
    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,
            },
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      testClusterCompleteCredentialRotationManagement:
        type: oci:ContainerEngine:ClusterCompleteCredentialRotationManagement
        name: test_cluster_complete_credential_rotation_management
        properties:
          clusterId: ${testCluster.id}
        options:
          dependson:
            - ${testClusterStartCredentialRotationManagement}
    

    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 string
    The unique name of the resource.
    args ClusterCompleteCredentialRotationManagementArgs
    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 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 string
    The unique name of the resource.
    args ClusterCompleteCredentialRotationManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterCompleteCredentialRotationManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    example, err := ContainerEngine.NewClusterCompleteCredentialRotationManagement(ctx, "clusterCompleteCredentialRotationManagementResource", &ContainerEngine.ClusterCompleteCredentialRotationManagementArgs{
    	ClusterId: pulumi.String("string"),
    })
    
    var clusterCompleteCredentialRotationManagementResource = new ClusterCompleteCredentialRotationManagement("clusterCompleteCredentialRotationManagementResource", ClusterCompleteCredentialRotationManagementArgs.builder()
        .clusterId("string")
        .build());
    
    cluster_complete_credential_rotation_management_resource = oci.container_engine.ClusterCompleteCredentialRotationManagement("clusterCompleteCredentialRotationManagementResource", cluster_id="string")
    
    const clusterCompleteCredentialRotationManagementResource = new oci.containerengine.ClusterCompleteCredentialRotationManagement("clusterCompleteCredentialRotationManagementResource", {clusterId: "string"});
    
    type: oci:ContainerEngine:ClusterCompleteCredentialRotationManagement
    properties:
        clusterId: string
    

    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 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 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 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 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 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 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)
    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:
    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

    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

    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

    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

    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

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi