-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnFunction_ApiEventProperty.go
94 lines (91 loc) · 3.66 KB
/
CfnFunction_ApiEventProperty.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
package awssam
// 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 customStatements interface{}
//
// apiEventProperty := &ApiEventProperty{
// Method: jsii.String("method"),
// Path: jsii.String("path"),
//
// // the properties below are optional
// Auth: &AuthProperty{
// ApiKeyRequired: jsii.Boolean(false),
// AuthorizationScopes: []*string{
// jsii.String("authorizationScopes"),
// },
// Authorizer: jsii.String("authorizer"),
// ResourcePolicy: &AuthResourcePolicyProperty{
// AwsAccountBlacklist: []*string{
// jsii.String("awsAccountBlacklist"),
// },
// AwsAccountWhitelist: []*string{
// jsii.String("awsAccountWhitelist"),
// },
// CustomStatements: []interface{}{
// customStatements,
// },
// IntrinsicVpcBlacklist: []*string{
// jsii.String("intrinsicVpcBlacklist"),
// },
// IntrinsicVpceBlacklist: []*string{
// jsii.String("intrinsicVpceBlacklist"),
// },
// IntrinsicVpceWhitelist: []*string{
// jsii.String("intrinsicVpceWhitelist"),
// },
// IntrinsicVpcWhitelist: []*string{
// jsii.String("intrinsicVpcWhitelist"),
// },
// IpRangeBlacklist: []*string{
// jsii.String("ipRangeBlacklist"),
// },
// IpRangeWhitelist: []*string{
// jsii.String("ipRangeWhitelist"),
// },
// SourceVpcBlacklist: []*string{
// jsii.String("sourceVpcBlacklist"),
// },
// SourceVpcWhitelist: []*string{
// jsii.String("sourceVpcWhitelist"),
// },
// },
// },
// RequestModel: &RequestModelProperty{
// Model: jsii.String("model"),
//
// // the properties below are optional
// Required: jsii.Boolean(false),
// ValidateBody: jsii.Boolean(false),
// ValidateParameters: jsii.Boolean(false),
// },
// RequestParameters: []interface{}{
// jsii.String("requestParameters"),
// },
// RestApiId: jsii.String("restApiId"),
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html
//
type CfnFunction_ApiEventProperty struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html#cfn-serverless-function-apievent-method
//
Method *string `field:"required" json:"method" yaml:"method"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html#cfn-serverless-function-apievent-path
//
Path *string `field:"required" json:"path" yaml:"path"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html#cfn-serverless-function-apievent-auth
//
Auth interface{} `field:"optional" json:"auth" yaml:"auth"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html#cfn-serverless-function-apievent-requestmodel
//
RequestModel interface{} `field:"optional" json:"requestModel" yaml:"requestModel"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html#cfn-serverless-function-apievent-requestparameters
//
RequestParameters interface{} `field:"optional" json:"requestParameters" yaml:"requestParameters"`
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-serverless-function-apievent.html#cfn-serverless-function-apievent-restapiid
//
RestApiId *string `field:"optional" json:"restApiId" yaml:"restApiId"`
}