Class CfnBudgetsAction
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.budgets.CfnBudgetsAction
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.849Z")
@Stability(Stable)
public class CfnBudgetsAction
extends CfnResource
implements IInspectable
A CloudFormation
AWS::Budgets::BudgetsAction.
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")
.build();
-
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 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.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnBudgetsAction(Construct scope, String id, CfnBudgetsActionProps props) Create a newAWS::Budgets::BudgetsAction.protectedCfnBudgetsAction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBudgetsAction(software.amazon.jsii.JsiiObjectRef objRef) -
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.Specifies all of the type-specific parameters.The role passed for action execution and reversion.The type of a notification.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.voidsetSubscribers(List<Object> value) A list of subscribers.voidsetSubscribers(IResolvable value) A list of subscribers.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnBudgetsActionProps props) Create a newAWS::Budgets::BudgetsAction.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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. -
getCfnProperties
- Overrides:
getCfnPropertiesin 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.This defines the type of tasks that can be carried out by this action. This field also determines the format for definition.
-
setActionType
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.
-
getBudgetName
A string that represents the budget name.":" and "" characters aren't allowed.
-
setBudgetName
A string that represents the budget name.":" and "" characters aren't allowed.
-
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.Roles and actions must be in the same account.
-
setExecutionRoleArn
The role passed for action execution and reversion.Roles and actions must be in the same account.
-
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.
-