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.104.0 (build e79254c)",
date="2024-11-21T06:34:02.558Z")
@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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceTheAccessLogSettingproperty type specifies settings for logging access in this stage.static final classA fluent builder forCfnStage.static interfaceConfiguration settings of a canary deployment.static interfaceTheMethodSettingproperty type configures settings for all methods in a stage.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 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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessLogSetting(IResolvable value) Access log settings, including the access log format and access log destination ARN.voidAccess log settings, including the access log format and access log destination ARN.voidsetCacheClusterEnabled(Boolean value) Specifies whether a cache cluster is enabled for the stage.voidSpecifies whether a cache cluster is enabled for the stage.voidsetCacheClusterSize(String value) The stage's cache capacity in GB.voidsetCanarySetting(IResolvable value) Settings for the canary deployment in this stage.voidSettings for the canary deployment in this stage.voidsetClientCertificateId(String value) The identifier of a client certificate for an API stage.voidsetDeploymentId(String value) The identifier of the Deployment that the stage points to.voidsetDescription(String value) The stage's description.voidsetDocumentationVersion(String value) The version of the associated API documentation.voidsetMethodSettings(List<Object> value) A map that defines the method settings for a Stage resource.voidsetMethodSettings(IResolvable value) A map that defines the method settings for a Stage resource.voidsetRestApiId(String value) The string identifier of the associated RestApi.voidsetStageName(String value) The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.voidsetTagsRaw(List<CfnTag> value) The collection of tags.voidsetTracingEnabled(Boolean value) Specifies whether active tracing with X-ray is enabled for the Stage.voidsetTracingEnabled(IResolvable value) Specifies whether active tracing with X-ray is enabled for the Stage.voidsetVariables(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.voidsetVariables(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, 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.
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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.
-