import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Kafka Cluster resource in Oracle Cloud Infrastructure Managed Kafka service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/kafka/latest/KafkaCluster * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/managed_kafka * * Creates a KafkaCluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testKafkaCluster = new oci.oci.ManagedKafkaKafkaCluster("test_kafka_cluster", { * accessSubnets: [{ * subnets: kafkaClusterAccessSubnetsSubnets, * }], * brokerShape: { * nodeCount: Number(kafkaClusterBrokerShapeNodeCount), * ocpuCount: Number(kafkaClusterBrokerShapeOcpuCount), * nodeShape: kafkaClusterBrokerShapeNodeShape, * storageSizeInGbs: Number(kafkaClusterBrokerShapeStorageSizeInGbs), * }, * clusterConfigId: testConfig.id, * clusterConfigVersion: Number(kafkaClusterClusterConfigVersion), * clusterType: kafkaClusterClusterType, * compartmentId: compartmentId, * coordinationType: kafkaClusterCoordinationType, * kafkaVersion: kafkaClusterKafkaVersion, * clientCertificateBundle: kafkaClusterClientCertificateBundle, * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: kafkaClusterDisplayName, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * KafkaClusters can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:oci/managedKafkaKafkaCluster:ManagedKafkaKafkaCluster test_kafka_cluster "id" * ``` */ export declare class ManagedKafkaKafkaCluster extends pulumi.CustomResource { /** * Get an existing ManagedKafkaKafkaCluster resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ManagedKafkaKafkaClusterState, opts?: pulumi.CustomResourceOptions): ManagedKafkaKafkaCluster; /** * Returns true if the given object is an instance of ManagedKafkaKafkaCluster. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ManagedKafkaKafkaCluster; /** * (Updatable) Subnets where broker/coordinator VNICs will be created. */ readonly accessSubnets: pulumi.Output; /** * (Updatable) Configuration of the broker node. */ readonly brokerShape: pulumi.Output; /** * (Updatable) CA certificate bundle for mTLS broker authentication. */ readonly clientCertificateBundle: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Kafka Cluster configuration object */ readonly clusterConfigId: pulumi.Output; /** * (Updatable) The version of configuration object */ readonly clusterConfigVersion: pulumi.Output; /** * Type of the cluster to spin up. DEVELOPMENT - setting that allows to sacrifice HA and spin up cluster on single node PRODUCTION - Minimum allowed broker count is 3 */ readonly clusterType: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the KafkaCluster in. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Kafka coordination type. Set of available types depends on Kafka version */ readonly coordinationType: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Bootstrap URL that can be used to connect to Kafka */ readonly kafkaBootstrapUrls: pulumi.Output; /** * Version of Kafka to use to spin up 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 */ readonly kafkaVersion: pulumi.Output; /** * A message that describes the current state of the KafkaCluster in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the secret that contains superuser password. */ readonly secretId: pulumi.Output; /** * The current state of the KafkaCluster. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time the KafkaCluster was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * The date and time the KafkaCluster was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeUpdated: pulumi.Output; /** * Create a ManagedKafkaKafkaCluster resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ManagedKafkaKafkaClusterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagedKafkaKafkaCluster resources. */ export interface ManagedKafkaKafkaClusterState { /** * (Updatable) Subnets where broker/coordinator VNICs will be created. */ accessSubnets?: pulumi.Input[] | undefined>; /** * (Updatable) Configuration of the broker node. */ brokerShape?: pulumi.Input; /** * (Updatable) CA certificate bundle for mTLS broker authentication. */ clientCertificateBundle?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Kafka Cluster configuration object */ clusterConfigId?: pulumi.Input; /** * (Updatable) The version of configuration object */ clusterConfigVersion?: pulumi.Input; /** * Type of the cluster to spin up. DEVELOPMENT - setting that allows to sacrifice HA and spin up cluster on single node PRODUCTION - Minimum allowed broker count is 3 */ clusterType?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the KafkaCluster in. */ compartmentId?: pulumi.Input; /** * (Updatable) Kafka coordination type. Set of available types depends on Kafka version */ coordinationType?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Bootstrap URL that can be used to connect to Kafka */ kafkaBootstrapUrls?: pulumi.Input[] | undefined>; /** * Version of Kafka to use to spin up 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 */ kafkaVersion?: pulumi.Input; /** * A message that describes the current state of the KafkaCluster in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ lifecycleDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the secret that contains superuser password. */ secretId?: pulumi.Input; /** * The current state of the KafkaCluster. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time the KafkaCluster was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * The date and time the KafkaCluster was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a ManagedKafkaKafkaCluster resource. */ export interface ManagedKafkaKafkaClusterArgs { /** * (Updatable) Subnets where broker/coordinator VNICs will be created. */ accessSubnets: pulumi.Input[]>; /** * (Updatable) Configuration of the broker node. */ brokerShape: pulumi.Input; /** * (Updatable) CA certificate bundle for mTLS broker authentication. */ clientCertificateBundle?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of Kafka Cluster configuration object */ clusterConfigId: pulumi.Input; /** * (Updatable) The version of configuration object */ clusterConfigVersion: pulumi.Input; /** * Type of the cluster to spin up. DEVELOPMENT - setting that allows to sacrifice HA and spin up cluster on single node PRODUCTION - Minimum allowed broker count is 3 */ clusterType: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the KafkaCluster in. */ compartmentId: pulumi.Input; /** * (Updatable) Kafka coordination type. Set of available types depends on Kafka version */ coordinationType: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Version of Kafka to use to spin up 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 */ kafkaVersion: pulumi.Input; } //# sourceMappingURL=managedKafkaKafkaCluster.d.ts.map