@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:47.446Z") @Deprecated public class CfnApiV2 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.*; Object body; Object tags; CfnApiV2 cfnApiV2 = CfnApiV2.Builder.create(this, "MyCfnApiV2") .apiKeySelectionExpression("apiKeySelectionExpression") .basePath("basePath") .body(body) .bodyS3Location(BodyS3LocationProperty.builder() .bucket("bucket") .etag("etag") .key("key") .version("version") .build()) .corsConfiguration(CorsProperty.builder() .allowCredentials(false) .allowHeaders(List.of("allowHeaders")) .allowMethods(List.of("allowMethods")) .allowOrigins(List.of("allowOrigins")) .exposeHeaders(List.of("exposeHeaders")) .maxAge(123) .build()) .credentialsArn("credentialsArn") .description("description") .disableSchemaValidation(false) .failOnWarnings(false) .name("name") .protocolType("protocolType") .routeKey("routeKey") .routeSelectionExpression("routeSelectionExpression") .tags(tags) .target("target") .version("version") .build();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnApiV2.BodyS3LocationProperty
Deprecated.
moved to package aws-apigatewayv2
|
static class |
CfnApiV2.Builder
Deprecated.
|
static interface |
CfnApiV2.CorsProperty
Deprecated.
moved to package aws-apigatewayv2
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
Deprecated.
|
Modifier | Constructor and Description |
---|---|
|
CfnApiV2(Construct scope,
java.lang.String id)
Deprecated.
|
|
CfnApiV2(Construct scope,
java.lang.String id,
CfnApiV2Props props)
Deprecated.
|
protected |
CfnApiV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
Deprecated.
|
protected |
CfnApiV2(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApiKeySelectionExpression()
Deprecated.
|
java.lang.String |
getBasePath()
Deprecated.
|
java.lang.Object |
getBody()
Deprecated.
|
java.lang.Object |
getBodyS3Location()
Deprecated.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties()
Deprecated.
|
java.lang.Object |
getCorsConfiguration()
Deprecated.
|
java.lang.String |
getCredentialsArn()
Deprecated.
|
java.lang.String |
getDescription()
Deprecated.
|
java.lang.Object |
getDisableSchemaValidation()
Deprecated.
|
java.lang.Object |
getFailOnWarnings()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
java.lang.String |
getProtocolType()
Deprecated.
|
java.lang.String |
getRouteKey()
Deprecated.
|
java.lang.String |
getRouteSelectionExpression()
Deprecated.
|
TagManager |
getTags()
Deprecated.
|
java.lang.String |
getTarget()
Deprecated.
|
java.lang.String |
getVersion()
Deprecated.
|
void |
inspect(TreeInspector inspector)
Deprecated.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
Deprecated.
|
void |
setApiKeySelectionExpression(java.lang.String value)
Deprecated.
|
void |
setBasePath(java.lang.String value)
Deprecated.
|
void |
setBody(java.lang.Object value)
Deprecated.
|
void |
setBodyS3Location(CfnApiV2.BodyS3LocationProperty value)
Deprecated.
|
void |
setBodyS3Location(IResolvable value)
Deprecated.
|
void |
setCorsConfiguration(CfnApiV2.CorsProperty value)
Deprecated.
|
void |
setCorsConfiguration(IResolvable value)
Deprecated.
|
void |
setCredentialsArn(java.lang.String value)
Deprecated.
|
void |
setDescription(java.lang.String value)
Deprecated.
|
void |
setDisableSchemaValidation(java.lang.Boolean value)
Deprecated.
|
void |
setDisableSchemaValidation(IResolvable value)
Deprecated.
|
void |
setFailOnWarnings(java.lang.Boolean value)
Deprecated.
|
void |
setFailOnWarnings(IResolvable value)
Deprecated.
|
void |
setName(java.lang.String value)
Deprecated.
|
void |
setProtocolType(java.lang.String value)
Deprecated.
|
void |
setRouteKey(java.lang.String value)
Deprecated.
|
void |
setRouteSelectionExpression(java.lang.String value)
Deprecated.
|
void |
setTarget(java.lang.String value)
Deprecated.
|
void |
setVersion(java.lang.String value)
Deprecated.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
@Deprecated public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnApiV2(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnApiV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Deprecated public CfnApiV2(Construct scope, java.lang.String id, CfnApiV2Props 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.@Deprecated public CfnApiV2(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.@Deprecated public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Deprecated protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Deprecated protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Deprecated public TagManager getTags()
@Deprecated public java.lang.Object getBody()
@Deprecated public void setBody(java.lang.Object value)
@Deprecated public java.lang.String getApiKeySelectionExpression()
@Deprecated public void setApiKeySelectionExpression(java.lang.String value)
@Deprecated public java.lang.String getBasePath()
@Deprecated public void setBasePath(java.lang.String value)
@Deprecated public java.lang.Object getBodyS3Location()
@Deprecated public void setBodyS3Location(IResolvable value)
@Deprecated public void setBodyS3Location(CfnApiV2.BodyS3LocationProperty value)
@Deprecated public java.lang.Object getCorsConfiguration()
@Deprecated public void setCorsConfiguration(IResolvable value)
@Deprecated public void setCorsConfiguration(CfnApiV2.CorsProperty value)
@Deprecated public java.lang.String getCredentialsArn()
@Deprecated public void setCredentialsArn(java.lang.String value)
@Deprecated public java.lang.String getDescription()
@Deprecated public void setDescription(java.lang.String value)
@Deprecated public java.lang.Object getDisableSchemaValidation()
@Deprecated public void setDisableSchemaValidation(java.lang.Boolean value)
@Deprecated public void setDisableSchemaValidation(IResolvable value)
@Deprecated public java.lang.Object getFailOnWarnings()
@Deprecated public void setFailOnWarnings(java.lang.Boolean value)
@Deprecated public void setFailOnWarnings(IResolvable value)
@Deprecated public java.lang.String getName()
@Deprecated public void setName(java.lang.String value)
@Deprecated public java.lang.String getProtocolType()
@Deprecated public void setProtocolType(java.lang.String value)
@Deprecated public java.lang.String getRouteKey()
@Deprecated public void setRouteKey(java.lang.String value)
@Deprecated public java.lang.String getRouteSelectionExpression()
@Deprecated public void setRouteSelectionExpression(java.lang.String value)
@Deprecated public java.lang.String getTarget()
@Deprecated public void setTarget(java.lang.String value)
@Deprecated public java.lang.String getVersion()
@Deprecated public void setVersion(java.lang.String value)