import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Dynamic Set resource in Oracle Cloud Infrastructure Os Management Hub service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/osmh/latest/DynamicSet * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/os_management_hub * * Creates a new dynamic set. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDynamicSet = new oci.osmanagementhub.DynamicSet("test_dynamic_set", { * compartmentId: compartmentId, * matchType: dynamicSetMatchType, * matchingRule: { * architectures: dynamicSetMatchingRuleArchitectures, * displayNames: dynamicSetMatchingRuleDisplayNames, * isRebootRequired: dynamicSetMatchingRuleIsRebootRequired === "true", * locations: dynamicSetMatchingRuleLocations, * managedInstanceGroupIds: dynamicSetMatchingRuleManagedInstanceGroupIds, * managedInstanceIds: dynamicSetMatchingRuleManagedInstanceIds, * osFamilies: dynamicSetMatchingRuleOsFamilies, * osNames: dynamicSetMatchingRuleOsNames, * statuses: dynamicSetMatchingRuleStatuses, * tags: [{ * type: dynamicSetMatchingRuleTagsType, * key: dynamicSetMatchingRuleTagsKey, * namespace: dynamicSetMatchingRuleTagsNamespace, * value: dynamicSetMatchingRuleTagsValue, * }], * }, * targetCompartments: [{ * compartmentId: compartmentId, * doesIncludeChildren: dynamicSetTargetCompartmentsDoesIncludeChildren === "true", * }], * definedTags: { * "Operations.CostCenter": "42", * }, * description: dynamicSetDescription, * displayName: dynamicSetDisplayName, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * DynamicSets can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:OsManagementHub/dynamicSet:DynamicSet test_dynamic_set "id" * ``` */ export declare class DynamicSet extends pulumi.CustomResource { /** * Get an existing DynamicSet 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?: DynamicSetState, opts?: pulumi.CustomResourceOptions): DynamicSet; /** * Returns true if the given object is an instance of DynamicSet. 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 DynamicSet; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. */ 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) User-specified description for the dynamic set. */ readonly description: pulumi.Output; /** * (Updatable) User-friendly name for the dynamic set. */ 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; }>; /** * (Updatable) Include either any or all attributes. */ readonly matchType: pulumi.Output; /** * (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set. */ readonly matchingRule: pulumi.Output; /** * Number of scheduled jobs currently targeting this dynamic set. */ readonly scheduledJobCount: pulumi.Output; /** * The current state of the event. */ 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; }>; /** * (Updatable) The list of compartment details. */ readonly targetCompartments: pulumi.Output; /** * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ readonly timeCreated: pulumi.Output; /** * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ readonly timeUpdated: pulumi.Output; /** * Create a DynamicSet 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: DynamicSetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DynamicSet resources. */ export interface DynamicSetState { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. */ 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) User-specified description for the dynamic set. */ description?: pulumi.Input; /** * (Updatable) User-friendly name for the dynamic set. */ 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>; /** * (Updatable) Include either any or all attributes. */ matchType?: pulumi.Input; /** * (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set. */ matchingRule?: pulumi.Input; /** * Number of scheduled jobs currently targeting this dynamic set. */ scheduledJobCount?: pulumi.Input; /** * The current state of the event. */ 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>; /** * (Updatable) The list of compartment details. */ targetCompartments?: pulumi.Input[] | undefined>; /** * The date and time the dynamic set was created (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ timeCreated?: pulumi.Input; /** * The date and time the dynamic set was last updated (in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) format). */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a DynamicSet resource. */ export interface DynamicSetArgs { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the dynamic set. */ 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) User-specified description for the dynamic set. */ description?: pulumi.Input; /** * (Updatable) User-friendly name for the dynamic set. */ 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>; /** * (Updatable) Include either any or all attributes. */ matchType: pulumi.Input; /** * (Updatable) An object that defines the set of rules that identifies the target instances in a dynamic set. */ matchingRule: pulumi.Input; /** * (Updatable) The list of compartment details. */ targetCompartments: pulumi.Input[]>; } //# sourceMappingURL=dynamicSet.d.ts.map