1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. ManagedKafkaKafkaClusterSuperusersManagement
Oracle Cloud Infrastructure v3.14.0 published on Friday, Jan 16, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.14.0 published on Friday, Jan 16, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testKafkaClusterSuperusersManagement = new oci.oci.ManagedKafkaKafkaClusterSuperusersManagement("test_kafka_cluster_superusers_management", {
        kafkaClusterId: testKafkaCluster.id,
        enableSuperuser: enableSuperuser,
        compartmentId: compartmentId,
        secretId: testSecret.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_kafka_cluster_superusers_management = oci.oci.ManagedKafkaKafkaClusterSuperusersManagement("test_kafka_cluster_superusers_management",
        kafka_cluster_id=test_kafka_cluster["id"],
        enable_superuser=enable_superuser,
        compartment_id=compartment_id,
        secret_id=test_secret["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.NewManagedKafkaKafkaClusterSuperusersManagement(ctx, "test_kafka_cluster_superusers_management", &oci.ManagedKafkaKafkaClusterSuperusersManagementArgs{
    			KafkaClusterId:  pulumi.Any(testKafkaCluster.Id),
    			EnableSuperuser: pulumi.Any(enableSuperuser),
    			CompartmentId:   pulumi.Any(compartmentId),
    			SecretId:        pulumi.Any(testSecret.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 testKafkaClusterSuperusersManagement = new Oci.Oci.ManagedKafkaKafkaClusterSuperusersManagement("test_kafka_cluster_superusers_management", new()
        {
            KafkaClusterId = testKafkaCluster.Id,
            EnableSuperuser = enableSuperuser,
            CompartmentId = compartmentId,
            SecretId = testSecret.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.ManagedKafkaKafkaClusterSuperusersManagement;
    import com.pulumi.oci.oci.ManagedKafkaKafkaClusterSuperusersManagementArgs;
    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 testKafkaClusterSuperusersManagement = new ManagedKafkaKafkaClusterSuperusersManagement("testKafkaClusterSuperusersManagement", ManagedKafkaKafkaClusterSuperusersManagementArgs.builder()
                .kafkaClusterId(testKafkaCluster.id())
                .enableSuperuser(enableSuperuser)
                .compartmentId(compartmentId)
                .secretId(testSecret.id())
                .build());
    
        }
    }
    
    resources:
      testKafkaClusterSuperusersManagement:
        type: oci:oci:ManagedKafkaKafkaClusterSuperusersManagement
        name: test_kafka_cluster_superusers_management
        properties:
          kafkaClusterId: ${testKafkaCluster.id}
          enableSuperuser: ${enableSuperuser}
          compartmentId: ${compartmentId}
          secretId: ${testSecret.id}
    

    Create ManagedKafkaKafkaClusterSuperusersManagement Resource

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

    Constructor syntax

    new ManagedKafkaKafkaClusterSuperusersManagement(name: string, args: ManagedKafkaKafkaClusterSuperusersManagementArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedKafkaKafkaClusterSuperusersManagement(resource_name: str,
                                                     args: ManagedKafkaKafkaClusterSuperusersManagementArgs,
                                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedKafkaKafkaClusterSuperusersManagement(resource_name: str,
                                                     opts: Optional[ResourceOptions] = None,
                                                     enable_superuser: Optional[bool] = None,
                                                     kafka_cluster_id: Optional[str] = None,
                                                     compartment_id: Optional[str] = None,
                                                     secret_id: Optional[str] = None)
    func NewManagedKafkaKafkaClusterSuperusersManagement(ctx *Context, name string, args ManagedKafkaKafkaClusterSuperusersManagementArgs, opts ...ResourceOption) (*ManagedKafkaKafkaClusterSuperusersManagement, error)
    public ManagedKafkaKafkaClusterSuperusersManagement(string name, ManagedKafkaKafkaClusterSuperusersManagementArgs args, CustomResourceOptions? opts = null)
    public ManagedKafkaKafkaClusterSuperusersManagement(String name, ManagedKafkaKafkaClusterSuperusersManagementArgs args)
    public ManagedKafkaKafkaClusterSuperusersManagement(String name, ManagedKafkaKafkaClusterSuperusersManagementArgs args, CustomResourceOptions options)
    
    type: oci:oci:ManagedKafkaKafkaClusterSuperusersManagement
    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 ManagedKafkaKafkaClusterSuperusersManagementArgs
    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 ManagedKafkaKafkaClusterSuperusersManagementArgs
    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 ManagedKafkaKafkaClusterSuperusersManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedKafkaKafkaClusterSuperusersManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedKafkaKafkaClusterSuperusersManagementArgs
    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 managedKafkaKafkaClusterSuperusersManagementResource = new Oci.Oci.ManagedKafkaKafkaClusterSuperusersManagement("managedKafkaKafkaClusterSuperusersManagementResource", new()
    {
        EnableSuperuser = false,
        KafkaClusterId = "string",
        CompartmentId = "string",
        SecretId = "string",
    });
    
    example, err := oci.NewManagedKafkaKafkaClusterSuperusersManagement(ctx, "managedKafkaKafkaClusterSuperusersManagementResource", &oci.ManagedKafkaKafkaClusterSuperusersManagementArgs{
    	EnableSuperuser: pulumi.Bool(false),
    	KafkaClusterId:  pulumi.String("string"),
    	CompartmentId:   pulumi.String("string"),
    	SecretId:        pulumi.String("string"),
    })
    
    var managedKafkaKafkaClusterSuperusersManagementResource = new ManagedKafkaKafkaClusterSuperusersManagement("managedKafkaKafkaClusterSuperusersManagementResource", ManagedKafkaKafkaClusterSuperusersManagementArgs.builder()
        .enableSuperuser(false)
        .kafkaClusterId("string")
        .compartmentId("string")
        .secretId("string")
        .build());
    
    managed_kafka_kafka_cluster_superusers_management_resource = oci.oci.ManagedKafkaKafkaClusterSuperusersManagement("managedKafkaKafkaClusterSuperusersManagementResource",
        enable_superuser=False,
        kafka_cluster_id="string",
        compartment_id="string",
        secret_id="string")
    
    const managedKafkaKafkaClusterSuperusersManagementResource = new oci.oci.ManagedKafkaKafkaClusterSuperusersManagement("managedKafkaKafkaClusterSuperusersManagementResource", {
        enableSuperuser: false,
        kafkaClusterId: "string",
        compartmentId: "string",
        secretId: "string",
    });
    
    type: oci:oci:ManagedKafkaKafkaClusterSuperusersManagement
    properties:
        compartmentId: string
        enableSuperuser: false
        kafkaClusterId: string
        secretId: string
    

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

    EnableSuperuser bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    KafkaClusterId string
    The OCID of the KafkaCluster.
    CompartmentId string
    The OCID of the compartment that contains the superuser secret.
    SecretId string
    The OCID of the secret that will be populated with the generated superuser password.
    EnableSuperuser bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    KafkaClusterId string
    The OCID of the KafkaCluster.
    CompartmentId string
    The OCID of the compartment that contains the superuser secret.
    SecretId string
    The OCID of the secret that will be populated with the generated superuser password.
    enableSuperuser Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafkaClusterId String
    The OCID of the KafkaCluster.
    compartmentId String
    The OCID of the compartment that contains the superuser secret.
    secretId String
    The OCID of the secret that will be populated with the generated superuser password.
    enableSuperuser boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafkaClusterId string
    The OCID of the KafkaCluster.
    compartmentId string
    The OCID of the compartment that contains the superuser secret.
    secretId string
    The OCID of the secret that will be populated with the generated superuser password.
    enable_superuser bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafka_cluster_id str
    The OCID of the KafkaCluster.
    compartment_id str
    The OCID of the compartment that contains the superuser secret.
    secret_id str
    The OCID of the secret that will be populated with the generated superuser password.
    enableSuperuser Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafkaClusterId String
    The OCID of the KafkaCluster.
    compartmentId String
    The OCID of the compartment that contains the superuser secret.
    secretId String
    The OCID of the secret that will be populated with the generated superuser password.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagedKafkaKafkaClusterSuperusersManagement 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 ManagedKafkaKafkaClusterSuperusersManagement Resource

    Get an existing ManagedKafkaKafkaClusterSuperusersManagement 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?: ManagedKafkaKafkaClusterSuperusersManagementState, opts?: CustomResourceOptions): ManagedKafkaKafkaClusterSuperusersManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            enable_superuser: Optional[bool] = None,
            kafka_cluster_id: Optional[str] = None,
            secret_id: Optional[str] = None) -> ManagedKafkaKafkaClusterSuperusersManagement
    func GetManagedKafkaKafkaClusterSuperusersManagement(ctx *Context, name string, id IDInput, state *ManagedKafkaKafkaClusterSuperusersManagementState, opts ...ResourceOption) (*ManagedKafkaKafkaClusterSuperusersManagement, error)
    public static ManagedKafkaKafkaClusterSuperusersManagement Get(string name, Input<string> id, ManagedKafkaKafkaClusterSuperusersManagementState? state, CustomResourceOptions? opts = null)
    public static ManagedKafkaKafkaClusterSuperusersManagement get(String name, Output<String> id, ManagedKafkaKafkaClusterSuperusersManagementState state, CustomResourceOptions options)
    resources:  _:    type: oci:oci:ManagedKafkaKafkaClusterSuperusersManagement    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:
    CompartmentId string
    The OCID of the compartment that contains the superuser secret.
    EnableSuperuser bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    KafkaClusterId string
    The OCID of the KafkaCluster.
    SecretId string
    The OCID of the secret that will be populated with the generated superuser password.
    CompartmentId string
    The OCID of the compartment that contains the superuser secret.
    EnableSuperuser bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    KafkaClusterId string
    The OCID of the KafkaCluster.
    SecretId string
    The OCID of the secret that will be populated with the generated superuser password.
    compartmentId String
    The OCID of the compartment that contains the superuser secret.
    enableSuperuser Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafkaClusterId String
    The OCID of the KafkaCluster.
    secretId String
    The OCID of the secret that will be populated with the generated superuser password.
    compartmentId string
    The OCID of the compartment that contains the superuser secret.
    enableSuperuser boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafkaClusterId string
    The OCID of the KafkaCluster.
    secretId string
    The OCID of the secret that will be populated with the generated superuser password.
    compartment_id str
    The OCID of the compartment that contains the superuser secret.
    enable_superuser bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafka_cluster_id str
    The OCID of the KafkaCluster.
    secret_id str
    The OCID of the secret that will be populated with the generated superuser password.
    compartmentId String
    The OCID of the compartment that contains the superuser secret.
    enableSuperuser Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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

    kafkaClusterId String
    The OCID of the KafkaCluster.
    secretId String
    The OCID of the secret that will be populated with the generated superuser password.

    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 v3.14.0 published on Friday, Jan 16, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate