@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:04.757Z") @Stability(value=Stable) public class CfnStage extends CfnResource implements IInspectable
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
Example:
|
static class |
CfnStage.Builder
A fluent builder for
CfnStage. |
static interface |
CfnStage.CanarySettingProperty
Example:
|
static interface |
CfnStage.MethodSettingProperty
Example:
|
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::ApiGateway::Stage`.
|
protected |
CfnStage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnStage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAccessLogSetting()
`AWS::ApiGateway::Stage.AccessLogSetting`.
|
Object |
getCacheClusterEnabled()
`AWS::ApiGateway::Stage.CacheClusterEnabled`.
|
String |
getCacheClusterSize()
`AWS::ApiGateway::Stage.CacheClusterSize`.
|
Object |
getCanarySetting()
`AWS::ApiGateway::Stage.CanarySetting`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getClientCertificateId()
`AWS::ApiGateway::Stage.ClientCertificateId`.
|
String |
getDeploymentId()
`AWS::ApiGateway::Stage.DeploymentId`.
|
String |
getDescription()
`AWS::ApiGateway::Stage.Description`.
|
String |
getDocumentationVersion()
`AWS::ApiGateway::Stage.DocumentationVersion`.
|
Object |
getMethodSettings()
`AWS::ApiGateway::Stage.MethodSettings`.
|
String |
getRestApiId()
`AWS::ApiGateway::Stage.RestApiId`.
|
String |
getStageName()
`AWS::ApiGateway::Stage.StageName`.
|
TagManager |
getTags()
`AWS::ApiGateway::Stage.Tags`.
|
Object |
getTracingEnabled()
`AWS::ApiGateway::Stage.TracingEnabled`.
|
Object |
getVariables()
`AWS::ApiGateway::Stage.Variables`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessLogSetting(CfnStage.AccessLogSettingProperty value)
`AWS::ApiGateway::Stage.AccessLogSetting`.
|
void |
setAccessLogSetting(IResolvable value)
`AWS::ApiGateway::Stage.AccessLogSetting`.
|
void |
setCacheClusterEnabled(Boolean value)
`AWS::ApiGateway::Stage.CacheClusterEnabled`.
|
void |
setCacheClusterEnabled(IResolvable value)
`AWS::ApiGateway::Stage.CacheClusterEnabled`.
|
void |
setCacheClusterSize(String value)
`AWS::ApiGateway::Stage.CacheClusterSize`.
|
void |
setCanarySetting(CfnStage.CanarySettingProperty value)
`AWS::ApiGateway::Stage.CanarySetting`.
|
void |
setCanarySetting(IResolvable value)
`AWS::ApiGateway::Stage.CanarySetting`.
|
void |
setClientCertificateId(String value)
`AWS::ApiGateway::Stage.ClientCertificateId`.
|
void |
setDeploymentId(String value)
`AWS::ApiGateway::Stage.DeploymentId`.
|
void |
setDescription(String value)
`AWS::ApiGateway::Stage.Description`.
|
void |
setDocumentationVersion(String value)
`AWS::ApiGateway::Stage.DocumentationVersion`.
|
void |
setMethodSettings(IResolvable value)
`AWS::ApiGateway::Stage.MethodSettings`.
|
void |
setMethodSettings(List<Object> value)
`AWS::ApiGateway::Stage.MethodSettings`.
|
void |
setRestApiId(String value)
`AWS::ApiGateway::Stage.RestApiId`.
|
void |
setStageName(String value)
`AWS::ApiGateway::Stage.StageName`.
|
void |
setTracingEnabled(Boolean value)
`AWS::ApiGateway::Stage.TracingEnabled`.
|
void |
setTracingEnabled(IResolvable value)
`AWS::ApiGateway::Stage.TracingEnabled`.
|
void |
setVariables(IResolvable value)
`AWS::ApiGateway::Stage.Variables`.
|
void |
setVariables(Map<String,String> value)
`AWS::ApiGateway::Stage.Variables`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, 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) @Nullable public Object getAccessLogSetting()
@Stability(value=Stable)
public void setAccessLogSetting(@Nullable
CfnStage.AccessLogSettingProperty value)
@Stability(value=Stable)
public void setAccessLogSetting(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getCacheClusterEnabled()
@Stability(value=Stable)
public void setCacheClusterEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setCacheClusterEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getCacheClusterSize()
@Stability(value=Stable)
public void setCacheClusterSize(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getCanarySetting()
@Stability(value=Stable)
public void setCanarySetting(@Nullable
CfnStage.CanarySettingProperty value)
@Stability(value=Stable)
public void setCanarySetting(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getClientCertificateId()
@Stability(value=Stable)
public void setClientCertificateId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDeploymentId()
@Stability(value=Stable)
public void setDeploymentId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDocumentationVersion()
@Stability(value=Stable)
public void setDocumentationVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getMethodSettings()
@Stability(value=Stable)
public void setMethodSettings(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setMethodSettings(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public String getRestApiId()
@Stability(value=Stable)
public void setRestApiId(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getStageName()
@Stability(value=Stable)
public void setStageName(@Nullable
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public Object getTracingEnabled()
@Stability(value=Stable)
public void setTracingEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setTracingEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getVariables()
@Stability(value=Stable)
public void setVariables(@Nullable
IResolvable value)
Copyright © 2021. All rights reserved.