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

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws-native.apigateway.getAccount

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 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>
    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]
    func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
    func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput

    > 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)
    }
    public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:apigateway:getAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID for the account. For example: abc123 .
    Id string
    The ID for the account. For example: abc123 .
    id String
    The ID for the account. For example: abc123 .
    id string
    The ID for the account. For example: abc123 .
    id str
    The ID for the account. For example: abc123 .
    id 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
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi