Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type GetCallerIdentityArgs
- type GetCallerIdentityOutputArgs
- type GetCallerIdentityResult
- type GetCallerIdentityResultOutput
- func (o GetCallerIdentityResultOutput) AccountId() pulumi.StringOutput
- func (o GetCallerIdentityResultOutput) Arn() pulumi.StringOutput
- func (GetCallerIdentityResultOutput) ElementType() reflect.Type
- func (o GetCallerIdentityResultOutput) Id() pulumi.StringOutput
- func (o GetCallerIdentityResultOutput) PrincipalId() pulumi.StringOutput
- func (o GetCallerIdentityResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutput() GetCallerIdentityResultOutput
- func (o GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutputWithContext(ctx context.Context) GetCallerIdentityResultOutput
- func (o GetCallerIdentityResultOutput) Type() pulumi.StringOutput
- func (o GetCallerIdentityResultOutput) UserId() pulumi.StringOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶
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 ¶
func (GetCallerIdentityOutputArgs) ElementType() reflect.Type
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 GetCallerIdentityOutput ¶
func GetCallerIdentityOutput(ctx *pulumi.Context, args GetCallerIdentityOutputArgs, opts ...pulumi.InvokeOption) GetCallerIdentityResultOutput
func (GetCallerIdentityResultOutput) AccountId ¶
func (o GetCallerIdentityResultOutput) AccountId() pulumi.StringOutput
The primary account Uin to which the current caller belongs.
func (GetCallerIdentityResultOutput) Arn ¶
func (o GetCallerIdentityResultOutput) Arn() pulumi.StringOutput
Current caller ARN.
func (GetCallerIdentityResultOutput) ElementType ¶
func (GetCallerIdentityResultOutput) ElementType() reflect.Type
func (GetCallerIdentityResultOutput) Id ¶
func (o GetCallerIdentityResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetCallerIdentityResultOutput) PrincipalId ¶
func (o GetCallerIdentityResultOutput) PrincipalId() pulumi.StringOutput
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 (o GetCallerIdentityResultOutput) ResultOutputFile() pulumi.StringPtrOutput
func (GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutput ¶
func (o GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutput() GetCallerIdentityResultOutput
func (GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutputWithContext ¶
func (o GetCallerIdentityResultOutput) ToGetCallerIdentityResultOutputWithContext(ctx context.Context) GetCallerIdentityResultOutput
func (GetCallerIdentityResultOutput) Type ¶
func (o GetCallerIdentityResultOutput) Type() pulumi.StringOutput
Identity type.
func (GetCallerIdentityResultOutput) UserId ¶
func (o GetCallerIdentityResultOutput) UserId() pulumi.StringOutput
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`.