/
CfnApiDestinationProps.go
38 lines (35 loc) · 1.68 KB
/
CfnApiDestinationProps.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
package awsevents
// Properties for defining a `CfnApiDestination`.
//
// 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"
//
// cfnApiDestinationProps := &CfnApiDestinationProps{
// ConnectionArn: jsii.String("connectionArn"),
// HttpMethod: jsii.String("httpMethod"),
// InvocationEndpoint: jsii.String("invocationEndpoint"),
//
// // the properties below are optional
// Description: jsii.String("description"),
// InvocationRateLimitPerSecond: jsii.Number(123),
// Name: jsii.String("name"),
// }
//
type CfnApiDestinationProps struct {
// The ARN of the connection to use for the API destination.
//
// The destination endpoint must support the authorization type specified for the connection.
ConnectionArn *string `field:"required" json:"connectionArn" yaml:"connectionArn"`
// The method to use for the request to the HTTP invocation endpoint.
HttpMethod *string `field:"required" json:"httpMethod" yaml:"httpMethod"`
// The URL to the HTTP invocation endpoint for the API destination.
InvocationEndpoint *string `field:"required" json:"invocationEndpoint" yaml:"invocationEndpoint"`
// A description for the API destination to create.
Description *string `field:"optional" json:"description" yaml:"description"`
// The maximum number of requests per second to send to the HTTP invocation endpoint.
InvocationRateLimitPerSecond *float64 `field:"optional" json:"invocationRateLimitPerSecond" yaml:"invocationRateLimitPerSecond"`
// The name for the API destination to create.
Name *string `field:"optional" json:"name" yaml:"name"`
}