Interface EventBusPolicyProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
EventBusPolicyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:02.017Z") @Stability(Stable) public interface EventBusPolicyProps extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.events.*;
 import software.amazon.awscdk.services.iam.*;
 EventBus eventBus;
 PolicyStatement policyStatement;
 EventBusPolicyProps eventBusPolicyProps = EventBusPolicyProps.builder()
         .eventBus(eventBus)
         .statement(policyStatement)
         .statementId("statementId")
         .build();
 
  • Method Details

    • getEventBus

      @Stability(Stable) @NotNull IEventBus getEventBus()
      The event bus to which the policy applies.
    • getStatement

      @Stability(Stable) @NotNull PolicyStatement getStatement()
      An IAM Policy Statement to apply to the Event Bus.
    • getStatementId

      @Stability(Stable) @NotNull String getStatementId()
      An identifier string for the external account that you are granting permissions to.
    • builder

      @Stability(Stable) static EventBusPolicyProps.Builder builder()
      Returns:
      a EventBusPolicyProps.Builder of EventBusPolicyProps