import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the Operator Control Assignment resource in Oracle Cloud Infrastructure Operator Access Control service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/latest/OperatorControlAssignment * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/operator_access_control * * Creates an Operator Control Assignment resource. In effect, this brings the target resource under the governance of the Operator Control for specified time duration. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testOperatorControlAssignment = new oci.operatoraccesscontrol.OperatorControlAssignment("test_operator_control_assignment", { * compartmentId: compartmentId, * isEnforcedAlways: operatorControlAssignmentIsEnforcedAlways === "true", * operatorControlId: testOperatorControl.id, * resourceCompartmentId: testCompartment.id, * resourceId: testResource.id, * resourceName: operatorControlAssignmentResourceName, * resourceType: operatorControlAssignmentResourceType, * comment: operatorControlAssignmentComment, * definedTags: operatorControlAssignmentDefinedTags, * freeformTags: operatorControlAssignmentFreeformTags, * isAutoApproveDuringMaintenance: operatorControlAssignmentIsAutoApproveDuringMaintenance === "true", * isHypervisorLogForwarded: operatorControlAssignmentIsHypervisorLogForwarded === "true", * isLogForwarded: operatorControlAssignmentIsLogForwarded === "true", * remoteSyslogServerAddress: operatorControlAssignmentRemoteSyslogServerAddress, * remoteSyslogServerCaCert: operatorControlAssignmentRemoteSyslogServerCaCert, * remoteSyslogServerPort: Number(operatorControlAssignmentRemoteSyslogServerPort), * timeAssignmentFrom: operatorControlAssignmentTimeAssignmentFrom, * timeAssignmentTo: operatorControlAssignmentTimeAssignmentTo, * }); * ``` * * ## Import * * OperatorControlAssignments can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:OperatorAccessControl/operatorControlAssignment:OperatorControlAssignment test_operator_control_assignment "id" * ``` */ export declare class OperatorControlAssignment extends pulumi.CustomResource { /** * Get an existing OperatorControlAssignment 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?: OperatorControlAssignmentState, opts?: pulumi.CustomResourceOptions): OperatorControlAssignment; /** * Returns true if the given object is an instance of OperatorControlAssignment. 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 OperatorControlAssignment; /** * The OCID of the user who created this operator control assignment. */ readonly assignerId: pulumi.Output; /** * (Updatable) Comment about the assignment of the operator control to this target resource. */ readonly comment: pulumi.Output; /** * (Updatable) The OCID of the compartment that contains the operator control assignment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * description containing reason for releasing of OperatorControl. */ readonly detachmentDescription: pulumi.Output; /** * The code identifying the error occurred during Assignment operation. */ readonly errorCode: pulumi.Output; /** * The message describing the error occurred during Assignment operation. */ readonly errorMessage: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The boolean if true would autoApprove during maintenance. */ readonly isAutoApproveDuringMaintenance: pulumi.Output; /** * Whether the assignment is a default assignment. */ readonly isDefaultAssignment: pulumi.Output; /** * (Updatable) If set, then the target resource is always governed by the operator control. */ readonly isEnforcedAlways: pulumi.Output; /** * (Updatable) If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server */ readonly isHypervisorLogForwarded: pulumi.Output; /** * (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server */ readonly isLogForwarded: pulumi.Output; /** * More in detail about the lifeCycleState. */ readonly lifecycleDetails: pulumi.Output; /** * Name of the operator control name associated. */ readonly opControlName: pulumi.Output; /** * The OCID of the operator control that is being assigned to a target resource. */ readonly operatorControlId: pulumi.Output; /** * (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format. */ readonly remoteSyslogServerAddress: pulumi.Output; /** * (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate. */ readonly remoteSyslogServerCaCert: pulumi.Output; /** * (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported. */ readonly remoteSyslogServerPort: pulumi.Output; /** * The OCID of the compartment that contains the target resource. */ readonly resourceCompartmentId: pulumi.Output; /** * The OCID of the target resource being brought under the governance of the operator control. */ readonly resourceId: pulumi.Output; /** * Name of the target resource. */ readonly resourceName: pulumi.Output; /** * Type of the target resource. */ readonly resourceType: pulumi.Output; /** * The current lifcycle state of the OperatorControl. */ readonly state: pulumi.Output; /** * (Updatable) The time at which the target resource will be brought under the governance of the operator control in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: '2020-05-22T21:10:29.600Z' */ readonly timeAssignmentFrom: pulumi.Output; /** * (Updatable) The time at which the target resource will leave the governance of the operator control in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format.Example: '2020-05-22T21:10:29.600Z' */ readonly timeAssignmentTo: pulumi.Output; /** * Time when the operator control assignment is created in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: '2020-05-22T21:10:29.600Z' */ readonly timeOfAssignment: pulumi.Output; /** * Time on which the operator control assignment was deleted in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format.Example: '2020-05-22T21:10:29.600Z' */ readonly timeOfDeletion: pulumi.Output; /** * User id who released the operatorControl. */ readonly unassignerId: pulumi.Output; /** * (Updatable) An optional property when incremented triggers Validate Assignment. Could be set to any integer value. * * ** 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 validateAssignmentTrigger: pulumi.Output; /** * Create a OperatorControlAssignment 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: OperatorControlAssignmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OperatorControlAssignment resources. */ export interface OperatorControlAssignmentState { /** * The OCID of the user who created this operator control assignment. */ assignerId?: pulumi.Input; /** * (Updatable) Comment about the assignment of the operator control to this target resource. */ comment?: pulumi.Input; /** * (Updatable) The OCID of the compartment that contains the operator control assignment. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * description containing reason for releasing of OperatorControl. */ detachmentDescription?: pulumi.Input; /** * The code identifying the error occurred during Assignment operation. */ errorCode?: pulumi.Input; /** * The message describing the error occurred during Assignment operation. */ errorMessage?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The boolean if true would autoApprove during maintenance. */ isAutoApproveDuringMaintenance?: pulumi.Input; /** * Whether the assignment is a default assignment. */ isDefaultAssignment?: pulumi.Input; /** * (Updatable) If set, then the target resource is always governed by the operator control. */ isEnforcedAlways?: pulumi.Input; /** * (Updatable) If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server */ isHypervisorLogForwarded?: pulumi.Input; /** * (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server */ isLogForwarded?: pulumi.Input; /** * More in detail about the lifeCycleState. */ lifecycleDetails?: pulumi.Input; /** * Name of the operator control name associated. */ opControlName?: pulumi.Input; /** * The OCID of the operator control that is being assigned to a target resource. */ operatorControlId?: pulumi.Input; /** * (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format. */ remoteSyslogServerAddress?: pulumi.Input; /** * (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate. */ remoteSyslogServerCaCert?: pulumi.Input; /** * (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported. */ remoteSyslogServerPort?: pulumi.Input; /** * The OCID of the compartment that contains the target resource. */ resourceCompartmentId?: pulumi.Input; /** * The OCID of the target resource being brought under the governance of the operator control. */ resourceId?: pulumi.Input; /** * Name of the target resource. */ resourceName?: pulumi.Input; /** * Type of the target resource. */ resourceType?: pulumi.Input; /** * The current lifcycle state of the OperatorControl. */ state?: pulumi.Input; /** * (Updatable) The time at which the target resource will be brought under the governance of the operator control in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: '2020-05-22T21:10:29.600Z' */ timeAssignmentFrom?: pulumi.Input; /** * (Updatable) The time at which the target resource will leave the governance of the operator control in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format.Example: '2020-05-22T21:10:29.600Z' */ timeAssignmentTo?: pulumi.Input; /** * Time when the operator control assignment is created in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: '2020-05-22T21:10:29.600Z' */ timeOfAssignment?: pulumi.Input; /** * Time on which the operator control assignment was deleted in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format.Example: '2020-05-22T21:10:29.600Z' */ timeOfDeletion?: pulumi.Input; /** * User id who released the operatorControl. */ unassignerId?: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Validate Assignment. Could be set to any integer value. * * ** 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 */ validateAssignmentTrigger?: pulumi.Input; } /** * The set of arguments for constructing a OperatorControlAssignment resource. */ export interface OperatorControlAssignmentArgs { /** * (Updatable) Comment about the assignment of the operator control to this target resource. */ comment?: pulumi.Input; /** * (Updatable) The OCID of the compartment that contains the operator control assignment. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The boolean if true would autoApprove during maintenance. */ isAutoApproveDuringMaintenance?: pulumi.Input; /** * (Updatable) If set, then the target resource is always governed by the operator control. */ isEnforcedAlways: pulumi.Input; /** * (Updatable) If set, then the hypervisor audit logs will be forwarded to the relevant remote syslog server */ isHypervisorLogForwarded?: pulumi.Input; /** * (Updatable) If set, then the audit logs will be forwarded to the relevant remote logging server */ isLogForwarded?: pulumi.Input; /** * The OCID of the operator control that is being assigned to a target resource. */ operatorControlId: pulumi.Input; /** * (Updatable) The address of the remote syslog server where the audit logs will be forwarded to. Address in host or IP format. */ remoteSyslogServerAddress?: pulumi.Input; /** * (Updatable) The CA certificate of the remote syslog server. Identity of the remote syslog server will be asserted based on this certificate. */ remoteSyslogServerCaCert?: pulumi.Input; /** * (Updatable) The listening port of the remote syslog server. The port range is 0 - 65535. Only TCP supported. */ remoteSyslogServerPort?: pulumi.Input; /** * The OCID of the compartment that contains the target resource. */ resourceCompartmentId: pulumi.Input; /** * The OCID of the target resource being brought under the governance of the operator control. */ resourceId: pulumi.Input; /** * Name of the target resource. */ resourceName: pulumi.Input; /** * Type of the target resource. */ resourceType: pulumi.Input; /** * (Updatable) The time at which the target resource will be brought under the governance of the operator control in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: '2020-05-22T21:10:29.600Z' */ timeAssignmentFrom?: pulumi.Input; /** * (Updatable) The time at which the target resource will leave the governance of the operator control in [RFC 3339](https://tools.ietf.org/html/rfc3339)timestamp format.Example: '2020-05-22T21:10:29.600Z' */ timeAssignmentTo?: pulumi.Input; /** * (Updatable) An optional property when incremented triggers Validate Assignment. Could be set to any integer value. * * ** 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 */ validateAssignmentTrigger?: pulumi.Input; } //# sourceMappingURL=operatorControlAssignment.d.ts.map