/
EventBusPolicyProps.go
32 lines (29 loc) · 1.05 KB
/
EventBusPolicyProps.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
package awsevents
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
)
// Properties to associate Event Buses with a policy.
//
// 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"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var eventBus eventBus
// var policyStatement policyStatement
//
// eventBusPolicyProps := &EventBusPolicyProps{
// EventBus: eventBus,
// Statement: policyStatement,
// StatementId: jsii.String("statementId"),
// }
//
type EventBusPolicyProps struct {
// The event bus to which the policy applies.
EventBus IEventBus `field:"required" json:"eventBus" yaml:"eventBus"`
// An IAM Policy Statement to apply to the Event Bus.
Statement awsiam.PolicyStatement `field:"required" json:"statement" yaml:"statement"`
// An identifier string for the external account that you are granting permissions to.
StatementId *string `field:"required" json:"statementId" yaml:"statementId"`
}