1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. apigateway
  5. getAccount

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.apigateway.getAccount

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

The AWS::ApiGateway::Account resource specifies the IAM role that Amazon API Gateway uses to write API logs to Amazon CloudWatch Logs. To avoid overwriting other roles, you should only have one AWS::ApiGateway::Account resource per region per account.

Using getAccount

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 getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function getAccountOutput(args: GetAccountOutputArgs, opts?: InvokeOptions): Output<GetAccountResult>
Copy
def get_account(id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetAccountResult
def get_account_output(id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]
Copy
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput
Copy

> Note: This function is named LookupAccount in the Go SDK.

public static class GetAccount 
{
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountResult> Invoke(GetAccountInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
public static Output<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:apigateway:getAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID for the account. For example: abc123 .
Id This property is required. string
The ID for the account. For example: abc123 .
id This property is required. String
The ID for the account. For example: abc123 .
id This property is required. string
The ID for the account. For example: abc123 .
id This property is required. str
The ID for the account. For example: abc123 .
id This property is required. String
The ID for the account. For example: abc123 .

getAccount Result

The following output properties are available:

CloudWatchRoleArn string
The ARN of an Amazon CloudWatch role for the current Account.
Id string
The ID for the account. For example: abc123 .
CloudWatchRoleArn string
The ARN of an Amazon CloudWatch role for the current Account.
Id string
The ID for the account. For example: abc123 .
cloudWatchRoleArn String
The ARN of an Amazon CloudWatch role for the current Account.
id String
The ID for the account. For example: abc123 .
cloudWatchRoleArn string
The ARN of an Amazon CloudWatch role for the current Account.
id string
The ID for the account. For example: abc123 .
cloud_watch_role_arn str
The ARN of an Amazon CloudWatch role for the current Account.
id str
The ID for the account. For example: abc123 .
cloudWatchRoleArn String
The ARN of an Amazon CloudWatch role for the current Account.
id String
The ID for the account. For example: abc123 .

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi