import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Cluster Workload Mapping resource in Oracle Cloud Infrastructure Container Engine service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/containerengine/latest/ClusterWorkloadMapping * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/container_engine * * Create the specified workloadMapping for a cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testClusterWorkloadMapping = new oci.containerengine.ClusterWorkloadMapping("test_cluster_workload_mapping", { * clusterId: testCluster.id, * mappedCompartmentId: testCompartment.id, * namespace: clusterWorkloadMappingNamespace, * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * ClusterWorkloadMappings can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:ContainerEngine/clusterWorkloadMapping:ClusterWorkloadMapping test_cluster_workload_mapping "clusters/{clusterId}/workloadMappings/{workloadMappingId}" * ``` */ export declare class ClusterWorkloadMapping extends pulumi.CustomResource { /** * Get an existing ClusterWorkloadMapping 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?: ClusterWorkloadMappingState, opts?: pulumi.CustomResourceOptions): ClusterWorkloadMapping; /** * Returns true if the given object is an instance of ClusterWorkloadMapping. 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 ClusterWorkloadMapping; /** * The OCID of the cluster. */ readonly clusterId: 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) 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; }>; /** * (Updatable) The OCID of the mapped customer compartment. */ readonly mappedCompartmentId: pulumi.Output; /** * The OCID of the mapped customer tenancy. */ readonly mappedTenancyId: pulumi.Output; /** * The namespace of the workloadMapping. * * ** 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 namespace: pulumi.Output; /** * The state of the workloadMapping. */ readonly state: pulumi.Output; /** * The time the cluster was created. */ readonly timeCreated: pulumi.Output; /** * Create a ClusterWorkloadMapping 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: ClusterWorkloadMappingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ClusterWorkloadMapping resources. */ export interface ClusterWorkloadMappingState { /** * The OCID of the cluster. */ clusterId?: 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) 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>; /** * (Updatable) The OCID of the mapped customer compartment. */ mappedCompartmentId?: pulumi.Input; /** * The OCID of the mapped customer tenancy. */ mappedTenancyId?: pulumi.Input; /** * The namespace of the workloadMapping. * * ** 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 */ namespace?: pulumi.Input; /** * The state of the workloadMapping. */ state?: pulumi.Input; /** * The time the cluster was created. */ timeCreated?: pulumi.Input; } /** * The set of arguments for constructing a ClusterWorkloadMapping resource. */ export interface ClusterWorkloadMappingArgs { /** * The OCID of the cluster. */ clusterId: 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) 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>; /** * (Updatable) The OCID of the mapped customer compartment. */ mappedCompartmentId: pulumi.Input; /** * The namespace of the workloadMapping. * * ** 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 */ namespace: pulumi.Input; } //# sourceMappingURL=clusterWorkloadMapping.d.ts.map