We recommend new projects start with resources from the AWS provider.
aws-native.apigateway.getAccount
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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.
When you delete a stack containing this resource, API Gateway can still assume the provided IAM role to write API logs to CloudWatch Logs. To deny API Gateway access to write API logs to CloudWatch logs, update the permissions policies or change the IAM role to deny access.
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)
public static Output<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
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:
- Cloud
Watch stringRole Arn - The ARN of an Amazon CloudWatch role for the current Account.
- Id string
- The ID for the account. For example:
abc123
.
- Cloud
Watch stringRole Arn - The ARN of an Amazon CloudWatch role for the current Account.
- Id string
- The ID for the account. For example:
abc123
.
- cloud
Watch StringRole Arn - The ARN of an Amazon CloudWatch role for the current Account.
- id String
- The ID for the account. For example:
abc123
.
- cloud
Watch stringRole Arn - The ARN of an Amazon CloudWatch role for the current Account.
- id string
- The ID for the account. For example:
abc123
.
- cloud_
watch_ strrole_ arn - The ARN of an Amazon CloudWatch role for the current Account.
- id str
- The ID for the account. For example:
abc123
.
- cloud
Watch StringRole Arn - 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.