Skip to content
v2.277.0

CfnAccountProps Struct ​

Properties for defining a CfnAccount.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnAccountProps: apigateway.CfnAccountProps = {
  cloudWatchRoleArn: 'cloudWatchRoleArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigateway as apigateway

cfn_account_props = apigateway.CfnAccountProps(
    cloud_watch_role_arn="cloudWatchRoleArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;

CfnAccountProps cfnAccountProps = CfnAccountProps.builder()
        .cloudWatchRoleArn("cloudWatchRoleArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;

var cfnAccountProps = new CfnAccountProps {
    CloudWatchRoleArn = "cloudWatchRoleArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnAccountProps := &CfnAccountProps{
	CloudWatchRoleArn: jsii.String("cloudWatchRoleArn"),
}

Properties ​

cloudWatchRoleArnoptionalstring | IRoleRefcloud_watch_role_arnoptionaltyping.Union[str, IRoleRef]cloudWatchRoleArnoptionalStringCloudWatchRoleArnoptionalstringCloudWatchRoleArnoptionalinterface{}#
The ARN of an Amazon CloudWatch role for the current Account.