@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.290Z") @Stability(value=Stable) public class CfnStage extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnStage.AccessLogSettingsProperty
Settings for logging access in a stage.
|
static class |
CfnStage.Builder
A fluent builder for
CfnStage. |
static interface |
CfnStage.RouteSettingsProperty
Represents a collection of route settings.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnStage(software.constructs.Construct scope,
String id,
CfnStageProps props)
Create a new `AWS::ApiGatewayV2::Stage`.
|
protected |
CfnStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAccessLogSettings()
Settings for logging access in this stage.
|
String |
getAccessPolicyId()
This parameter is not currently supported.
|
String |
getApiId()
The API identifier.
|
Object |
getAutoDeploy()
Specifies whether updates to an API automatically trigger a new deployment.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getClientCertificateId()
The identifier of a client certificate for a `Stage` .
|
Object |
getDefaultRouteSettings()
The default route settings for the stage.
|
String |
getDeploymentId()
The deployment identifier for the API stage.
|
String |
getDescription()
The description for the API stage.
|
Object |
getRouteSettings()
Route settings for the stage.
|
String |
getStageName()
The stage name.
|
Object |
getStageVariables()
A map that defines the stage variables for a `Stage` .
|
TagManager |
getTags()
The collection of tags.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessLogSettings(CfnStage.AccessLogSettingsProperty value)
Settings for logging access in this stage.
|
void |
setAccessLogSettings(IResolvable value)
Settings for logging access in this stage.
|
void |
setAccessPolicyId(String value)
This parameter is not currently supported.
|
void |
setApiId(String value)
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 a `Stage` .
|
void |
setDefaultRouteSettings(CfnStage.RouteSettingsProperty value)
The default route settings for the stage.
|
void |
setDefaultRouteSettings(IResolvable value)
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 a `Stage` .
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnStage(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnStage(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnStageProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
Each tag element is associated with a given resource.
@Stability(value=Stable) @NotNull public String getApiId()
@Stability(value=Stable)
public void setApiId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getRouteSettings()
@Stability(value=Stable)
public void setRouteSettings(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getStageName()
Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default . Maximum length is 128 characters.
@Stability(value=Stable)
public void setStageName(@NotNull
String value)
Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default . Maximum length is 128 characters.
@Stability(value=Stable) @NotNull public Object getStageVariables()
Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
@Stability(value=Stable)
public void setStageVariables(@NotNull
Object value)
Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
@Stability(value=Stable) @Nullable public Object getAccessLogSettings()
@Stability(value=Stable)
public void setAccessLogSettings(@Nullable
CfnStage.AccessLogSettingsProperty value)
@Stability(value=Stable)
public void setAccessLogSettings(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getAccessPolicyId()
@Stability(value=Stable)
public void setAccessPolicyId(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getAutoDeploy()
The default value is false .
@Stability(value=Stable)
public void setAutoDeploy(@Nullable
Boolean value)
The default value is false .
@Stability(value=Stable)
public void setAutoDeploy(@Nullable
IResolvable value)
The default value is false .
@Stability(value=Stable) @Nullable public String getClientCertificateId()
Supported only for WebSocket APIs.
@Stability(value=Stable)
public void setClientCertificateId(@Nullable
String value)
Supported only for WebSocket APIs.
@Stability(value=Stable) @Nullable public Object getDefaultRouteSettings()
@Stability(value=Stable)
public void setDefaultRouteSettings(@Nullable
CfnStage.RouteSettingsProperty value)
@Stability(value=Stable)
public void setDefaultRouteSettings(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getDeploymentId()
Can't be updated if autoDeploy is enabled.
@Stability(value=Stable)
public void setDeploymentId(@Nullable
String value)
Can't be updated if autoDeploy is enabled.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.