Class CfnStage
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::ApiGateway::Stage.
The AWS::ApiGateway::Stage resource creates a stage for a deployment.
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.*;
CfnStage cfnStage = CfnStage.Builder.create(this, "MyCfnStage")
.restApiId("restApiId")
// the properties below are optional
.accessLogSetting(AccessLogSettingProperty.builder()
.destinationArn("destinationArn")
.format("format")
.build())
.cacheClusterEnabled(false)
.cacheClusterSize("cacheClusterSize")
.canarySetting(CanarySettingProperty.builder()
.deploymentId("deploymentId")
.percentTraffic(123)
.stageVariableOverrides(Map.of(
"stageVariableOverridesKey", "stageVariableOverrides"))
.useStageCache(false)
.build())
.clientCertificateId("clientCertificateId")
.deploymentId("deploymentId")
.description("description")
.documentationVersion("documentationVersion")
.methodSettings(List.of(MethodSettingProperty.builder()
.cacheDataEncrypted(false)
.cacheTtlInSeconds(123)
.cachingEnabled(false)
.dataTraceEnabled(false)
.httpMethod("httpMethod")
.loggingLevel("loggingLevel")
.metricsEnabled(false)
.resourcePath("resourcePath")
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.build()))
.stageName("stageName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tracingEnabled(false)
.variables(Map.of(
"variablesKey", "variables"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTheAccessLogSettingproperty type specifies settings for logging access in this stage.static final classA fluent builder forCfnStage.static interfaceConfiguration settings of a canary deployment.static interfaceTheMethodSettingproperty type configures settings for all methods in a stage.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAccess log settings, including the access log format and access log destination ARN.Specifies whether a cache cluster is enabled for the stage.The stage's cache capacity in GB.Settings for the canary deployment in this stage.The identifier of a client certificate for an API stage.The identifier of the Deployment that the stage points to.The stage's description.The version of the associated API documentation.A map that defines the method settings for a Stage resource.The string identifier of the associated RestApi.The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.getTags()The collection of tags.Specifies whether active tracing with X-ray is enabled for the Stage.A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessLogSetting(IResolvable value) Access log settings, including the access log format and access log destination ARN.voidAccess log settings, including the access log format and access log destination ARN.voidsetCacheClusterEnabled(Boolean value) Specifies whether a cache cluster is enabled for the stage.voidSpecifies whether a cache cluster is enabled for the stage.voidsetCacheClusterSize(String value) The stage's cache capacity in GB.voidsetCanarySetting(IResolvable value) Settings for the canary deployment in this stage.voidSettings for the canary deployment in this stage.voidsetClientCertificateId(String value) The identifier of a client certificate for an API stage.voidsetDeploymentId(String value) The identifier of the Deployment that the stage points to.voidsetDescription(String value) The stage's description.voidsetDocumentationVersion(String value) The version of the associated API documentation.voidsetMethodSettings(List<Object> value) A map that defines the method settings for a Stage resource.voidsetMethodSettings(IResolvable value) A map that defines the method settings for a Stage resource.voidsetRestApiId(String value) The string identifier of the associated RestApi.voidsetStageName(String value) The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.voidsetTracingEnabled(Boolean value) Specifies whether active tracing with X-ray is enabled for the Stage.voidsetTracingEnabled(IResolvable value) Specifies whether active tracing with X-ray is enabled for the Stage.voidsetVariables(Map<String, String> value) A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.voidsetVariables(IResolvable value) A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnStage
protected CfnStage(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStage
protected CfnStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStage
@Stability(Stable) public CfnStage(@NotNull Construct scope, @NotNull String id, @NotNull CfnStageProps props) Create a newAWS::ApiGateway::Stage.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The collection of tags.Each tag element is associated with a given resource.
-
getRestApiId
The string identifier of the associated RestApi. -
setRestApiId
The string identifier of the associated RestApi. -
getAccessLogSetting
Access log settings, including the access log format and access log destination ARN. -
setAccessLogSetting
Access log settings, including the access log format and access log destination ARN. -
setAccessLogSetting
@Stability(Stable) public void setAccessLogSetting(@Nullable CfnStage.AccessLogSettingProperty value) Access log settings, including the access log format and access log destination ARN. -
getCacheClusterEnabled
Specifies whether a cache cluster is enabled for the stage. -
setCacheClusterEnabled
Specifies whether a cache cluster is enabled for the stage. -
setCacheClusterEnabled
Specifies whether a cache cluster is enabled for the stage. -
getCacheClusterSize
The stage's cache capacity in GB.For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
-
setCacheClusterSize
The stage's cache capacity in GB.For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
-
getCanarySetting
Settings for the canary deployment in this stage. -
setCanarySetting
Settings for the canary deployment in this stage. -
setCanarySetting
Settings for the canary deployment in this stage. -
getClientCertificateId
The identifier of a client certificate for an API stage. -
setClientCertificateId
The identifier of a client certificate for an API stage. -
getDeploymentId
The identifier of the Deployment that the stage points to. -
setDeploymentId
The identifier of the Deployment that the stage points to. -
getDescription
The stage's description. -
setDescription
The stage's description. -
getDocumentationVersion
The version of the associated API documentation. -
setDocumentationVersion
The version of the associated API documentation. -
getMethodSettings
A map that defines the method settings for a Stage resource.Keys (designated as
/{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\* /\*for overriding all methods in the stage. -
setMethodSettings
A map that defines the method settings for a Stage resource.Keys (designated as
/{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\* /\*for overriding all methods in the stage. -
setMethodSettings
A map that defines the method settings for a Stage resource.Keys (designated as
/{method_setting_keybelow) are method paths defined as{resource_path}/{http_method}for an individual method override, or/\* /\*for overriding all methods in the stage. -
getStageName
The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
-
setStageName
The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
-
getTracingEnabled
Specifies whether active tracing with X-ray is enabled for the Stage. -
setTracingEnabled
Specifies whether active tracing with X-ray is enabled for the Stage. -
setTracingEnabled
Specifies whether active tracing with X-ray is enabled for the Stage. -
getVariables
A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+. -
setVariables
A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+. -
setVariables
A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.Variable names are limited to alphanumeric characters. Values must match the following regular expression:
[A-Za-z0-9-._~:/?#&=,]+.
-