@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.095Z") @Stability(value=Stable) public class CfnBasePathMapping extends CfnResource implements IInspectable
The AWS::ApiGateway::BasePathMapping resource creates a base path that clients who call your API must use in the invocation URL.
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.*;
CfnBasePathMapping cfnBasePathMapping = CfnBasePathMapping.Builder.create(this, "MyCfnBasePathMapping")
.domainName("domainName")
// the properties below are optional
.basePath("basePath")
.id("id")
.restApiId("restApiId")
.stage("stage")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnBasePathMapping.Builder
A fluent builder for
CfnBasePathMapping. |
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.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnBasePathMapping(software.constructs.Construct scope,
String id,
CfnBasePathMappingProps props)
Create a new `AWS::ApiGateway::BasePathMapping`.
|
protected |
CfnBasePathMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnBasePathMapping(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBasePath()
The base path name that callers of the API must provide in the URL after the domain name.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDomainName()
The `DomainName` of an [AWS::ApiGateway::DomainName](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html) resource.
|
String |
getId()
`AWS::ApiGateway::BasePathMapping.Id`.
|
String |
getRestApiId()
The ID of the API.
|
String |
getStage()
The name of the API's stage.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBasePath(String value)
The base path name that callers of the API must provide in the URL after the domain name.
|
void |
setDomainName(String value)
The `DomainName` of an [AWS::ApiGateway::DomainName](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-domainname.html) resource.
|
void |
setId(String value)
`AWS::ApiGateway::BasePathMapping.Id`.
|
void |
setRestApiId(String value)
The ID of the API.
|
void |
setStage(String value)
The name of the API's stage.
|
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
protected CfnBasePathMapping(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnBasePathMapping(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnBasePathMapping(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnBasePathMappingProps 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. 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 String getDomainName()
@Stability(value=Stable)
public void setDomainName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getBasePath()
@Stability(value=Stable)
public void setBasePath(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getId()
@Stability(value=Stable)
public void setId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRestApiId()
@Stability(value=Stable)
public void setRestApiId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getStage()
@Stability(value=Stable)
public void setStage(@Nullable
String value)
Copyright © 2022. All rights reserved.