Class CfnHttpApi
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.sam.CfnHttpApi
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-05-31T18:44:07.453Z")
@Stability(Stable)
public class CfnHttpApi
extends CfnResource
implements IInspectable
A CloudFormation `AWS::Serverless::HttpApi`.
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.sam.*; Object authorizers; Object definitionBody; CfnHttpApi cfnHttpApi = CfnHttpApi.Builder.create(this, "MyCfnHttpApi") .accessLogSetting(AccessLogSettingProperty.builder() .destinationArn("destinationArn") .format("format") .build()) .auth(HttpApiAuthProperty.builder() .authorizers(authorizers) .defaultAuthorizer("defaultAuthorizer") .build()) .corsConfiguration(false) .defaultRouteSettings(RouteSettingsProperty.builder() .dataTraceEnabled(false) .detailedMetricsEnabled(false) .loggingLevel("loggingLevel") .throttlingBurstLimit(123) .throttlingRateLimit(123) .build()) .definitionBody(definitionBody) .definitionUri("definitionUri") .description("description") .disableExecuteApiEndpoint(false) .domain(HttpApiDomainConfigurationProperty.builder() .certificateArn("certificateArn") .domainName("domainName") // the properties below are optional .basePath("basePath") .endpointConfiguration("endpointConfiguration") .mutualTlsAuthentication(MutualTlsAuthenticationProperty.builder() .truststoreUri("truststoreUri") .truststoreVersion(false) .build()) .route53(Route53ConfigurationProperty.builder() .distributedDomainName("distributedDomainName") .evaluateTargetHealth(false) .hostedZoneId("hostedZoneId") .hostedZoneName("hostedZoneName") .ipV6(false) .build()) .securityPolicy("securityPolicy") .build()) .failOnWarnings(false) .routeSettings(RouteSettingsProperty.builder() .dataTraceEnabled(false) .detailedMetricsEnabled(false) .loggingLevel("loggingLevel") .throttlingBurstLimit(123) .throttlingRateLimit(123) .build()) .stageName("stageName") .stageVariables(Map.of( "stageVariablesKey", "stageVariables")) .tags(Map.of( "tagsKey", "tags")) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Example:static final class
A fluent builder forCfnHttpApi
.static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnHttpApi
(Construct scope, String id) Create a new `AWS::Serverless::HttpApi`.CfnHttpApi
(Construct scope, String id, CfnHttpApiProps props) Create a new `AWS::Serverless::HttpApi`.protected
CfnHttpApi
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnHttpApi
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescription`AWS::Serverless::HttpApi.AccessLogSetting`.getAuth()
`AWS::Serverless::HttpApi.Auth`.`AWS::Serverless::HttpApi.CorsConfiguration`.`AWS::Serverless::HttpApi.DefaultRouteSettings`.`AWS::Serverless::HttpApi.DefinitionBody`.`AWS::Serverless::HttpApi.DefinitionUri`.`AWS::Serverless::HttpApi.Description`.`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.`AWS::Serverless::HttpApi.Domain`.`AWS::Serverless::HttpApi.FailOnWarnings`.`AWS::Serverless::HttpApi.RouteSettings`.`AWS::Serverless::HttpApi.StageName`.`AWS::Serverless::HttpApi.StageVariables`.getTags()
`AWS::Serverless::HttpApi.Tags`.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAccessLogSetting
(IResolvable value) `AWS::Serverless::HttpApi.AccessLogSetting`.void
`AWS::Serverless::HttpApi.AccessLogSetting`.void
setAuth
(IResolvable value) `AWS::Serverless::HttpApi.Auth`.void
`AWS::Serverless::HttpApi.Auth`.void
setCorsConfiguration
(Boolean value) `AWS::Serverless::HttpApi.CorsConfiguration`.void
setCorsConfiguration
(IResolvable value) `AWS::Serverless::HttpApi.CorsConfiguration`.void
`AWS::Serverless::HttpApi.CorsConfiguration`.void
`AWS::Serverless::HttpApi.DefaultRouteSettings`.void
`AWS::Serverless::HttpApi.DefaultRouteSettings`.void
setDefinitionBody
(Object value) `AWS::Serverless::HttpApi.DefinitionBody`.void
setDefinitionUri
(String value) `AWS::Serverless::HttpApi.DefinitionUri`.void
setDefinitionUri
(IResolvable value) `AWS::Serverless::HttpApi.DefinitionUri`.void
`AWS::Serverless::HttpApi.DefinitionUri`.void
setDescription
(String value) `AWS::Serverless::HttpApi.Description`.void
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.void
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.void
setDomain
(IResolvable value) `AWS::Serverless::HttpApi.Domain`.void
`AWS::Serverless::HttpApi.Domain`.void
setFailOnWarnings
(Boolean value) `AWS::Serverless::HttpApi.FailOnWarnings`.void
setFailOnWarnings
(IResolvable value) `AWS::Serverless::HttpApi.FailOnWarnings`.void
setRouteSettings
(IResolvable value) `AWS::Serverless::HttpApi.RouteSettings`.void
`AWS::Serverless::HttpApi.RouteSettings`.void
setStageName
(String value) `AWS::Serverless::HttpApi.StageName`.void
setStageVariables
(Map<String, String> value) `AWS::Serverless::HttpApi.StageVariables`.void
setStageVariables
(IResolvable value) `AWS::Serverless::HttpApi.StageVariables`.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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. -
REQUIRED_TRANSFORM
The `Transform` a template must use in order to use this resource.
-
-
Constructor Details
-
CfnHttpApi
protected CfnHttpApi(software.amazon.jsii.JsiiObjectRef objRef) -
CfnHttpApi
protected CfnHttpApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnHttpApi
@Stability(Stable) public CfnHttpApi(@NotNull Construct scope, @NotNull String id, @Nullable CfnHttpApiProps props) Create a new `AWS::Serverless::HttpApi`.- Parameters:
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.
-
CfnHttpApi
Create a new `AWS::Serverless::HttpApi`.- Parameters:
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. 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
`AWS::Serverless::HttpApi.Tags`. -
getDefinitionBody
`AWS::Serverless::HttpApi.DefinitionBody`. -
setDefinitionBody
`AWS::Serverless::HttpApi.DefinitionBody`. -
getAccessLogSetting
`AWS::Serverless::HttpApi.AccessLogSetting`. -
setAccessLogSetting
`AWS::Serverless::HttpApi.AccessLogSetting`. -
setAccessLogSetting
@Stability(Stable) public void setAccessLogSetting(@Nullable CfnHttpApi.AccessLogSettingProperty value) `AWS::Serverless::HttpApi.AccessLogSetting`. -
getAuth
`AWS::Serverless::HttpApi.Auth`. -
setAuth
`AWS::Serverless::HttpApi.Auth`. -
setAuth
`AWS::Serverless::HttpApi.Auth`. -
getCorsConfiguration
`AWS::Serverless::HttpApi.CorsConfiguration`. -
setCorsConfiguration
`AWS::Serverless::HttpApi.CorsConfiguration`. -
setCorsConfiguration
`AWS::Serverless::HttpApi.CorsConfiguration`. -
setCorsConfiguration
@Stability(Stable) public void setCorsConfiguration(@Nullable CfnHttpApi.CorsConfigurationObjectProperty value) `AWS::Serverless::HttpApi.CorsConfiguration`. -
getDefaultRouteSettings
`AWS::Serverless::HttpApi.DefaultRouteSettings`. -
setDefaultRouteSettings
`AWS::Serverless::HttpApi.DefaultRouteSettings`. -
setDefaultRouteSettings
@Stability(Stable) public void setDefaultRouteSettings(@Nullable CfnHttpApi.RouteSettingsProperty value) `AWS::Serverless::HttpApi.DefaultRouteSettings`. -
getDefinitionUri
`AWS::Serverless::HttpApi.DefinitionUri`. -
setDefinitionUri
`AWS::Serverless::HttpApi.DefinitionUri`. -
setDefinitionUri
`AWS::Serverless::HttpApi.DefinitionUri`. -
setDefinitionUri
`AWS::Serverless::HttpApi.DefinitionUri`. -
getDescription
`AWS::Serverless::HttpApi.Description`. -
setDescription
`AWS::Serverless::HttpApi.Description`. -
getDisableExecuteApiEndpoint
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`. -
setDisableExecuteApiEndpoint
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`. -
setDisableExecuteApiEndpoint
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`. -
getDomain
`AWS::Serverless::HttpApi.Domain`. -
setDomain
`AWS::Serverless::HttpApi.Domain`. -
setDomain
@Stability(Stable) public void setDomain(@Nullable CfnHttpApi.HttpApiDomainConfigurationProperty value) `AWS::Serverless::HttpApi.Domain`. -
getFailOnWarnings
`AWS::Serverless::HttpApi.FailOnWarnings`. -
setFailOnWarnings
`AWS::Serverless::HttpApi.FailOnWarnings`. -
setFailOnWarnings
`AWS::Serverless::HttpApi.FailOnWarnings`. -
getRouteSettings
`AWS::Serverless::HttpApi.RouteSettings`. -
setRouteSettings
`AWS::Serverless::HttpApi.RouteSettings`. -
setRouteSettings
`AWS::Serverless::HttpApi.RouteSettings`. -
getStageName
`AWS::Serverless::HttpApi.StageName`. -
setStageName
`AWS::Serverless::HttpApi.StageName`. -
getStageVariables
`AWS::Serverless::HttpApi.StageVariables`. -
setStageVariables
`AWS::Serverless::HttpApi.StageVariables`. -
setStageVariables
`AWS::Serverless::HttpApi.StageVariables`.
-