@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.089Z") @Stability(value=Stable) public class CfnAccount extends CfnResource implements IInspectable
The AWS::ApiGateway::Account resource specifies the IAM role that Amazon API Gateway uses to write API logs to Amazon CloudWatch Logs.
If an API Gateway resource has never been created in your AWS account , you must add a dependency on another API Gateway resource, such as an AWS::ApiGateway::RestApi or AWS::ApiGateway::ApiKey resource.
If an API Gateway resource has been created in your AWS account , no dependency is required (even if the resource was deleted).
Example:
// 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.*;
CfnAccount cfnAccount = CfnAccount.Builder.create(this, "MyCfnAccount")
.cloudWatchRoleArn("cloudWatchRoleArn")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAccount.Builder
A fluent builder for
CfnAccount. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAccount(software.constructs.Construct scope,
String id)
Create a new `AWS::ApiGateway::Account`.
|
|
CfnAccount(software.constructs.Construct scope,
String id,
CfnAccountProps props)
Create a new `AWS::ApiGateway::Account`.
|
protected |
CfnAccount(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAccount(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrId()
The ID for the account.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCloudWatchRoleArn()
The Amazon Resource Name (ARN) of an IAM role that has write access to CloudWatch Logs in your account.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCloudWatchRoleArn(String value)
The Amazon Resource Name (ARN) of an IAM role that has write access to CloudWatch Logs in your account.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAccount(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAccount(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAccount(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnAccountProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnAccount(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrId()
For example: abc123 .
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getCloudWatchRoleArn()
@Stability(value=Stable)
public void setCloudWatchRoleArn(@Nullable
String value)
Copyright © 2022. All rights reserved.