import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Subscription Mapping resource in Oracle Cloud Infrastructure Tenantmanagercontrolplane service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/organizations/latest/SubscriptionMapping * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/tenantmanagercontrolplane * * Assign the tenancy record identified by the compartment ID to the given subscription ID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSubscriptionMapping = new oci.tenantmanagercontrolplane.SubscriptionMapping("test_subscription_mapping", { * compartmentId: compartmentId, * subscriptionId: testSubscription.id, * }); * ``` * * ## Import * * SubscriptionMappings can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Tenantmanagercontrolplane/subscriptionMapping:SubscriptionMapping test_subscription_mapping "id" * ``` */ export declare class SubscriptionMapping extends pulumi.CustomResource { /** * Get an existing SubscriptionMapping 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?: SubscriptionMappingState, opts?: pulumi.CustomResourceOptions): SubscriptionMapping; /** * Returns true if the given object is an instance of SubscriptionMapping. 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 SubscriptionMapping; /** * OCID of the compartment. Always a tenancy OCID. */ readonly compartmentId: pulumi.Output; /** * Denotes if the subscription is explicity assigned to the root compartment or tenancy. */ readonly isExplicitlyAssigned: pulumi.Output; /** * Lifecycle state of the subscriptionMapping. */ readonly state: pulumi.Output; /** * OCID of Subscription. * * ** 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 subscriptionId: pulumi.Output; /** * Date-time when subscription mapping was created. */ readonly timeCreated: pulumi.Output; /** * Date-time when subscription mapping was terminated. */ readonly timeTerminated: pulumi.Output; /** * Date-time when subscription mapping was updated. */ readonly timeUpdated: pulumi.Output; /** * Create a SubscriptionMapping 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: SubscriptionMappingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SubscriptionMapping resources. */ export interface SubscriptionMappingState { /** * OCID of the compartment. Always a tenancy OCID. */ compartmentId?: pulumi.Input; /** * Denotes if the subscription is explicity assigned to the root compartment or tenancy. */ isExplicitlyAssigned?: pulumi.Input; /** * Lifecycle state of the subscriptionMapping. */ state?: pulumi.Input; /** * OCID of Subscription. * * ** 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 */ subscriptionId?: pulumi.Input; /** * Date-time when subscription mapping was created. */ timeCreated?: pulumi.Input; /** * Date-time when subscription mapping was terminated. */ timeTerminated?: pulumi.Input; /** * Date-time when subscription mapping was updated. */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a SubscriptionMapping resource. */ export interface SubscriptionMappingArgs { /** * OCID of the compartment. Always a tenancy OCID. */ compartmentId: pulumi.Input; /** * OCID of Subscription. * * ** 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 */ subscriptionId: pulumi.Input; } //# sourceMappingURL=subscriptionMapping.d.ts.map