import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Attribute Sets in Oracle Cloud Infrastructure Data Safe service. * * Retrieves the list of attribute sets. * * The ListAttributeSets operation returns only the attribute sets in the specified `compartmentId`. * * The parameter `accessLevel` specifies whether to return only those compartments for which the * requester has INSPECT permissions on at least one resource directly * or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if * Principal doesn't have access to even one of the child compartments. This is valid only when * `compartmentIdInSubtree` is set to `true`. * * The parameter `compartmentIdInSubtree` applies when you perform ListAttributeSet on the * `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. * To get a full list of all compartments and subcompartments in the tenancy (root compartment), * set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAttributeSets = oci.datasafe.getAttributeSets({ * compartmentId: compartmentId, * accessLevel: attributeSetAccessLevel, * attributeSetId: testAttributeSet.id, * attributeSetType: attributeSetAttributeSetType, * compartmentIdInSubtree: attributeSetCompartmentIdInSubtree === "true", * displayName: attributeSetDisplayName, * inUse: attributeSetInUse, * isUserDefined: attributeSetIsUserDefined === "true", * state: attributeSetState, * }); * ``` */ export declare function getAttributeSets(args: GetAttributeSetsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getAttributeSets. */ export interface GetAttributeSetsArgs { /** * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. */ accessLevel?: string; /** * A filter to return only attribute set resources that matches the specified attribute set OCID query param. */ attributeSetId?: string; /** * A filter to return only attribute set resources that matches the specified attribute set type query param. */ attributeSetType?: string; /** * A filter to return only resources that match the specified compartment OCID. */ compartmentId: string; /** * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. */ compartmentIdInSubtree?: boolean; /** * A filter to return only resources that match the specified display name. */ displayName?: string; filters?: inputs.DataSafe.GetAttributeSetsFilter[]; /** * A filter to return attribute set resources that are in use by other associated resources. */ inUse?: string; /** * A filter to return user defined or seeded attribute set resources that matches the specified is user defined query param. A true value indicates user defined attribute set. */ isUserDefined?: boolean; /** * The current state of an attribute set. */ state?: string; } /** * A collection of values returned by getAttributeSets. */ export interface GetAttributeSetsResult { readonly accessLevel?: string; /** * The list of attribute_set_collection. */ readonly attributeSetCollections: outputs.DataSafe.GetAttributeSetsAttributeSetCollection[]; readonly attributeSetId?: string; /** * The type of attribute set. */ readonly attributeSetType?: string; /** * The OCID of the compartment where the attribute set is stored. */ readonly compartmentId: string; readonly compartmentIdInSubtree?: boolean; /** * The display name of an attribute set. The name does not have to be unique, and is changeable. */ readonly displayName?: string; readonly filters?: outputs.DataSafe.GetAttributeSetsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Indicates whether the attribute set is in use by other resource. */ readonly inUse?: string; /** * A boolean flag indicating to list user defined or seeded attribute sets. */ readonly isUserDefined?: boolean; /** * The current state of an attribute set. */ readonly state?: string; } /** * This data source provides the list of Attribute Sets in Oracle Cloud Infrastructure Data Safe service. * * Retrieves the list of attribute sets. * * The ListAttributeSets operation returns only the attribute sets in the specified `compartmentId`. * * The parameter `accessLevel` specifies whether to return only those compartments for which the * requester has INSPECT permissions on at least one resource directly * or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if * Principal doesn't have access to even one of the child compartments. This is valid only when * `compartmentIdInSubtree` is set to `true`. * * The parameter `compartmentIdInSubtree` applies when you perform ListAttributeSet on the * `compartmentId` passed and when it is set to true, the entire hierarchy of compartments can be returned. * To get a full list of all compartments and subcompartments in the tenancy (root compartment), * set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ACCESSIBLE. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testAttributeSets = oci.datasafe.getAttributeSets({ * compartmentId: compartmentId, * accessLevel: attributeSetAccessLevel, * attributeSetId: testAttributeSet.id, * attributeSetType: attributeSetAttributeSetType, * compartmentIdInSubtree: attributeSetCompartmentIdInSubtree === "true", * displayName: attributeSetDisplayName, * inUse: attributeSetInUse, * isUserDefined: attributeSetIsUserDefined === "true", * state: attributeSetState, * }); * ``` */ export declare function getAttributeSetsOutput(args: GetAttributeSetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getAttributeSets. */ export interface GetAttributeSetsOutputArgs { /** * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE returns only those compartments for which the user has INSPECT permissions directly or indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. */ accessLevel?: pulumi.Input; /** * A filter to return only attribute set resources that matches the specified attribute set OCID query param. */ attributeSetId?: pulumi.Input; /** * A filter to return only attribute set resources that matches the specified attribute set type query param. */ attributeSetType?: pulumi.Input; /** * A filter to return only resources that match the specified compartment OCID. */ compartmentId: pulumi.Input; /** * Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. */ compartmentIdInSubtree?: pulumi.Input; /** * A filter to return only resources that match the specified display name. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return attribute set resources that are in use by other associated resources. */ inUse?: pulumi.Input; /** * A filter to return user defined or seeded attribute set resources that matches the specified is user defined query param. A true value indicates user defined attribute set. */ isUserDefined?: pulumi.Input; /** * The current state of an attribute set. */ state?: pulumi.Input; } //# sourceMappingURL=getAttributeSets.d.ts.map