Class CfnEventBusPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnEventBusPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBusPolicy>
- Enclosing class:
CfnEventBusPolicy
@Stability(Stable)
public static final class CfnEventBusPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventBusPolicy>
A fluent builder for
CfnEventBusPolicy.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.this property has been deprecatedbuild()condition(IResolvable condition) Deprecated.this property has been deprecatedcondition(CfnEventBusPolicy.ConditionProperty condition) Deprecated.this property has been deprecatedstatic CfnEventBusPolicy.BuildereventBusName(String eventBusName) The name of the event bus associated with the rule.Deprecated.this property has been deprecatedA JSON string that describes the permission policy statement.statementId(String statementId) An identifier string for the external account that you are granting permissions to.
-
Method Details
-
create
@Stability(Stable) public static CfnEventBusPolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnEventBusPolicy.Builder.
-
statementId
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.- Parameters:
statementId- An identifier string for the external account that you are granting permissions to. This parameter is required.- Returns:
this- See Also:
-
action
Deprecated.this property has been deprecated(deprecated) The action that you are enabling the other account to perform.- Parameters:
action- The action that you are enabling the other account to perform. This parameter is required.- Returns:
this- See Also:
-
condition
@Stability(Deprecated) @Deprecated public CfnEventBusPolicy.Builder condition(IResolvable condition) 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.- Parameters:
condition- 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. This parameter is required.- Returns:
this- See Also:
-
condition
@Stability(Deprecated) @Deprecated public CfnEventBusPolicy.Builder condition(CfnEventBusPolicy.ConditionProperty condition) 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.- Parameters:
condition- 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. This parameter is required.- Returns:
this- See Also:
-
eventBusName
The name of the event bus associated with the rule.If you omit this, the default event bus is used.
- Parameters:
eventBusName- The name of the event bus associated with the rule. This parameter is required.- Returns:
this- See Also:
-
principal
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.
- Parameters:
principal- The 12-digit AWS account ID that you are permitting to put events to your default event bus. This parameter is required.- Returns:
this- See Also:
-
statement
A JSON string that describes the permission policy statement.You can include a
Policyparameter in the request instead of using theStatementId,Action,Principal, orConditionparameters.- Parameters:
statement- A JSON string that describes the permission policy statement. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventBusPolicy>- Returns:
- a newly built instance of
CfnEventBusPolicy.
-