Interface ICfnApiProps
Properties for defining a CfnApi
.
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnApiProps
Syntax (vb)
Public Interface 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
Properties
Properties
AccessLogSetting
virtual object AccessLogSetting { get; }
Property Value
System.Object
Remarks
AlwaysDeploy
virtual object AlwaysDeploy { get; }
Property Value
System.Object
Remarks
Auth
virtual object Auth { get; }
Property Value
System.Object
Remarks
BinaryMediaTypes
virtual string[] BinaryMediaTypes { get; }
Property Value
System.String[]
Remarks
CacheClusterEnabled
virtual object CacheClusterEnabled { get; }
Property Value
System.Object
Remarks
CacheClusterSize
virtual string CacheClusterSize { get; }
Property Value
System.String
Remarks
CanarySetting
virtual object CanarySetting { get; }
Property Value
System.Object
Remarks
Cors
virtual object Cors { get; }
Property Value
System.Object
Remarks
DefinitionBody
virtual object DefinitionBody { get; }
Property Value
System.Object
Remarks
DefinitionUri
virtual object DefinitionUri { get; }
Property Value
System.Object
Remarks
Description
virtual string Description { get; }
Property Value
System.String
Remarks
DisableExecuteApiEndpoint
virtual object DisableExecuteApiEndpoint { get; }
Property Value
System.Object
Remarks
Domain
virtual object Domain { get; }
Property Value
System.Object
Remarks
EndpointConfiguration
virtual object EndpointConfiguration { get; }
Property Value
System.Object
Remarks
GatewayResponses
virtual object GatewayResponses { get; }
Property Value
System.Object
Remarks
MethodSettings
virtual object MethodSettings { get; }
Property Value
System.Object
Remarks
MinimumCompressionSize
virtual Nullable<double> MinimumCompressionSize { get; }
Property Value
System.Nullable<System.Double>
Remarks
Models
virtual object Models { get; }
Property Value
System.Object
Remarks
Name
virtual string Name { get; }
Property Value
System.String
Remarks
OpenApiVersion
virtual string OpenApiVersion { get; }
Property Value
System.String
Remarks
StageName
string StageName { get; }
Property Value
System.String
Remarks
Tags
virtual IDictionary<string, string> Tags { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
TracingEnabled
virtual object TracingEnabled { get; }
Property Value
System.Object
Remarks
Variables
virtual object Variables { get; }
Property Value
System.Object