import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Tag Default resource in Oracle Cloud Infrastructure Identity service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/TagDefault * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity * * Creates a new tag default in the specified compartment for the specified tag definition. * * If you specify that a value is required, a value is set during resource creation (either by * the user creating the resource or another tag defualt). If no value is set, resource creation * is blocked. * * * If the `isRequired` flag is set to "true", the value is set during resource creation. * * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testTagDefault = new oci.identity.TagDefault("test_tag_default", { * compartmentId: compartmentId, * tagDefinitionId: testTagDefinition.id, * value: tagDefaultValue, * isRequired: tagDefaultIsRequired === "true", * }); * ``` * * ## Import * * TagDefaults can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Identity/tagDefault:TagDefault test_tag_default "id" * ``` */ export declare class TagDefault extends pulumi.CustomResource { /** * Get an existing TagDefault 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?: TagDefaultState, opts?: pulumi.CustomResourceOptions): TagDefault; /** * Returns true if the given object is an instance of TagDefault. 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 TagDefault; /** * The OCID of the compartment. The tag default will be applied to all new resources created in this compartment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked. * * If the `isRequired` flag is set to "true", the value is set during resource creation. * * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. * * Example: `false` */ readonly isRequired: pulumi.Output; /** * The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it. */ readonly state: pulumi.Output; /** * The OCID of the tag definition. The tag default will always assign a default value for this tag definition. */ readonly tagDefinitionId: pulumi.Output; /** * The name used in the tag definition. This field is informational in the context of the tag default. */ readonly tagDefinitionName: pulumi.Output; /** * The OCID of the tag namespace that contains the tag definition. */ readonly tagNamespaceId: pulumi.Output; /** * Date and time the `TagDefault` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * (Updatable) The default value for the tag definition. This will be applied to all new resources created in the compartment. * * ** 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 value: pulumi.Output; /** * Create a TagDefault 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: TagDefaultArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TagDefault resources. */ export interface TagDefaultState { /** * The OCID of the compartment. The tag default will be applied to all new resources created in this compartment. */ compartmentId?: pulumi.Input; /** * (Updatable) If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked. * * If the `isRequired` flag is set to "true", the value is set during resource creation. * * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. * * Example: `false` */ isRequired?: pulumi.Input; /** * The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it. */ state?: pulumi.Input; /** * The OCID of the tag definition. The tag default will always assign a default value for this tag definition. */ tagDefinitionId?: pulumi.Input; /** * The name used in the tag definition. This field is informational in the context of the tag default. */ tagDefinitionName?: pulumi.Input; /** * The OCID of the tag namespace that contains the tag definition. */ tagNamespaceId?: pulumi.Input; /** * Date and time the `TagDefault` object was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * (Updatable) The default value for the tag definition. This will be applied to all new resources created in the compartment. * * ** 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 */ value?: pulumi.Input; } /** * The set of arguments for constructing a TagDefault resource. */ export interface TagDefaultArgs { /** * The OCID of the compartment. The tag default will be applied to all new resources created in this compartment. */ compartmentId: pulumi.Input; /** * (Updatable) If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked. * * If the `isRequired` flag is set to "true", the value is set during resource creation. * * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. * * Example: `false` */ isRequired?: pulumi.Input; /** * The OCID of the tag definition. The tag default will always assign a default value for this tag definition. */ tagDefinitionId: pulumi.Input; /** * (Updatable) The default value for the tag definition. This will be applied to all new resources created in the compartment. * * ** 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 */ value: pulumi.Input; } //# sourceMappingURL=tagDefault.d.ts.map