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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:35.662Z")
@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 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
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
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnHttpApi(Construct scope, String id) Create a newAWS::Serverless::HttpApi.CfnHttpApi(Construct scope, String id, CfnHttpApiProps props) Create a newAWS::Serverless::HttpApi.protectedCfnHttpApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHttpApi(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionAWS::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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessLogSetting(IResolvable value) AWS::Serverless::HttpApi.AccessLogSetting.voidAWS::Serverless::HttpApi.AccessLogSetting.voidsetAuth(IResolvable value) AWS::Serverless::HttpApi.Auth.voidAWS::Serverless::HttpApi.Auth.voidsetCorsConfiguration(Boolean value) AWS::Serverless::HttpApi.CorsConfiguration.voidsetCorsConfiguration(IResolvable value) AWS::Serverless::HttpApi.CorsConfiguration.voidAWS::Serverless::HttpApi.CorsConfiguration.voidAWS::Serverless::HttpApi.DefaultRouteSettings.voidAWS::Serverless::HttpApi.DefaultRouteSettings.voidsetDefinitionBody(Object value) AWS::Serverless::HttpApi.DefinitionBody.voidsetDefinitionUri(String value) AWS::Serverless::HttpApi.DefinitionUri.voidsetDefinitionUri(IResolvable value) AWS::Serverless::HttpApi.DefinitionUri.voidAWS::Serverless::HttpApi.DefinitionUri.voidsetDescription(String value) AWS::Serverless::HttpApi.Description.voidAWS::Serverless::HttpApi.DisableExecuteApiEndpoint.voidAWS::Serverless::HttpApi.DisableExecuteApiEndpoint.voidsetDomain(IResolvable value) AWS::Serverless::HttpApi.Domain.voidAWS::Serverless::HttpApi.Domain.voidsetFailOnWarnings(Boolean value) AWS::Serverless::HttpApi.FailOnWarnings.voidsetFailOnWarnings(IResolvable value) AWS::Serverless::HttpApi.FailOnWarnings.voidsetRouteSettings(IResolvable value) AWS::Serverless::HttpApi.RouteSettings.voidAWS::Serverless::HttpApi.RouteSettings.voidsetStageName(String value) AWS::Serverless::HttpApi.StageName.voidsetStageVariables(Map<String, String> value) AWS::Serverless::HttpApi.StageVariables.voidsetStageVariables(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
TheTransforma 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 newAWS::Serverless::HttpApi.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnHttpApi
Create a newAWS::Serverless::HttpApi.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
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.
-