import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the User Group Membership resource in Oracle Cloud Infrastructure Identity service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/identity/latest/UserGroupMembership * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/identity * * Adds the specified user to the specified group and returns a `UserGroupMembership` object with its own OCID. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testUserGroupMembership = new oci.identity.UserGroupMembership("test_user_group_membership", { * groupId: testGroup.id, * userId: testUser.id, * }); * ``` * * ## Import * * UserGroupMemberships can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Identity/userGroupMembership:UserGroupMembership test_user_group_membership "id" * ``` */ export declare class UserGroupMembership extends pulumi.CustomResource { /** * Get an existing UserGroupMembership 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?: UserGroupMembershipState, opts?: pulumi.CustomResourceOptions): UserGroupMembership; /** * Returns true if the given object is an instance of UserGroupMembership. 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 UserGroupMembership; /** * The OCID of the tenancy containing the user, group, and membership object. */ readonly compartmentId: pulumi.Output; /** * The OCID of the group. */ readonly groupId: pulumi.Output; /** * The detailed status of INACTIVE lifecycleState. */ readonly inactiveState: pulumi.Output; /** * The membership's current state. */ readonly state: pulumi.Output; /** * Date and time the membership was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * The OCID of the user. * * ** 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 userId: pulumi.Output; /** * Create a UserGroupMembership 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: UserGroupMembershipArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UserGroupMembership resources. */ export interface UserGroupMembershipState { /** * The OCID of the tenancy containing the user, group, and membership object. */ compartmentId?: pulumi.Input; /** * The OCID of the group. */ groupId?: pulumi.Input; /** * The detailed status of INACTIVE lifecycleState. */ inactiveState?: pulumi.Input; /** * The membership's current state. */ state?: pulumi.Input; /** * Date and time the membership was created, in the format defined by RFC3339. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * The OCID of the user. * * ** 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 */ userId?: pulumi.Input; } /** * The set of arguments for constructing a UserGroupMembership resource. */ export interface UserGroupMembershipArgs { /** * The OCID of the tenancy containing the user, group, and membership object. */ compartmentId?: pulumi.Input; /** * The OCID of the group. */ groupId: pulumi.Input; /** * The OCID of the user. * * ** 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 */ userId: pulumi.Input; } //# sourceMappingURL=userGroupMembership.d.ts.map