Class EventBusPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.events.EventBusPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBusPolicy>
- Enclosing class:
EventBusPolicy
@Stability(Stable)
public static final class EventBusPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<EventBusPolicy>
A fluent builder for
EventBusPolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static EventBusPolicy.Builder
The event bus to which the policy applies.statement
(PolicyStatement statement) An IAM Policy Statement to apply to the Event Bus.statementId
(String statementId) An identifier string for the external account that you are granting permissions to.
-
Method Details
-
create
@Stability(Stable) public static EventBusPolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
EventBusPolicy.Builder
.
-
eventBus
The event bus to which the policy applies.- Parameters:
eventBus
- The event bus to which the policy applies. This parameter is required.- Returns:
this
-
statement
An IAM Policy Statement to apply to the Event Bus.- Parameters:
statement
- An IAM Policy Statement to apply to the Event Bus. This parameter is required.- Returns:
this
-
statementId
An identifier string for the external account that you are granting permissions to.- Parameters:
statementId
- An identifier string for the external account that you are granting permissions to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventBusPolicy>
- Returns:
- a newly built instance of
EventBusPolicy
.
-