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.104.0 (build e79254c)",
date="2024-11-21T06:34:02.766Z")
@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 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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStage(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.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.voidsetTagsRaw(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, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
The identifier. -
getCfnProperties
- Overrides:
getCfnPropertiesin 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.
-