#[non_exhaustive]pub struct PutPermissionInputBuilder { /* private fields */ }Expand description
A builder for PutPermissionInput.
Implementations§
source§impl PutPermissionInputBuilder
impl PutPermissionInputBuilder
sourcepub fn event_bus_name(self, input: impl Into<String>) -> Self
pub fn event_bus_name(self, input: impl Into<String>) -> Self
The name of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn set_event_bus_name(self, input: Option<String>) -> Self
pub fn set_event_bus_name(self, input: Option<String>) -> Self
The name of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn get_event_bus_name(&self) -> &Option<String>
pub fn get_event_bus_name(&self) -> &Option<String>
The name of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
The action that you are enabling the other account to perform.
sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
The action that you are enabling the other account to perform.
sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
The action that you are enabling the other account to perform.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The 12-digit Amazon Web Services 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.
If you specify "*" without specifying Condition, avoid creating rules that may match undesirable events. To create more secure rules, make sure that the event pattern for each rule contains an account field with a specific account ID from which to receive events. Rules with an account field do not match any events sent from other accounts.
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The 12-digit Amazon Web Services 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.
If you specify "*" without specifying Condition, avoid creating rules that may match undesirable events. To create more secure rules, make sure that the event pattern for each rule contains an account field with a specific account ID from which to receive events. Rules with an account field do not match any events sent from other accounts.
sourcepub fn get_principal(&self) -> &Option<String>
pub fn get_principal(&self) -> &Option<String>
The 12-digit Amazon Web Services 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.
If you specify "*" without specifying Condition, avoid creating rules that may match undesirable events. To create more secure rules, make sure that the event pattern for each rule contains an account field with a specific account ID from which to receive events. Rules with an account field do not match any events sent from other accounts.
sourcepub fn statement_id(self, input: impl Into<String>) -> Self
pub fn statement_id(self, input: impl Into<String>) -> Self
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 StatementId when you run RemovePermission.
Each StatementId must be unique.
sourcepub fn set_statement_id(self, input: Option<String>) -> Self
pub fn set_statement_id(self, input: Option<String>) -> Self
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 StatementId when you run RemovePermission.
Each StatementId must be unique.
sourcepub fn get_statement_id(&self) -> &Option<String>
pub fn get_statement_id(&self) -> &Option<String>
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 StatementId when you run RemovePermission.
Each StatementId must be unique.
sourcepub fn condition(self, input: Condition) -> Self
pub fn condition(self, input: Condition) -> Self
This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain Amazon Web Services organization. For more information about Amazon Web Services Organizations, see What Is Amazon Web Services Organizations in the Amazon Web Services Organizations User Guide.
If you specify Condition with an Amazon Web Services organization ID, and specify "*" as the value for Principal, you grant permission to all the accounts in the named organization.
The Condition is a JSON string which must contain Type, Key, and Value fields.
sourcepub fn set_condition(self, input: Option<Condition>) -> Self
pub fn set_condition(self, input: Option<Condition>) -> Self
This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain Amazon Web Services organization. For more information about Amazon Web Services Organizations, see What Is Amazon Web Services Organizations in the Amazon Web Services Organizations User Guide.
If you specify Condition with an Amazon Web Services organization ID, and specify "*" as the value for Principal, you grant permission to all the accounts in the named organization.
The Condition is a JSON string which must contain Type, Key, and Value fields.
sourcepub fn get_condition(&self) -> &Option<Condition>
pub fn get_condition(&self) -> &Option<Condition>
This parameter enables you to limit the permission to accounts that fulfill a certain condition, such as being a member of a certain Amazon Web Services organization. For more information about Amazon Web Services Organizations, see What Is Amazon Web Services Organizations in the Amazon Web Services Organizations User Guide.
If you specify Condition with an Amazon Web Services organization ID, and specify "*" as the value for Principal, you grant permission to all the accounts in the named organization.
The Condition is a JSON string which must contain Type, Key, and Value fields.
sourcepub fn policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.
sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
A JSON string that describes the permission policy statement. You can include a Policy parameter in the request instead of using the StatementId, Action, Principal, or Condition parameters.
sourcepub fn build(self) -> Result<PutPermissionInput, BuildError>
pub fn build(self) -> Result<PutPermissionInput, BuildError>
Consumes the builder and constructs a PutPermissionInput.
source§impl PutPermissionInputBuilder
impl PutPermissionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutPermissionOutput, SdkError<PutPermissionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutPermissionOutput, SdkError<PutPermissionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutPermissionInputBuilder
impl Clone for PutPermissionInputBuilder
source§fn clone(&self) -> PutPermissionInputBuilder
fn clone(&self) -> PutPermissionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PutPermissionInputBuilder
impl Debug for PutPermissionInputBuilder
source§impl Default for PutPermissionInputBuilder
impl Default for PutPermissionInputBuilder
source§fn default() -> PutPermissionInputBuilder
fn default() -> PutPermissionInputBuilder
source§impl PartialEq for PutPermissionInputBuilder
impl PartialEq for PutPermissionInputBuilder
source§fn eq(&self, other: &PutPermissionInputBuilder) -> bool
fn eq(&self, other: &PutPermissionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.