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
Modifier and TypeClassDescriptionstatic interface
Settings for logging access in a stage.static final class
A fluent builder forCfnStage
.static interface
Represents a collection of route settings.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAccessLogSettings
(IResolvable value) Settings for logging access in this stage.void
Settings for logging access in this stage.void
setAccessPolicyId
(String value) This parameter is not currently supported.void
The API identifier.void
setAutoDeploy
(Boolean value) Specifies whether updates to an API automatically trigger a new deployment.void
setAutoDeploy
(IResolvable value) Specifies whether updates to an API automatically trigger a new deployment.void
setClientCertificateId
(String value) The identifier of a client certificate for aStage
.void
The default route settings for the stage.void
The default route settings for the stage.void
setDeploymentId
(String value) The deployment identifier for the API stage.void
setDescription
(String value) The description for the API stage.void
setRouteSettings
(Object value) Route settings for the stage.void
setStageName
(String value) The stage name.void
setStageVariables
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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
autoDeploy
is enabled. -
setDeploymentId
The deployment identifier for the API stage.Can't be updated if
autoDeploy
is enabled. -
getDescription
The description for the API stage. -
setDescription
The description for the API stage.
-