Class EventBusPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.EventBusPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventBusPolicyProps>
- Enclosing interface:
EventBusPolicyProps
@Stability(Stable)
public static final class EventBusPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<EventBusPolicyProps>
A builder for
EventBusPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofEventBusPolicyProps.getEventBus()statement(PolicyStatement statement) Sets the value ofEventBusPolicyProps.getStatement()statementId(String statementId) Sets the value ofEventBusPolicyProps.getStatementId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventBus
Sets the value ofEventBusPolicyProps.getEventBus()- Parameters:
eventBus- The event bus to which the policy applies. This parameter is required.- Returns:
this
-
statement
Sets the value ofEventBusPolicyProps.getStatement()- Parameters:
statement- An IAM Policy Statement to apply to the Event Bus. This parameter is required.- Returns:
this
-
statementId
Sets the value ofEventBusPolicyProps.getStatementId()- Parameters:
statementId- An identifier string for the external account that you are granting permissions to. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EventBusPolicyProps>- Returns:
- a new instance of
EventBusPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-