import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Privileged Api Request 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/PrivilegedApiRequest * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/apiaccesscontrol * * Creates a PrivilegedApiRequest. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPrivilegedApiRequest = new oci.oci.ApiaccesscontrolPrivilegedApiRequest("test_privileged_api_request", { * compartmentId: compartmentId, * privilegedOperationLists: [{ * apiName: testApi.name, * attributeNames: privilegedApiRequestPrivilegedOperationListAttributeNames, * }], * reasonSummary: privilegedApiRequestReasonSummary, * resourceId: testResource.id, * definedTags: { * "Operations.CostCenter": "42", * }, * durationInHrs: Number(privilegedApiRequestDurationInHrs), * freeformTags: { * Department: "Finance", * }, * notificationTopicId: testNotificationTopic.id, * reasonDetail: privilegedApiRequestReasonDetail, * severity: privilegedApiRequestSeverity, * subResourceNameLists: privilegedApiRequestSubResourceNameList, * ticketNumbers: privilegedApiRequestTicketNumbers, * timeRequestedForFutureAccess: privilegedApiRequestTimeRequestedForFutureAccess, * }); * ``` * * ## Import * * PrivilegedApiRequests can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:oci/apiaccesscontrolPrivilegedApiRequest:ApiaccesscontrolPrivilegedApiRequest test_privileged_api_request "id" * ``` */ export declare class ApiaccesscontrolPrivilegedApiRequest extends pulumi.CustomResource { /** * Get an existing ApiaccesscontrolPrivilegedApiRequest 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?: ApiaccesscontrolPrivilegedApiRequestState, opts?: pulumi.CustomResourceOptions): ApiaccesscontrolPrivilegedApiRequest; /** * Returns true if the given object is an instance of ApiaccesscontrolPrivilegedApiRequest. 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 ApiaccesscontrolPrivilegedApiRequest; /** * Contains the approver details who have approved the privilegedApi Request during the initial request. */ readonly approverDetails: pulumi.Output; /** * The comment entered by the operator while closing the request. */ readonly closureComment: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId: pulumi.Output; /** * 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; }>; /** * Name of the privilegedApi control. The name must be unique. */ readonly displayName: pulumi.Output; /** * Duration in hours for which access is sought on the target resource. */ readonly durationInHrs: pulumi.Output; /** * entityType of resource for which the AccessRequest is applicable */ readonly entityType: pulumi.Output; /** * 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; }>; /** * more in detail about the lifeCycleState. */ readonly lifecycleDetails: pulumi.Output; /** * The OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Privileged Api Request. */ readonly notificationTopicId: pulumi.Output; /** * Number of approvers required to approve an privilegedApi request. */ readonly numberOfApproversRequired: pulumi.Output; /** * The OCID of the privilegedApi control governing the target resource. */ readonly privilegedApiControlId: pulumi.Output; /** * Name of the privilegedApi control governing the target resource. */ readonly privilegedApiControlName: pulumi.Output; /** * List of api names, attributes for which approval is sought by the user. */ readonly privilegedOperationLists: pulumi.Output; /** * Reason in detail for which the operator is requesting access on the target resource. */ readonly reasonDetail: pulumi.Output; /** * Summary comment by the operator creating the access request. */ readonly reasonSummary: pulumi.Output; /** * This is an automatic identifier generated by the system which is easier for human comprehension. */ readonly requestId: pulumi.Output; /** * List of Users who has created this privilegedApiRequest. */ readonly requestedBies: pulumi.Output; /** * The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource. */ readonly resourceId: pulumi.Output; /** * resourceName for which the PrivilegedApiRequest is applicable */ readonly resourceName: pulumi.Output; /** * resourceType for which the AccessRequest is applicable */ readonly resourceType: pulumi.Output; /** * Priority assigned to the access request by the operator */ readonly severity: pulumi.Output; /** * The current state of the PrivilegedApiRequest. */ 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; /** * The subresource names requested for approval. */ readonly subResourceNameLists: 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; }>; /** * A list of ticket numbers related to this Privileged Api Access Request, e.g. Service Request (SR) number and JIRA ticket number. */ readonly ticketNumbers: pulumi.Output; /** * Time when the privilegedApi request was created in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format. Example: '2020-05-22T21:10:29.600Z' */ readonly timeCreated: pulumi.Output; /** * Time in future when the user for the privilegedApi request needs to be created in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format. Example: '2020-05-22T21:10:29.600Z' * * ** 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 timeRequestedForFutureAccess: pulumi.Output; /** * Time when the privilegedApi request was last modified in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format. Example: '2020-05-22T21:10:29.600Z' */ readonly timeUpdated: pulumi.Output; /** * Create a ApiaccesscontrolPrivilegedApiRequest 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: ApiaccesscontrolPrivilegedApiRequestArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ApiaccesscontrolPrivilegedApiRequest resources. */ export interface ApiaccesscontrolPrivilegedApiRequestState { /** * Contains the approver details who have approved the privilegedApi Request during the initial request. */ approverDetails?: pulumi.Input[] | undefined>; /** * The comment entered by the operator while closing the request. */ closureComment?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: pulumi.Input; /** * 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>; /** * Name of the privilegedApi control. The name must be unique. */ displayName?: pulumi.Input; /** * Duration in hours for which access is sought on the target resource. */ durationInHrs?: pulumi.Input; /** * entityType of resource for which the AccessRequest is applicable */ entityType?: pulumi.Input; /** * 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>; /** * more in detail about the lifeCycleState. */ lifecycleDetails?: pulumi.Input; /** * The OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Privileged Api Request. */ notificationTopicId?: pulumi.Input; /** * Number of approvers required to approve an privilegedApi request. */ numberOfApproversRequired?: pulumi.Input; /** * The OCID of the privilegedApi control governing the target resource. */ privilegedApiControlId?: pulumi.Input; /** * Name of the privilegedApi control governing the target resource. */ privilegedApiControlName?: pulumi.Input; /** * List of api names, attributes for which approval is sought by the user. */ privilegedOperationLists?: pulumi.Input[] | undefined>; /** * Reason in detail for which the operator is requesting access on the target resource. */ reasonDetail?: pulumi.Input; /** * Summary comment by the operator creating the access request. */ reasonSummary?: pulumi.Input; /** * This is an automatic identifier generated by the system which is easier for human comprehension. */ requestId?: pulumi.Input; /** * List of Users who has created this privilegedApiRequest. */ requestedBies?: pulumi.Input[] | undefined>; /** * The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource. */ resourceId?: pulumi.Input; /** * resourceName for which the PrivilegedApiRequest is applicable */ resourceName?: pulumi.Input; /** * resourceType for which the AccessRequest is applicable */ resourceType?: pulumi.Input; /** * Priority assigned to the access request by the operator */ severity?: pulumi.Input; /** * The current state of the PrivilegedApiRequest. */ 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; /** * The subresource names requested for approval. */ subResourceNameLists?: pulumi.Input[] | undefined>; /** * 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>; /** * A list of ticket numbers related to this Privileged Api Access Request, e.g. Service Request (SR) number and JIRA ticket number. */ ticketNumbers?: pulumi.Input[] | undefined>; /** * Time when the privilegedApi request was created in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format. Example: '2020-05-22T21:10:29.600Z' */ timeCreated?: pulumi.Input; /** * Time in future when the user for the privilegedApi request needs to be created in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format. Example: '2020-05-22T21:10:29.600Z' * * ** 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 */ timeRequestedForFutureAccess?: pulumi.Input; /** * Time when the privilegedApi request was last modified in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format. Example: '2020-05-22T21:10:29.600Z' */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a ApiaccesscontrolPrivilegedApiRequest resource. */ export interface ApiaccesscontrolPrivilegedApiRequestArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId?: pulumi.Input; /** * 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>; /** * Duration in hours for which access is sought on the target resource. */ durationInHrs?: pulumi.Input; /** * 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 OCID of the Oracle Cloud Infrastructure Notification topic to publish messages related to this Privileged Api Request. */ notificationTopicId?: pulumi.Input; /** * List of api names, attributes for which approval is sought by the user. */ privilegedOperationLists: pulumi.Input[]>; /** * Reason in detail for which the operator is requesting access on the target resource. */ reasonDetail?: pulumi.Input; /** * Summary comment by the operator creating the access request. */ reasonSummary: pulumi.Input; /** * The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource. */ resourceId: pulumi.Input; /** * Priority assigned to the access request by the operator */ severity?: pulumi.Input; /** * The subresource names requested for approval. */ subResourceNameLists?: pulumi.Input[] | undefined>; /** * A list of ticket numbers related to this Privileged Api Access Request, e.g. Service Request (SR) number and JIRA ticket number. */ ticketNumbers?: pulumi.Input[] | undefined>; /** * Time in future when the user for the privilegedApi request needs to be created in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format. Example: '2020-05-22T21:10:29.600Z' * * ** 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 */ timeRequestedForFutureAccess?: pulumi.Input; } //# sourceMappingURL=apiaccesscontrolPrivilegedApiRequest.d.ts.map