1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. UserCapabilitiesManagement
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

oci.Identity.UserCapabilitiesManagement

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

    This resource provides the User Capabilities Management resource in Oracle Cloud Infrastructure Identity service.

    Manages the capabilities of the specified user.

    Important: Deleting the User Capabilities Management leaves the User resource in its existing state (rather than returning to its defaults)

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testUserCapabilitiesManagement = new oci.identity.UserCapabilitiesManagement("test_user_capabilities_management", {
        userId: user1.id,
        canUseApiKeys: true,
        canUseAuthTokens: true,
        canUseConsolePassword: false,
        canUseCustomerSecretKeys: true,
        canUseSmtpCredentials: true,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_user_capabilities_management = oci.identity.UserCapabilitiesManagement("test_user_capabilities_management",
        user_id=user1["id"],
        can_use_api_keys=True,
        can_use_auth_tokens=True,
        can_use_console_password=False,
        can_use_customer_secret_keys=True,
        can_use_smtp_credentials=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Identity"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Identity.NewUserCapabilitiesManagement(ctx, "test_user_capabilities_management", &Identity.UserCapabilitiesManagementArgs{
    			UserId:                   pulumi.Any(user1.Id),
    			CanUseApiKeys:            pulumi.Bool(true),
    			CanUseAuthTokens:         pulumi.Bool(true),
    			CanUseConsolePassword:    pulumi.Bool(false),
    			CanUseCustomerSecretKeys: pulumi.Bool(true),
    			CanUseSmtpCredentials:    pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testUserCapabilitiesManagement = new Oci.Identity.UserCapabilitiesManagement("test_user_capabilities_management", new()
        {
            UserId = user1.Id,
            CanUseApiKeys = true,
            CanUseAuthTokens = true,
            CanUseConsolePassword = false,
            CanUseCustomerSecretKeys = true,
            CanUseSmtpCredentials = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Identity.UserCapabilitiesManagement;
    import com.pulumi.oci.Identity.UserCapabilitiesManagementArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testUserCapabilitiesManagement = new UserCapabilitiesManagement("testUserCapabilitiesManagement", UserCapabilitiesManagementArgs.builder()
                .userId(user1.id())
                .canUseApiKeys("true")
                .canUseAuthTokens("true")
                .canUseConsolePassword("false")
                .canUseCustomerSecretKeys("true")
                .canUseSmtpCredentials("true")
                .build());
    
        }
    }
    
    resources:
      testUserCapabilitiesManagement:
        type: oci:Identity:UserCapabilitiesManagement
        name: test_user_capabilities_management
        properties:
          userId: ${user1.id}
          canUseApiKeys: 'true'
          canUseAuthTokens: 'true'
          canUseConsolePassword: 'false'
          canUseCustomerSecretKeys: 'true'
          canUseSmtpCredentials: 'true'
    

    Create UserCapabilitiesManagement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UserCapabilitiesManagement(name: string, args: UserCapabilitiesManagementArgs, opts?: CustomResourceOptions);
    @overload
    def UserCapabilitiesManagement(resource_name: str,
                                   args: UserCapabilitiesManagementArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserCapabilitiesManagement(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   user_id: Optional[str] = None,
                                   can_use_api_keys: Optional[bool] = None,
                                   can_use_auth_tokens: Optional[bool] = None,
                                   can_use_console_password: Optional[bool] = None,
                                   can_use_customer_secret_keys: Optional[bool] = None,
                                   can_use_smtp_credentials: Optional[bool] = None)
    func NewUserCapabilitiesManagement(ctx *Context, name string, args UserCapabilitiesManagementArgs, opts ...ResourceOption) (*UserCapabilitiesManagement, error)
    public UserCapabilitiesManagement(string name, UserCapabilitiesManagementArgs args, CustomResourceOptions? opts = null)
    public UserCapabilitiesManagement(String name, UserCapabilitiesManagementArgs args)
    public UserCapabilitiesManagement(String name, UserCapabilitiesManagementArgs args, CustomResourceOptions options)
    
    type: oci:Identity:UserCapabilitiesManagement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UserCapabilitiesManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserCapabilitiesManagementArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserCapabilitiesManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserCapabilitiesManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserCapabilitiesManagementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var userCapabilitiesManagementResource = new Oci.Identity.UserCapabilitiesManagement("userCapabilitiesManagementResource", new()
    {
        UserId = "string",
        CanUseApiKeys = false,
        CanUseAuthTokens = false,
        CanUseConsolePassword = false,
        CanUseCustomerSecretKeys = false,
        CanUseSmtpCredentials = false,
    });
    
    example, err := Identity.NewUserCapabilitiesManagement(ctx, "userCapabilitiesManagementResource", &Identity.UserCapabilitiesManagementArgs{
    	UserId:                   pulumi.String("string"),
    	CanUseApiKeys:            pulumi.Bool(false),
    	CanUseAuthTokens:         pulumi.Bool(false),
    	CanUseConsolePassword:    pulumi.Bool(false),
    	CanUseCustomerSecretKeys: pulumi.Bool(false),
    	CanUseSmtpCredentials:    pulumi.Bool(false),
    })
    
    var userCapabilitiesManagementResource = new UserCapabilitiesManagement("userCapabilitiesManagementResource", UserCapabilitiesManagementArgs.builder()
        .userId("string")
        .canUseApiKeys(false)
        .canUseAuthTokens(false)
        .canUseConsolePassword(false)
        .canUseCustomerSecretKeys(false)
        .canUseSmtpCredentials(false)
        .build());
    
    user_capabilities_management_resource = oci.identity.UserCapabilitiesManagement("userCapabilitiesManagementResource",
        user_id="string",
        can_use_api_keys=False,
        can_use_auth_tokens=False,
        can_use_console_password=False,
        can_use_customer_secret_keys=False,
        can_use_smtp_credentials=False)
    
    const userCapabilitiesManagementResource = new oci.identity.UserCapabilitiesManagement("userCapabilitiesManagementResource", {
        userId: "string",
        canUseApiKeys: false,
        canUseAuthTokens: false,
        canUseConsolePassword: false,
        canUseCustomerSecretKeys: false,
        canUseSmtpCredentials: false,
    });
    
    type: oci:Identity:UserCapabilitiesManagement
    properties:
        canUseApiKeys: false
        canUseAuthTokens: false
        canUseConsolePassword: false
        canUseCustomerSecretKeys: false
        canUseSmtpCredentials: false
        userId: string
    

    UserCapabilitiesManagement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The UserCapabilitiesManagement resource accepts the following input properties:

    UserId string
    The OCID of the user.
    CanUseApiKeys bool
    (Updatable) Indicates if the user can use API keys.
    CanUseAuthTokens bool
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    CanUseConsolePassword bool
    (Updatable) Indicates if the user can log in to the console.
    CanUseCustomerSecretKeys bool
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    CanUseSmtpCredentials bool

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 string
    The OCID of the user.
    CanUseApiKeys bool
    (Updatable) Indicates if the user can use API keys.
    CanUseAuthTokens bool
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    CanUseConsolePassword bool
    (Updatable) Indicates if the user can log in to the console.
    CanUseCustomerSecretKeys bool
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    CanUseSmtpCredentials bool

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 String
    The OCID of the user.
    canUseApiKeys Boolean
    (Updatable) Indicates if the user can use API keys.
    canUseAuthTokens Boolean
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    canUseConsolePassword Boolean
    (Updatable) Indicates if the user can log in to the console.
    canUseCustomerSecretKeys Boolean
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    canUseSmtpCredentials Boolean

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 string
    The OCID of the user.
    canUseApiKeys boolean
    (Updatable) Indicates if the user can use API keys.
    canUseAuthTokens boolean
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    canUseConsolePassword boolean
    (Updatable) Indicates if the user can log in to the console.
    canUseCustomerSecretKeys boolean
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    canUseSmtpCredentials boolean

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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

    user_id str
    The OCID of the user.
    can_use_api_keys bool
    (Updatable) Indicates if the user can use API keys.
    can_use_auth_tokens bool
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    can_use_console_password bool
    (Updatable) Indicates if the user can log in to the console.
    can_use_customer_secret_keys bool
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    can_use_smtp_credentials bool

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 String
    The OCID of the user.
    canUseApiKeys Boolean
    (Updatable) Indicates if the user can use API keys.
    canUseAuthTokens Boolean
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    canUseConsolePassword Boolean
    (Updatable) Indicates if the user can log in to the console.
    canUseCustomerSecretKeys Boolean
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    canUseSmtpCredentials Boolean

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserCapabilitiesManagement resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing UserCapabilitiesManagement Resource

    Get an existing UserCapabilitiesManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: UserCapabilitiesManagementState, opts?: CustomResourceOptions): UserCapabilitiesManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            can_use_api_keys: Optional[bool] = None,
            can_use_auth_tokens: Optional[bool] = None,
            can_use_console_password: Optional[bool] = None,
            can_use_customer_secret_keys: Optional[bool] = None,
            can_use_smtp_credentials: Optional[bool] = None,
            user_id: Optional[str] = None) -> UserCapabilitiesManagement
    func GetUserCapabilitiesManagement(ctx *Context, name string, id IDInput, state *UserCapabilitiesManagementState, opts ...ResourceOption) (*UserCapabilitiesManagement, error)
    public static UserCapabilitiesManagement Get(string name, Input<string> id, UserCapabilitiesManagementState? state, CustomResourceOptions? opts = null)
    public static UserCapabilitiesManagement get(String name, Output<String> id, UserCapabilitiesManagementState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CanUseApiKeys bool
    (Updatable) Indicates if the user can use API keys.
    CanUseAuthTokens bool
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    CanUseConsolePassword bool
    (Updatable) Indicates if the user can log in to the console.
    CanUseCustomerSecretKeys bool
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    CanUseSmtpCredentials bool

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 string
    The OCID of the user.
    CanUseApiKeys bool
    (Updatable) Indicates if the user can use API keys.
    CanUseAuthTokens bool
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    CanUseConsolePassword bool
    (Updatable) Indicates if the user can log in to the console.
    CanUseCustomerSecretKeys bool
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    CanUseSmtpCredentials bool

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 string
    The OCID of the user.
    canUseApiKeys Boolean
    (Updatable) Indicates if the user can use API keys.
    canUseAuthTokens Boolean
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    canUseConsolePassword Boolean
    (Updatable) Indicates if the user can log in to the console.
    canUseCustomerSecretKeys Boolean
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    canUseSmtpCredentials Boolean

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 String
    The OCID of the user.
    canUseApiKeys boolean
    (Updatable) Indicates if the user can use API keys.
    canUseAuthTokens boolean
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    canUseConsolePassword boolean
    (Updatable) Indicates if the user can log in to the console.
    canUseCustomerSecretKeys boolean
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    canUseSmtpCredentials boolean

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 string
    The OCID of the user.
    can_use_api_keys bool
    (Updatable) Indicates if the user can use API keys.
    can_use_auth_tokens bool
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    can_use_console_password bool
    (Updatable) Indicates if the user can log in to the console.
    can_use_customer_secret_keys bool
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    can_use_smtp_credentials bool

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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

    user_id str
    The OCID of the user.
    canUseApiKeys Boolean
    (Updatable) Indicates if the user can use API keys.
    canUseAuthTokens Boolean
    (Updatable) Indicates if the user can use SWIFT passwords / auth tokens.
    canUseConsolePassword Boolean
    (Updatable) Indicates if the user can log in to the console.
    canUseCustomerSecretKeys Boolean
    (Updatable) Indicates if the user can use SigV4 symmetric keys.
    canUseSmtpCredentials Boolean

    (Updatable) Indicates if the user can use SMTP passwords.

    ** 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 String
    The OCID of the user.

    Import

    Users can be imported using the id, e.g.

    $ pulumi import oci:Identity/userCapabilitiesManagement:UserCapabilitiesManagement test_user_capabilities_management "capabilities/{userId}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi