-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnBudgetProps.go
89 lines (86 loc) · 3.35 KB
/
CfnBudgetProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package awsbudgets
// Properties for defining a `CfnBudget`.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var costFilters interface{}
// var plannedBudgetLimits interface{}
//
// cfnBudgetProps := &CfnBudgetProps{
// Budget: &BudgetDataProperty{
// BudgetType: jsii.String("budgetType"),
// TimeUnit: jsii.String("timeUnit"),
//
// // the properties below are optional
// AutoAdjustData: &AutoAdjustDataProperty{
// AutoAdjustType: jsii.String("autoAdjustType"),
//
// // the properties below are optional
// HistoricalOptions: &HistoricalOptionsProperty{
// BudgetAdjustmentPeriod: jsii.Number(123),
// },
// },
// BudgetLimit: &SpendProperty{
// Amount: jsii.Number(123),
// Unit: jsii.String("unit"),
// },
// BudgetName: jsii.String("budgetName"),
// CostFilters: costFilters,
// CostTypes: &CostTypesProperty{
// IncludeCredit: jsii.Boolean(false),
// IncludeDiscount: jsii.Boolean(false),
// IncludeOtherSubscription: jsii.Boolean(false),
// IncludeRecurring: jsii.Boolean(false),
// IncludeRefund: jsii.Boolean(false),
// IncludeSubscription: jsii.Boolean(false),
// IncludeSupport: jsii.Boolean(false),
// IncludeTax: jsii.Boolean(false),
// IncludeUpfront: jsii.Boolean(false),
// UseAmortized: jsii.Boolean(false),
// UseBlended: jsii.Boolean(false),
// },
// PlannedBudgetLimits: plannedBudgetLimits,
// TimePeriod: &TimePeriodProperty{
// End: jsii.String("end"),
// Start: jsii.String("start"),
// },
// },
//
// // the properties below are optional
// NotificationsWithSubscribers: []interface{}{
// &NotificationWithSubscribersProperty{
// Notification: &NotificationProperty{
// ComparisonOperator: jsii.String("comparisonOperator"),
// NotificationType: jsii.String("notificationType"),
// Threshold: jsii.Number(123),
//
// // the properties below are optional
// ThresholdType: jsii.String("thresholdType"),
// },
// Subscribers: []interface{}{
// &SubscriberProperty{
// Address: jsii.String("address"),
// SubscriptionType: jsii.String("subscriptionType"),
// },
// },
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html
//
type CfnBudgetProps struct {
// The budget object that you want to create.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-budget
//
Budget interface{} `field:"required" json:"budget" yaml:"budget"`
// A notification that you want to associate with a budget.
//
// A budget can have up to five notifications, and each notification can have one SNS subscriber and up to 10 email subscribers. If you include notifications and subscribers in your `CreateBudget` call, AWS creates the notifications and subscribers for you.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-budgets-budget.html#cfn-budgets-budget-notificationswithsubscribers
//
NotificationsWithSubscribers interface{} `field:"optional" json:"notificationsWithSubscribers" yaml:"notificationsWithSubscribers"`
}