import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Privileged Api Control resource in Oracle Cloud Infrastructure Apiaccesscontrol service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/oracle-api-access-control/latest/PrivilegedApiControl * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/apiaccesscontrol * * Creates a PrivilegedApiControl. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPrivilegedApiControl = new oci.oci.ApiaccesscontrolPrivilegedApiControl("test_privileged_api_control", { * approverGroupIdLists: privilegedApiControlApproverGroupIdList, * compartmentId: compartmentId, * notificationTopicId: testNotificationTopic.id, * privilegedOperationLists: [{ * apiName: testApi.name, * attributeNames: privilegedApiControlPrivilegedOperationListAttributeNames, * entityType: privilegedApiControlPrivilegedOperationListEntityType, * }], * resourceType: privilegedApiControlResourceType, * approverGroupLevelLists: [{ * groupIds: testGroup.id, * groupLevel: Number(privilegedApiControlApproverGroupLevelListGroupLevel), * }], * definedTags: { * "Operations.CostCenter": "42", * }, * description: privilegedApiControlDescription, * displayName: privilegedApiControlDisplayName, * freeformTags: { * Department: "Finance", * }, * numberOfApprovers: Number(privilegedApiControlNumberOfApprovers), * resources: privilegedApiControlResources, * }); * ``` * * ## Import * * PrivilegedApiControls can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:oci/apiaccesscontrolPrivilegedApiControl:ApiaccesscontrolPrivilegedApiControl test_privileged_api_control "id" * ``` */ export declare class ApiaccesscontrolPrivilegedApiControl extends pulumi.CustomResource { /** * Get an existing ApiaccesscontrolPrivilegedApiControl 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?: ApiaccesscontrolPrivilegedApiControlState, opts?: pulumi.CustomResourceOptions): ApiaccesscontrolPrivilegedApiControl; /** * Returns true if the given object is an instance of ApiaccesscontrolPrivilegedApiControl. 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 ApiaccesscontrolPrivilegedApiControl; /** * (Updatable) List of user IAM group ids who can approve an privilegedApi request associated with a resource governed by this operator control. */ readonly approverGroupIdLists: pulumi.Output; /** * (Updatable) List of Group containing the levels at which the users belonging to the group can authorize. */ readonly approverGroupLevelLists: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the PrivilegedApiControl 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) Description of the privilegedApi control. */ readonly description: pulumi.Output; /** * (Updatable) Name of the privilegedApi control It has to be unique. */ 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 PrivilegedApiControl in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * (Updatable) The OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Privileged Api Control. */ readonly notificationTopicId: pulumi.Output; /** * (Updatable) Number of approvers required to approve an privilegedApi request. */ readonly numberOfApprovers: pulumi.Output; /** * (Updatable) List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation. */ readonly privilegedOperationLists: pulumi.Output; /** * (Updatable) resourceType for which the PrivilegedApiControl is applicable */ readonly resourceType: pulumi.Output; /** * (Updatable) contains Resource details * * ** 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 resources: pulumi.Output; /** * The current state of the PrivilegedApiControl. */ readonly state: pulumi.Output; /** * A message that describes the current state of the PrivilegedApiControl in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ readonly stateDetails: 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 date and time the PrivilegedApiControl 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 PrivilegedApiControl was marked for delete, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeDeleted: pulumi.Output; /** * The date and time the PrivilegedApiControl 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 ApiaccesscontrolPrivilegedApiControl 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: ApiaccesscontrolPrivilegedApiControlArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApiaccesscontrolPrivilegedApiControl resources. */ export interface ApiaccesscontrolPrivilegedApiControlState { /** * (Updatable) List of user IAM group ids who can approve an privilegedApi request associated with a resource governed by this operator control. */ approverGroupIdLists?: pulumi.Input[] | undefined>; /** * (Updatable) List of Group containing the levels at which the users belonging to the group can authorize. */ approverGroupLevelLists?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the PrivilegedApiControl 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) Description of the privilegedApi control. */ description?: pulumi.Input; /** * (Updatable) Name of the privilegedApi control It has to be unique. */ 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 PrivilegedApiControl in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ lifecycleDetails?: pulumi.Input; /** * (Updatable) The OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Privileged Api Control. */ notificationTopicId?: pulumi.Input; /** * (Updatable) Number of approvers required to approve an privilegedApi request. */ numberOfApprovers?: pulumi.Input; /** * (Updatable) List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation. */ privilegedOperationLists?: pulumi.Input[] | undefined>; /** * (Updatable) resourceType for which the PrivilegedApiControl is applicable */ resourceType?: pulumi.Input; /** * (Updatable) contains Resource details * * ** 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 */ resources?: pulumi.Input[] | undefined>; /** * The current state of the PrivilegedApiControl. */ state?: pulumi.Input; /** * A message that describes the current state of the PrivilegedApiControl in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ stateDetails?: 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 date and time the PrivilegedApiControl 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 PrivilegedApiControl was marked for delete, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeDeleted?: pulumi.Input; /** * The date and time the PrivilegedApiControl 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 ApiaccesscontrolPrivilegedApiControl resource. */ export interface ApiaccesscontrolPrivilegedApiControlArgs { /** * (Updatable) List of user IAM group ids who can approve an privilegedApi request associated with a resource governed by this operator control. */ approverGroupIdLists: pulumi.Input[]>; /** * (Updatable) List of Group containing the levels at which the users belonging to the group can authorize. */ approverGroupLevelLists?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the PrivilegedApiControl 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) Description of the privilegedApi control. */ description?: pulumi.Input; /** * (Updatable) Name of the privilegedApi control It has to be unique. */ 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) The OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Privileged Api Control. */ notificationTopicId: pulumi.Input; /** * (Updatable) Number of approvers required to approve an privilegedApi request. */ numberOfApprovers?: pulumi.Input; /** * (Updatable) List of privileged operator operations. If Privileged API Managment is enabled for a resource it will be validated whether the operation done by the operator is a part of privileged operation. */ privilegedOperationLists: pulumi.Input[]>; /** * (Updatable) resourceType for which the PrivilegedApiControl is applicable */ resourceType: pulumi.Input; /** * (Updatable) contains Resource details * * ** 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 */ resources?: pulumi.Input[] | undefined>; } //# sourceMappingURL=apiaccesscontrolPrivilegedApiControl.d.ts.map