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

    Access control (Identity and Access Management, IAM) is a permission management system provided by Volcano Engine to help customers control access to cloud resources for 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,
                  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()
    {
        Status = "string",
        UserName = "string",
    });
    
    example, err := iam.NewAccesskey(ctx, "accesskeyResource", &iam.AccesskeyArgs{
    	Status:   pulumi.String("string"),
    	UserName: pulumi.String("string"),
    })
    
    var accesskeyResource = new Accesskey("accesskeyResource", AccesskeyArgs.builder()
        .status("string")
        .userName("string")
        .build());
    
    accesskey_resource = volcenginecc.iam.Accesskey("accesskeyResource",
        status="string",
        user_name="string")
    
    const accesskeyResource = new volcenginecc.iam.Accesskey("accesskeyResource", {
        status: "string",
        userName: "string",
    });
    
    type: volcenginecc:iam:Accesskey
    properties:
        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:

    Status string
    Key status. "active" means enabled, "inactive" means disabled
    UserName string
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    Status string
    Key status. "active" means enabled, "inactive" means disabled
    UserName string
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    status String
    Key status. "active" means enabled, "inactive" means disabled
    userName String
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    status string
    Key status. "active" means enabled, "inactive" means disabled
    userName string
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    status str
    Key status. "active" means enabled, "inactive" means disabled
    user_name str
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    status String
    Key status. "active" means enabled, "inactive" means disabled
    userName String
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, 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
    Key ID (Access Key Id)
    CreatedTime string
    Key creation time (ISO8601 format)
    Id string
    The provider-assigned unique ID for this managed resource.
    LastLoginDate string
    Last login time
    Region string
    Last accessed region by the API key
    RequestTime string
    Last usage time of the API key
    SecretAccessKey string
    Secret Access Key
    Service string
    English abbreviation of the last accessed service by the API key
    UpdatedTime string
    Key update time (ISO8601 format)
    AccessKeyId string
    Key ID (Access Key Id)
    CreatedTime string
    Key creation time (ISO8601 format)
    Id string
    The provider-assigned unique ID for this managed resource.
    LastLoginDate string
    Last login time
    Region string
    Last accessed region by the API key
    RequestTime string
    Last usage time of the API key
    SecretAccessKey string
    Secret Access Key
    Service string
    English abbreviation of the last accessed service by the API key
    UpdatedTime string
    Key update time (ISO8601 format)
    accessKeyId String
    Key ID (Access Key Id)
    createdTime String
    Key creation time (ISO8601 format)
    id String
    The provider-assigned unique ID for this managed resource.
    lastLoginDate String
    Last login time
    region String
    Last accessed region by the API key
    requestTime String
    Last usage time of the API key
    secretAccessKey String
    Secret Access Key
    service String
    English abbreviation of the last accessed service by the API key
    updatedTime String
    Key update time (ISO8601 format)
    accessKeyId string
    Key ID (Access Key Id)
    createdTime string
    Key creation time (ISO8601 format)
    id string
    The provider-assigned unique ID for this managed resource.
    lastLoginDate string
    Last login time
    region string
    Last accessed region by the API key
    requestTime string
    Last usage time of the API key
    secretAccessKey string
    Secret Access Key
    service string
    English abbreviation of the last accessed service by the API key
    updatedTime string
    Key update time (ISO8601 format)
    access_key_id str
    Key ID (Access Key Id)
    created_time str
    Key creation time (ISO8601 format)
    id str
    The provider-assigned unique ID for this managed resource.
    last_login_date str
    Last login time
    region str
    Last accessed region by the API key
    request_time str
    Last usage time of the API key
    secret_access_key str
    Secret Access Key
    service str
    English abbreviation of the last accessed service by the API key
    updated_time str
    Key update time (ISO8601 format)
    accessKeyId String
    Key ID (Access Key Id)
    createdTime String
    Key creation time (ISO8601 format)
    id String
    The provider-assigned unique ID for this managed resource.
    lastLoginDate String
    Last login time
    region String
    Last accessed region by the API key
    requestTime String
    Last usage time of the API key
    secretAccessKey String
    Secret Access Key
    service String
    English abbreviation of the last accessed service by the API key
    updatedTime String
    Key update time (ISO8601 format)

    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
    Key ID (Access Key Id)
    CreatedTime string
    Key creation time (ISO8601 format)
    LastLoginDate string
    Last login time
    Region string
    Last accessed region by the API key
    RequestTime string
    Last usage time of the API key
    SecretAccessKey string
    Secret Access Key
    Service string
    English abbreviation of the last accessed service by the API key
    Status string
    Key status. "active" means enabled, "inactive" means disabled
    UpdatedTime string
    Key update time (ISO8601 format)
    UserName string
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    AccessKeyId string
    Key ID (Access Key Id)
    CreatedTime string
    Key creation time (ISO8601 format)
    LastLoginDate string
    Last login time
    Region string
    Last accessed region by the API key
    RequestTime string
    Last usage time of the API key
    SecretAccessKey string
    Secret Access Key
    Service string
    English abbreviation of the last accessed service by the API key
    Status string
    Key status. "active" means enabled, "inactive" means disabled
    UpdatedTime string
    Key update time (ISO8601 format)
    UserName string
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    accessKeyId String
    Key ID (Access Key Id)
    createdTime String
    Key creation time (ISO8601 format)
    lastLoginDate String
    Last login time
    region String
    Last accessed region by the API key
    requestTime String
    Last usage time of the API key
    secretAccessKey String
    Secret Access Key
    service String
    English abbreviation of the last accessed service by the API key
    status String
    Key status. "active" means enabled, "inactive" means disabled
    updatedTime String
    Key update time (ISO8601 format)
    userName String
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    accessKeyId string
    Key ID (Access Key Id)
    createdTime string
    Key creation time (ISO8601 format)
    lastLoginDate string
    Last login time
    region string
    Last accessed region by the API key
    requestTime string
    Last usage time of the API key
    secretAccessKey string
    Secret Access Key
    service string
    English abbreviation of the last accessed service by the API key
    status string
    Key status. "active" means enabled, "inactive" means disabled
    updatedTime string
    Key update time (ISO8601 format)
    userName string
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    access_key_id str
    Key ID (Access Key Id)
    created_time str
    Key creation time (ISO8601 format)
    last_login_date str
    Last login time
    region str
    Last accessed region by the API key
    request_time str
    Last usage time of the API key
    secret_access_key str
    Secret Access Key
    service str
    English abbreviation of the last accessed service by the API key
    status str
    Key status. "active" means enabled, "inactive" means disabled
    updated_time str
    Key update time (ISO8601 format)
    user_name str
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, to create a key for themselves, they must include their own UserName in the request
    accessKeyId String
    Key ID (Access Key Id)
    createdTime String
    Key creation time (ISO8601 format)
    lastLoginDate String
    Last login time
    region String
    Last accessed region by the API key
    requestTime String
    Last usage time of the API key
    secretAccessKey String
    Secret Access Key
    service String
    English abbreviation of the last accessed service by the API key
    status String
    Key status. "active" means enabled, "inactive" means disabled
    updatedTime String
    Key update time (ISO8601 format)
    userName String
    User name. Used to create a key for a specified IAM user. If no user name is specified, the key is created for the current request identity (that is, if the main account requests, the key is created for the main account; if an IAM user requests, the key is created for that IAM user. Note: Roles cannot create keys for themselves). When an IAM user has the AccessKeySelfManageAccess permission, 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.33
    published on Thursday, May 7, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.