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:
software.amazon.awscdk.core.IConstruct,software.amazon.awscdk.core.IDependable,software.amazon.awscdk.core.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 software.amazon.awscdk.core.CfnResource
implements software.amazon.awscdk.core.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 interfaceExample:static final classA fluent builder forCfnHttpApi.static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
software.amazon.awscdk.core.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
software.amazon.awscdk.core.IInspectable.Jsii$Default, software.amazon.awscdk.core.IInspectable.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnHttpApi(software.amazon.awscdk.core.Construct scope, String id) Create a new `AWS::Serverless::HttpApi`.CfnHttpApi(software.amazon.awscdk.core.Construct scope, String id, CfnHttpApiProps props) Create a new `AWS::Serverless::HttpApi`.protectedCfnHttpApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHttpApi(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`.software.amazon.awscdk.core.TagManagergetTags()`AWS::Serverless::HttpApi.Tags`.voidinspect(software.amazon.awscdk.core.TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessLogSetting(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.AccessLogSetting`.void`AWS::Serverless::HttpApi.AccessLogSetting`.voidsetAuth(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.Auth`.void`AWS::Serverless::HttpApi.Auth`.voidsetCorsConfiguration(Boolean value) `AWS::Serverless::HttpApi.CorsConfiguration`.voidsetCorsConfiguration(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.CorsConfiguration`.void`AWS::Serverless::HttpApi.CorsConfiguration`.voidsetDefaultRouteSettings(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.DefaultRouteSettings`.void`AWS::Serverless::HttpApi.DefaultRouteSettings`.voidsetDefinitionBody(Object value) `AWS::Serverless::HttpApi.DefinitionBody`.voidsetDefinitionUri(String value) `AWS::Serverless::HttpApi.DefinitionUri`.voidsetDefinitionUri(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.DefinitionUri`.void`AWS::Serverless::HttpApi.DefinitionUri`.voidsetDescription(String value) `AWS::Serverless::HttpApi.Description`.void`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.voidsetDisableExecuteApiEndpoint(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.voidsetDomain(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.Domain`.void`AWS::Serverless::HttpApi.Domain`.voidsetFailOnWarnings(Boolean value) `AWS::Serverless::HttpApi.FailOnWarnings`.voidsetFailOnWarnings(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.FailOnWarnings`.voidsetRouteSettings(software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.RouteSettings`.void`AWS::Serverless::HttpApi.RouteSettings`.voidsetStageName(String value) `AWS::Serverless::HttpApi.StageName`.voidsetStageVariables(Map<String, String> value) `AWS::Serverless::HttpApi.StageVariables`.voidsetStageVariables(software.amazon.awscdk.core.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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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. -
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 software.amazon.awscdk.core.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
@Stability(Stable) public CfnHttpApi(@NotNull software.amazon.awscdk.core.Construct scope, @NotNull String id) 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
@Stability(Stable) public void inspect(@NotNull software.amazon.awscdk.core.TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfacesoftware.amazon.awscdk.core.IInspectable- 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 classsoftware.amazon.awscdk.core.CfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classsoftware.amazon.awscdk.core.CfnResource
-
getTags
@Stability(Stable) @NotNull public software.amazon.awscdk.core.TagManager getTags()`AWS::Serverless::HttpApi.Tags`. -
getDefinitionBody
`AWS::Serverless::HttpApi.DefinitionBody`. -
setDefinitionBody
`AWS::Serverless::HttpApi.DefinitionBody`. -
getAccessLogSetting
`AWS::Serverless::HttpApi.AccessLogSetting`. -
setAccessLogSetting
@Stability(Stable) public void setAccessLogSetting(@Nullable software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.AccessLogSetting`. -
setAccessLogSetting
@Stability(Stable) public void setAccessLogSetting(@Nullable CfnHttpApi.AccessLogSettingProperty value) `AWS::Serverless::HttpApi.AccessLogSetting`. -
getAuth
`AWS::Serverless::HttpApi.Auth`. -
setAuth
@Stability(Stable) public void setAuth(@Nullable software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.Auth`. -
setAuth
`AWS::Serverless::HttpApi.Auth`. -
getCorsConfiguration
`AWS::Serverless::HttpApi.CorsConfiguration`. -
setCorsConfiguration
`AWS::Serverless::HttpApi.CorsConfiguration`. -
setCorsConfiguration
@Stability(Stable) public void setCorsConfiguration(@Nullable software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.CorsConfiguration`. -
setCorsConfiguration
@Stability(Stable) public void setCorsConfiguration(@Nullable CfnHttpApi.CorsConfigurationObjectProperty value) `AWS::Serverless::HttpApi.CorsConfiguration`. -
getDefaultRouteSettings
`AWS::Serverless::HttpApi.DefaultRouteSettings`. -
setDefaultRouteSettings
@Stability(Stable) public void setDefaultRouteSettings(@Nullable software.amazon.awscdk.core.IResolvable value) `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
@Stability(Stable) public void setDefinitionUri(@Nullable software.amazon.awscdk.core.IResolvable value) `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
@Stability(Stable) public void setDisableExecuteApiEndpoint(@Nullable software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`. -
getDomain
`AWS::Serverless::HttpApi.Domain`. -
setDomain
@Stability(Stable) public void setDomain(@Nullable software.amazon.awscdk.core.IResolvable value) `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
@Stability(Stable) public void setFailOnWarnings(@Nullable software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.FailOnWarnings`. -
getRouteSettings
`AWS::Serverless::HttpApi.RouteSettings`. -
setRouteSettings
@Stability(Stable) public void setRouteSettings(@Nullable software.amazon.awscdk.core.IResolvable value) `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
@Stability(Stable) public void setStageVariables(@Nullable software.amazon.awscdk.core.IResolvable value) `AWS::Serverless::HttpApi.StageVariables`. -
setStageVariables
`AWS::Serverless::HttpApi.StageVariables`.
-