Class CfnEventBusPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnEventBusPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventBusPolicyProps>
- Enclosing interface:
CfnEventBusPolicyProps
@Stability(Stable)
public static final class CfnEventBusPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventBusPolicyProps>
A builder for
CfnEventBusPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.this property has been deprecatedbuild()Builds the configured instance.condition(IResolvable condition) Deprecated.this property has been deprecatedcondition(CfnEventBusPolicy.ConditionProperty condition) Deprecated.this property has been deprecatedeventBusName(String eventBusName) Sets the value ofCfnEventBusPolicyProps.getEventBusName()Deprecated.this property has been deprecatedSets the value ofCfnEventBusPolicyProps.getStatement()statementId(String statementId) Sets the value ofCfnEventBusPolicyProps.getStatementId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
statementId
Sets the value ofCfnEventBusPolicyProps.getStatementId()- Parameters:
statementId- An identifier string for the external account that you are granting permissions to. This parameter is required. If you later want to revoke the permission for this external account, specify thisStatementIdwhen you run RemovePermission .Each
StatementIdmust be unique.- Returns:
this
-
action
Deprecated.this property has been deprecatedSets the value ofCfnEventBusPolicyProps.getAction()- Parameters:
action- The action that you are enabling the other account to perform.- Returns:
this
-
condition
@Stability(Deprecated) @Deprecated public CfnEventBusPolicyProps.Builder condition(IResolvable condition) Deprecated.this property has been deprecatedSets the value ofCfnEventBusPolicyProps.getCondition()- 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.- Returns:
this
-
condition
@Stability(Deprecated) @Deprecated public CfnEventBusPolicyProps.Builder condition(CfnEventBusPolicy.ConditionProperty condition) Deprecated.this property has been deprecatedSets the value ofCfnEventBusPolicyProps.getCondition()- 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.- Returns:
this
-
eventBusName
Sets the value ofCfnEventBusPolicyProps.getEventBusName()- Parameters:
eventBusName- The name of the event bus associated with the rule. If you omit this, the default event bus is used.- Returns:
this
-
principal
@Stability(Deprecated) @Deprecated public CfnEventBusPolicyProps.Builder principal(String principal) Deprecated.this property has been deprecatedSets the value ofCfnEventBusPolicyProps.getPrincipal()- Parameters:
principal- 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.- Returns:
this
-
statement
Sets the value ofCfnEventBusPolicyProps.getStatement()- Parameters:
statement- A JSON string that describes the permission policy statement. You can include aPolicyparameter in the request instead of using theStatementId,Action,Principal, orConditionparameters.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventBusPolicyProps>- Returns:
- a new instance of
CfnEventBusPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-