tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getStsCallerIdentity
Start a Neo task
Explain and create a tencentcloud.getStsCallerIdentity resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of sts callerIdentity
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const callerIdentity = tencentcloud.getStsCallerIdentity({});
import pulumi
import pulumi_tencentcloud as tencentcloud
caller_identity = tencentcloud.get_sts_caller_identity()
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetStsCallerIdentity(ctx, &tencentcloud.GetStsCallerIdentityArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var callerIdentity = Tencentcloud.GetStsCallerIdentity.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetStsCallerIdentityArgs;
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 callerIdentity = TencentcloudFunctions.getStsCallerIdentity(GetStsCallerIdentityArgs.builder()
.build());
}
}
variables:
callerIdentity:
fn::invoke:
function: tencentcloud:getStsCallerIdentity
arguments: {}
Using getStsCallerIdentity
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 getStsCallerIdentity(args: GetStsCallerIdentityArgs, opts?: InvokeOptions): Promise<GetStsCallerIdentityResult>
function getStsCallerIdentityOutput(args: GetStsCallerIdentityOutputArgs, opts?: InvokeOptions): Output<GetStsCallerIdentityResult>def get_sts_caller_identity(id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStsCallerIdentityResult
def get_sts_caller_identity_output(id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStsCallerIdentityResult]func GetStsCallerIdentity(ctx *Context, args *GetStsCallerIdentityArgs, opts ...InvokeOption) (*GetStsCallerIdentityResult, error)
func GetStsCallerIdentityOutput(ctx *Context, args *GetStsCallerIdentityOutputArgs, opts ...InvokeOption) GetStsCallerIdentityResultOutput> Note: This function is named GetStsCallerIdentity in the Go SDK.
public static class GetStsCallerIdentity
{
public static Task<GetStsCallerIdentityResult> InvokeAsync(GetStsCallerIdentityArgs args, InvokeOptions? opts = null)
public static Output<GetStsCallerIdentityResult> Invoke(GetStsCallerIdentityInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStsCallerIdentityResult> getStsCallerIdentity(GetStsCallerIdentityArgs args, InvokeOptions options)
public static Output<GetStsCallerIdentityResult> getStsCallerIdentity(GetStsCallerIdentityArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getStsCallerIdentity:getStsCallerIdentity
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Result
Output stringFile - Used to save results.
- Id string
- Result
Output stringFile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
- id string
- result
Output stringFile - Used to save results.
- id str
- result_
output_ strfile - Used to save results.
- id String
- result
Output StringFile - Used to save results.
getStsCallerIdentity Result
The following output properties are available:
- Account
Id string - The primary account Uin to which the current caller belongs.
- Arn string
- Current caller ARN.
- Id string
- Principal
Id string - 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.
- Type string
- Identity type.
- User
Id string - Identity:- When the caller is a cloud account, the current account
Uinis returned.- When the caller is a role, it returnsroleId:roleSessionName- When the caller is a federated identity, it returnsuin:federatedUserName. - Result
Output stringFile
- Account
Id string - The primary account Uin to which the current caller belongs.
- Arn string
- Current caller ARN.
- Id string
- Principal
Id string - 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.
- Type string
- Identity type.
- User
Id string - Identity:- When the caller is a cloud account, the current account
Uinis returned.- When the caller is a role, it returnsroleId:roleSessionName- When the caller is a federated identity, it returnsuin:federatedUserName. - Result
Output stringFile
- account
Id String - The primary account Uin to which the current caller belongs.
- arn String
- Current caller ARN.
- id String
- principal
Id String - 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.
- type String
- Identity type.
- user
Id String - Identity:- When the caller is a cloud account, the current account
Uinis returned.- When the caller is a role, it returnsroleId:roleSessionName- When the caller is a federated identity, it returnsuin:federatedUserName. - result
Output StringFile
- account
Id string - The primary account Uin to which the current caller belongs.
- arn string
- Current caller ARN.
- id string
- principal
Id string - 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.
- type string
- Identity type.
- user
Id string - Identity:- When the caller is a cloud account, the current account
Uinis returned.- When the caller is a role, it returnsroleId:roleSessionName- When the caller is a federated identity, it returnsuin:federatedUserName. - result
Output stringFile
- account_
id str - The primary account Uin to which the current caller belongs.
- arn str
- Current caller ARN.
- id str
- principal_
id str - 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.
- type str
- Identity type.
- user_
id str - Identity:- When the caller is a cloud account, the current account
Uinis returned.- When the caller is a role, it returnsroleId:roleSessionName- When the caller is a federated identity, it returnsuin:federatedUserName. - result_
output_ strfile
- account
Id String - The primary account Uin to which the current caller belongs.
- arn String
- Current caller ARN.
- id String
- principal
Id String - 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.
- type String
- Identity type.
- user
Id String - Identity:- When the caller is a cloud account, the current account
Uinis returned.- When the caller is a role, it returnsroleId:roleSessionName- When the caller is a federated identity, it returnsuin:federatedUserName. - result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
