published on Thursday, Apr 23, 2026 by Volcengine
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:
- Last
Login stringDate - Last login time.
- Status string
- Key status. active means enabled, inactive means disabled.
- User
Name 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 stringDate - Last login time.
- Status string
- Key status. active means enabled, inactive means disabled.
- User
Name 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 StringDate - Last login time.
- status String
- Key status. active means enabled, inactive means disabled.
- user
Name 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 stringDate - Last login time.
- status string
- Key status. active means enabled, inactive means disabled.
- user
Name 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_ strdate - 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.
- last
Login StringDate - Last login time.
- status String
- Key status. active means enabled, inactive means disabled.
- user
Name 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:
- Access
Key stringId - Access Key Id.
- Created
Time 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.
- Request
Time string - The last time the API key was used.
- Secret
Access stringKey - Secret Access Key.
- Service string
- The English abbreviation of the last service accessed by the API key.
- Updated
Time string - Key update time. The time format is ISO8601.
- Access
Key stringId - Access Key Id.
- Created
Time 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.
- Request
Time string - The last time the API key was used.
- Secret
Access stringKey - Secret Access Key.
- Service string
- The English abbreviation of the last service accessed by the API key.
- Updated
Time string - Key update time. The time format is ISO8601.
- access
Key StringId - Access Key Id.
- created
Time 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.
- request
Time String - The last time the API key was used.
- secret
Access StringKey - Secret Access Key.
- service String
- The English abbreviation of the last service accessed by the API key.
- updated
Time String - Key update time. The time format is ISO8601.
- access
Key stringId - Access Key Id.
- created
Time 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.
- request
Time string - The last time the API key was used.
- secret
Access stringKey - Secret Access Key.
- service string
- The English abbreviation of the last service accessed by the API key.
- updated
Time string - Key update time. The time format is ISO8601.
- access_
key_ strid - 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_ strkey - 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.
- access
Key StringId - Access Key Id.
- created
Time 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.
- request
Time String - The last time the API key was used.
- secret
Access StringKey - Secret Access Key.
- service String
- The English abbreviation of the last service accessed by the API key.
- updated
Time 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) -> Accesskeyfunc 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.
- Access
Key stringId - Access Key Id.
- Created
Time string - Key creation time. The time format is ISO8601.
- Last
Login stringDate - Last login time.
- Region string
- The last region accessed by the API key.
- Request
Time string - The last time the API key was used.
- Secret
Access stringKey - 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.
- Updated
Time string - Key update time. The time format is ISO8601.
- User
Name 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 stringId - Access Key Id.
- Created
Time string - Key creation time. The time format is ISO8601.
- Last
Login stringDate - Last login time.
- Region string
- The last region accessed by the API key.
- Request
Time string - The last time the API key was used.
- Secret
Access stringKey - 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.
- Updated
Time string - Key update time. The time format is ISO8601.
- User
Name 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 StringId - Access Key Id.
- created
Time String - Key creation time. The time format is ISO8601.
- last
Login StringDate - Last login time.
- region String
- The last region accessed by the API key.
- request
Time String - The last time the API key was used.
- secret
Access StringKey - 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.
- updated
Time String - Key update time. The time format is ISO8601.
- user
Name 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 stringId - Access Key Id.
- created
Time string - Key creation time. The time format is ISO8601.
- last
Login stringDate - Last login time.
- region string
- The last region accessed by the API key.
- request
Time string - The last time the API key was used.
- secret
Access stringKey - 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.
- updated
Time string - Key update time. The time format is ISO8601.
- user
Name 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_ strid - Access Key Id.
- created_
time str - Key creation time. The time format is ISO8601.
- last_
login_ strdate - 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_ strkey - 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.
- access
Key StringId - Access Key Id.
- created
Time String - Key creation time. The time format is ISO8601.
- last
Login StringDate - Last login time.
- region String
- The last region accessed by the API key.
- request
Time String - The last time the API key was used.
- secret
Access StringKey - 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.
- updated
Time String - Key update time. The time format is ISO8601.
- user
Name 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
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
