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