Interface CfnEventBusPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEventBusPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:13.846Z")
@Stability(Stable)
public interface CfnEventBusPolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnEventBusPolicy.
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.*;
Object statement;
CfnEventBusPolicyProps cfnEventBusPolicyProps = CfnEventBusPolicyProps.builder()
.statementId("statementId")
// the properties below are optional
.action("action")
.condition(ConditionProperty.builder()
.key("key")
.type("type")
.value("value")
.build())
.eventBusName("eventBusName")
.principal("principal")
.statement(statement)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnEventBusPolicyPropsstatic final classAn implementation forCfnEventBusPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringDeprecated.this property has been deprecateddefault ObjectDeprecated.this property has been deprecateddefault StringThe name of the event bus associated with the rule.default StringDeprecated.this property has been deprecateddefault ObjectA JSON string that describes the permission policy statement.An identifier string for the external account that you are granting permissions to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStatementId
An identifier string for the external account that you are granting permissions to.If you later want to revoke the permission for this external account, specify this
StatementIdwhen you run RemovePermission .Each
StatementIdmust be unique.- See Also:
-
getAction
Deprecated.this property has been deprecated(deprecated) The action that you are enabling the other account to perform.- See Also:
-
getCondition
Deprecated.this property has been deprecated(deprecated) This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain AWS organization.Returns union: either
IResolvableorCfnEventBusPolicy.ConditionProperty- See Also:
-
getEventBusName
The name of the event bus associated with the rule.If you omit this, the default event bus is used.
- See Also:
-
getPrincipal
Deprecated.this property has been deprecated(deprecated) The 12-digit AWS account ID that you are permitting to put events to your default event bus.Specify "*" to permit any account to put events to your default event bus.
- See Also:
-
getStatement
A JSON string that describes the permission policy statement.You can include a
Policyparameter in the request instead of using theStatementId,Action,Principal, orConditionparameters.- See Also:
-
builder
- Returns:
- a
CfnEventBusPolicyProps.BuilderofCfnEventBusPolicyProps
-