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.apigateway.CfnStage
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:52.441Z")
@Stability(Stable)
public class CfnStage
extends CfnResource
implements IInspectable, ITaggable
The
AWS::ApiGateway::Stage
resource creates a stage for a deployment.
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.apigateway.*; CfnStage cfnStage = CfnStage.Builder.create(this, "MyCfnStage") .restApiId("restApiId") // the properties below are optional .accessLogSetting(AccessLogSettingProperty.builder() .destinationArn("destinationArn") .format("format") .build()) .cacheClusterEnabled(false) .cacheClusterSize("cacheClusterSize") .canarySetting(CanarySettingProperty.builder() .deploymentId("deploymentId") .percentTraffic(123) .stageVariableOverrides(Map.of( "stageVariableOverridesKey", "stageVariableOverrides")) .useStageCache(false) .build()) .clientCertificateId("clientCertificateId") .deploymentId("deploymentId") .description("description") .documentationVersion("documentationVersion") .methodSettings(List.of(MethodSettingProperty.builder() .cacheDataEncrypted(false) .cacheTtlInSeconds(123) .cachingEnabled(false) .dataTraceEnabled(false) .httpMethod("httpMethod") .loggingLevel("loggingLevel") .metricsEnabled(false) .resourcePath("resourcePath") .throttlingBurstLimit(123) .throttlingRateLimit(123) .build())) .stageName("stageName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .tracingEnabled(false) .variables(Map.of( "variablesKey", "variables")) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
TheAccessLogSetting
property type specifies settings for logging access in this stage.static final class
A fluent builder forCfnStage
.static interface
Configuration settings of a canary deployment.static interface
TheMethodSetting
property type configures settings for all methods in a stage.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
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
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 TypeMethodDescriptionAccess log settings, including the access log format and access log destination ARN.Specifies whether a cache cluster is enabled for the stage.The stage's cache capacity in GB.Settings for the canary deployment in this stage.The identifier of a client certificate for an API stage.The identifier of the Deployment that the stage points to.The stage's description.The version of the associated API documentation.A map that defines the method settings for a Stage resource.The string identifier of the associated RestApi.The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.getTags()
Tag Manager which manages the tags for this resource.The collection of tags.Specifies whether active tracing with X-ray is enabled for the Stage.A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAccessLogSetting
(IResolvable value) Access log settings, including the access log format and access log destination ARN.void
Access log settings, including the access log format and access log destination ARN.void
setCacheClusterEnabled
(Boolean value) Specifies whether a cache cluster is enabled for the stage.void
Specifies whether a cache cluster is enabled for the stage.void
setCacheClusterSize
(String value) The stage's cache capacity in GB.void
setCanarySetting
(IResolvable value) Settings for the canary deployment in this stage.void
Settings for the canary deployment in this stage.void
setClientCertificateId
(String value) The identifier of a client certificate for an API stage.void
setDeploymentId
(String value) The identifier of the Deployment that the stage points to.void
setDescription
(String value) The stage's description.void
setDocumentationVersion
(String value) The version of the associated API documentation.void
setMethodSettings
(List<Object> value) A map that defines the method settings for a Stage resource.void
setMethodSettings
(IResolvable value) A map that defines the method settings for a Stage resource.void
setRestApiId
(String value) The string identifier of the associated RestApi.void
setStageName
(String value) The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.void
setTagsRaw
(List<CfnTag> value) The collection of tags.void
setTracingEnabled
(Boolean value) Specifies whether active tracing with X-ray is enabled for the Stage.void
setTracingEnabled
(IResolvable value) Specifies whether active tracing with X-ray is enabled for the Stage.void
setVariables
(Map<String, String> value) A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.void
setVariables
(IResolvable value) A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.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.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getRestApiId
The string identifier of the associated RestApi. -
setRestApiId
The string identifier of the associated RestApi. -
getAccessLogSetting
Access log settings, including the access log format and access log destination ARN. -
setAccessLogSetting
Access log settings, including the access log format and access log destination ARN. -
setAccessLogSetting
@Stability(Stable) public void setAccessLogSetting(@Nullable CfnStage.AccessLogSettingProperty value) Access log settings, including the access log format and access log destination ARN. -
getCacheClusterEnabled
Specifies whether a cache cluster is enabled for the stage. -
setCacheClusterEnabled
Specifies whether a cache cluster is enabled for the stage. -
setCacheClusterEnabled
Specifies whether a cache cluster is enabled for the stage. -
getCacheClusterSize
The stage's cache capacity in GB. -
setCacheClusterSize
The stage's cache capacity in GB. -
getCanarySetting
Settings for the canary deployment in this stage. -
setCanarySetting
Settings for the canary deployment in this stage. -
setCanarySetting
Settings for the canary deployment in this stage. -
getClientCertificateId
The identifier of a client certificate for an API stage. -
setClientCertificateId
The identifier of a client certificate for an API stage. -
getDeploymentId
The identifier of the Deployment that the stage points to. -
setDeploymentId
The identifier of the Deployment that the stage points to. -
getDescription
The stage's description. -
setDescription
The stage's description. -
getDocumentationVersion
The version of the associated API documentation. -
setDocumentationVersion
The version of the associated API documentation. -
getMethodSettings
A map that defines the method settings for a Stage resource. -
setMethodSettings
A map that defines the method settings for a Stage resource. -
setMethodSettings
A map that defines the method settings for a Stage resource. -
getStageName
The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. -
setStageName
The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway. -
getTagsRaw
The collection of tags. -
setTagsRaw
The collection of tags. -
getTracingEnabled
Specifies whether active tracing with X-ray is enabled for the Stage. -
setTracingEnabled
Specifies whether active tracing with X-ray is enabled for the Stage. -
setTracingEnabled
Specifies whether active tracing with X-ray is enabled for the Stage. -
getVariables
A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. -
setVariables
A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value. -
setVariables
A map (string-to-string map) that defines the stage variables, where the variable name is the key and the variable value is the value.
-