@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.991Z") @Stability(value=Stable) public class CfnHttpApi 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.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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnHttpApi.AccessLogSettingProperty
Example:
|
static class |
CfnHttpApi.Builder
A fluent builder for
CfnHttpApi. |
static interface |
CfnHttpApi.CorsConfigurationObjectProperty
Example:
|
static interface |
CfnHttpApi.HttpApiAuthProperty
Example:
|
static interface |
CfnHttpApi.HttpApiDomainConfigurationProperty
Example:
|
static interface |
CfnHttpApi.MutualTlsAuthenticationProperty
Example:
|
static interface |
CfnHttpApi.Route53ConfigurationProperty
Example:
|
static interface |
CfnHttpApi.RouteSettingsProperty
Example:
|
static interface |
CfnHttpApi.S3LocationProperty
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.
|
static String |
REQUIRED_TRANSFORM
The `Transform` a template must use in order to use this resource.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnHttpApi(software.constructs.Construct scope,
String id)
Create a new `AWS::Serverless::HttpApi`.
|
|
CfnHttpApi(software.constructs.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) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAccessLogSetting()
`AWS::Serverless::HttpApi.AccessLogSetting`.
|
Object |
getAuth()
`AWS::Serverless::HttpApi.Auth`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getCorsConfiguration()
`AWS::Serverless::HttpApi.CorsConfiguration`.
|
Object |
getDefaultRouteSettings()
`AWS::Serverless::HttpApi.DefaultRouteSettings`.
|
Object |
getDefinitionBody()
`AWS::Serverless::HttpApi.DefinitionBody`.
|
Object |
getDefinitionUri()
`AWS::Serverless::HttpApi.DefinitionUri`.
|
String |
getDescription()
`AWS::Serverless::HttpApi.Description`.
|
Object |
getDisableExecuteApiEndpoint()
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.
|
Object |
getDomain()
`AWS::Serverless::HttpApi.Domain`.
|
Object |
getFailOnWarnings()
`AWS::Serverless::HttpApi.FailOnWarnings`.
|
Object |
getRouteSettings()
`AWS::Serverless::HttpApi.RouteSettings`.
|
String |
getStageName()
`AWS::Serverless::HttpApi.StageName`.
|
Object |
getStageVariables()
`AWS::Serverless::HttpApi.StageVariables`.
|
TagManager |
getTags()
`AWS::Serverless::HttpApi.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessLogSetting(CfnHttpApi.AccessLogSettingProperty value)
`AWS::Serverless::HttpApi.AccessLogSetting`.
|
void |
setAccessLogSetting(IResolvable value)
`AWS::Serverless::HttpApi.AccessLogSetting`.
|
void |
setAuth(CfnHttpApi.HttpApiAuthProperty value)
`AWS::Serverless::HttpApi.Auth`.
|
void |
setAuth(IResolvable value)
`AWS::Serverless::HttpApi.Auth`.
|
void |
setCorsConfiguration(Boolean value)
`AWS::Serverless::HttpApi.CorsConfiguration`.
|
void |
setCorsConfiguration(CfnHttpApi.CorsConfigurationObjectProperty value)
`AWS::Serverless::HttpApi.CorsConfiguration`.
|
void |
setCorsConfiguration(IResolvable value)
`AWS::Serverless::HttpApi.CorsConfiguration`.
|
void |
setDefaultRouteSettings(CfnHttpApi.RouteSettingsProperty value)
`AWS::Serverless::HttpApi.DefaultRouteSettings`.
|
void |
setDefaultRouteSettings(IResolvable value)
`AWS::Serverless::HttpApi.DefaultRouteSettings`.
|
void |
setDefinitionBody(Object value)
`AWS::Serverless::HttpApi.DefinitionBody`.
|
void |
setDefinitionUri(CfnHttpApi.S3LocationProperty value)
`AWS::Serverless::HttpApi.DefinitionUri`.
|
void |
setDefinitionUri(IResolvable value)
`AWS::Serverless::HttpApi.DefinitionUri`.
|
void |
setDefinitionUri(String value)
`AWS::Serverless::HttpApi.DefinitionUri`.
|
void |
setDescription(String value)
`AWS::Serverless::HttpApi.Description`.
|
void |
setDisableExecuteApiEndpoint(Boolean value)
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.
|
void |
setDisableExecuteApiEndpoint(IResolvable value)
`AWS::Serverless::HttpApi.DisableExecuteApiEndpoint`.
|
void |
setDomain(CfnHttpApi.HttpApiDomainConfigurationProperty value)
`AWS::Serverless::HttpApi.Domain`.
|
void |
setDomain(IResolvable value)
`AWS::Serverless::HttpApi.Domain`.
|
void |
setFailOnWarnings(Boolean value)
`AWS::Serverless::HttpApi.FailOnWarnings`.
|
void |
setFailOnWarnings(IResolvable value)
`AWS::Serverless::HttpApi.FailOnWarnings`.
|
void |
setRouteSettings(CfnHttpApi.RouteSettingsProperty value)
`AWS::Serverless::HttpApi.RouteSettings`.
|
void |
setRouteSettings(IResolvable value)
`AWS::Serverless::HttpApi.RouteSettings`.
|
void |
setStageName(String value)
`AWS::Serverless::HttpApi.StageName`.
|
void |
setStageVariables(IResolvable value)
`AWS::Serverless::HttpApi.StageVariables`.
|
void |
setStageVariables(Map<String,String> value)
`AWS::Serverless::HttpApi.StageVariables`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, 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
@Stability(value=Stable) public static final String REQUIRED_TRANSFORM
protected CfnHttpApi(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnHttpApi(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnHttpApi(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnHttpApiProps 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.@Stability(value=Stable)
public CfnHttpApi(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. 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) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getDefinitionBody()
@Stability(value=Stable)
public void setDefinitionBody(@NotNull
Object value)
@Stability(value=Stable) @Nullable public Object getAccessLogSetting()
@Stability(value=Stable)
public void setAccessLogSetting(@Nullable
CfnHttpApi.AccessLogSettingProperty value)
@Stability(value=Stable)
public void setAccessLogSetting(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getAuth()
@Stability(value=Stable)
public void setAuth(@Nullable
CfnHttpApi.HttpApiAuthProperty value)
@Stability(value=Stable)
public void setAuth(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getCorsConfiguration()
@Stability(value=Stable)
public void setCorsConfiguration(@Nullable
Boolean value)
@Stability(value=Stable)
public void setCorsConfiguration(@Nullable
CfnHttpApi.CorsConfigurationObjectProperty value)
@Stability(value=Stable)
public void setCorsConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDefaultRouteSettings()
@Stability(value=Stable)
public void setDefaultRouteSettings(@Nullable
CfnHttpApi.RouteSettingsProperty value)
@Stability(value=Stable)
public void setDefaultRouteSettings(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDefinitionUri()
@Stability(value=Stable)
public void setDefinitionUri(@Nullable
String value)
@Stability(value=Stable)
public void setDefinitionUri(@Nullable
CfnHttpApi.S3LocationProperty value)
@Stability(value=Stable)
public void setDefinitionUri(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getDisableExecuteApiEndpoint()
@Stability(value=Stable)
public void setDisableExecuteApiEndpoint(@Nullable
Boolean value)
@Stability(value=Stable)
public void setDisableExecuteApiEndpoint(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getDomain()
@Stability(value=Stable)
public void setDomain(@Nullable
CfnHttpApi.HttpApiDomainConfigurationProperty value)
@Stability(value=Stable)
public void setDomain(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getFailOnWarnings()
@Stability(value=Stable)
public void setFailOnWarnings(@Nullable
Boolean value)
@Stability(value=Stable)
public void setFailOnWarnings(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getRouteSettings()
@Stability(value=Stable)
public void setRouteSettings(@Nullable
CfnHttpApi.RouteSettingsProperty value)
@Stability(value=Stable)
public void setRouteSettings(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getStageName()
@Stability(value=Stable)
public void setStageName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getStageVariables()
@Stability(value=Stable)
public void setStageVariables(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.