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

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.Account

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.

Create Account Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
            args: Optional[AccountArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def Account(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            cloud_watch_role_arn: Optional[str] = None)
func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: aws-native:apigateway:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccountArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Account Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Account resource accepts the following input properties:

CloudWatchRoleArn string
The ARN of an Amazon CloudWatch role for the current Account.
CloudWatchRoleArn string
The ARN of an Amazon CloudWatch role for the current Account.
cloudWatchRoleArn String
The ARN of an Amazon CloudWatch role for the current Account.
cloudWatchRoleArn string
The ARN of an Amazon CloudWatch role for the current Account.
cloud_watch_role_arn str
The ARN of an Amazon CloudWatch role for the current Account.
cloudWatchRoleArn String
The ARN of an Amazon CloudWatch role for the current Account.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

AwsId string
The ID for the account. For example: abc123 .
Id string
The provider-assigned unique ID for this managed resource.
AwsId string
The ID for the account. For example: abc123 .
Id string
The provider-assigned unique ID for this managed resource.
awsId String
The ID for the account. For example: abc123 .
id String
The provider-assigned unique ID for this managed resource.
awsId string
The ID for the account. For example: abc123 .
id string
The provider-assigned unique ID for this managed resource.
aws_id str
The ID for the account. For example: abc123 .
id str
The provider-assigned unique ID for this managed resource.
awsId String
The ID for the account. For example: abc123 .
id String
The provider-assigned unique ID for this managed resource.

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