sts

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCallerIdentityArgs

type GetCallerIdentityArgs struct {
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getCallerIdentity.

type GetCallerIdentityOutputArgs

type GetCallerIdentityOutputArgs struct {
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getCallerIdentity.

func (GetCallerIdentityOutputArgs) ElementType

type GetCallerIdentityResult

type GetCallerIdentityResult struct {
	// The primary account Uin to which the current caller belongs.
	AccountId string `pulumi:"accountId"`
	// Current caller ARN.
	Arn string `pulumi:"arn"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Account Uin to which the key belongs:- The caller is a cloud account, and the returned current account Uin- The caller is a role, and the returned account Uin that applies for the role key.
	PrincipalId      string  `pulumi:"principalId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Identity type.
	Type string `pulumi:"type"`
	// Identity:- When the caller is a cloud account, the current account `Uin` is returned.- When the caller is a role, it returns `roleId:roleSessionName`- When the caller is a federated identity, it returns `uin:federatedUserName`.
	UserId string `pulumi:"userId"`
}

A collection of values returned by getCallerIdentity.

func GetCallerIdentity

func GetCallerIdentity(ctx *pulumi.Context, args *GetCallerIdentityArgs, opts ...pulumi.InvokeOption) (*GetCallerIdentityResult, error)

Use this data source to query detailed information of sts callerIdentity

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Sts"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Sts.GetCallerIdentity(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetCallerIdentityResultOutput

type GetCallerIdentityResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCallerIdentity.

func (GetCallerIdentityResultOutput) AccountId

The primary account Uin to which the current caller belongs.

func (GetCallerIdentityResultOutput) Arn

Current caller ARN.

func (GetCallerIdentityResultOutput) ElementType

func (GetCallerIdentityResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetCallerIdentityResultOutput) PrincipalId

Account Uin to which the key belongs:- The caller is a cloud account, and the returned current account Uin- The caller is a role, and the returned account Uin that applies for the role key.

func (GetCallerIdentityResultOutput) ResultOutputFile

func (GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutput

func (o GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutput() GetCallerIdentityResultOutput

func (GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutputWithContext

func (o GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutputWithContext(ctx context.Context) GetCallerIdentityResultOutput

func (GetCallerIdentityResultOutput) Type

Identity type.

func (GetCallerIdentityResultOutput) UserId

Identity:- When the caller is a cloud account, the current account `Uin` is returned.- When the caller is a role, it returns `roleId:roleSessionName`- When the caller is a federated identity, it returns `uin:federatedUserName`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL