CfnBudgetsActionPropsMixin
- class aws_cdk.mixins_preview.aws_budgets.mixins.CfnBudgetsActionPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::Budgets::BudgetsActionresource enables you to take predefined actions that are initiated when a budget threshold has been exceeded.For more information, see Managing Your Costs with Budgets in the Billing and Cost Management User Guide .
- See:
- CloudformationResource:
AWS::Budgets::BudgetsAction
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins cfn_budgets_action_props_mixin = budgets_mixins.CfnBudgetsActionPropsMixin(budgets_mixins.CfnBudgetsActionMixinProps( action_threshold=budgets_mixins.CfnBudgetsActionPropsMixin.ActionThresholdProperty( type="type", value=123 ), action_type="actionType", approval_model="approvalModel", budget_name="budgetName", definition=budgets_mixins.CfnBudgetsActionPropsMixin.DefinitionProperty( iam_action_definition=budgets_mixins.CfnBudgetsActionPropsMixin.IamActionDefinitionProperty( groups=["groups"], policy_arn="policyArn", roles=["roles"], users=["users"] ), scp_action_definition=budgets_mixins.CfnBudgetsActionPropsMixin.ScpActionDefinitionProperty( policy_id="policyId", target_ids=["targetIds"] ), ssm_action_definition=budgets_mixins.CfnBudgetsActionPropsMixin.SsmActionDefinitionProperty( instance_ids=["instanceIds"], region="region", subtype="subtype" ) ), execution_role_arn="executionRoleArn", notification_type="notificationType", resource_tags=[budgets_mixins.CfnBudgetsActionPropsMixin.ResourceTagProperty( key="key", value="value" )], subscribers=[budgets_mixins.CfnBudgetsActionPropsMixin.SubscriberProperty( address="address", type="type" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Budgets::BudgetsAction.- Parameters:
props (
Union[CfnBudgetsActionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['actionThreshold', 'actionType', 'approvalModel', 'budgetName', 'definition', 'executionRoleArn', 'notificationType', 'resourceTags', 'subscribers']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ActionThresholdProperty
- class CfnBudgetsActionPropsMixin.ActionThresholdProperty(*, type=None, value=None)
Bases:
objectThe trigger threshold of the action.
- Parameters:
type (
Optional[str]) – The type of threshold for a notification.value (
Union[int,float,None]) – The threshold of a notification.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins action_threshold_property = budgets_mixins.CfnBudgetsActionPropsMixin.ActionThresholdProperty( type="type", value=123 )
Attributes
- type
The type of threshold for a notification.
- value
The threshold of a notification.
DefinitionProperty
- class CfnBudgetsActionPropsMixin.DefinitionProperty(*, iam_action_definition=None, scp_action_definition=None, ssm_action_definition=None)
Bases:
objectThe definition is where you specify all of the type-specific parameters.
- Parameters:
iam_action_definition (
Union[IResolvable,IamActionDefinitionProperty,Dict[str,Any],None]) – The AWS Identity and Access Management ( IAM ) action definition details.scp_action_definition (
Union[IResolvable,ScpActionDefinitionProperty,Dict[str,Any],None]) – The service control policies (SCP) action definition details.ssm_action_definition (
Union[IResolvable,SsmActionDefinitionProperty,Dict[str,Any],None]) – The Amazon EC2 Systems Manager ( SSM ) action definition details.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins definition_property = budgets_mixins.CfnBudgetsActionPropsMixin.DefinitionProperty( iam_action_definition=budgets_mixins.CfnBudgetsActionPropsMixin.IamActionDefinitionProperty( groups=["groups"], policy_arn="policyArn", roles=["roles"], users=["users"] ), scp_action_definition=budgets_mixins.CfnBudgetsActionPropsMixin.ScpActionDefinitionProperty( policy_id="policyId", target_ids=["targetIds"] ), ssm_action_definition=budgets_mixins.CfnBudgetsActionPropsMixin.SsmActionDefinitionProperty( instance_ids=["instanceIds"], region="region", subtype="subtype" ) )
Attributes
- iam_action_definition
The AWS Identity and Access Management ( IAM ) action definition details.
- scp_action_definition
The service control policies (SCP) action definition details.
- ssm_action_definition
The Amazon EC2 Systems Manager ( SSM ) action definition details.
IamActionDefinitionProperty
- class CfnBudgetsActionPropsMixin.IamActionDefinitionProperty(*, groups=None, policy_arn=None, roles=None, users=None)
Bases:
objectThe AWS Identity and Access Management ( IAM ) action definition details.
- Parameters:
groups (
Optional[Sequence[str]]) – A list of groups to be attached. There must be at least one group.policy_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the policy to be attached.roles (
Optional[Sequence[str]]) – A list of roles to be attached. There must be at least one role.users (
Optional[Sequence[str]]) – A list of users to be attached. There must be at least one user.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins iam_action_definition_property = budgets_mixins.CfnBudgetsActionPropsMixin.IamActionDefinitionProperty( groups=["groups"], policy_arn="policyArn", roles=["roles"], users=["users"] )
Attributes
- groups
A list of groups to be attached.
There must be at least one group.
- policy_arn
The Amazon Resource Name (ARN) of the policy to be attached.
- roles
A list of roles to be attached.
There must be at least one role.
- users
A list of users to be attached.
There must be at least one user.
ResourceTagProperty
- class CfnBudgetsActionPropsMixin.ResourceTagProperty(*, key=None, value=None)
Bases:
objectThe tag structure that contains a tag key and value.
- Parameters:
key (
Optional[str]) – The key that’s associated with the tag.value (
Optional[str]) – The value that’s associated with the tag.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins resource_tag_property = budgets_mixins.CfnBudgetsActionPropsMixin.ResourceTagProperty( key="key", value="value" )
Attributes
- key
The key that’s associated with the tag.
- value
The value that’s associated with the tag.
ScpActionDefinitionProperty
- class CfnBudgetsActionPropsMixin.ScpActionDefinitionProperty(*, policy_id=None, target_ids=None)
Bases:
objectThe service control policies (SCP) action definition details.
- Parameters:
policy_id (
Optional[str]) – The policy ID attached.target_ids (
Optional[Sequence[str]]) – A list of target IDs.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins scp_action_definition_property = budgets_mixins.CfnBudgetsActionPropsMixin.ScpActionDefinitionProperty( policy_id="policyId", target_ids=["targetIds"] )
Attributes
- policy_id
The policy ID attached.
SsmActionDefinitionProperty
- class CfnBudgetsActionPropsMixin.SsmActionDefinitionProperty(*, instance_ids=None, region=None, subtype=None)
Bases:
objectThe Amazon EC2 Systems Manager ( SSM ) action definition details.
- Parameters:
instance_ids (
Optional[Sequence[str]]) – The EC2 and RDS instance IDs.region (
Optional[str]) – The Region to run the ( SSM ) document.subtype (
Optional[str]) – The action subType.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins ssm_action_definition_property = budgets_mixins.CfnBudgetsActionPropsMixin.SsmActionDefinitionProperty( instance_ids=["instanceIds"], region="region", subtype="subtype" )
Attributes
- instance_ids
The EC2 and RDS instance IDs.
- region
The Region to run the ( SSM ) document.
SubscriberProperty
- class CfnBudgetsActionPropsMixin.SubscriberProperty(*, address=None, type=None)
Bases:
objectThe subscriber to a budget notification.
The subscriber consists of a subscription type and either an Amazon SNS topic or an email address.
For example, an email subscriber has the following parameters:
A
subscriptionTypeofEMAILAn
addressofexample@example.com
- Parameters:
address (
Optional[str]) – The address that AWS sends budget notifications to, either an SNS topic or an email. When you create a subscriber, the value ofAddresscan’t contain line breaks.type (
Optional[str]) – The type of notification that AWS sends to a subscriber.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_budgets import mixins as budgets_mixins subscriber_property = budgets_mixins.CfnBudgetsActionPropsMixin.SubscriberProperty( address="address", type="type" )
Attributes
- address
The address that AWS sends budget notifications to, either an SNS topic or an email.
When you create a subscriber, the value of
Addresscan’t contain line breaks.
- type
The type of notification that AWS sends to a subscriber.