1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. iam
  6. Accesskey
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    Access control (Identity and Access Management, abbreviated as IAM) is a permission management system provided by Volcano Engine for customers to control access to cloud resources by different identities.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const accesskeyDemo = new volcenginecc.iam.Accesskey("AccesskeyDemo", {userName: "s2222"});
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    accesskey_demo = volcenginecc.iam.Accesskey("AccesskeyDemo", user_name="s2222")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.NewAccesskey(ctx, "AccesskeyDemo", &iam.AccesskeyArgs{
    			UserName: pulumi.String("s2222"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var accesskeyDemo = new Volcenginecc.Iam.Accesskey("AccesskeyDemo", new()
        {
            UserName = "s2222",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.iam.Accesskey;
    import com.volcengine.volcenginecc.iam.AccesskeyArgs;
    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 accesskeyDemo = new Accesskey("accesskeyDemo", AccesskeyArgs.builder()
                .userName("s2222")
                .build());
    
        }
    }
    
    resources:
      accesskeyDemo:
        type: volcenginecc:iam:Accesskey
        name: AccesskeyDemo
        properties:
          userName: s2222
    

    Create Accesskey Resource

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

    Constructor syntax

    new Accesskey(name: string, args?: AccesskeyArgs, opts?: CustomResourceOptions);
    @overload
    def Accesskey(resource_name: str,
                  args: Optional[AccesskeyArgs] = None,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Accesskey(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  last_login_date: Optional[str] = None,
                  status: Optional[str] = None,
                  user_name: Optional[str] = None)
    func NewAccesskey(ctx *Context, name string, args *AccesskeyArgs, opts ...ResourceOption) (*Accesskey, error)
    public Accesskey(string name, AccesskeyArgs? args = null, CustomResourceOptions? opts = null)
    public Accesskey(String name, AccesskeyArgs args)
    public Accesskey(String name, AccesskeyArgs args, CustomResourceOptions options)
    
    type: volcenginecc:iam:Accesskey
    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 AccesskeyArgs
    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 AccesskeyArgs
    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 AccesskeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccesskeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccesskeyArgs
    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 accesskeyResource = new Volcenginecc.Iam.Accesskey("accesskeyResource", new()
    {
        LastLoginDate = "string",
        Status = "string",
        UserName = "string",
    });
    
    example, err := iam.NewAccesskey(ctx, "accesskeyResource", &iam.AccesskeyArgs{
    	LastLoginDate: pulumi.String("string"),
    	Status:        pulumi.String("string"),
    	UserName:      pulumi.String("string"),
    })
    
    var accesskeyResource = new Accesskey("accesskeyResource", AccesskeyArgs.builder()
        .lastLoginDate("string")
        .status("string")
        .userName("string")
        .build());
    
    accesskey_resource = volcenginecc.iam.Accesskey("accesskeyResource",
        last_login_date="string",
        status="string",
        user_name="string")
    
    const accesskeyResource = new volcenginecc.iam.Accesskey("accesskeyResource", {
        lastLoginDate: "string",
        status: "string",
        userName: "string",
    });
    
    type: volcenginecc:iam:Accesskey
    properties:
        lastLoginDate: string
        status: string
        userName: string
    

    Accesskey Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Accesskey resource accepts the following input properties:

    LastLoginDate string
    Last login time.
    Status string
    Key status. active means enabled, inactive means disabled.
    UserName string
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    LastLoginDate string
    Last login time.
    Status string
    Key status. active means enabled, inactive means disabled.
    UserName string
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    lastLoginDate String
    Last login time.
    status String
    Key status. active means enabled, inactive means disabled.
    userName String
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    lastLoginDate string
    Last login time.
    status string
    Key status. active means enabled, inactive means disabled.
    userName string
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    last_login_date str
    Last login time.
    status str
    Key status. active means enabled, inactive means disabled.
    user_name str
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    lastLoginDate String
    Last login time.
    status String
    Key status. active means enabled, inactive means disabled.
    userName String
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.

    Outputs

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

    AccessKeyId string
    Access Key Id.
    CreatedTime string
    Key creation time. The time format is ISO8601.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The last region accessed by the API key.
    RequestTime string
    The last time the API key was used.
    SecretAccessKey string
    Secret Access Key.
    Service string
    The English abbreviation of the last service accessed by the API key.
    UpdatedTime string
    Key update time. The time format is ISO8601.
    AccessKeyId string
    Access Key Id.
    CreatedTime string
    Key creation time. The time format is ISO8601.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The last region accessed by the API key.
    RequestTime string
    The last time the API key was used.
    SecretAccessKey string
    Secret Access Key.
    Service string
    The English abbreviation of the last service accessed by the API key.
    UpdatedTime string
    Key update time. The time format is ISO8601.
    accessKeyId String
    Access Key Id.
    createdTime String
    Key creation time. The time format is ISO8601.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The last region accessed by the API key.
    requestTime String
    The last time the API key was used.
    secretAccessKey String
    Secret Access Key.
    service String
    The English abbreviation of the last service accessed by the API key.
    updatedTime String
    Key update time. The time format is ISO8601.
    accessKeyId string
    Access Key Id.
    createdTime string
    Key creation time. The time format is ISO8601.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    The last region accessed by the API key.
    requestTime string
    The last time the API key was used.
    secretAccessKey string
    Secret Access Key.
    service string
    The English abbreviation of the last service accessed by the API key.
    updatedTime string
    Key update time. The time format is ISO8601.
    access_key_id str
    Access Key Id.
    created_time str
    Key creation time. The time format is ISO8601.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    The last region accessed by the API key.
    request_time str
    The last time the API key was used.
    secret_access_key str
    Secret Access Key.
    service str
    The English abbreviation of the last service accessed by the API key.
    updated_time str
    Key update time. The time format is ISO8601.
    accessKeyId String
    Access Key Id.
    createdTime String
    Key creation time. The time format is ISO8601.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The last region accessed by the API key.
    requestTime String
    The last time the API key was used.
    secretAccessKey String
    Secret Access Key.
    service String
    The English abbreviation of the last service accessed by the API key.
    updatedTime String
    Key update time. The time format is ISO8601.

    Look up Existing Accesskey Resource

    Get an existing Accesskey 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?: AccesskeyState, opts?: CustomResourceOptions): Accesskey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key_id: Optional[str] = None,
            created_time: Optional[str] = None,
            last_login_date: Optional[str] = None,
            region: Optional[str] = None,
            request_time: Optional[str] = None,
            secret_access_key: Optional[str] = None,
            service: Optional[str] = None,
            status: Optional[str] = None,
            updated_time: Optional[str] = None,
            user_name: Optional[str] = None) -> Accesskey
    func GetAccesskey(ctx *Context, name string, id IDInput, state *AccesskeyState, opts ...ResourceOption) (*Accesskey, error)
    public static Accesskey Get(string name, Input<string> id, AccesskeyState? state, CustomResourceOptions? opts = null)
    public static Accesskey get(String name, Output<String> id, AccesskeyState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:iam:Accesskey    get:      id: ${id}
    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:
    AccessKeyId string
    Access Key Id.
    CreatedTime string
    Key creation time. The time format is ISO8601.
    LastLoginDate string
    Last login time.
    Region string
    The last region accessed by the API key.
    RequestTime string
    The last time the API key was used.
    SecretAccessKey string
    Secret Access Key.
    Service string
    The English abbreviation of the last service accessed by the API key.
    Status string
    Key status. active means enabled, inactive means disabled.
    UpdatedTime string
    Key update time. The time format is ISO8601.
    UserName string
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    AccessKeyId string
    Access Key Id.
    CreatedTime string
    Key creation time. The time format is ISO8601.
    LastLoginDate string
    Last login time.
    Region string
    The last region accessed by the API key.
    RequestTime string
    The last time the API key was used.
    SecretAccessKey string
    Secret Access Key.
    Service string
    The English abbreviation of the last service accessed by the API key.
    Status string
    Key status. active means enabled, inactive means disabled.
    UpdatedTime string
    Key update time. The time format is ISO8601.
    UserName string
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    accessKeyId String
    Access Key Id.
    createdTime String
    Key creation time. The time format is ISO8601.
    lastLoginDate String
    Last login time.
    region String
    The last region accessed by the API key.
    requestTime String
    The last time the API key was used.
    secretAccessKey String
    Secret Access Key.
    service String
    The English abbreviation of the last service accessed by the API key.
    status String
    Key status. active means enabled, inactive means disabled.
    updatedTime String
    Key update time. The time format is ISO8601.
    userName String
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    accessKeyId string
    Access Key Id.
    createdTime string
    Key creation time. The time format is ISO8601.
    lastLoginDate string
    Last login time.
    region string
    The last region accessed by the API key.
    requestTime string
    The last time the API key was used.
    secretAccessKey string
    Secret Access Key.
    service string
    The English abbreviation of the last service accessed by the API key.
    status string
    Key status. active means enabled, inactive means disabled.
    updatedTime string
    Key update time. The time format is ISO8601.
    userName string
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    access_key_id str
    Access Key Id.
    created_time str
    Key creation time. The time format is ISO8601.
    last_login_date str
    Last login time.
    region str
    The last region accessed by the API key.
    request_time str
    The last time the API key was used.
    secret_access_key str
    Secret Access Key.
    service str
    The English abbreviation of the last service accessed by the API key.
    status str
    Key status. active means enabled, inactive means disabled.
    updated_time str
    Key update time. The time format is ISO8601.
    user_name str
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.
    accessKeyId String
    Access Key Id.
    createdTime String
    Key creation time. The time format is ISO8601.
    lastLoginDate String
    Last login time.
    region String
    The last region accessed by the API key.
    requestTime String
    The last time the API key was used.
    secretAccessKey String
    Secret Access Key.
    service String
    The English abbreviation of the last service accessed by the API key.
    status String
    Key status. active means enabled, inactive means disabled.
    updatedTime String
    Key update time. The time format is ISO8601.
    userName String
    User name. Used to create a key for the specified IAM user. If no user name is specified, a key is created for the current request identity (that is, if the primary account makes the request, the key is created for the primary account itself; if an IAM user makes the request, the key is created for the IAM user. Note: Roles do not support creating keys for themselves). If the IAM user has the AccessKeySelfManageAccess permission and needs to create a key for themselves, they must include their own UserName in the request.

    Import

    $ pulumi import volcenginecc:iam/accesskey:Accesskey example "access_key_id"
    

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

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.