Class CfnStage
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::ApiGatewayV2::Stage.
The AWS::ApiGatewayV2::Stage resource specifies a stage for an API. Each stage is a named reference to a deployment of the API and is made available for client applications to call. To learn more, see Working with stages for HTTP APIs and Deploy a WebSocket API in API Gateway .
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.apigatewayv2.*;
Object routeSettings;
Object stageVariables;
Object tags;
CfnStage cfnStage = CfnStage.Builder.create(this, "MyCfnStage")
.apiId("apiId")
.stageName("stageName")
// the properties below are optional
.accessLogSettings(AccessLogSettingsProperty.builder()
.destinationArn("destinationArn")
.format("format")
.build())
.accessPolicyId("accessPolicyId")
.autoDeploy(false)
.clientCertificateId("clientCertificateId")
.defaultRouteSettings(RouteSettingsProperty.builder()
.dataTraceEnabled(false)
.detailedMetricsEnabled(false)
.loggingLevel("loggingLevel")
.throttlingBurstLimit(123)
.throttlingRateLimit(123)
.build())
.deploymentId("deploymentId")
.description("description")
.routeSettings(routeSettings)
.stageVariables(stageVariables)
.tags(tags)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSettings for logging access in a stage.static final classA fluent builder forCfnStage.static interfaceRepresents a collection of route settings.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 TypeMethodDescriptionSettings for logging access in this stage.This parameter is not currently supported.getApiId()The API identifier.Specifies whether updates to an API automatically trigger a new deployment.The identifier of a client certificate for aStage.The default route settings for the stage.The deployment identifier for the API stage.The description for the API stage.Route settings for the stage.The stage name.A map that defines the stage variables for aStage.getTags()The collection of tags.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessLogSettings(IResolvable value) Settings for logging access in this stage.voidSettings for logging access in this stage.voidsetAccessPolicyId(String value) This parameter is not currently supported.voidThe API identifier.voidsetAutoDeploy(Boolean value) Specifies whether updates to an API automatically trigger a new deployment.voidsetAutoDeploy(IResolvable value) Specifies whether updates to an API automatically trigger a new deployment.voidsetClientCertificateId(String value) The identifier of a client certificate for aStage.voidThe default route settings for the stage.voidThe default route settings for the stage.voidsetDeploymentId(String value) The deployment identifier for the API stage.voidsetDescription(String value) The description for the API stage.voidsetRouteSettings(Object value) Route settings for the stage.voidsetStageName(String value) The stage name.voidsetStageVariables(Object value) A map that defines the stage variables for aStage.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::ApiGatewayV2::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.
-
getApiId
The API identifier. -
setApiId
The API identifier. -
getRouteSettings
Route settings for the stage. -
setRouteSettings
Route settings for the stage. -
getStageName
The stage name.Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. -
setStageName
The stage name.Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. -
getStageVariables
A map that defines the stage variables for aStage.Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
-
setStageVariables
A map that defines the stage variables for aStage.Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
-
getAccessLogSettings
Settings for logging access in this stage. -
setAccessLogSettings
Settings for logging access in this stage. -
setAccessLogSettings
@Stability(Stable) public void setAccessLogSettings(@Nullable CfnStage.AccessLogSettingsProperty value) Settings for logging access in this stage. -
getAccessPolicyId
This parameter is not currently supported. -
setAccessPolicyId
This parameter is not currently supported. -
getAutoDeploy
Specifies whether updates to an API automatically trigger a new deployment.The default value is
false. -
setAutoDeploy
Specifies whether updates to an API automatically trigger a new deployment.The default value is
false. -
setAutoDeploy
Specifies whether updates to an API automatically trigger a new deployment.The default value is
false. -
getClientCertificateId
The identifier of a client certificate for aStage.Supported only for WebSocket APIs.
-
setClientCertificateId
The identifier of a client certificate for aStage.Supported only for WebSocket APIs.
-
getDefaultRouteSettings
The default route settings for the stage. -
setDefaultRouteSettings
The default route settings for the stage. -
setDefaultRouteSettings
@Stability(Stable) public void setDefaultRouteSettings(@Nullable CfnStage.RouteSettingsProperty value) The default route settings for the stage. -
getDeploymentId
The deployment identifier for the API stage.Can't be updated if
autoDeployis enabled. -
setDeploymentId
The deployment identifier for the API stage.Can't be updated if
autoDeployis enabled. -
getDescription
The description for the API stage. -
setDescription
The description for the API stage.
-