@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:47.572Z") public class CfnStage extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnStage.AccessLogSettingProperty
The `AccessLogSetting` property type specifies settings for logging access in this stage.
|
static class |
CfnStage.Builder
A fluent builder for
CfnStage . |
static interface |
CfnStage.CanarySettingProperty
Configuration settings of a canary deployment.
|
static interface |
CfnStage.MethodSettingProperty
The `MethodSetting` property type configures settings for all methods in a stage.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnStage(Construct scope,
java.lang.String id,
CfnStageProps props)
Create a new `AWS::ApiGateway::Stage`.
|
protected |
CfnStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStage(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAccessLogSetting()
Access log settings, including the access log format and access log destination ARN.
|
java.lang.Object |
getCacheClusterEnabled()
Specifies whether a cache cluster is enabled for the stage.
|
java.lang.String |
getCacheClusterSize()
The stage's cache capacity in GB.
|
java.lang.Object |
getCanarySetting()
Settings for the canary deployment in this stage.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getClientCertificateId()
The identifier of a client certificate for an API stage.
|
java.lang.String |
getDeploymentId()
The identifier of the Deployment that the stage points to.
|
java.lang.String |
getDescription()
The stage's description.
|
java.lang.String |
getDocumentationVersion()
The version of the associated API documentation.
|
java.lang.Object |
getMethodSettings()
A map that defines the method settings for a Stage resource.
|
java.lang.String |
getRestApiId()
The string identifier of the associated RestApi.
|
java.lang.String |
getStageName()
The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to API Gateway.
|
TagManager |
getTags()
The collection of tags.
|
java.lang.Object |
getTracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
|
java.lang.Object |
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.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAccessLogSetting(CfnStage.AccessLogSettingProperty value)
Access log settings, including the access log format and access log destination ARN.
|
void |
setAccessLogSetting(IResolvable value)
Access log settings, including the access log format and access log destination ARN.
|
void |
setCacheClusterEnabled(java.lang.Boolean value)
Specifies whether a cache cluster is enabled for the stage.
|
void |
setCacheClusterEnabled(IResolvable value)
Specifies whether a cache cluster is enabled for the stage.
|
void |
setCacheClusterSize(java.lang.String value)
The stage's cache capacity in GB.
|
void |
setCanarySetting(CfnStage.CanarySettingProperty value)
Settings for the canary deployment in this stage.
|
void |
setCanarySetting(IResolvable value)
Settings for the canary deployment in this stage.
|
void |
setClientCertificateId(java.lang.String value)
The identifier of a client certificate for an API stage.
|
void |
setDeploymentId(java.lang.String value)
The identifier of the Deployment that the stage points to.
|
void |
setDescription(java.lang.String value)
The stage's description.
|
void |
setDocumentationVersion(java.lang.String value)
The version of the associated API documentation.
|
void |
setMethodSettings(IResolvable value)
A map that defines the method settings for a Stage resource.
|
void |
setMethodSettings(java.util.List<java.lang.Object> value)
A map that defines the method settings for a Stage resource.
|
void |
setRestApiId(java.lang.String value)
The string identifier of the associated RestApi.
|
void |
setStageName(java.lang.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 |
setTracingEnabled(java.lang.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(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.
|
void |
setVariables(java.util.Map<java.lang.String,java.lang.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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnStage(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnStage(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
Each tag element is associated with a given resource.
public java.lang.String getRestApiId()
public void setRestApiId(java.lang.String value)
public java.lang.Object getAccessLogSetting()
public void setAccessLogSetting(IResolvable value)
public void setAccessLogSetting(CfnStage.AccessLogSettingProperty value)
public java.lang.Object getCacheClusterEnabled()
public void setCacheClusterEnabled(java.lang.Boolean value)
public void setCacheClusterEnabled(IResolvable value)
public java.lang.String getCacheClusterSize()
For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
public void setCacheClusterSize(java.lang.String value)
For more information about choosing a cache size, see Enabling API caching to enhance responsiveness .
public java.lang.Object getCanarySetting()
public void setCanarySetting(IResolvable value)
public void setCanarySetting(CfnStage.CanarySettingProperty value)
public java.lang.String getClientCertificateId()
public void setClientCertificateId(java.lang.String value)
public java.lang.String getDeploymentId()
public void setDeploymentId(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getDocumentationVersion()
public void setDocumentationVersion(java.lang.String value)
public java.lang.Object getMethodSettings()
Keys (designated as /{method_setting_key
below) are method paths defined as {resource_path}/{http_method}
for an individual method override, or /\* /\*
for overriding all methods in the stage.
public void setMethodSettings(IResolvable value)
Keys (designated as /{method_setting_key
below) are method paths defined as {resource_path}/{http_method}
for an individual method override, or /\* /\*
for overriding all methods in the stage.
public void setMethodSettings(java.util.List<java.lang.Object> value)
Keys (designated as /{method_setting_key
below) are method paths defined as {resource_path}/{http_method}
for an individual method override, or /\* /\*
for overriding all methods in the stage.
public java.lang.String getStageName()
Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
public void setStageName(java.lang.String value)
Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
public java.lang.Object getTracingEnabled()
public void setTracingEnabled(java.lang.Boolean value)
public void setTracingEnabled(IResolvable value)
public java.lang.Object getVariables()
Variable names are limited to alphanumeric characters. Values must match the following regular expression: [A-Za-z0-9-._~:/?#&=,]+
.
public void setVariables(IResolvable value)
Variable names are limited to alphanumeric characters. Values must match the following regular expression: [A-Za-z0-9-._~:/?#&=,]+
.
public void setVariables(java.util.Map<java.lang.String,java.lang.String> value)
Variable names are limited to alphanumeric characters. Values must match the following regular expression: [A-Za-z0-9-._~:/?#&=,]+
.