-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_op_DescribeAccountLimits.go
115 lines (93 loc) · 3.52 KB
/
api_op_DescribeAccountLimits.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package autoscaling
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
type DescribeAccountLimitsInput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s DescribeAccountLimitsInput) String() string {
return awsutil.Prettify(s)
}
type DescribeAccountLimitsOutput struct {
_ struct{} `type:"structure"`
// The maximum number of groups allowed for your AWS account. The default is
// 200 groups per AWS Region.
MaxNumberOfAutoScalingGroups *int64 `type:"integer"`
// The maximum number of launch configurations allowed for your AWS account.
// The default is 200 launch configurations per AWS Region.
MaxNumberOfLaunchConfigurations *int64 `type:"integer"`
// The current number of groups for your AWS account.
NumberOfAutoScalingGroups *int64 `type:"integer"`
// The current number of launch configurations for your AWS account.
NumberOfLaunchConfigurations *int64 `type:"integer"`
}
// String returns the string representation
func (s DescribeAccountLimitsOutput) String() string {
return awsutil.Prettify(s)
}
const opDescribeAccountLimits = "DescribeAccountLimits"
// DescribeAccountLimitsRequest returns a request value for making API operation for
// Auto Scaling.
//
// Describes the current Amazon EC2 Auto Scaling resource quotas for your AWS
// account.
//
// For information about requesting an increase, see Amazon EC2 Auto Scaling
// Service Quotas (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html)
// in the Amazon EC2 Auto Scaling User Guide.
//
// // Example sending a request using DescribeAccountLimitsRequest.
// req := client.DescribeAccountLimitsRequest(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits
func (c *Client) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) DescribeAccountLimitsRequest {
op := &aws.Operation{
Name: opDescribeAccountLimits,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAccountLimitsInput{}
}
req := c.newRequest(op, input, &DescribeAccountLimitsOutput{})
return DescribeAccountLimitsRequest{Request: req, Input: input, Copy: c.DescribeAccountLimitsRequest}
}
// DescribeAccountLimitsRequest is the request type for the
// DescribeAccountLimits API operation.
type DescribeAccountLimitsRequest struct {
*aws.Request
Input *DescribeAccountLimitsInput
Copy func(*DescribeAccountLimitsInput) DescribeAccountLimitsRequest
}
// Send marshals and sends the DescribeAccountLimits API request.
func (r DescribeAccountLimitsRequest) Send(ctx context.Context) (*DescribeAccountLimitsResponse, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
resp := &DescribeAccountLimitsResponse{
DescribeAccountLimitsOutput: r.Request.Data.(*DescribeAccountLimitsOutput),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
// DescribeAccountLimitsResponse is the response type for the
// DescribeAccountLimits API operation.
type DescribeAccountLimitsResponse struct {
*DescribeAccountLimitsOutput
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
// DescribeAccountLimits request.
func (r *DescribeAccountLimitsResponse) SDKResponseMetdata() *aws.Response {
return r.response
}