-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_CfnHookVersionProps.go
50 lines (47 loc) · 2.48 KB
/
awscdk_CfnHookVersionProps.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
// An experiment to bundle the entire CDK into a single module
package awscdk
// Properties for defining a `CfnHookVersion`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import monocdk "github.com/aws/aws-cdk-go/awscdk"
//
// cfnHookVersionProps := &cfnHookVersionProps{
// schemaHandlerPackage: jsii.String("schemaHandlerPackage"),
// typeName: jsii.String("typeName"),
//
// // the properties below are optional
// executionRoleArn: jsii.String("executionRoleArn"),
// loggingConfig: &loggingConfigProperty{
// logGroupName: jsii.String("logGroupName"),
// logRoleArn: jsii.String("logRoleArn"),
// },
// }
//
type CfnHookVersionProps struct {
// A URL to the Amazon S3 bucket containing the hook project package that contains the necessary files for the hook you want to register.
//
// For information on generating a schema handler package for the resource you want to register, see [submit](https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-cli-submit.html) in the *CloudFormation CLI User Guide for Extension Development* .
//
// > The user registering the resource must be able to access the package in the S3 bucket. That's, the user must have [GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html) permissions for the schema handler package. For more information, see [Actions, Resources, and Condition Keys for Amazon S3](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html) in the *AWS Identity and Access Management User Guide* .
SchemaHandlerPackage *string `field:"required" json:"schemaHandlerPackage" yaml:"schemaHandlerPackage"`
// The unique name for your hook.
//
// Specifies a three-part namespace for your hook, with a recommended pattern of `Organization::Service::Hook` .
//
// > The following organization namespaces are reserved and can't be used in your hook type names:
// >
// > - `Alexa`
// > - `AMZN`
// > - `Amazon`
// > - `ASK`
// > - `AWS`
// > - `Custom`
// > - `Dev`.
TypeName *string `field:"required" json:"typeName" yaml:"typeName"`
// The Amazon Resource Name (ARN) of the task execution role that grants the hook permission.
ExecutionRoleArn *string `field:"optional" json:"executionRoleArn" yaml:"executionRoleArn"`
// Contains logging configuration information for an extension.
LoggingConfig interface{} `field:"optional" json:"loggingConfig" yaml:"loggingConfig"`
}