# CfnBasePathMappingV2Props

Properties for defining a `CfnBasePathMappingV2`.

Used as props by: [CfnBasePathMappingV2](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.CfnBasePathMappingV2.html)

- Source: Generated at build time
- Type last changed: v2.172.0 · 7 Dec 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnBasePathMappingV2Props: apigateway.CfnBasePathMappingV2Props = {
  domainNameArn: 'domainNameArn',
  restApiId: 'restApiId',

  // the properties below are optional
  basePath: 'basePath',
  stage: 'stage',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigateway as apigateway

cfn_base_path_mapping_v2_props = apigateway.CfnBasePathMappingV2Props(
    domain_name_arn="domainNameArn",
    rest_api_id="restApiId",

    # the properties below are optional
    base_path="basePath",
    stage="stage"
)
```

Java:

```java
// 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.*;

CfnBasePathMappingV2Props cfnBasePathMappingV2Props = CfnBasePathMappingV2Props.builder()
        .domainNameArn("domainNameArn")
        .restApiId("restApiId")

        // the properties below are optional
        .basePath("basePath")
        .stage("stage")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;

var cfnBasePathMappingV2Props = new CfnBasePathMappingV2Props {
    DomainNameArn = "domainNameArn",
    RestApiId = "restApiId",

    // the properties below are optional
    BasePath = "basePath",
    Stage = "stage"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnBasePathMappingV2Props := &CfnBasePathMappingV2Props{
	DomainNameArn: jsii.String("domainNameArn"),
	RestApiId: jsii.String("restApiId"),

	// the properties below are optional
	BasePath: jsii.String("basePath"),
	Stage: jsii.String("stage"),
}
```

## Properties

- `basePath`: string — The base path name that callers of the private API must provide as part of the URL after the domain name.

- `domainNameArn`: string (required) — The ARN of the domain name for the BasePathMappingV2 resource to be described.

- `restApiId`: string (required) — The private API's identifier.

  This identifier is unique across all of your APIs in API Gateway.

- `stage`: string — Represents a unique identifier for a version of a deployed private RestApi that is callable by users.

  The Stage must depend on the `RestApi` 's stage. To create a dependency, add a DependsOn attribute to the BasePathMappingV2 resource.
