Interface EventBusPolicyProps

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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:02.228Z") @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