Class CfnApiProps
Properties for defining a CfnApi
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnApiProps : ICfnApiProps
Syntax (vb)
Public Class CfnApiProps Implements ICfnApiProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-api.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SAM;
var authorizers;
var definitionBody;
var gatewayResponses;
var methodSettings;
var models;
var cfnApiProps = new CfnApiProps {
StageName = "stageName",
// the properties below are optional
AccessLogSetting = new AccessLogSettingProperty {
DestinationArn = "destinationArn",
Format = "format"
},
AlwaysDeploy = false,
Auth = new AuthProperty {
AddDefaultAuthorizerToCorsPreflight = false,
Authorizers = authorizers,
DefaultAuthorizer = "defaultAuthorizer"
},
BinaryMediaTypes = new [] { "binaryMediaTypes" },
CacheClusterEnabled = false,
CacheClusterSize = "cacheClusterSize",
CanarySetting = new CanarySettingProperty {
DeploymentId = "deploymentId",
PercentTraffic = 123,
StageVariableOverrides = new Dictionary<string, string> {
{ "stageVariableOverridesKey", "stageVariableOverrides" }
},
UseStageCache = false
},
Cors = "cors",
DefinitionBody = definitionBody,
DefinitionUri = "definitionUri",
Description = "description",
DisableExecuteApiEndpoint = false,
Domain = new DomainConfigurationProperty {
CertificateArn = "certificateArn",
DomainName = "domainName",
// the properties below are optional
BasePath = new [] { "basePath" },
EndpointConfiguration = "endpointConfiguration",
MutualTlsAuthentication = new MutualTlsAuthenticationProperty {
TruststoreUri = "truststoreUri",
TruststoreVersion = "truststoreVersion"
},
OwnershipVerificationCertificateArn = "ownershipVerificationCertificateArn",
Route53 = new Route53ConfigurationProperty {
DistributedDomainName = "distributedDomainName",
EvaluateTargetHealth = false,
HostedZoneId = "hostedZoneId",
HostedZoneName = "hostedZoneName",
IpV6 = false
},
SecurityPolicy = "securityPolicy"
},
EndpointConfiguration = "endpointConfiguration",
GatewayResponses = gatewayResponses,
MethodSettings = new [] { methodSettings },
MinimumCompressionSize = 123,
Models = models,
Name = "name",
OpenApiVersion = "openApiVersion",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
TracingEnabled = false,
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
};
Synopsis
Constructors
CfnApiProps() | Properties for defining a |
Properties
AccessLogSetting | Properties for defining a |
AlwaysDeploy | Properties for defining a |
Auth | Properties for defining a |
BinaryMediaTypes | Properties for defining a |
CacheClusterEnabled | Properties for defining a |
CacheClusterSize | Properties for defining a |
CanarySetting | Properties for defining a |
Cors | Properties for defining a |
DefinitionBody | Properties for defining a |
DefinitionUri | Properties for defining a |
Description | Properties for defining a |
DisableExecuteApiEndpoint | Properties for defining a |
Domain | Properties for defining a |
EndpointConfiguration | Properties for defining a |
GatewayResponses | Properties for defining a |
MethodSettings | Properties for defining a |
MinimumCompressionSize | Properties for defining a |
Models | Properties for defining a |
Name | Properties for defining a |
OpenApiVersion | Properties for defining a |
StageName | Properties for defining a |
Tags | Properties for defining a |
TracingEnabled | Properties for defining a |
Variables | Properties for defining a |
Constructors
CfnApiProps()
Properties for defining a CfnApi
.
public CfnApiProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-api.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SAM;
var authorizers;
var definitionBody;
var gatewayResponses;
var methodSettings;
var models;
var cfnApiProps = new CfnApiProps {
StageName = "stageName",
// the properties below are optional
AccessLogSetting = new AccessLogSettingProperty {
DestinationArn = "destinationArn",
Format = "format"
},
AlwaysDeploy = false,
Auth = new AuthProperty {
AddDefaultAuthorizerToCorsPreflight = false,
Authorizers = authorizers,
DefaultAuthorizer = "defaultAuthorizer"
},
BinaryMediaTypes = new [] { "binaryMediaTypes" },
CacheClusterEnabled = false,
CacheClusterSize = "cacheClusterSize",
CanarySetting = new CanarySettingProperty {
DeploymentId = "deploymentId",
PercentTraffic = 123,
StageVariableOverrides = new Dictionary<string, string> {
{ "stageVariableOverridesKey", "stageVariableOverrides" }
},
UseStageCache = false
},
Cors = "cors",
DefinitionBody = definitionBody,
DefinitionUri = "definitionUri",
Description = "description",
DisableExecuteApiEndpoint = false,
Domain = new DomainConfigurationProperty {
CertificateArn = "certificateArn",
DomainName = "domainName",
// the properties below are optional
BasePath = new [] { "basePath" },
EndpointConfiguration = "endpointConfiguration",
MutualTlsAuthentication = new MutualTlsAuthenticationProperty {
TruststoreUri = "truststoreUri",
TruststoreVersion = "truststoreVersion"
},
OwnershipVerificationCertificateArn = "ownershipVerificationCertificateArn",
Route53 = new Route53ConfigurationProperty {
DistributedDomainName = "distributedDomainName",
EvaluateTargetHealth = false,
HostedZoneId = "hostedZoneId",
HostedZoneName = "hostedZoneName",
IpV6 = false
},
SecurityPolicy = "securityPolicy"
},
EndpointConfiguration = "endpointConfiguration",
GatewayResponses = gatewayResponses,
MethodSettings = new [] { methodSettings },
MinimumCompressionSize = 123,
Models = models,
Name = "name",
OpenApiVersion = "openApiVersion",
Tags = new Dictionary<string, string> {
{ "tagsKey", "tags" }
},
TracingEnabled = false,
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
};
Properties
AccessLogSetting
Properties for defining a CfnApi
.
public object? AccessLogSetting { get; set; }
Property Value
Remarks
AlwaysDeploy
Properties for defining a CfnApi
.
public object? AlwaysDeploy { get; set; }
Property Value
Remarks
Auth
Properties for defining a CfnApi
.
public object? Auth { get; set; }
Property Value
Remarks
BinaryMediaTypes
Properties for defining a CfnApi
.
public string[]? BinaryMediaTypes { get; set; }
Property Value
string[]
Remarks
CacheClusterEnabled
Properties for defining a CfnApi
.
public object? CacheClusterEnabled { get; set; }
Property Value
Remarks
CacheClusterSize
Properties for defining a CfnApi
.
public string? CacheClusterSize { get; set; }
Property Value
Remarks
CanarySetting
Properties for defining a CfnApi
.
public object? CanarySetting { get; set; }
Property Value
Remarks
Cors
Properties for defining a CfnApi
.
public object? Cors { get; set; }
Property Value
Remarks
DefinitionBody
Properties for defining a CfnApi
.
public object? DefinitionBody { get; set; }
Property Value
Remarks
DefinitionUri
Properties for defining a CfnApi
.
public object? DefinitionUri { get; set; }
Property Value
Remarks
Description
Properties for defining a CfnApi
.
public string? Description { get; set; }
Property Value
Remarks
DisableExecuteApiEndpoint
Properties for defining a CfnApi
.
public object? DisableExecuteApiEndpoint { get; set; }
Property Value
Remarks
Domain
Properties for defining a CfnApi
.
public object? Domain { get; set; }
Property Value
Remarks
EndpointConfiguration
Properties for defining a CfnApi
.
public object? EndpointConfiguration { get; set; }
Property Value
Remarks
GatewayResponses
Properties for defining a CfnApi
.
public object? GatewayResponses { get; set; }
Property Value
Remarks
MethodSettings
Properties for defining a CfnApi
.
public object? MethodSettings { get; set; }
Property Value
Remarks
MinimumCompressionSize
Properties for defining a CfnApi
.
public double? MinimumCompressionSize { get; set; }
Property Value
Remarks
Models
Properties for defining a CfnApi
.
public object? Models { get; set; }
Property Value
Remarks
Name
Properties for defining a CfnApi
.
public string? Name { get; set; }
Property Value
Remarks
OpenApiVersion
Properties for defining a CfnApi
.
public string? OpenApiVersion { get; set; }
Property Value
Remarks
StageName
Properties for defining a CfnApi
.
public string StageName { get; set; }
Property Value
Remarks
Tags
Properties for defining a CfnApi
.
public IDictionary<string, string>? Tags { get; set; }
Property Value
Remarks
TracingEnabled
Properties for defining a CfnApi
.
public object? TracingEnabled { get; set; }
Property Value
Remarks
Variables
Properties for defining a CfnApi
.
public object? Variables { get; set; }