sts

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

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

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Sts"
"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
	})
}

```

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