Class CfnBudgetsAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.budgets.CfnBudgetsAction
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:15.168Z")
@Stability(Stable)
public class CfnBudgetsAction
extends CfnResource
implements IInspectable, ITaggableV2
The
AWS::Budgets::BudgetsAction
resource 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 AWS Billing and Cost Management User Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.budgets.*; CfnBudgetsAction cfnBudgetsAction = CfnBudgetsAction.Builder.create(this, "MyCfnBudgetsAction") .actionThreshold(ActionThresholdProperty.builder() .type("type") .value(123) .build()) .actionType("actionType") .budgetName("budgetName") .definition(DefinitionProperty.builder() .iamActionDefinition(IamActionDefinitionProperty.builder() .policyArn("policyArn") // the properties below are optional .groups(List.of("groups")) .roles(List.of("roles")) .users(List.of("users")) .build()) .scpActionDefinition(ScpActionDefinitionProperty.builder() .policyId("policyId") .targetIds(List.of("targetIds")) .build()) .ssmActionDefinition(SsmActionDefinitionProperty.builder() .instanceIds(List.of("instanceIds")) .region("region") .subtype("subtype") .build()) .build()) .executionRoleArn("executionRoleArn") .notificationType("notificationType") .subscribers(List.of(SubscriberProperty.builder() .address("address") .type("type") .build())) // the properties below are optional .approvalModel("approvalModel") .resourceTags(List.of(ResourceTagProperty.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The trigger threshold of the action.static final class
A fluent builder forCfnBudgetsAction
.static interface
The definition is where you specify all of the type-specific parameters.static interface
The AWS Identity and Access Management ( IAM ) action definition details.static interface
The tag structure that contains a tag key and value.static interface
The service control policies (SCP) action definition details.static interface
The Amazon EC2 Systems Manager ( SSM ) action definition details.static interface
The subscriber to a budget notification.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnBudgetsAction
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnBudgetsAction
(software.amazon.jsii.JsiiObjectRef objRef) CfnBudgetsAction
(software.constructs.Construct scope, String id, CfnBudgetsActionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe trigger threshold of the action.The type of action.This specifies if the action needs manual or automatic approval.A system-generated universally unique identifier (UUID) for the action.A string that represents the budget name.Tag Manager which manages the tags for this resource.Specifies all of the type-specific parameters.The role passed for action execution and reversion.The type of a notification.An optional list of tags to associate with the specified budget action.A list of subscribers.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setActionThreshold
(IResolvable value) The trigger threshold of the action.void
The trigger threshold of the action.void
setActionType
(String value) The type of action.void
setApprovalModel
(String value) This specifies if the action needs manual or automatic approval.void
setBudgetName
(String value) A string that represents the budget name.void
setDefinition
(IResolvable value) Specifies all of the type-specific parameters.void
Specifies all of the type-specific parameters.void
setExecutionRoleArn
(String value) The role passed for action execution and reversion.void
setNotificationType
(String value) The type of a notification.void
An optional list of tags to associate with the specified budget action.void
setSubscribers
(List<Object> value) A list of subscribers.void
setSubscribers
(IResolvable value) A list of subscribers.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBudgetsAction
protected CfnBudgetsAction(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBudgetsAction
protected CfnBudgetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBudgetsAction
@Stability(Stable) public CfnBudgetsAction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBudgetsActionProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrActionId
A system-generated universally unique identifier (UUID) for the action. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getActionThreshold
The trigger threshold of the action. -
setActionThreshold
The trigger threshold of the action. -
setActionThreshold
@Stability(Stable) public void setActionThreshold(@NotNull CfnBudgetsAction.ActionThresholdProperty value) The trigger threshold of the action. -
getActionType
The type of action. -
setActionType
The type of action. -
getBudgetName
A string that represents the budget name. -
setBudgetName
A string that represents the budget name. -
getDefinition
Specifies all of the type-specific parameters. -
setDefinition
Specifies all of the type-specific parameters. -
setDefinition
Specifies all of the type-specific parameters. -
getExecutionRoleArn
The role passed for action execution and reversion. -
setExecutionRoleArn
The role passed for action execution and reversion. -
getNotificationType
The type of a notification. -
setNotificationType
The type of a notification. -
getSubscribers
A list of subscribers. -
setSubscribers
A list of subscribers. -
setSubscribers
A list of subscribers. -
getApprovalModel
This specifies if the action needs manual or automatic approval. -
setApprovalModel
This specifies if the action needs manual or automatic approval. -
getResourceTags
An optional list of tags to associate with the specified budget action. -
setResourceTags
@Stability(Stable) public void setResourceTags(@Nullable List<CfnBudgetsAction.ResourceTagProperty> value) An optional list of tags to associate with the specified budget action.
-