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,IBudgetsActionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:32.604Z")
@Stability(Stable)
public class CfnBudgetsAction
extends CfnResource
implements IInspectable, IBudgetsActionRef, 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 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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe trigger threshold of the action.static final classA fluent builder forCfnBudgetsAction.static interfaceThe definition is where you specify all of the type-specific parameters.static interfaceThe AWS Identity and Access Management ( IAM ) action definition details.static interfaceThe tag structure that contains a tag key and value.static interfaceThe service control policies (SCP) action definition details.static interfaceThe Amazon EC2 Systems Manager ( SSM ) action definition details.static interfaceThe subscriber to a budget notification.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.budgets.IBudgetsActionRef
IBudgetsActionRef.Jsii$Default, IBudgetsActionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnBudgetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBudgetsAction(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.A reference to a BudgetsAction resource.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActionThreshold(IResolvable value) The trigger threshold of the action.voidThe trigger threshold of the action.voidsetActionType(String value) The type of action.voidsetApprovalModel(String value) This specifies if the action needs manual or automatic approval.voidsetBudgetName(String value) A string that represents the budget name.voidsetDefinition(IResolvable value) Specifies all of the type-specific parameters.voidSpecifies all of the type-specific parameters.voidsetExecutionRoleArn(String value) The role passed for action execution and reversion.voidsetNotificationType(String value) The type of a notification.voidAn optional list of tags to associate with the specified budget action.voidsetSubscribers(List<Object> value) A list of subscribers.voidsetSubscribers(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, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrActionId
A system-generated universally unique identifier (UUID) for the action. -
getBudgetsActionRef
A reference to a BudgetsAction resource.- Specified by:
getBudgetsActionRefin interfaceIBudgetsActionRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getActionThreshold
The trigger threshold of the action.Returns union: either
IResolvableorCfnBudgetsAction.ActionThresholdProperty -
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.Returns union: either
IResolvableorCfnBudgetsAction.DefinitionProperty -
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBudgetsAction.SubscriberProperty> -
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.
-