Documentation ¶
Overview ¶
Package budgets provides the client and types for making API requests to AWS Budgets.
All public APIs for AWS Budgets ¶
See budgets package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/
Using the Client ¶
To AWS Budgets with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWS Budgets client Budgets for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/budgets/#New
Index ¶
- Constants
- type Budget
- func (s Budget) GoString() string
- func (s *Budget) SetBudgetLimit(v *Spend) *Budget
- func (s *Budget) SetBudgetName(v string) *Budget
- func (s *Budget) SetBudgetType(v BudgetType) *Budget
- func (s *Budget) SetCalculatedSpend(v *CalculatedSpend) *Budget
- func (s *Budget) SetCostFilters(v map[string][]string) *Budget
- func (s *Budget) SetCostTypes(v *CostTypes) *Budget
- func (s *Budget) SetTimePeriod(v *TimePeriod) *Budget
- func (s *Budget) SetTimeUnit(v TimeUnit) *Budget
- func (s Budget) String() string
- func (s *Budget) Validate() error
- type BudgetType
- type Budgets
- func (c *Budgets) CreateBudgetRequest(input *CreateBudgetInput) CreateBudgetRequest
- func (c *Budgets) CreateNotificationRequest(input *CreateNotificationInput) CreateNotificationRequest
- func (c *Budgets) CreateSubscriberRequest(input *CreateSubscriberInput) CreateSubscriberRequest
- func (c *Budgets) DeleteBudgetRequest(input *DeleteBudgetInput) DeleteBudgetRequest
- func (c *Budgets) DeleteNotificationRequest(input *DeleteNotificationInput) DeleteNotificationRequest
- func (c *Budgets) DeleteSubscriberRequest(input *DeleteSubscriberInput) DeleteSubscriberRequest
- func (c *Budgets) DescribeBudgetRequest(input *DescribeBudgetInput) DescribeBudgetRequest
- func (c *Budgets) DescribeBudgetsRequest(input *DescribeBudgetsInput) DescribeBudgetsRequest
- func (c *Budgets) DescribeNotificationsForBudgetRequest(input *DescribeNotificationsForBudgetInput) DescribeNotificationsForBudgetRequest
- func (c *Budgets) DescribeSubscribersForNotificationRequest(input *DescribeSubscribersForNotificationInput) DescribeSubscribersForNotificationRequest
- func (c *Budgets) UpdateBudgetRequest(input *UpdateBudgetInput) UpdateBudgetRequest
- func (c *Budgets) UpdateNotificationRequest(input *UpdateNotificationInput) UpdateNotificationRequest
- func (c *Budgets) UpdateSubscriberRequest(input *UpdateSubscriberInput) UpdateSubscriberRequest
- type CalculatedSpend
- type ComparisonOperator
- type CostTypes
- func (s CostTypes) GoString() string
- func (s *CostTypes) SetIncludeCredit(v bool) *CostTypes
- func (s *CostTypes) SetIncludeOtherSubscription(v bool) *CostTypes
- func (s *CostTypes) SetIncludeRecurring(v bool) *CostTypes
- func (s *CostTypes) SetIncludeRefund(v bool) *CostTypes
- func (s *CostTypes) SetIncludeSubscription(v bool) *CostTypes
- func (s *CostTypes) SetIncludeSupport(v bool) *CostTypes
- func (s *CostTypes) SetIncludeTax(v bool) *CostTypes
- func (s *CostTypes) SetIncludeUpfront(v bool) *CostTypes
- func (s *CostTypes) SetUseBlended(v bool) *CostTypes
- func (s CostTypes) String() string
- type CreateBudgetInput
- func (s CreateBudgetInput) GoString() string
- func (s *CreateBudgetInput) SetAccountId(v string) *CreateBudgetInput
- func (s *CreateBudgetInput) SetBudget(v *Budget) *CreateBudgetInput
- func (s *CreateBudgetInput) SetNotificationsWithSubscribers(v []NotificationWithSubscribers) *CreateBudgetInput
- func (s CreateBudgetInput) String() string
- func (s *CreateBudgetInput) Validate() error
- type CreateBudgetOutput
- type CreateBudgetRequest
- type CreateNotificationInput
- func (s CreateNotificationInput) GoString() string
- func (s *CreateNotificationInput) SetAccountId(v string) *CreateNotificationInput
- func (s *CreateNotificationInput) SetBudgetName(v string) *CreateNotificationInput
- func (s *CreateNotificationInput) SetNotification(v *Notification) *CreateNotificationInput
- func (s *CreateNotificationInput) SetSubscribers(v []Subscriber) *CreateNotificationInput
- func (s CreateNotificationInput) String() string
- func (s *CreateNotificationInput) Validate() error
- type CreateNotificationOutput
- type CreateNotificationRequest
- type CreateSubscriberInput
- func (s CreateSubscriberInput) GoString() string
- func (s *CreateSubscriberInput) SetAccountId(v string) *CreateSubscriberInput
- func (s *CreateSubscriberInput) SetBudgetName(v string) *CreateSubscriberInput
- func (s *CreateSubscriberInput) SetNotification(v *Notification) *CreateSubscriberInput
- func (s *CreateSubscriberInput) SetSubscriber(v *Subscriber) *CreateSubscriberInput
- func (s CreateSubscriberInput) String() string
- func (s *CreateSubscriberInput) Validate() error
- type CreateSubscriberOutput
- type CreateSubscriberRequest
- type DeleteBudgetInput
- type DeleteBudgetOutput
- type DeleteBudgetRequest
- type DeleteNotificationInput
- func (s DeleteNotificationInput) GoString() string
- func (s *DeleteNotificationInput) SetAccountId(v string) *DeleteNotificationInput
- func (s *DeleteNotificationInput) SetBudgetName(v string) *DeleteNotificationInput
- func (s *DeleteNotificationInput) SetNotification(v *Notification) *DeleteNotificationInput
- func (s DeleteNotificationInput) String() string
- func (s *DeleteNotificationInput) Validate() error
- type DeleteNotificationOutput
- type DeleteNotificationRequest
- type DeleteSubscriberInput
- func (s DeleteSubscriberInput) GoString() string
- func (s *DeleteSubscriberInput) SetAccountId(v string) *DeleteSubscriberInput
- func (s *DeleteSubscriberInput) SetBudgetName(v string) *DeleteSubscriberInput
- func (s *DeleteSubscriberInput) SetNotification(v *Notification) *DeleteSubscriberInput
- func (s *DeleteSubscriberInput) SetSubscriber(v *Subscriber) *DeleteSubscriberInput
- func (s DeleteSubscriberInput) String() string
- func (s *DeleteSubscriberInput) Validate() error
- type DeleteSubscriberOutput
- type DeleteSubscriberRequest
- type DescribeBudgetInput
- type DescribeBudgetOutput
- type DescribeBudgetRequest
- type DescribeBudgetsInput
- func (s DescribeBudgetsInput) GoString() string
- func (s *DescribeBudgetsInput) SetAccountId(v string) *DescribeBudgetsInput
- func (s *DescribeBudgetsInput) SetMaxResults(v int64) *DescribeBudgetsInput
- func (s *DescribeBudgetsInput) SetNextToken(v string) *DescribeBudgetsInput
- func (s DescribeBudgetsInput) String() string
- func (s *DescribeBudgetsInput) Validate() error
- type DescribeBudgetsOutput
- func (s DescribeBudgetsOutput) GoString() string
- func (s DescribeBudgetsOutput) SDKResponseMetadata() aws.Response
- func (s *DescribeBudgetsOutput) SetBudgets(v []Budget) *DescribeBudgetsOutput
- func (s *DescribeBudgetsOutput) SetNextToken(v string) *DescribeBudgetsOutput
- func (s DescribeBudgetsOutput) String() string
- type DescribeBudgetsRequest
- type DescribeNotificationsForBudgetInput
- func (s DescribeNotificationsForBudgetInput) GoString() string
- func (s *DescribeNotificationsForBudgetInput) SetAccountId(v string) *DescribeNotificationsForBudgetInput
- func (s *DescribeNotificationsForBudgetInput) SetBudgetName(v string) *DescribeNotificationsForBudgetInput
- func (s *DescribeNotificationsForBudgetInput) SetMaxResults(v int64) *DescribeNotificationsForBudgetInput
- func (s *DescribeNotificationsForBudgetInput) SetNextToken(v string) *DescribeNotificationsForBudgetInput
- func (s DescribeNotificationsForBudgetInput) String() string
- func (s *DescribeNotificationsForBudgetInput) Validate() error
- type DescribeNotificationsForBudgetOutput
- func (s DescribeNotificationsForBudgetOutput) GoString() string
- func (s DescribeNotificationsForBudgetOutput) SDKResponseMetadata() aws.Response
- func (s *DescribeNotificationsForBudgetOutput) SetNextToken(v string) *DescribeNotificationsForBudgetOutput
- func (s *DescribeNotificationsForBudgetOutput) SetNotifications(v []Notification) *DescribeNotificationsForBudgetOutput
- func (s DescribeNotificationsForBudgetOutput) String() string
- type DescribeNotificationsForBudgetRequest
- type DescribeSubscribersForNotificationInput
- func (s DescribeSubscribersForNotificationInput) GoString() string
- func (s *DescribeSubscribersForNotificationInput) SetAccountId(v string) *DescribeSubscribersForNotificationInput
- func (s *DescribeSubscribersForNotificationInput) SetBudgetName(v string) *DescribeSubscribersForNotificationInput
- func (s *DescribeSubscribersForNotificationInput) SetMaxResults(v int64) *DescribeSubscribersForNotificationInput
- func (s *DescribeSubscribersForNotificationInput) SetNextToken(v string) *DescribeSubscribersForNotificationInput
- func (s *DescribeSubscribersForNotificationInput) SetNotification(v *Notification) *DescribeSubscribersForNotificationInput
- func (s DescribeSubscribersForNotificationInput) String() string
- func (s *DescribeSubscribersForNotificationInput) Validate() error
- type DescribeSubscribersForNotificationOutput
- func (s DescribeSubscribersForNotificationOutput) GoString() string
- func (s DescribeSubscribersForNotificationOutput) SDKResponseMetadata() aws.Response
- func (s *DescribeSubscribersForNotificationOutput) SetNextToken(v string) *DescribeSubscribersForNotificationOutput
- func (s *DescribeSubscribersForNotificationOutput) SetSubscribers(v []Subscriber) *DescribeSubscribersForNotificationOutput
- func (s DescribeSubscribersForNotificationOutput) String() string
- type DescribeSubscribersForNotificationRequest
- type Notification
- func (s Notification) GoString() string
- func (s *Notification) SetComparisonOperator(v ComparisonOperator) *Notification
- func (s *Notification) SetNotificationType(v NotificationType) *Notification
- func (s *Notification) SetThreshold(v float64) *Notification
- func (s *Notification) SetThresholdType(v ThresholdType) *Notification
- func (s Notification) String() string
- func (s *Notification) Validate() error
- type NotificationType
- type NotificationWithSubscribers
- func (s NotificationWithSubscribers) GoString() string
- func (s *NotificationWithSubscribers) SetNotification(v *Notification) *NotificationWithSubscribers
- func (s *NotificationWithSubscribers) SetSubscribers(v []Subscriber) *NotificationWithSubscribers
- func (s NotificationWithSubscribers) String() string
- func (s *NotificationWithSubscribers) Validate() error
- type Spend
- type Subscriber
- type SubscriptionType
- type ThresholdType
- type TimePeriod
- type TimeUnit
- type UpdateBudgetInput
- type UpdateBudgetOutput
- type UpdateBudgetRequest
- type UpdateNotificationInput
- func (s UpdateNotificationInput) GoString() string
- func (s *UpdateNotificationInput) SetAccountId(v string) *UpdateNotificationInput
- func (s *UpdateNotificationInput) SetBudgetName(v string) *UpdateNotificationInput
- func (s *UpdateNotificationInput) SetNewNotification(v *Notification) *UpdateNotificationInput
- func (s *UpdateNotificationInput) SetOldNotification(v *Notification) *UpdateNotificationInput
- func (s UpdateNotificationInput) String() string
- func (s *UpdateNotificationInput) Validate() error
- type UpdateNotificationOutput
- type UpdateNotificationRequest
- type UpdateSubscriberInput
- func (s UpdateSubscriberInput) GoString() string
- func (s *UpdateSubscriberInput) SetAccountId(v string) *UpdateSubscriberInput
- func (s *UpdateSubscriberInput) SetBudgetName(v string) *UpdateSubscriberInput
- func (s *UpdateSubscriberInput) SetNewSubscriber(v *Subscriber) *UpdateSubscriberInput
- func (s *UpdateSubscriberInput) SetNotification(v *Notification) *UpdateSubscriberInput
- func (s *UpdateSubscriberInput) SetOldSubscriber(v *Subscriber) *UpdateSubscriberInput
- func (s UpdateSubscriberInput) String() string
- func (s *UpdateSubscriberInput) Validate() error
- type UpdateSubscriberOutput
- type UpdateSubscriberRequest
Constants ¶
const ( // ErrCodeCreationLimitExceededException for service response error code // "CreationLimitExceededException". // // The exception is thrown when customer tries to create a record (e.g. budget), // but the number this record already exceeds the limitation. ErrCodeCreationLimitExceededException = "CreationLimitExceededException" // ErrCodeDuplicateRecordException for service response error code // "DuplicateRecordException". // // The exception is thrown when customer tries to create a record (e.g. budget) // that already exists. ErrCodeDuplicateRecordException = "DuplicateRecordException" // ErrCodeExpiredNextTokenException for service response error code // "ExpiredNextTokenException". // // This exception is thrown if the paging token is expired - past its TTL ErrCodeExpiredNextTokenException = "ExpiredNextTokenException" // ErrCodeInternalErrorException for service response error code // "InternalErrorException". // // This exception is thrown on an unknown internal failure. ErrCodeInternalErrorException = "InternalErrorException" // ErrCodeInvalidNextTokenException for service response error code // "InvalidNextTokenException". // // This exception is thrown if paging token signature didn't match the token, // or the paging token isn't for this request ErrCodeInvalidNextTokenException = "InvalidNextTokenException" // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". // // This exception is thrown if any request is given an invalid parameter. E.g., // if a required Date field is null. ErrCodeInvalidParameterException = "InvalidParameterException" // ErrCodeNotFoundException for service response error code // "NotFoundException". // // This exception is thrown if a requested entity is not found. E.g., if a budget // id doesn't exist for an account ID. ErrCodeNotFoundException = "NotFoundException" )
const ( ServiceName = "budgets" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Budget ¶
type Budget struct { // A structure that represents either a cost spend or usage spend. Contains // an amount and a unit. // // BudgetLimit is a required field BudgetLimit *Spend `type:"structure" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // The type of a budget. It should be COST, USAGE, or RI_UTILIZATION. // // BudgetType is a required field BudgetType BudgetType `type:"string" required:"true" enum:"true"` // A structure that holds the actual and forecasted spend for a budget. CalculatedSpend *CalculatedSpend `type:"structure"` // A map that represents the cost filters applied to the budget. CostFilters map[string][]string `type:"map"` // This includes the options for getting the cost of a budget. CostTypes *CostTypes `type:"structure"` // A time period indicating the start date and end date of a budget. // // TimePeriod is a required field TimePeriod *TimePeriod `type:"structure" required:"true"` // The time unit of the budget. e.g. MONTHLY, QUARTERLY, etc. // // TimeUnit is a required field TimeUnit TimeUnit `type:"string" required:"true" enum:"true"` // contains filtered or unexported fields }
AWS Budget model
func (*Budget) SetBudgetLimit ¶
SetBudgetLimit sets the BudgetLimit field's value.
func (*Budget) SetBudgetName ¶
SetBudgetName sets the BudgetName field's value.
func (*Budget) SetBudgetType ¶
func (s *Budget) SetBudgetType(v BudgetType) *Budget
SetBudgetType sets the BudgetType field's value.
func (*Budget) SetCalculatedSpend ¶
func (s *Budget) SetCalculatedSpend(v *CalculatedSpend) *Budget
SetCalculatedSpend sets the CalculatedSpend field's value.
func (*Budget) SetCostFilters ¶
SetCostFilters sets the CostFilters field's value.
func (*Budget) SetCostTypes ¶
SetCostTypes sets the CostTypes field's value.
func (*Budget) SetTimePeriod ¶
func (s *Budget) SetTimePeriod(v *TimePeriod) *Budget
SetTimePeriod sets the TimePeriod field's value.
func (*Budget) SetTimeUnit ¶
SetTimeUnit sets the TimeUnit field's value.
type BudgetType ¶
type BudgetType string
The type of a budget. It should be COST, USAGE, or RI_UTILIZATION.
const ( BudgetTypeUsage BudgetType = "USAGE" BudgetTypeCost BudgetType = "COST" BudgetTypeRiUtilization BudgetType = "RI_UTILIZATION" )
Enum values for BudgetType
type Budgets ¶
Budgets provides the API operation methods for making requests to AWS Budgets. See this package's package overview docs for details on the service.
Budgets methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the Budgets client with a config. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
// Create a Budgets client from just a config. svc := budgets.New(myConfig) // Create a Budgets client with additional configuration svc := budgets.New(myConfig, aws.NewConfig().WithRegion("us-west-2"))
func (*Budgets) CreateBudgetRequest ¶
func (c *Budgets) CreateBudgetRequest(input *CreateBudgetInput) CreateBudgetRequest
CreateBudgetRequest returns a request value for making API operation for AWS Budgets.
Create a new budget
// Example sending a request using the CreateBudgetRequest method. req := client.CreateBudgetRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) CreateNotificationRequest ¶
func (c *Budgets) CreateNotificationRequest(input *CreateNotificationInput) CreateNotificationRequest
CreateNotificationRequest returns a request value for making API operation for AWS Budgets.
Create a new Notification with subscribers for a budget
// Example sending a request using the CreateNotificationRequest method. req := client.CreateNotificationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) CreateSubscriberRequest ¶
func (c *Budgets) CreateSubscriberRequest(input *CreateSubscriberInput) CreateSubscriberRequest
CreateSubscriberRequest returns a request value for making API operation for AWS Budgets.
Create a new Subscriber for a notification
// Example sending a request using the CreateSubscriberRequest method. req := client.CreateSubscriberRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) DeleteBudgetRequest ¶
func (c *Budgets) DeleteBudgetRequest(input *DeleteBudgetInput) DeleteBudgetRequest
DeleteBudgetRequest returns a request value for making API operation for AWS Budgets.
Delete a budget and related notifications
// Example sending a request using the DeleteBudgetRequest method. req := client.DeleteBudgetRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) DeleteNotificationRequest ¶
func (c *Budgets) DeleteNotificationRequest(input *DeleteNotificationInput) DeleteNotificationRequest
DeleteNotificationRequest returns a request value for making API operation for AWS Budgets.
Delete a notification and related subscribers
// Example sending a request using the DeleteNotificationRequest method. req := client.DeleteNotificationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) DeleteSubscriberRequest ¶
func (c *Budgets) DeleteSubscriberRequest(input *DeleteSubscriberInput) DeleteSubscriberRequest
DeleteSubscriberRequest returns a request value for making API operation for AWS Budgets.
Delete a Subscriber for a notification
// Example sending a request using the DeleteSubscriberRequest method. req := client.DeleteSubscriberRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) DescribeBudgetRequest ¶
func (c *Budgets) DescribeBudgetRequest(input *DescribeBudgetInput) DescribeBudgetRequest
DescribeBudgetRequest returns a request value for making API operation for AWS Budgets.
Get a single budget
// Example sending a request using the DescribeBudgetRequest method. req := client.DescribeBudgetRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) DescribeBudgetsRequest ¶
func (c *Budgets) DescribeBudgetsRequest(input *DescribeBudgetsInput) DescribeBudgetsRequest
DescribeBudgetsRequest returns a request value for making API operation for AWS Budgets.
Get all budgets for an account
// Example sending a request using the DescribeBudgetsRequest method. req := client.DescribeBudgetsRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) DescribeNotificationsForBudgetRequest ¶
func (c *Budgets) DescribeNotificationsForBudgetRequest(input *DescribeNotificationsForBudgetInput) DescribeNotificationsForBudgetRequest
DescribeNotificationsForBudgetRequest returns a request value for making API operation for AWS Budgets.
Get notifications of a budget
// Example sending a request using the DescribeNotificationsForBudgetRequest method. req := client.DescribeNotificationsForBudgetRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) DescribeSubscribersForNotificationRequest ¶
func (c *Budgets) DescribeSubscribersForNotificationRequest(input *DescribeSubscribersForNotificationInput) DescribeSubscribersForNotificationRequest
DescribeSubscribersForNotificationRequest returns a request value for making API operation for AWS Budgets.
Get subscribers of a notification
// Example sending a request using the DescribeSubscribersForNotificationRequest method. req := client.DescribeSubscribersForNotificationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) UpdateBudgetRequest ¶
func (c *Budgets) UpdateBudgetRequest(input *UpdateBudgetInput) UpdateBudgetRequest
UpdateBudgetRequest returns a request value for making API operation for AWS Budgets.
Update the information of a budget already created
// Example sending a request using the UpdateBudgetRequest method. req := client.UpdateBudgetRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) UpdateNotificationRequest ¶
func (c *Budgets) UpdateNotificationRequest(input *UpdateNotificationInput) UpdateNotificationRequest
UpdateNotificationRequest returns a request value for making API operation for AWS Budgets.
Update the information about a notification already created
// Example sending a request using the UpdateNotificationRequest method. req := client.UpdateNotificationRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
func (*Budgets) UpdateSubscriberRequest ¶
func (c *Budgets) UpdateSubscriberRequest(input *UpdateSubscriberInput) UpdateSubscriberRequest
UpdateSubscriberRequest returns a request value for making API operation for AWS Budgets.
Update a subscriber
// Example sending a request using the UpdateSubscriberRequest method. req := client.UpdateSubscriberRequest(params) resp, err := req.Send() if err == nil { fmt.Println(resp) }
type CalculatedSpend ¶
type CalculatedSpend struct { // A structure that represents either a cost spend or usage spend. Contains // an amount and a unit. // // ActualSpend is a required field ActualSpend *Spend `type:"structure" required:"true"` // A structure that represents either a cost spend or usage spend. Contains // an amount and a unit. ForecastedSpend *Spend `type:"structure"` // contains filtered or unexported fields }
A structure that holds the actual and forecasted spend for a budget.
func (CalculatedSpend) GoString ¶
func (s CalculatedSpend) GoString() string
GoString returns the string representation
func (*CalculatedSpend) SetActualSpend ¶
func (s *CalculatedSpend) SetActualSpend(v *Spend) *CalculatedSpend
SetActualSpend sets the ActualSpend field's value.
func (*CalculatedSpend) SetForecastedSpend ¶
func (s *CalculatedSpend) SetForecastedSpend(v *Spend) *CalculatedSpend
SetForecastedSpend sets the ForecastedSpend field's value.
func (CalculatedSpend) String ¶
func (s CalculatedSpend) String() string
String returns the string representation
func (*CalculatedSpend) Validate ¶
func (s *CalculatedSpend) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ComparisonOperator ¶
type ComparisonOperator string
The comparison operator of a notification. Currently we support less than, equal to and greater than.
const ( ComparisonOperatorGreaterThan ComparisonOperator = "GREATER_THAN" ComparisonOperatorLessThan ComparisonOperator = "LESS_THAN" ComparisonOperatorEqualTo ComparisonOperator = "EQUAL_TO" )
Enum values for ComparisonOperator
type CostTypes ¶
type CostTypes struct { // A boolean value whether to include credits in the cost budget. IncludeCredit *bool `type:"boolean"` // A boolean value whether to include other subscription costs in the cost budget. IncludeOtherSubscription *bool `type:"boolean"` // A boolean value whether to include recurring costs in the cost budget. IncludeRecurring *bool `type:"boolean"` // A boolean value whether to include refunds in the cost budget. IncludeRefund *bool `type:"boolean"` // A boolean value whether to include subscriptions in the cost budget. IncludeSubscription *bool `type:"boolean"` // A boolean value whether to include support costs in the cost budget. IncludeSupport *bool `type:"boolean"` // A boolean value whether to include tax in the cost budget. IncludeTax *bool `type:"boolean"` // A boolean value whether to include upfront costs in the cost budget. IncludeUpfront *bool `type:"boolean"` // A boolean value whether to use blended costs in the cost budget. UseBlended *bool `type:"boolean"` // contains filtered or unexported fields }
This includes the options for getting the cost of a budget.
func (*CostTypes) SetIncludeCredit ¶
SetIncludeCredit sets the IncludeCredit field's value.
func (*CostTypes) SetIncludeOtherSubscription ¶
SetIncludeOtherSubscription sets the IncludeOtherSubscription field's value.
func (*CostTypes) SetIncludeRecurring ¶
SetIncludeRecurring sets the IncludeRecurring field's value.
func (*CostTypes) SetIncludeRefund ¶
SetIncludeRefund sets the IncludeRefund field's value.
func (*CostTypes) SetIncludeSubscription ¶
SetIncludeSubscription sets the IncludeSubscription field's value.
func (*CostTypes) SetIncludeSupport ¶
SetIncludeSupport sets the IncludeSupport field's value.
func (*CostTypes) SetIncludeTax ¶
SetIncludeTax sets the IncludeTax field's value.
func (*CostTypes) SetIncludeUpfront ¶
SetIncludeUpfront sets the IncludeUpfront field's value.
func (*CostTypes) SetUseBlended ¶
SetUseBlended sets the UseBlended field's value.
type CreateBudgetInput ¶
type CreateBudgetInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // AWS Budget model // // Budget is a required field Budget *Budget `type:"structure" required:"true"` // A list of Notifications, each with a list of subscribers. NotificationsWithSubscribers []NotificationWithSubscribers `type:"list"` // contains filtered or unexported fields }
Request of CreateBudget
func (CreateBudgetInput) GoString ¶
func (s CreateBudgetInput) GoString() string
GoString returns the string representation
func (*CreateBudgetInput) SetAccountId ¶
func (s *CreateBudgetInput) SetAccountId(v string) *CreateBudgetInput
SetAccountId sets the AccountId field's value.
func (*CreateBudgetInput) SetBudget ¶
func (s *CreateBudgetInput) SetBudget(v *Budget) *CreateBudgetInput
SetBudget sets the Budget field's value.
func (*CreateBudgetInput) SetNotificationsWithSubscribers ¶
func (s *CreateBudgetInput) SetNotificationsWithSubscribers(v []NotificationWithSubscribers) *CreateBudgetInput
SetNotificationsWithSubscribers sets the NotificationsWithSubscribers field's value.
func (CreateBudgetInput) String ¶
func (s CreateBudgetInput) String() string
String returns the string representation
func (*CreateBudgetInput) Validate ¶
func (s *CreateBudgetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateBudgetOutput ¶
type CreateBudgetOutput struct {
// contains filtered or unexported fields
}
Response of CreateBudget
func (CreateBudgetOutput) GoString ¶
func (s CreateBudgetOutput) GoString() string
GoString returns the string representation
func (CreateBudgetOutput) SDKResponseMetadata ¶
func (s CreateBudgetOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateBudgetOutput) String ¶
func (s CreateBudgetOutput) String() string
String returns the string representation
type CreateBudgetRequest ¶
type CreateBudgetRequest struct { *aws.Request Input *CreateBudgetInput }
CreateBudgetRequest is a API request type for the CreateBudget API operation.
func (CreateBudgetRequest) Send ¶
func (r CreateBudgetRequest) Send() (*CreateBudgetOutput, error)
Send marshals and sends the CreateBudget API request.
type CreateNotificationInput ¶
type CreateNotificationInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // Notification model. Each budget may contain multiple notifications with different // settings. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // A list of subscribers. // // Subscribers is a required field Subscribers []Subscriber `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
Request of CreateNotification
func (CreateNotificationInput) GoString ¶
func (s CreateNotificationInput) GoString() string
GoString returns the string representation
func (*CreateNotificationInput) SetAccountId ¶
func (s *CreateNotificationInput) SetAccountId(v string) *CreateNotificationInput
SetAccountId sets the AccountId field's value.
func (*CreateNotificationInput) SetBudgetName ¶
func (s *CreateNotificationInput) SetBudgetName(v string) *CreateNotificationInput
SetBudgetName sets the BudgetName field's value.
func (*CreateNotificationInput) SetNotification ¶
func (s *CreateNotificationInput) SetNotification(v *Notification) *CreateNotificationInput
SetNotification sets the Notification field's value.
func (*CreateNotificationInput) SetSubscribers ¶
func (s *CreateNotificationInput) SetSubscribers(v []Subscriber) *CreateNotificationInput
SetSubscribers sets the Subscribers field's value.
func (CreateNotificationInput) String ¶
func (s CreateNotificationInput) String() string
String returns the string representation
func (*CreateNotificationInput) Validate ¶
func (s *CreateNotificationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateNotificationOutput ¶
type CreateNotificationOutput struct {
// contains filtered or unexported fields
}
Response of CreateNotification
func (CreateNotificationOutput) GoString ¶
func (s CreateNotificationOutput) GoString() string
GoString returns the string representation
func (CreateNotificationOutput) SDKResponseMetadata ¶
func (s CreateNotificationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateNotificationOutput) String ¶
func (s CreateNotificationOutput) String() string
String returns the string representation
type CreateNotificationRequest ¶
type CreateNotificationRequest struct { *aws.Request Input *CreateNotificationInput }
CreateNotificationRequest is a API request type for the CreateNotification API operation.
func (CreateNotificationRequest) Send ¶
func (r CreateNotificationRequest) Send() (*CreateNotificationOutput, error)
Send marshals and sends the CreateNotification API request.
type CreateSubscriberInput ¶
type CreateSubscriberInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // Notification model. Each budget may contain multiple notifications with different // settings. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // Subscriber model. Each notification may contain multiple subscribers with // different addresses. // // Subscriber is a required field Subscriber *Subscriber `type:"structure" required:"true"` // contains filtered or unexported fields }
Request of CreateSubscriber
func (CreateSubscriberInput) GoString ¶
func (s CreateSubscriberInput) GoString() string
GoString returns the string representation
func (*CreateSubscriberInput) SetAccountId ¶
func (s *CreateSubscriberInput) SetAccountId(v string) *CreateSubscriberInput
SetAccountId sets the AccountId field's value.
func (*CreateSubscriberInput) SetBudgetName ¶
func (s *CreateSubscriberInput) SetBudgetName(v string) *CreateSubscriberInput
SetBudgetName sets the BudgetName field's value.
func (*CreateSubscriberInput) SetNotification ¶
func (s *CreateSubscriberInput) SetNotification(v *Notification) *CreateSubscriberInput
SetNotification sets the Notification field's value.
func (*CreateSubscriberInput) SetSubscriber ¶
func (s *CreateSubscriberInput) SetSubscriber(v *Subscriber) *CreateSubscriberInput
SetSubscriber sets the Subscriber field's value.
func (CreateSubscriberInput) String ¶
func (s CreateSubscriberInput) String() string
String returns the string representation
func (*CreateSubscriberInput) Validate ¶
func (s *CreateSubscriberInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateSubscriberOutput ¶
type CreateSubscriberOutput struct {
// contains filtered or unexported fields
}
Response of CreateSubscriber
func (CreateSubscriberOutput) GoString ¶
func (s CreateSubscriberOutput) GoString() string
GoString returns the string representation
func (CreateSubscriberOutput) SDKResponseMetadata ¶
func (s CreateSubscriberOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (CreateSubscriberOutput) String ¶
func (s CreateSubscriberOutput) String() string
String returns the string representation
type CreateSubscriberRequest ¶
type CreateSubscriberRequest struct { *aws.Request Input *CreateSubscriberInput }
CreateSubscriberRequest is a API request type for the CreateSubscriber API operation.
func (CreateSubscriberRequest) Send ¶
func (r CreateSubscriberRequest) Send() (*CreateSubscriberOutput, error)
Send marshals and sends the CreateSubscriber API request.
type DeleteBudgetInput ¶
type DeleteBudgetInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // contains filtered or unexported fields }
Request of DeleteBudget
func (DeleteBudgetInput) GoString ¶
func (s DeleteBudgetInput) GoString() string
GoString returns the string representation
func (*DeleteBudgetInput) SetAccountId ¶
func (s *DeleteBudgetInput) SetAccountId(v string) *DeleteBudgetInput
SetAccountId sets the AccountId field's value.
func (*DeleteBudgetInput) SetBudgetName ¶
func (s *DeleteBudgetInput) SetBudgetName(v string) *DeleteBudgetInput
SetBudgetName sets the BudgetName field's value.
func (DeleteBudgetInput) String ¶
func (s DeleteBudgetInput) String() string
String returns the string representation
func (*DeleteBudgetInput) Validate ¶
func (s *DeleteBudgetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBudgetOutput ¶
type DeleteBudgetOutput struct {
// contains filtered or unexported fields
}
Response of DeleteBudget
func (DeleteBudgetOutput) GoString ¶
func (s DeleteBudgetOutput) GoString() string
GoString returns the string representation
func (DeleteBudgetOutput) SDKResponseMetadata ¶
func (s DeleteBudgetOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteBudgetOutput) String ¶
func (s DeleteBudgetOutput) String() string
String returns the string representation
type DeleteBudgetRequest ¶
type DeleteBudgetRequest struct { *aws.Request Input *DeleteBudgetInput }
DeleteBudgetRequest is a API request type for the DeleteBudget API operation.
func (DeleteBudgetRequest) Send ¶
func (r DeleteBudgetRequest) Send() (*DeleteBudgetOutput, error)
Send marshals and sends the DeleteBudget API request.
type DeleteNotificationInput ¶
type DeleteNotificationInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // Notification model. Each budget may contain multiple notifications with different // settings. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // contains filtered or unexported fields }
Request of DeleteNotification
func (DeleteNotificationInput) GoString ¶
func (s DeleteNotificationInput) GoString() string
GoString returns the string representation
func (*DeleteNotificationInput) SetAccountId ¶
func (s *DeleteNotificationInput) SetAccountId(v string) *DeleteNotificationInput
SetAccountId sets the AccountId field's value.
func (*DeleteNotificationInput) SetBudgetName ¶
func (s *DeleteNotificationInput) SetBudgetName(v string) *DeleteNotificationInput
SetBudgetName sets the BudgetName field's value.
func (*DeleteNotificationInput) SetNotification ¶
func (s *DeleteNotificationInput) SetNotification(v *Notification) *DeleteNotificationInput
SetNotification sets the Notification field's value.
func (DeleteNotificationInput) String ¶
func (s DeleteNotificationInput) String() string
String returns the string representation
func (*DeleteNotificationInput) Validate ¶
func (s *DeleteNotificationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteNotificationOutput ¶
type DeleteNotificationOutput struct {
// contains filtered or unexported fields
}
Response of DeleteNotification
func (DeleteNotificationOutput) GoString ¶
func (s DeleteNotificationOutput) GoString() string
GoString returns the string representation
func (DeleteNotificationOutput) SDKResponseMetadata ¶
func (s DeleteNotificationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteNotificationOutput) String ¶
func (s DeleteNotificationOutput) String() string
String returns the string representation
type DeleteNotificationRequest ¶
type DeleteNotificationRequest struct { *aws.Request Input *DeleteNotificationInput }
DeleteNotificationRequest is a API request type for the DeleteNotification API operation.
func (DeleteNotificationRequest) Send ¶
func (r DeleteNotificationRequest) Send() (*DeleteNotificationOutput, error)
Send marshals and sends the DeleteNotification API request.
type DeleteSubscriberInput ¶
type DeleteSubscriberInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // Notification model. Each budget may contain multiple notifications with different // settings. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // Subscriber model. Each notification may contain multiple subscribers with // different addresses. // // Subscriber is a required field Subscriber *Subscriber `type:"structure" required:"true"` // contains filtered or unexported fields }
Request of DeleteSubscriber
func (DeleteSubscriberInput) GoString ¶
func (s DeleteSubscriberInput) GoString() string
GoString returns the string representation
func (*DeleteSubscriberInput) SetAccountId ¶
func (s *DeleteSubscriberInput) SetAccountId(v string) *DeleteSubscriberInput
SetAccountId sets the AccountId field's value.
func (*DeleteSubscriberInput) SetBudgetName ¶
func (s *DeleteSubscriberInput) SetBudgetName(v string) *DeleteSubscriberInput
SetBudgetName sets the BudgetName field's value.
func (*DeleteSubscriberInput) SetNotification ¶
func (s *DeleteSubscriberInput) SetNotification(v *Notification) *DeleteSubscriberInput
SetNotification sets the Notification field's value.
func (*DeleteSubscriberInput) SetSubscriber ¶
func (s *DeleteSubscriberInput) SetSubscriber(v *Subscriber) *DeleteSubscriberInput
SetSubscriber sets the Subscriber field's value.
func (DeleteSubscriberInput) String ¶
func (s DeleteSubscriberInput) String() string
String returns the string representation
func (*DeleteSubscriberInput) Validate ¶
func (s *DeleteSubscriberInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteSubscriberOutput ¶
type DeleteSubscriberOutput struct {
// contains filtered or unexported fields
}
Response of DeleteSubscriber
func (DeleteSubscriberOutput) GoString ¶
func (s DeleteSubscriberOutput) GoString() string
GoString returns the string representation
func (DeleteSubscriberOutput) SDKResponseMetadata ¶
func (s DeleteSubscriberOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (DeleteSubscriberOutput) String ¶
func (s DeleteSubscriberOutput) String() string
String returns the string representation
type DeleteSubscriberRequest ¶
type DeleteSubscriberRequest struct { *aws.Request Input *DeleteSubscriberInput }
DeleteSubscriberRequest is a API request type for the DeleteSubscriber API operation.
func (DeleteSubscriberRequest) Send ¶
func (r DeleteSubscriberRequest) Send() (*DeleteSubscriberOutput, error)
Send marshals and sends the DeleteSubscriber API request.
type DescribeBudgetInput ¶
type DescribeBudgetInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // contains filtered or unexported fields }
Request of DescribeBudget
func (DescribeBudgetInput) GoString ¶
func (s DescribeBudgetInput) GoString() string
GoString returns the string representation
func (*DescribeBudgetInput) SetAccountId ¶
func (s *DescribeBudgetInput) SetAccountId(v string) *DescribeBudgetInput
SetAccountId sets the AccountId field's value.
func (*DescribeBudgetInput) SetBudgetName ¶
func (s *DescribeBudgetInput) SetBudgetName(v string) *DescribeBudgetInput
SetBudgetName sets the BudgetName field's value.
func (DescribeBudgetInput) String ¶
func (s DescribeBudgetInput) String() string
String returns the string representation
func (*DescribeBudgetInput) Validate ¶
func (s *DescribeBudgetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeBudgetOutput ¶
type DescribeBudgetOutput struct { // AWS Budget model Budget *Budget `type:"structure"` // contains filtered or unexported fields }
Response of DescribeBudget
func (DescribeBudgetOutput) GoString ¶
func (s DescribeBudgetOutput) GoString() string
GoString returns the string representation
func (DescribeBudgetOutput) SDKResponseMetadata ¶
func (s DescribeBudgetOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (*DescribeBudgetOutput) SetBudget ¶
func (s *DescribeBudgetOutput) SetBudget(v *Budget) *DescribeBudgetOutput
SetBudget sets the Budget field's value.
func (DescribeBudgetOutput) String ¶
func (s DescribeBudgetOutput) String() string
String returns the string representation
type DescribeBudgetRequest ¶
type DescribeBudgetRequest struct { *aws.Request Input *DescribeBudgetInput }
DescribeBudgetRequest is a API request type for the DescribeBudget API operation.
func (DescribeBudgetRequest) Send ¶
func (r DescribeBudgetRequest) Send() (*DescribeBudgetOutput, error)
Send marshals and sends the DescribeBudget API request.
type DescribeBudgetsInput ¶
type DescribeBudgetsInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // An integer to represent how many entries a paginated response contains. Maximum // is set to 100. MaxResults *int64 `min:"1" type:"integer"` // A generic String. NextToken *string `type:"string"` // contains filtered or unexported fields }
Request of DescribeBudgets
func (DescribeBudgetsInput) GoString ¶
func (s DescribeBudgetsInput) GoString() string
GoString returns the string representation
func (*DescribeBudgetsInput) SetAccountId ¶
func (s *DescribeBudgetsInput) SetAccountId(v string) *DescribeBudgetsInput
SetAccountId sets the AccountId field's value.
func (*DescribeBudgetsInput) SetMaxResults ¶
func (s *DescribeBudgetsInput) SetMaxResults(v int64) *DescribeBudgetsInput
SetMaxResults sets the MaxResults field's value.
func (*DescribeBudgetsInput) SetNextToken ¶
func (s *DescribeBudgetsInput) SetNextToken(v string) *DescribeBudgetsInput
SetNextToken sets the NextToken field's value.
func (DescribeBudgetsInput) String ¶
func (s DescribeBudgetsInput) String() string
String returns the string representation
func (*DescribeBudgetsInput) Validate ¶
func (s *DescribeBudgetsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeBudgetsOutput ¶
type DescribeBudgetsOutput struct { // A list of budgets Budgets []Budget `type:"list"` // A generic String. NextToken *string `type:"string"` // contains filtered or unexported fields }
Response of DescribeBudgets
func (DescribeBudgetsOutput) GoString ¶
func (s DescribeBudgetsOutput) GoString() string
GoString returns the string representation
func (DescribeBudgetsOutput) SDKResponseMetadata ¶
func (s DescribeBudgetsOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (*DescribeBudgetsOutput) SetBudgets ¶
func (s *DescribeBudgetsOutput) SetBudgets(v []Budget) *DescribeBudgetsOutput
SetBudgets sets the Budgets field's value.
func (*DescribeBudgetsOutput) SetNextToken ¶
func (s *DescribeBudgetsOutput) SetNextToken(v string) *DescribeBudgetsOutput
SetNextToken sets the NextToken field's value.
func (DescribeBudgetsOutput) String ¶
func (s DescribeBudgetsOutput) String() string
String returns the string representation
type DescribeBudgetsRequest ¶
type DescribeBudgetsRequest struct { *aws.Request Input *DescribeBudgetsInput }
DescribeBudgetsRequest is a API request type for the DescribeBudgets API operation.
func (DescribeBudgetsRequest) Send ¶
func (r DescribeBudgetsRequest) Send() (*DescribeBudgetsOutput, error)
Send marshals and sends the DescribeBudgets API request.
type DescribeNotificationsForBudgetInput ¶
type DescribeNotificationsForBudgetInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // An integer to represent how many entries a paginated response contains. Maximum // is set to 100. MaxResults *int64 `min:"1" type:"integer"` // A generic String. NextToken *string `type:"string"` // contains filtered or unexported fields }
Request of DescribeNotificationsForBudget
func (DescribeNotificationsForBudgetInput) GoString ¶
func (s DescribeNotificationsForBudgetInput) GoString() string
GoString returns the string representation
func (*DescribeNotificationsForBudgetInput) SetAccountId ¶
func (s *DescribeNotificationsForBudgetInput) SetAccountId(v string) *DescribeNotificationsForBudgetInput
SetAccountId sets the AccountId field's value.
func (*DescribeNotificationsForBudgetInput) SetBudgetName ¶
func (s *DescribeNotificationsForBudgetInput) SetBudgetName(v string) *DescribeNotificationsForBudgetInput
SetBudgetName sets the BudgetName field's value.
func (*DescribeNotificationsForBudgetInput) SetMaxResults ¶
func (s *DescribeNotificationsForBudgetInput) SetMaxResults(v int64) *DescribeNotificationsForBudgetInput
SetMaxResults sets the MaxResults field's value.
func (*DescribeNotificationsForBudgetInput) SetNextToken ¶
func (s *DescribeNotificationsForBudgetInput) SetNextToken(v string) *DescribeNotificationsForBudgetInput
SetNextToken sets the NextToken field's value.
func (DescribeNotificationsForBudgetInput) String ¶
func (s DescribeNotificationsForBudgetInput) String() string
String returns the string representation
func (*DescribeNotificationsForBudgetInput) Validate ¶
func (s *DescribeNotificationsForBudgetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeNotificationsForBudgetOutput ¶
type DescribeNotificationsForBudgetOutput struct { // A generic String. NextToken *string `type:"string"` // A list of notifications. Notifications []Notification `type:"list"` // contains filtered or unexported fields }
Response of GetNotificationsForBudget
func (DescribeNotificationsForBudgetOutput) GoString ¶
func (s DescribeNotificationsForBudgetOutput) GoString() string
GoString returns the string representation
func (DescribeNotificationsForBudgetOutput) SDKResponseMetadata ¶
func (s DescribeNotificationsForBudgetOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (*DescribeNotificationsForBudgetOutput) SetNextToken ¶
func (s *DescribeNotificationsForBudgetOutput) SetNextToken(v string) *DescribeNotificationsForBudgetOutput
SetNextToken sets the NextToken field's value.
func (*DescribeNotificationsForBudgetOutput) SetNotifications ¶
func (s *DescribeNotificationsForBudgetOutput) SetNotifications(v []Notification) *DescribeNotificationsForBudgetOutput
SetNotifications sets the Notifications field's value.
func (DescribeNotificationsForBudgetOutput) String ¶
func (s DescribeNotificationsForBudgetOutput) String() string
String returns the string representation
type DescribeNotificationsForBudgetRequest ¶
type DescribeNotificationsForBudgetRequest struct { *aws.Request Input *DescribeNotificationsForBudgetInput }
DescribeNotificationsForBudgetRequest is a API request type for the DescribeNotificationsForBudget API operation.
func (DescribeNotificationsForBudgetRequest) Send ¶
func (r DescribeNotificationsForBudgetRequest) Send() (*DescribeNotificationsForBudgetOutput, error)
Send marshals and sends the DescribeNotificationsForBudget API request.
type DescribeSubscribersForNotificationInput ¶
type DescribeSubscribersForNotificationInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // An integer to represent how many entries a paginated response contains. Maximum // is set to 100. MaxResults *int64 `min:"1" type:"integer"` // A generic String. NextToken *string `type:"string"` // Notification model. Each budget may contain multiple notifications with different // settings. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // contains filtered or unexported fields }
Request of DescribeSubscribersForNotification
func (DescribeSubscribersForNotificationInput) GoString ¶
func (s DescribeSubscribersForNotificationInput) GoString() string
GoString returns the string representation
func (*DescribeSubscribersForNotificationInput) SetAccountId ¶
func (s *DescribeSubscribersForNotificationInput) SetAccountId(v string) *DescribeSubscribersForNotificationInput
SetAccountId sets the AccountId field's value.
func (*DescribeSubscribersForNotificationInput) SetBudgetName ¶
func (s *DescribeSubscribersForNotificationInput) SetBudgetName(v string) *DescribeSubscribersForNotificationInput
SetBudgetName sets the BudgetName field's value.
func (*DescribeSubscribersForNotificationInput) SetMaxResults ¶
func (s *DescribeSubscribersForNotificationInput) SetMaxResults(v int64) *DescribeSubscribersForNotificationInput
SetMaxResults sets the MaxResults field's value.
func (*DescribeSubscribersForNotificationInput) SetNextToken ¶
func (s *DescribeSubscribersForNotificationInput) SetNextToken(v string) *DescribeSubscribersForNotificationInput
SetNextToken sets the NextToken field's value.
func (*DescribeSubscribersForNotificationInput) SetNotification ¶
func (s *DescribeSubscribersForNotificationInput) SetNotification(v *Notification) *DescribeSubscribersForNotificationInput
SetNotification sets the Notification field's value.
func (DescribeSubscribersForNotificationInput) String ¶
func (s DescribeSubscribersForNotificationInput) String() string
String returns the string representation
func (*DescribeSubscribersForNotificationInput) Validate ¶
func (s *DescribeSubscribersForNotificationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeSubscribersForNotificationOutput ¶
type DescribeSubscribersForNotificationOutput struct { // A generic String. NextToken *string `type:"string"` // A list of subscribers. Subscribers []Subscriber `min:"1" type:"list"` // contains filtered or unexported fields }
Response of DescribeSubscribersForNotification
func (DescribeSubscribersForNotificationOutput) GoString ¶
func (s DescribeSubscribersForNotificationOutput) GoString() string
GoString returns the string representation
func (DescribeSubscribersForNotificationOutput) SDKResponseMetadata ¶
func (s DescribeSubscribersForNotificationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (*DescribeSubscribersForNotificationOutput) SetNextToken ¶
func (s *DescribeSubscribersForNotificationOutput) SetNextToken(v string) *DescribeSubscribersForNotificationOutput
SetNextToken sets the NextToken field's value.
func (*DescribeSubscribersForNotificationOutput) SetSubscribers ¶
func (s *DescribeSubscribersForNotificationOutput) SetSubscribers(v []Subscriber) *DescribeSubscribersForNotificationOutput
SetSubscribers sets the Subscribers field's value.
func (DescribeSubscribersForNotificationOutput) String ¶
func (s DescribeSubscribersForNotificationOutput) String() string
String returns the string representation
type DescribeSubscribersForNotificationRequest ¶
type DescribeSubscribersForNotificationRequest struct { *aws.Request Input *DescribeSubscribersForNotificationInput }
DescribeSubscribersForNotificationRequest is a API request type for the DescribeSubscribersForNotification API operation.
func (DescribeSubscribersForNotificationRequest) Send ¶
func (r DescribeSubscribersForNotificationRequest) Send() (*DescribeSubscribersForNotificationOutput, error)
Send marshals and sends the DescribeSubscribersForNotification API request.
type Notification ¶
type Notification struct { // The comparison operator of a notification. Currently we support less than, // equal to and greater than. // // ComparisonOperator is a required field ComparisonOperator ComparisonOperator `type:"string" required:"true" enum:"true"` // The type of a notification. It should be ACTUAL or FORECASTED. // // NotificationType is a required field NotificationType NotificationType `type:"string" required:"true" enum:"true"` // The threshold of a notification. It should be a number between 0 and 1,000,000,000. // // Threshold is a required field Threshold *float64 `min:"0.1" type:"double" required:"true"` // The type of threshold for a notification. It can be PERCENTAGE or ABSOLUTE_VALUE. ThresholdType ThresholdType `type:"string" enum:"true"` // contains filtered or unexported fields }
Notification model. Each budget may contain multiple notifications with different settings.
func (Notification) GoString ¶
func (s Notification) GoString() string
GoString returns the string representation
func (*Notification) SetComparisonOperator ¶
func (s *Notification) SetComparisonOperator(v ComparisonOperator) *Notification
SetComparisonOperator sets the ComparisonOperator field's value.
func (*Notification) SetNotificationType ¶
func (s *Notification) SetNotificationType(v NotificationType) *Notification
SetNotificationType sets the NotificationType field's value.
func (*Notification) SetThreshold ¶
func (s *Notification) SetThreshold(v float64) *Notification
SetThreshold sets the Threshold field's value.
func (*Notification) SetThresholdType ¶
func (s *Notification) SetThresholdType(v ThresholdType) *Notification
SetThresholdType sets the ThresholdType field's value.
func (Notification) String ¶
func (s Notification) String() string
String returns the string representation
func (*Notification) Validate ¶
func (s *Notification) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type NotificationType ¶
type NotificationType string
The type of a notification. It should be ACTUAL or FORECASTED.
const ( NotificationTypeActual NotificationType = "ACTUAL" NotificationTypeForecasted NotificationType = "FORECASTED" )
Enum values for NotificationType
type NotificationWithSubscribers ¶
type NotificationWithSubscribers struct { // Notification model. Each budget may contain multiple notifications with different // settings. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // A list of subscribers. // // Subscribers is a required field Subscribers []Subscriber `min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
A structure to relate notification and a list of subscribers who belong to the notification.
func (NotificationWithSubscribers) GoString ¶
func (s NotificationWithSubscribers) GoString() string
GoString returns the string representation
func (*NotificationWithSubscribers) SetNotification ¶
func (s *NotificationWithSubscribers) SetNotification(v *Notification) *NotificationWithSubscribers
SetNotification sets the Notification field's value.
func (*NotificationWithSubscribers) SetSubscribers ¶
func (s *NotificationWithSubscribers) SetSubscribers(v []Subscriber) *NotificationWithSubscribers
SetSubscribers sets the Subscribers field's value.
func (NotificationWithSubscribers) String ¶
func (s NotificationWithSubscribers) String() string
String returns the string representation
func (*NotificationWithSubscribers) Validate ¶
func (s *NotificationWithSubscribers) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Spend ¶
type Spend struct { // A string to represent NumericValue. // // Amount is a required field Amount *string `type:"string" required:"true"` // A string to represent budget spend unit. It should be not null and not empty. // // Unit is a required field Unit *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
A structure that represents either a cost spend or usage spend. Contains an amount and a unit.
type Subscriber ¶
type Subscriber struct { // String containing email or sns topic for the subscriber address. // // Address is a required field Address *string `min:"1" type:"string" required:"true"` // The subscription type of the subscriber. It can be SMS or EMAIL. // // SubscriptionType is a required field SubscriptionType SubscriptionType `type:"string" required:"true" enum:"true"` // contains filtered or unexported fields }
Subscriber model. Each notification may contain multiple subscribers with different addresses.
func (Subscriber) GoString ¶
func (s Subscriber) GoString() string
GoString returns the string representation
func (*Subscriber) SetAddress ¶
func (s *Subscriber) SetAddress(v string) *Subscriber
SetAddress sets the Address field's value.
func (*Subscriber) SetSubscriptionType ¶
func (s *Subscriber) SetSubscriptionType(v SubscriptionType) *Subscriber
SetSubscriptionType sets the SubscriptionType field's value.
func (Subscriber) String ¶
func (s Subscriber) String() string
String returns the string representation
func (*Subscriber) Validate ¶
func (s *Subscriber) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type SubscriptionType ¶
type SubscriptionType string
The subscription type of the subscriber. It can be SMS or EMAIL.
const ( SubscriptionTypeSns SubscriptionType = "SNS" SubscriptionTypeEmail SubscriptionType = "EMAIL" )
Enum values for SubscriptionType
type ThresholdType ¶
type ThresholdType string
The type of threshold for a notification. It can be PERCENTAGE or ABSOLUTE_VALUE.
const ( ThresholdTypePercentage ThresholdType = "PERCENTAGE" ThresholdTypeAbsoluteValue ThresholdType = "ABSOLUTE_VALUE" )
Enum values for ThresholdType
type TimePeriod ¶
type TimePeriod struct { // A generic timestamp. In Java it is transformed to a Date object. // // End is a required field End *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` // A generic timestamp. In Java it is transformed to a Date object. // // Start is a required field Start *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"` // contains filtered or unexported fields }
A time period indicating the start date and end date of a budget.
func (TimePeriod) GoString ¶
func (s TimePeriod) GoString() string
GoString returns the string representation
func (*TimePeriod) SetEnd ¶
func (s *TimePeriod) SetEnd(v time.Time) *TimePeriod
SetEnd sets the End field's value.
func (*TimePeriod) SetStart ¶
func (s *TimePeriod) SetStart(v time.Time) *TimePeriod
SetStart sets the Start field's value.
func (TimePeriod) String ¶
func (s TimePeriod) String() string
String returns the string representation
func (*TimePeriod) Validate ¶
func (s *TimePeriod) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateBudgetInput ¶
type UpdateBudgetInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // AWS Budget model // // NewBudget is a required field NewBudget *Budget `type:"structure" required:"true"` // contains filtered or unexported fields }
Request of UpdateBudget
func (UpdateBudgetInput) GoString ¶
func (s UpdateBudgetInput) GoString() string
GoString returns the string representation
func (*UpdateBudgetInput) SetAccountId ¶
func (s *UpdateBudgetInput) SetAccountId(v string) *UpdateBudgetInput
SetAccountId sets the AccountId field's value.
func (*UpdateBudgetInput) SetNewBudget ¶
func (s *UpdateBudgetInput) SetNewBudget(v *Budget) *UpdateBudgetInput
SetNewBudget sets the NewBudget field's value.
func (UpdateBudgetInput) String ¶
func (s UpdateBudgetInput) String() string
String returns the string representation
func (*UpdateBudgetInput) Validate ¶
func (s *UpdateBudgetInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateBudgetOutput ¶
type UpdateBudgetOutput struct {
// contains filtered or unexported fields
}
Response of UpdateBudget
func (UpdateBudgetOutput) GoString ¶
func (s UpdateBudgetOutput) GoString() string
GoString returns the string representation
func (UpdateBudgetOutput) SDKResponseMetadata ¶
func (s UpdateBudgetOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateBudgetOutput) String ¶
func (s UpdateBudgetOutput) String() string
String returns the string representation
type UpdateBudgetRequest ¶
type UpdateBudgetRequest struct { *aws.Request Input *UpdateBudgetInput }
UpdateBudgetRequest is a API request type for the UpdateBudget API operation.
func (UpdateBudgetRequest) Send ¶
func (r UpdateBudgetRequest) Send() (*UpdateBudgetOutput, error)
Send marshals and sends the UpdateBudget API request.
type UpdateNotificationInput ¶
type UpdateNotificationInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // Notification model. Each budget may contain multiple notifications with different // settings. // // NewNotification is a required field NewNotification *Notification `type:"structure" required:"true"` // Notification model. Each budget may contain multiple notifications with different // settings. // // OldNotification is a required field OldNotification *Notification `type:"structure" required:"true"` // contains filtered or unexported fields }
Request of UpdateNotification
func (UpdateNotificationInput) GoString ¶
func (s UpdateNotificationInput) GoString() string
GoString returns the string representation
func (*UpdateNotificationInput) SetAccountId ¶
func (s *UpdateNotificationInput) SetAccountId(v string) *UpdateNotificationInput
SetAccountId sets the AccountId field's value.
func (*UpdateNotificationInput) SetBudgetName ¶
func (s *UpdateNotificationInput) SetBudgetName(v string) *UpdateNotificationInput
SetBudgetName sets the BudgetName field's value.
func (*UpdateNotificationInput) SetNewNotification ¶
func (s *UpdateNotificationInput) SetNewNotification(v *Notification) *UpdateNotificationInput
SetNewNotification sets the NewNotification field's value.
func (*UpdateNotificationInput) SetOldNotification ¶
func (s *UpdateNotificationInput) SetOldNotification(v *Notification) *UpdateNotificationInput
SetOldNotification sets the OldNotification field's value.
func (UpdateNotificationInput) String ¶
func (s UpdateNotificationInput) String() string
String returns the string representation
func (*UpdateNotificationInput) Validate ¶
func (s *UpdateNotificationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateNotificationOutput ¶
type UpdateNotificationOutput struct {
// contains filtered or unexported fields
}
Response of UpdateNotification
func (UpdateNotificationOutput) GoString ¶
func (s UpdateNotificationOutput) GoString() string
GoString returns the string representation
func (UpdateNotificationOutput) SDKResponseMetadata ¶
func (s UpdateNotificationOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateNotificationOutput) String ¶
func (s UpdateNotificationOutput) String() string
String returns the string representation
type UpdateNotificationRequest ¶
type UpdateNotificationRequest struct { *aws.Request Input *UpdateNotificationInput }
UpdateNotificationRequest is a API request type for the UpdateNotification API operation.
func (UpdateNotificationRequest) Send ¶
func (r UpdateNotificationRequest) Send() (*UpdateNotificationOutput, error)
Send marshals and sends the UpdateNotification API request.
type UpdateSubscriberInput ¶
type UpdateSubscriberInput struct { // Account Id of the customer. It should be a 12 digit number. // // AccountId is a required field AccountId *string `min:"12" type:"string" required:"true"` // A string represents the budget name. No ":" and "\" character is allowed. // // BudgetName is a required field BudgetName *string `type:"string" required:"true"` // Subscriber model. Each notification may contain multiple subscribers with // different addresses. // // NewSubscriber is a required field NewSubscriber *Subscriber `type:"structure" required:"true"` // Notification model. Each budget may contain multiple notifications with different // settings. // // Notification is a required field Notification *Notification `type:"structure" required:"true"` // Subscriber model. Each notification may contain multiple subscribers with // different addresses. // // OldSubscriber is a required field OldSubscriber *Subscriber `type:"structure" required:"true"` // contains filtered or unexported fields }
Request of UpdateSubscriber
func (UpdateSubscriberInput) GoString ¶
func (s UpdateSubscriberInput) GoString() string
GoString returns the string representation
func (*UpdateSubscriberInput) SetAccountId ¶
func (s *UpdateSubscriberInput) SetAccountId(v string) *UpdateSubscriberInput
SetAccountId sets the AccountId field's value.
func (*UpdateSubscriberInput) SetBudgetName ¶
func (s *UpdateSubscriberInput) SetBudgetName(v string) *UpdateSubscriberInput
SetBudgetName sets the BudgetName field's value.
func (*UpdateSubscriberInput) SetNewSubscriber ¶
func (s *UpdateSubscriberInput) SetNewSubscriber(v *Subscriber) *UpdateSubscriberInput
SetNewSubscriber sets the NewSubscriber field's value.
func (*UpdateSubscriberInput) SetNotification ¶
func (s *UpdateSubscriberInput) SetNotification(v *Notification) *UpdateSubscriberInput
SetNotification sets the Notification field's value.
func (*UpdateSubscriberInput) SetOldSubscriber ¶
func (s *UpdateSubscriberInput) SetOldSubscriber(v *Subscriber) *UpdateSubscriberInput
SetOldSubscriber sets the OldSubscriber field's value.
func (UpdateSubscriberInput) String ¶
func (s UpdateSubscriberInput) String() string
String returns the string representation
func (*UpdateSubscriberInput) Validate ¶
func (s *UpdateSubscriberInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateSubscriberOutput ¶
type UpdateSubscriberOutput struct {
// contains filtered or unexported fields
}
Response of UpdateSubscriber
func (UpdateSubscriberOutput) GoString ¶
func (s UpdateSubscriberOutput) GoString() string
GoString returns the string representation
func (UpdateSubscriberOutput) SDKResponseMetadata ¶
func (s UpdateSubscriberOutput) SDKResponseMetadata() aws.Response
SDKResponseMetdata return sthe response metadata for the API.
func (UpdateSubscriberOutput) String ¶
func (s UpdateSubscriberOutput) String() string
String returns the string representation
type UpdateSubscriberRequest ¶
type UpdateSubscriberRequest struct { *aws.Request Input *UpdateSubscriberInput }
UpdateSubscriberRequest is a API request type for the UpdateSubscriber API operation.
func (UpdateSubscriberRequest) Send ¶
func (r UpdateSubscriberRequest) Send() (*UpdateSubscriberOutput, error)
Send marshals and sends the UpdateSubscriber API request.
Directories ¶
Path | Synopsis |
---|---|
Package budgetsiface provides an interface to enable mocking the AWS Budgets service client for testing your code.
|
Package budgetsiface provides an interface to enable mocking the AWS Budgets service client for testing your code. |