Struct aws_sdk_budgets::types::Action
source · #[non_exhaustive]pub struct Action {
pub action_id: String,
pub budget_name: String,
pub notification_type: NotificationType,
pub action_type: ActionType,
pub action_threshold: Option<ActionThreshold>,
pub definition: Option<Definition>,
pub execution_role_arn: String,
pub approval_model: ApprovalModel,
pub status: ActionStatus,
pub subscribers: Vec<Subscriber>,
}
Expand description
A budget action resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.action_id: String
A system-generated universally unique identifier (UUID) for the action.
budget_name: String
A string that represents the budget name. The ":" and "\" characters, and the "/action/" substring, aren't allowed.
notification_type: NotificationType
The type of a notification. It must be ACTUAL or FORECASTED.
action_type: ActionType
The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
action_threshold: Option<ActionThreshold>
The trigger threshold of the action.
definition: Option<Definition>
Where you specify all of the type-specific parameters.
execution_role_arn: String
The role passed for action execution and reversion. Roles and actions must be in the same account.
approval_model: ApprovalModel
This specifies if the action needs manual or automatic approval.
status: ActionStatus
The status of the action.
subscribers: Vec<Subscriber>
A list of subscribers.
Implementations§
source§impl Action
impl Action
sourcepub fn action_id(&self) -> &str
pub fn action_id(&self) -> &str
A system-generated universally unique identifier (UUID) for the action.
sourcepub fn budget_name(&self) -> &str
pub fn budget_name(&self) -> &str
A string that represents the budget name. The ":" and "\" characters, and the "/action/" substring, aren't allowed.
sourcepub fn notification_type(&self) -> &NotificationType
pub fn notification_type(&self) -> &NotificationType
The type of a notification. It must be ACTUAL or FORECASTED.
sourcepub fn action_type(&self) -> &ActionType
pub fn action_type(&self) -> &ActionType
The type of action. This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
sourcepub fn action_threshold(&self) -> Option<&ActionThreshold>
pub fn action_threshold(&self) -> Option<&ActionThreshold>
The trigger threshold of the action.
sourcepub fn definition(&self) -> Option<&Definition>
pub fn definition(&self) -> Option<&Definition>
Where you specify all of the type-specific parameters.
sourcepub fn execution_role_arn(&self) -> &str
pub fn execution_role_arn(&self) -> &str
The role passed for action execution and reversion. Roles and actions must be in the same account.
sourcepub fn approval_model(&self) -> &ApprovalModel
pub fn approval_model(&self) -> &ApprovalModel
This specifies if the action needs manual or automatic approval.
sourcepub fn status(&self) -> &ActionStatus
pub fn status(&self) -> &ActionStatus
The status of the action.
sourcepub fn subscribers(&self) -> &[Subscriber]
pub fn subscribers(&self) -> &[Subscriber]
A list of subscribers.
Trait Implementations§
source§impl PartialEq for Action
impl PartialEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more