1. Packages
  2. Volcengine
  3. API Docs
  4. iam
  5. AccessKeys
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.iam.AccessKeys

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of iam access keys

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Volcengine.Iam.AccessKeys.Invoke();
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iam.AccessKeys(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.iam.IamFunctions;
    import com.pulumi.volcengine.iam.inputs.AccessKeysArgs;
    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) {
            final var foo = IamFunctions.AccessKeys();
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.iam.access_keys()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.iam.AccessKeys({});
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:iam:AccessKeys
          Arguments: {}
    

    Using AccessKeys

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function accessKeys(args: AccessKeysArgs, opts?: InvokeOptions): Promise<AccessKeysResult>
    function accessKeysOutput(args: AccessKeysOutputArgs, opts?: InvokeOptions): Output<AccessKeysResult>
    def access_keys(name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    user_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> AccessKeysResult
    def access_keys_output(name_regex: Optional[pulumi.Input[str]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    user_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[AccessKeysResult]
    func AccessKeys(ctx *Context, args *AccessKeysArgs, opts ...InvokeOption) (*AccessKeysResult, error)
    func AccessKeysOutput(ctx *Context, args *AccessKeysOutputArgs, opts ...InvokeOption) AccessKeysResultOutput
    public static class AccessKeys 
    {
        public static Task<AccessKeysResult> InvokeAsync(AccessKeysArgs args, InvokeOptions? opts = null)
        public static Output<AccessKeysResult> Invoke(AccessKeysInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<AccessKeysResult> accessKeys(AccessKeysArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:iam:AccessKeys
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NameRegex string
    A Name Regex of IAM.
    OutputFile string
    File name where to save data source results.
    UserName string
    The user names.
    NameRegex string
    A Name Regex of IAM.
    OutputFile string
    File name where to save data source results.
    UserName string
    The user names.
    nameRegex String
    A Name Regex of IAM.
    outputFile String
    File name where to save data source results.
    userName String
    The user names.
    nameRegex string
    A Name Regex of IAM.
    outputFile string
    File name where to save data source results.
    userName string
    The user names.
    name_regex str
    A Name Regex of IAM.
    output_file str
    File name where to save data source results.
    user_name str
    The user names.
    nameRegex String
    A Name Regex of IAM.
    outputFile String
    File name where to save data source results.
    userName String
    The user names.

    AccessKeys Result

    The following output properties are available:

    AccessKeyMetadatas List<AccessKeysAccessKeyMetadata>
    The collection of access keys.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of user query.
    NameRegex string
    OutputFile string
    UserName string
    The user name.
    AccessKeyMetadatas []AccessKeysAccessKeyMetadata
    The collection of access keys.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of user query.
    NameRegex string
    OutputFile string
    UserName string
    The user name.
    accessKeyMetadatas List<AccessKeysAccessKeyMetadata>
    The collection of access keys.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of user query.
    nameRegex String
    outputFile String
    userName String
    The user name.
    accessKeyMetadatas AccessKeysAccessKeyMetadata[]
    The collection of access keys.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of user query.
    nameRegex string
    outputFile string
    userName string
    The user name.
    access_key_metadatas Sequence[AccessKeysAccessKeyMetadata]
    The collection of access keys.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of user query.
    name_regex str
    output_file str
    user_name str
    The user name.
    accessKeyMetadatas List<Property Map>
    The collection of access keys.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of user query.
    nameRegex String
    outputFile String
    userName String
    The user name.

    Supporting Types

    AccessKeysAccessKeyMetadata

    AccessKeyId string
    The user access key id.
    CreateDate string
    The user access key create date.
    Status string
    The user access key status.
    UpdateDate string
    The user access key update date.
    UserName string
    The user names.
    AccessKeyId string
    The user access key id.
    CreateDate string
    The user access key create date.
    Status string
    The user access key status.
    UpdateDate string
    The user access key update date.
    UserName string
    The user names.
    accessKeyId String
    The user access key id.
    createDate String
    The user access key create date.
    status String
    The user access key status.
    updateDate String
    The user access key update date.
    userName String
    The user names.
    accessKeyId string
    The user access key id.
    createDate string
    The user access key create date.
    status string
    The user access key status.
    updateDate string
    The user access key update date.
    userName string
    The user names.
    access_key_id str
    The user access key id.
    create_date str
    The user access key create date.
    status str
    The user access key status.
    update_date str
    The user access key update date.
    user_name str
    The user names.
    accessKeyId String
    The user access key id.
    createDate String
    The user access key create date.
    status String
    The user access key status.
    updateDate String
    The user access key update date.
    userName String
    The user names.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine