-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnHttpApiProps.go
118 lines (115 loc) · 5.95 KB
/
CfnHttpApiProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
package awssam
// Properties for defining a `CfnHttpApi`.
//
// Example:
// // 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"
//
// var authorizers interface{}
// var definitionBody interface{}
//
// cfnHttpApiProps := &CfnHttpApiProps{
// AccessLogSetting: &AccessLogSettingProperty{
// DestinationArn: jsii.String("destinationArn"),
// Format: jsii.String("format"),
// },
// Auth: &HttpApiAuthProperty{
// Authorizers: authorizers,
// DefaultAuthorizer: jsii.String("defaultAuthorizer"),
// },
// CorsConfiguration: jsii.Boolean(false),
// DefaultRouteSettings: &RouteSettingsProperty{
// DataTraceEnabled: jsii.Boolean(false),
// DetailedMetricsEnabled: jsii.Boolean(false),
// LoggingLevel: jsii.String("loggingLevel"),
// ThrottlingBurstLimit: jsii.Number(123),
// ThrottlingRateLimit: jsii.Number(123),
// },
// DefinitionBody: definitionBody,
// DefinitionUri: jsii.String("definitionUri"),
// Description: jsii.String("description"),
// DisableExecuteApiEndpoint: jsii.Boolean(false),
// Domain: &HttpApiDomainConfigurationProperty{
// CertificateArn: jsii.String("certificateArn"),
// DomainName: jsii.String("domainName"),
//
// // the properties below are optional
// BasePath: jsii.String("basePath"),
// EndpointConfiguration: jsii.String("endpointConfiguration"),
// MutualTlsAuthentication: &MutualTlsAuthenticationProperty{
// TruststoreUri: jsii.String("truststoreUri"),
// TruststoreVersion: jsii.Boolean(false),
// },
// Route53: &Route53ConfigurationProperty{
// DistributedDomainName: jsii.String("distributedDomainName"),
// EvaluateTargetHealth: jsii.Boolean(false),
// HostedZoneId: jsii.String("hostedZoneId"),
// HostedZoneName: jsii.String("hostedZoneName"),
// IpV6: jsii.Boolean(false),
// },
// SecurityPolicy: jsii.String("securityPolicy"),
// },
// FailOnWarnings: jsii.Boolean(false),
// RouteSettings: &RouteSettingsProperty{
// DataTraceEnabled: jsii.Boolean(false),
// DetailedMetricsEnabled: jsii.Boolean(false),
// LoggingLevel: jsii.String("loggingLevel"),
// ThrottlingBurstLimit: jsii.Number(123),
// ThrottlingRateLimit: jsii.Number(123),
// },
// StageName: jsii.String("stageName"),
// StageVariables: map[string]*string{
// "stageVariablesKey": jsii.String("stageVariables"),
// },
// Tags: map[string]*string{
// "tagsKey": jsii.String("tags"),
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html
//
type CfnHttpApiProps struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-accesslogsetting
//
AccessLogSetting interface{} `field:"optional" json:"accessLogSetting" yaml:"accessLogSetting"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-auth
//
Auth interface{} `field:"optional" json:"auth" yaml:"auth"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-corsconfiguration
//
CorsConfiguration interface{} `field:"optional" json:"corsConfiguration" yaml:"corsConfiguration"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-defaultroutesettings
//
DefaultRouteSettings interface{} `field:"optional" json:"defaultRouteSettings" yaml:"defaultRouteSettings"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-definitionbody
//
DefinitionBody interface{} `field:"optional" json:"definitionBody" yaml:"definitionBody"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-definitionuri
//
DefinitionUri interface{} `field:"optional" json:"definitionUri" yaml:"definitionUri"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-description
//
Description *string `field:"optional" json:"description" yaml:"description"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-disableexecuteapiendpoint
//
DisableExecuteApiEndpoint interface{} `field:"optional" json:"disableExecuteApiEndpoint" yaml:"disableExecuteApiEndpoint"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-domain
//
Domain interface{} `field:"optional" json:"domain" yaml:"domain"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-failonwarnings
//
FailOnWarnings interface{} `field:"optional" json:"failOnWarnings" yaml:"failOnWarnings"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-routesettings
//
RouteSettings interface{} `field:"optional" json:"routeSettings" yaml:"routeSettings"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-stagename
//
StageName *string `field:"optional" json:"stageName" yaml:"stageName"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-stagevariables
//
StageVariables interface{} `field:"optional" json:"stageVariables" yaml:"stageVariables"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-serverless-httpapi.html#cfn-serverless-httpapi-tags
//
Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"`
}