Class CfnStage
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.apigatewayv2.CfnStage
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)",
date="2024-07-12T19:33:56.936Z")
@Stability(Stable)
public class CfnStage
extends CfnResource
implements IInspectable, ITaggable
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier 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.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnStage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnStage
(software.amazon.jsii.JsiiObjectRef objRef) CfnStage
(software.constructs.Construct scope, String id, CfnStageProps props) -
Method Summary
Modifier and TypeMethodDescriptionSettings for logging access in this stage.This parameter is not currently supported.getApiId()
The API identifier.The 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()
Tag Manager which manages the tags for this resource.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
.void
setTagsRaw
(Object value) The collection of tags.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnStageProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
The identifier. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getApiId
The API identifier. -
setApiId
The API identifier. -
getStageName
The stage name. -
setStageName
The stage name. -
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. -
setAutoDeploy
Specifies whether updates to an API automatically trigger a new deployment. -
setAutoDeploy
Specifies whether updates to an API automatically trigger a new deployment. -
getClientCertificateId
The identifier of a client certificate for aStage
. -
setClientCertificateId
The identifier of a client certificate for aStage
. -
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. -
setDeploymentId
The deployment identifier for the API stage. -
getDescription
The description for the API stage. -
setDescription
The description for the API stage. -
getRouteSettings
Route settings for the stage. -
setRouteSettings
Route settings for the stage. -
getStageVariables
A map that defines the stage variables for aStage
. -
setStageVariables
A map that defines the stage variables for aStage
. -
getTagsRaw
The collection of tags. -
setTagsRaw
The collection of tags.
-