Show / Hide Table of Contents

Interface IApiMappingOptions

Options for creating an api mapping.

Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IApiMappingOptions
Syntax (vb)
Public Interface IApiMappingOptions
Remarks

ExampleMetadata: infused

Examples
var acmCertificateForExampleCom;
RestApi restApi;
RestApi secondRestApi;


var domain = new DomainName(this, "custom-domain", new DomainNameProps {
    DomainName = "example.com",
    Certificate = acmCertificateForExampleCom,
    Mapping = restApi
});

domain.AddApiMapping(secondRestApi.DeploymentStage, new ApiMappingOptions {
    BasePath = "orders/v2/api"
});

Synopsis

Properties

BasePath

The api path name that callers of the API must provide in the URL after the domain name (e.g. example.com/base-path). If you specify this property, it can't be an empty string.

Properties

BasePath

The api path name that callers of the API must provide in the URL after the domain name (e.g. example.com/base-path). If you specify this property, it can't be an empty string.

virtual string BasePath { get; }
Property Value

System.String

Remarks

If this is undefined, a mapping will be added for the empty path. Any request that does not match a mapping will get sent to the API that has been mapped to the empty path.

Default: - map requests from the domain root (e.g. example.com).

Back to top Generated by DocFX