Struct aws_sdk_config::types::builders::MemberAccountStatusBuilder
source · #[non_exhaustive]pub struct MemberAccountStatusBuilder { /* private fields */ }Expand description
A builder for MemberAccountStatus.
Implementations§
source§impl MemberAccountStatusBuilder
impl MemberAccountStatusBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The 12-digit account ID of a member account.
This field is required.sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The 12-digit account ID of a member account.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The 12-digit account ID of a member account.
sourcepub fn config_rule_name(self, input: impl Into<String>) -> Self
pub fn config_rule_name(self, input: impl Into<String>) -> Self
The name of Config rule deployed in the member account.
This field is required.sourcepub fn set_config_rule_name(self, input: Option<String>) -> Self
pub fn set_config_rule_name(self, input: Option<String>) -> Self
The name of Config rule deployed in the member account.
sourcepub fn get_config_rule_name(&self) -> &Option<String>
pub fn get_config_rule_name(&self) -> &Option<String>
The name of Config rule deployed in the member account.
sourcepub fn member_account_rule_status(self, input: MemberAccountRuleStatus) -> Self
pub fn member_account_rule_status(self, input: MemberAccountRuleStatus) -> Self
Indicates deployment status for Config rule in the member account. When management account calls PutOrganizationConfigRule action for the first time, Config rule status is created in the member account. When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated in the member account. Config rule status is deleted when the management account deletes OrganizationConfigRule and disables service access for config-multiaccountsetup.amazonaws.com.
Config sets the state of the rule to:
-
CREATE_SUCCESSFULwhen Config rule has been created in the member account. -
CREATE_IN_PROGRESSwhen Config rule is being created in the member account. -
CREATE_FAILEDwhen Config rule creation has failed in the member account. -
DELETE_FAILEDwhen Config rule deletion has failed in the member account. -
DELETE_IN_PROGRESSwhen Config rule is being deleted in the member account. -
DELETE_SUCCESSFULwhen Config rule has been deleted in the member account. -
UPDATE_SUCCESSFULwhen Config rule has been updated in the member account. -
UPDATE_IN_PROGRESSwhen Config rule is being updated in the member account. -
UPDATE_FAILEDwhen Config rule deletion has failed in the member account.
sourcepub fn set_member_account_rule_status(
self,
input: Option<MemberAccountRuleStatus>
) -> Self
pub fn set_member_account_rule_status( self, input: Option<MemberAccountRuleStatus> ) -> Self
Indicates deployment status for Config rule in the member account. When management account calls PutOrganizationConfigRule action for the first time, Config rule status is created in the member account. When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated in the member account. Config rule status is deleted when the management account deletes OrganizationConfigRule and disables service access for config-multiaccountsetup.amazonaws.com.
Config sets the state of the rule to:
-
CREATE_SUCCESSFULwhen Config rule has been created in the member account. -
CREATE_IN_PROGRESSwhen Config rule is being created in the member account. -
CREATE_FAILEDwhen Config rule creation has failed in the member account. -
DELETE_FAILEDwhen Config rule deletion has failed in the member account. -
DELETE_IN_PROGRESSwhen Config rule is being deleted in the member account. -
DELETE_SUCCESSFULwhen Config rule has been deleted in the member account. -
UPDATE_SUCCESSFULwhen Config rule has been updated in the member account. -
UPDATE_IN_PROGRESSwhen Config rule is being updated in the member account. -
UPDATE_FAILEDwhen Config rule deletion has failed in the member account.
sourcepub fn get_member_account_rule_status(&self) -> &Option<MemberAccountRuleStatus>
pub fn get_member_account_rule_status(&self) -> &Option<MemberAccountRuleStatus>
Indicates deployment status for Config rule in the member account. When management account calls PutOrganizationConfigRule action for the first time, Config rule status is created in the member account. When management account calls PutOrganizationConfigRule action for the second time, Config rule status is updated in the member account. Config rule status is deleted when the management account deletes OrganizationConfigRule and disables service access for config-multiaccountsetup.amazonaws.com.
Config sets the state of the rule to:
-
CREATE_SUCCESSFULwhen Config rule has been created in the member account. -
CREATE_IN_PROGRESSwhen Config rule is being created in the member account. -
CREATE_FAILEDwhen Config rule creation has failed in the member account. -
DELETE_FAILEDwhen Config rule deletion has failed in the member account. -
DELETE_IN_PROGRESSwhen Config rule is being deleted in the member account. -
DELETE_SUCCESSFULwhen Config rule has been deleted in the member account. -
UPDATE_SUCCESSFULwhen Config rule has been updated in the member account. -
UPDATE_IN_PROGRESSwhen Config rule is being updated in the member account. -
UPDATE_FAILEDwhen Config rule deletion has failed in the member account.
sourcepub fn error_code(self, input: impl Into<String>) -> Self
pub fn error_code(self, input: impl Into<String>) -> Self
An error code that is returned when Config rule creation or deletion failed in the member account.
sourcepub fn set_error_code(self, input: Option<String>) -> Self
pub fn set_error_code(self, input: Option<String>) -> Self
An error code that is returned when Config rule creation or deletion failed in the member account.
sourcepub fn get_error_code(&self) -> &Option<String>
pub fn get_error_code(&self) -> &Option<String>
An error code that is returned when Config rule creation or deletion failed in the member account.
sourcepub fn error_message(self, input: impl Into<String>) -> Self
pub fn error_message(self, input: impl Into<String>) -> Self
An error message indicating that Config rule account creation or deletion has failed due to an error in the member account.
sourcepub fn set_error_message(self, input: Option<String>) -> Self
pub fn set_error_message(self, input: Option<String>) -> Self
An error message indicating that Config rule account creation or deletion has failed due to an error in the member account.
sourcepub fn get_error_message(&self) -> &Option<String>
pub fn get_error_message(&self) -> &Option<String>
An error message indicating that Config rule account creation or deletion has failed due to an error in the member account.
sourcepub fn last_update_time(self, input: DateTime) -> Self
pub fn last_update_time(self, input: DateTime) -> Self
The timestamp of the last status update.
sourcepub fn set_last_update_time(self, input: Option<DateTime>) -> Self
pub fn set_last_update_time(self, input: Option<DateTime>) -> Self
The timestamp of the last status update.
sourcepub fn get_last_update_time(&self) -> &Option<DateTime>
pub fn get_last_update_time(&self) -> &Option<DateTime>
The timestamp of the last status update.
sourcepub fn build(self) -> Result<MemberAccountStatus, BuildError>
pub fn build(self) -> Result<MemberAccountStatus, BuildError>
Consumes the builder and constructs a MemberAccountStatus.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MemberAccountStatusBuilder
impl Clone for MemberAccountStatusBuilder
source§fn clone(&self) -> MemberAccountStatusBuilder
fn clone(&self) -> MemberAccountStatusBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MemberAccountStatusBuilder
impl Debug for MemberAccountStatusBuilder
source§impl Default for MemberAccountStatusBuilder
impl Default for MemberAccountStatusBuilder
source§fn default() -> MemberAccountStatusBuilder
fn default() -> MemberAccountStatusBuilder
source§impl PartialEq for MemberAccountStatusBuilder
impl PartialEq for MemberAccountStatusBuilder
source§fn eq(&self, other: &MemberAccountStatusBuilder) -> bool
fn eq(&self, other: &MemberAccountStatusBuilder) -> bool
self and other values to be equal, and is used
by ==.