import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Subscription resource in Oracle Cloud Infrastructure Self service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/ * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/self * * Creates a Subscription. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSubscription = new oci.oci.SelfSubscription("test_subscription", { * compartmentId: compartmentId, * productId: testProduct.id, * sellerId: testSeller.id, * subscriptionDetails: { * billingDetails: { * meters: [{ * name: subscriptionSubscriptionDetailsBillingDetailsMetersName, * rateAllocation: subscriptionSubscriptionDetailsBillingDetailsMetersRateAllocation, * extendedMetadatas: [{ * key: subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataKey, * value: subscriptionSubscriptionDetailsBillingDetailsMetersExtendedMetadataValue, * }], * }], * metricType: subscriptionSubscriptionDetailsBillingDetailsMetricType, * rateAllocation: subscriptionSubscriptionDetailsBillingDetailsRateAllocation, * sku: subscriptionSubscriptionDetailsBillingDetailsSku, * hasGovSku: subscriptionSubscriptionDetailsBillingDetailsHasGovSku === "true", * }, * partnerRegistrationUrl: subscriptionSubscriptionDetailsPartnerRegistrationUrl, * pricingPlan: { * billingFrequency: subscriptionSubscriptionDetailsPricingPlanBillingFrequency, * planName: subscriptionSubscriptionDetailsPricingPlanPlanName, * planType: subscriptionSubscriptionDetailsPricingPlanPlanType, * rates: [{ * currency: subscriptionSubscriptionDetailsPricingPlanRatesCurrency, * rate: subscriptionSubscriptionDetailsPricingPlanRatesRate, * }], * planDescription: subscriptionSubscriptionDetailsPricingPlanPlanDescription, * planDuration: subscriptionSubscriptionDetailsPricingPlanPlanDuration, * }, * amount: subscriptionSubscriptionDetailsAmount, * currency: subscriptionSubscriptionDetailsCurrency, * isAutoRenew: subscriptionSubscriptionDetailsIsAutoRenew === "true", * }, * tenantId: testTenant.id, * additionalDetails: [{ * key: subscriptionAdditionalDetailsKey, * value: subscriptionAdditionalDetailsValue, * }], * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: subscriptionDisplayName, * freeformTags: { * Department: "Finance", * }, * realm: subscriptionRealm, * region: subscriptionRegion, * sourceType: subscriptionSourceType, * }); * ``` * * ## Import * * Subscriptions can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:oci/selfSubscription:SelfSubscription test_subscription "id" * ``` */ export declare class SelfSubscription extends pulumi.CustomResource { /** * Get an existing SelfSubscription 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?: SelfSubscriptionState, opts?: pulumi.CustomResourceOptions): SelfSubscription; /** * Returns true if the given object is an instance of SelfSubscription. 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 SelfSubscription; /** * Additional details that are specific for this subscription such as activation details. */ readonly additionalDetails: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the subscription in. */ readonly compartmentId: 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) The subscription name. Must be unique within the compartment. This value can be updated. */ 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; }>; /** * A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * The unique identifier of the marketplace listing in Oracle Cloud Infrastructure. */ readonly productId: pulumi.Output; /** * The realm from where customer is buying the subscription. */ readonly realm: pulumi.Output; /** * The region from where customer is buying the subscription. */ readonly region: pulumi.Output; /** * The OCID for the seller in SELF Service. */ readonly sellerId: pulumi.Output; /** * The type of seller in SELF Service. */ readonly sourceType: pulumi.Output; /** * The current lifecycle state of the Subscription. */ readonly state: pulumi.Output; /** * The details of a subscription */ readonly subscriptionDetails: 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 [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant to create the subscription in. * * ** 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 tenantId: pulumi.Output; /** * The date and time the Subscription 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 Subscription was ended, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeEnded: pulumi.Output; /** * The date and time the Subscription was started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeStarted: pulumi.Output; /** * The date and time the Subscription 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 SelfSubscription 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: SelfSubscriptionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SelfSubscription resources. */ export interface SelfSubscriptionState { /** * Additional details that are specific for this subscription such as activation details. */ additionalDetails?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the subscription in. */ compartmentId?: 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) The subscription name. Must be unique within the compartment. This value can be updated. */ 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>; /** * A message that describes the current state of the Subscription in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ lifecycleDetails?: pulumi.Input; /** * The unique identifier of the marketplace listing in Oracle Cloud Infrastructure. */ productId?: pulumi.Input; /** * The realm from where customer is buying the subscription. */ realm?: pulumi.Input; /** * The region from where customer is buying the subscription. */ region?: pulumi.Input; /** * The OCID for the seller in SELF Service. */ sellerId?: pulumi.Input; /** * The type of seller in SELF Service. */ sourceType?: pulumi.Input; /** * The current lifecycle state of the Subscription. */ state?: pulumi.Input; /** * The details of a subscription */ subscriptionDetails?: 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 [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant to create the subscription in. * * ** 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 */ tenantId?: pulumi.Input; /** * The date and time the Subscription 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 Subscription was ended, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeEnded?: pulumi.Input; /** * The date and time the Subscription was started, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeStarted?: pulumi.Input; /** * The date and time the Subscription 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 SelfSubscription resource. */ export interface SelfSubscriptionArgs { /** * Additional details that are specific for this subscription such as activation details. */ additionalDetails?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the subscription in. */ compartmentId: 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) The subscription name. Must be unique within the compartment. This value can be updated. */ 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>; /** * The unique identifier of the marketplace listing in Oracle Cloud Infrastructure. */ productId: pulumi.Input; /** * The realm from where customer is buying the subscription. */ realm?: pulumi.Input; /** * The region from where customer is buying the subscription. */ region?: pulumi.Input; /** * The OCID for the seller in SELF Service. */ sellerId: pulumi.Input; /** * The type of seller in SELF Service. */ sourceType?: pulumi.Input; /** * The details of a subscription */ subscriptionDetails: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenant to create the subscription in. * * ** 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 */ tenantId: pulumi.Input; } //# sourceMappingURL=selfSubscription.d.ts.map