published on Thursday, May 7, 2026 by Byteplus
published on Thursday, May 7, 2026 by Byteplus
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 bytepluscc from "@byteplus/pulumi-bytepluscc";
const accesskeyDemo = new bytepluscc.iam.Accesskey("AccesskeyDemo", {userName: "s2222"});
import pulumi
import pulumi_bytepluscc as bytepluscc
accesskey_demo = bytepluscc.iam.Accesskey("AccesskeyDemo", user_name="s2222")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
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 Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var accesskeyDemo = new Bytepluscc.Iam.Accesskey("AccesskeyDemo", new()
{
UserName = "s2222",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.iam.Accesskey;
import com.byteplus.bytepluscc.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: bytepluscc: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: bytepluscc: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 Bytepluscc.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 = bytepluscc.iam.Accesskey("accesskeyResource",
status="string",
user_name="string")
const accesskeyResource = new bytepluscc.iam.Accesskey("accesskeyResource", {
status: "string",
userName: "string",
});
type: bytepluscc: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
- User
Name 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
- User
Name 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
- user
Name 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
- user
Name 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
- user
Name 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:
- Access
Key stringId - Key ID (Access Key Id)
- Created
Time string - Key creation time (ISO8601 format)
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login stringDate - Last login time
- Region string
- Last accessed region by the API key
- Request
Time string - Last usage time of the API key
- Secret
Access stringKey - Secret Access Key
- Service string
- English abbreviation of the last accessed service by the API key
- Updated
Time string - Key update time (ISO8601 format)
- Access
Key stringId - Key ID (Access Key Id)
- Created
Time string - Key creation time (ISO8601 format)
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Login stringDate - Last login time
- Region string
- Last accessed region by the API key
- Request
Time string - Last usage time of the API key
- Secret
Access stringKey - Secret Access Key
- Service string
- English abbreviation of the last accessed service by the API key
- Updated
Time string - Key update time (ISO8601 format)
- access
Key StringId - Key ID (Access Key Id)
- created
Time String - Key creation time (ISO8601 format)
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login StringDate - Last login time
- region String
- Last accessed region by the API key
- request
Time String - Last usage time of the API key
- secret
Access StringKey - Secret Access Key
- service String
- English abbreviation of the last accessed service by the API key
- updated
Time String - Key update time (ISO8601 format)
- access
Key stringId - Key ID (Access Key Id)
- created
Time string - Key creation time (ISO8601 format)
- id string
- The provider-assigned unique ID for this managed resource.
- last
Login stringDate - Last login time
- region string
- Last accessed region by the API key
- request
Time string - Last usage time of the API key
- secret
Access stringKey - Secret Access Key
- service string
- English abbreviation of the last accessed service by the API key
- updated
Time string - Key update time (ISO8601 format)
- access_
key_ strid - 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_ strdate - Last login time
- region str
- Last accessed region by the API key
- request_
time str - Last usage time of the API key
- secret_
access_ strkey - Secret Access Key
- service str
- English abbreviation of the last accessed service by the API key
- updated_
time str - Key update time (ISO8601 format)
- access
Key StringId - Key ID (Access Key Id)
- created
Time String - Key creation time (ISO8601 format)
- id String
- The provider-assigned unique ID for this managed resource.
- last
Login StringDate - Last login time
- region String
- Last accessed region by the API key
- request
Time String - Last usage time of the API key
- secret
Access StringKey - Secret Access Key
- service String
- English abbreviation of the last accessed service by the API key
- updated
Time 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) -> 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: bytepluscc: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 - Key ID (Access Key Id)
- Created
Time string - Key creation time (ISO8601 format)
- Last
Login stringDate - Last login time
- Region string
- Last accessed region by the API key
- Request
Time string - Last usage time of the API key
- Secret
Access stringKey - 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
- Updated
Time string - Key update time (ISO8601 format)
- User
Name 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 stringId - Key ID (Access Key Id)
- Created
Time string - Key creation time (ISO8601 format)
- Last
Login stringDate - Last login time
- Region string
- Last accessed region by the API key
- Request
Time string - Last usage time of the API key
- Secret
Access stringKey - 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
- Updated
Time string - Key update time (ISO8601 format)
- User
Name 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 StringId - Key ID (Access Key Id)
- created
Time String - Key creation time (ISO8601 format)
- last
Login StringDate - Last login time
- region String
- Last accessed region by the API key
- request
Time String - Last usage time of the API key
- secret
Access StringKey - 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
- updated
Time String - Key update time (ISO8601 format)
- user
Name 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 stringId - Key ID (Access Key Id)
- created
Time string - Key creation time (ISO8601 format)
- last
Login stringDate - Last login time
- region string
- Last accessed region by the API key
- request
Time string - Last usage time of the API key
- secret
Access stringKey - 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
- updated
Time string - Key update time (ISO8601 format)
- user
Name 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_ strid - Key ID (Access Key Id)
- created_
time str - Key creation time (ISO8601 format)
- last_
login_ strdate - Last login time
- region str
- Last accessed region by the API key
- request_
time str - Last usage time of the API key
- secret_
access_ strkey - 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
- access
Key StringId - Key ID (Access Key Id)
- created
Time String - Key creation time (ISO8601 format)
- last
Login StringDate - Last login time
- region String
- Last accessed region by the API key
- request
Time String - Last usage time of the API key
- secret
Access StringKey - 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
- updated
Time String - Key update time (ISO8601 format)
- user
Name 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 bytepluscc:iam/accesskey:Accesskey example "access_key_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Thursday, May 7, 2026 by Byteplus
