1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package servicequotas 4 5import ( 6 "fmt" 7 "time" 8 9 "github.com/aws/aws-sdk-go/aws" 10 "github.com/aws/aws-sdk-go/aws/awsutil" 11 "github.com/aws/aws-sdk-go/aws/request" 12 "github.com/aws/aws-sdk-go/private/protocol" 13 "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" 14) 15 16const opAssociateServiceQuotaTemplate = "AssociateServiceQuotaTemplate" 17 18// AssociateServiceQuotaTemplateRequest generates a "aws/request.Request" representing the 19// client's request for the AssociateServiceQuotaTemplate operation. The "output" return 20// value will be populated with the request's response once the request completes 21// successfully. 22// 23// Use "Send" method on the returned Request to send the API call to the service. 24// the "output" return value is not valid until after Send returns without error. 25// 26// See AssociateServiceQuotaTemplate for more information on using the AssociateServiceQuotaTemplate 27// API call, and error handling. 28// 29// This method is useful when you want to inject custom logic or configuration 30// into the SDK's request lifecycle. Such as custom headers, or retry logic. 31// 32// 33// // Example sending a request using the AssociateServiceQuotaTemplateRequest method. 34// req, resp := client.AssociateServiceQuotaTemplateRequest(params) 35// 36// err := req.Send() 37// if err == nil { // resp is now filled 38// fmt.Println(resp) 39// } 40// 41// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/AssociateServiceQuotaTemplate 42func (c *ServiceQuotas) AssociateServiceQuotaTemplateRequest(input *AssociateServiceQuotaTemplateInput) (req *request.Request, output *AssociateServiceQuotaTemplateOutput) { 43 op := &request.Operation{ 44 Name: opAssociateServiceQuotaTemplate, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &AssociateServiceQuotaTemplateInput{} 51 } 52 53 output = &AssociateServiceQuotaTemplateOutput{} 54 req = c.newRequest(op, input, output) 55 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 56 return 57} 58 59// AssociateServiceQuotaTemplate API operation for Service Quotas. 60// 61// Associates your quota request template with your organization. When a new 62// account is created in your organization, the quota increase requests in the 63// template are automatically applied to the account. You can add a quota increase 64// request for any adjustable quota to your template. 65// 66// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 67// with awserr.Error's Code and Message methods to get detailed information about 68// the error. 69// 70// See the AWS API reference guide for Service Quotas's 71// API operation AssociateServiceQuotaTemplate for usage and error information. 72// 73// Returned Error Types: 74// * DependencyAccessDeniedException 75// You can't perform this action because a dependency does not have access. 76// 77// * AccessDeniedException 78// You do not have sufficient permission to perform this action. 79// 80// * ServiceException 81// Something went wrong. 82// 83// * TooManyRequestsException 84// Due to throttling, the request was denied. Slow down the rate of request 85// calls, or request an increase for this quota. 86// 87// * AWSServiceAccessNotEnabledException 88// The action you attempted is not allowed unless Service Access with Service 89// Quotas is enabled in your organization. 90// 91// * OrganizationNotInAllFeaturesModeException 92// The organization that your account belongs to is not in All Features mode. 93// 94// * TemplatesNotAvailableInRegionException 95// The Service Quotas template is not available in this AWS Region. 96// 97// * NoAvailableOrganizationException 98// The account making this call is not a member of an organization. 99// 100// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/AssociateServiceQuotaTemplate 101func (c *ServiceQuotas) AssociateServiceQuotaTemplate(input *AssociateServiceQuotaTemplateInput) (*AssociateServiceQuotaTemplateOutput, error) { 102 req, out := c.AssociateServiceQuotaTemplateRequest(input) 103 return out, req.Send() 104} 105 106// AssociateServiceQuotaTemplateWithContext is the same as AssociateServiceQuotaTemplate with the addition of 107// the ability to pass a context and additional request options. 108// 109// See AssociateServiceQuotaTemplate for details on how to use this API operation. 110// 111// The context must be non-nil and will be used for request cancellation. If 112// the context is nil a panic will occur. In the future the SDK may create 113// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 114// for more information on using Contexts. 115func (c *ServiceQuotas) AssociateServiceQuotaTemplateWithContext(ctx aws.Context, input *AssociateServiceQuotaTemplateInput, opts ...request.Option) (*AssociateServiceQuotaTemplateOutput, error) { 116 req, out := c.AssociateServiceQuotaTemplateRequest(input) 117 req.SetContext(ctx) 118 req.ApplyOptions(opts...) 119 return out, req.Send() 120} 121 122const opDeleteServiceQuotaIncreaseRequestFromTemplate = "DeleteServiceQuotaIncreaseRequestFromTemplate" 123 124// DeleteServiceQuotaIncreaseRequestFromTemplateRequest generates a "aws/request.Request" representing the 125// client's request for the DeleteServiceQuotaIncreaseRequestFromTemplate operation. The "output" return 126// value will be populated with the request's response once the request completes 127// successfully. 128// 129// Use "Send" method on the returned Request to send the API call to the service. 130// the "output" return value is not valid until after Send returns without error. 131// 132// See DeleteServiceQuotaIncreaseRequestFromTemplate for more information on using the DeleteServiceQuotaIncreaseRequestFromTemplate 133// API call, and error handling. 134// 135// This method is useful when you want to inject custom logic or configuration 136// into the SDK's request lifecycle. Such as custom headers, or retry logic. 137// 138// 139// // Example sending a request using the DeleteServiceQuotaIncreaseRequestFromTemplateRequest method. 140// req, resp := client.DeleteServiceQuotaIncreaseRequestFromTemplateRequest(params) 141// 142// err := req.Send() 143// if err == nil { // resp is now filled 144// fmt.Println(resp) 145// } 146// 147// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DeleteServiceQuotaIncreaseRequestFromTemplate 148func (c *ServiceQuotas) DeleteServiceQuotaIncreaseRequestFromTemplateRequest(input *DeleteServiceQuotaIncreaseRequestFromTemplateInput) (req *request.Request, output *DeleteServiceQuotaIncreaseRequestFromTemplateOutput) { 149 op := &request.Operation{ 150 Name: opDeleteServiceQuotaIncreaseRequestFromTemplate, 151 HTTPMethod: "POST", 152 HTTPPath: "/", 153 } 154 155 if input == nil { 156 input = &DeleteServiceQuotaIncreaseRequestFromTemplateInput{} 157 } 158 159 output = &DeleteServiceQuotaIncreaseRequestFromTemplateOutput{} 160 req = c.newRequest(op, input, output) 161 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 162 return 163} 164 165// DeleteServiceQuotaIncreaseRequestFromTemplate API operation for Service Quotas. 166// 167// Deletes the quota increase request for the specified quota from your quota 168// request template. 169// 170// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 171// with awserr.Error's Code and Message methods to get detailed information about 172// the error. 173// 174// See the AWS API reference guide for Service Quotas's 175// API operation DeleteServiceQuotaIncreaseRequestFromTemplate for usage and error information. 176// 177// Returned Error Types: 178// * AccessDeniedException 179// You do not have sufficient permission to perform this action. 180// 181// * ServiceException 182// Something went wrong. 183// 184// * DependencyAccessDeniedException 185// You can't perform this action because a dependency does not have access. 186// 187// * TooManyRequestsException 188// Due to throttling, the request was denied. Slow down the rate of request 189// calls, or request an increase for this quota. 190// 191// * NoSuchResourceException 192// The specified resource does not exist. 193// 194// * IllegalArgumentException 195// Invalid input was provided. 196// 197// * AWSServiceAccessNotEnabledException 198// The action you attempted is not allowed unless Service Access with Service 199// Quotas is enabled in your organization. 200// 201// * TemplatesNotAvailableInRegionException 202// The Service Quotas template is not available in this AWS Region. 203// 204// * NoAvailableOrganizationException 205// The account making this call is not a member of an organization. 206// 207// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DeleteServiceQuotaIncreaseRequestFromTemplate 208func (c *ServiceQuotas) DeleteServiceQuotaIncreaseRequestFromTemplate(input *DeleteServiceQuotaIncreaseRequestFromTemplateInput) (*DeleteServiceQuotaIncreaseRequestFromTemplateOutput, error) { 209 req, out := c.DeleteServiceQuotaIncreaseRequestFromTemplateRequest(input) 210 return out, req.Send() 211} 212 213// DeleteServiceQuotaIncreaseRequestFromTemplateWithContext is the same as DeleteServiceQuotaIncreaseRequestFromTemplate with the addition of 214// the ability to pass a context and additional request options. 215// 216// See DeleteServiceQuotaIncreaseRequestFromTemplate for details on how to use this API operation. 217// 218// The context must be non-nil and will be used for request cancellation. If 219// the context is nil a panic will occur. In the future the SDK may create 220// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 221// for more information on using Contexts. 222func (c *ServiceQuotas) DeleteServiceQuotaIncreaseRequestFromTemplateWithContext(ctx aws.Context, input *DeleteServiceQuotaIncreaseRequestFromTemplateInput, opts ...request.Option) (*DeleteServiceQuotaIncreaseRequestFromTemplateOutput, error) { 223 req, out := c.DeleteServiceQuotaIncreaseRequestFromTemplateRequest(input) 224 req.SetContext(ctx) 225 req.ApplyOptions(opts...) 226 return out, req.Send() 227} 228 229const opDisassociateServiceQuotaTemplate = "DisassociateServiceQuotaTemplate" 230 231// DisassociateServiceQuotaTemplateRequest generates a "aws/request.Request" representing the 232// client's request for the DisassociateServiceQuotaTemplate operation. The "output" return 233// value will be populated with the request's response once the request completes 234// successfully. 235// 236// Use "Send" method on the returned Request to send the API call to the service. 237// the "output" return value is not valid until after Send returns without error. 238// 239// See DisassociateServiceQuotaTemplate for more information on using the DisassociateServiceQuotaTemplate 240// API call, and error handling. 241// 242// This method is useful when you want to inject custom logic or configuration 243// into the SDK's request lifecycle. Such as custom headers, or retry logic. 244// 245// 246// // Example sending a request using the DisassociateServiceQuotaTemplateRequest method. 247// req, resp := client.DisassociateServiceQuotaTemplateRequest(params) 248// 249// err := req.Send() 250// if err == nil { // resp is now filled 251// fmt.Println(resp) 252// } 253// 254// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DisassociateServiceQuotaTemplate 255func (c *ServiceQuotas) DisassociateServiceQuotaTemplateRequest(input *DisassociateServiceQuotaTemplateInput) (req *request.Request, output *DisassociateServiceQuotaTemplateOutput) { 256 op := &request.Operation{ 257 Name: opDisassociateServiceQuotaTemplate, 258 HTTPMethod: "POST", 259 HTTPPath: "/", 260 } 261 262 if input == nil { 263 input = &DisassociateServiceQuotaTemplateInput{} 264 } 265 266 output = &DisassociateServiceQuotaTemplateOutput{} 267 req = c.newRequest(op, input, output) 268 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 269 return 270} 271 272// DisassociateServiceQuotaTemplate API operation for Service Quotas. 273// 274// Disables your quota request template. After a template is disabled, the quota 275// increase requests in the template are not applied to new accounts in your 276// organization. Disabling a quota request template does not apply its quota 277// increase requests. 278// 279// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 280// with awserr.Error's Code and Message methods to get detailed information about 281// the error. 282// 283// See the AWS API reference guide for Service Quotas's 284// API operation DisassociateServiceQuotaTemplate for usage and error information. 285// 286// Returned Error Types: 287// * DependencyAccessDeniedException 288// You can't perform this action because a dependency does not have access. 289// 290// * ServiceQuotaTemplateNotInUseException 291// The quota request template is not associated with your organization. 292// 293// * AccessDeniedException 294// You do not have sufficient permission to perform this action. 295// 296// * ServiceException 297// Something went wrong. 298// 299// * TooManyRequestsException 300// Due to throttling, the request was denied. Slow down the rate of request 301// calls, or request an increase for this quota. 302// 303// * AWSServiceAccessNotEnabledException 304// The action you attempted is not allowed unless Service Access with Service 305// Quotas is enabled in your organization. 306// 307// * TemplatesNotAvailableInRegionException 308// The Service Quotas template is not available in this AWS Region. 309// 310// * NoAvailableOrganizationException 311// The account making this call is not a member of an organization. 312// 313// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DisassociateServiceQuotaTemplate 314func (c *ServiceQuotas) DisassociateServiceQuotaTemplate(input *DisassociateServiceQuotaTemplateInput) (*DisassociateServiceQuotaTemplateOutput, error) { 315 req, out := c.DisassociateServiceQuotaTemplateRequest(input) 316 return out, req.Send() 317} 318 319// DisassociateServiceQuotaTemplateWithContext is the same as DisassociateServiceQuotaTemplate with the addition of 320// the ability to pass a context and additional request options. 321// 322// See DisassociateServiceQuotaTemplate for details on how to use this API operation. 323// 324// The context must be non-nil and will be used for request cancellation. If 325// the context is nil a panic will occur. In the future the SDK may create 326// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 327// for more information on using Contexts. 328func (c *ServiceQuotas) DisassociateServiceQuotaTemplateWithContext(ctx aws.Context, input *DisassociateServiceQuotaTemplateInput, opts ...request.Option) (*DisassociateServiceQuotaTemplateOutput, error) { 329 req, out := c.DisassociateServiceQuotaTemplateRequest(input) 330 req.SetContext(ctx) 331 req.ApplyOptions(opts...) 332 return out, req.Send() 333} 334 335const opGetAWSDefaultServiceQuota = "GetAWSDefaultServiceQuota" 336 337// GetAWSDefaultServiceQuotaRequest generates a "aws/request.Request" representing the 338// client's request for the GetAWSDefaultServiceQuota operation. The "output" return 339// value will be populated with the request's response once the request completes 340// successfully. 341// 342// Use "Send" method on the returned Request to send the API call to the service. 343// the "output" return value is not valid until after Send returns without error. 344// 345// See GetAWSDefaultServiceQuota for more information on using the GetAWSDefaultServiceQuota 346// API call, and error handling. 347// 348// This method is useful when you want to inject custom logic or configuration 349// into the SDK's request lifecycle. Such as custom headers, or retry logic. 350// 351// 352// // Example sending a request using the GetAWSDefaultServiceQuotaRequest method. 353// req, resp := client.GetAWSDefaultServiceQuotaRequest(params) 354// 355// err := req.Send() 356// if err == nil { // resp is now filled 357// fmt.Println(resp) 358// } 359// 360// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAWSDefaultServiceQuota 361func (c *ServiceQuotas) GetAWSDefaultServiceQuotaRequest(input *GetAWSDefaultServiceQuotaInput) (req *request.Request, output *GetAWSDefaultServiceQuotaOutput) { 362 op := &request.Operation{ 363 Name: opGetAWSDefaultServiceQuota, 364 HTTPMethod: "POST", 365 HTTPPath: "/", 366 } 367 368 if input == nil { 369 input = &GetAWSDefaultServiceQuotaInput{} 370 } 371 372 output = &GetAWSDefaultServiceQuotaOutput{} 373 req = c.newRequest(op, input, output) 374 return 375} 376 377// GetAWSDefaultServiceQuota API operation for Service Quotas. 378// 379// Retrieves the default value for the specified quota. The default value does 380// not reflect any quota increases. 381// 382// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 383// with awserr.Error's Code and Message methods to get detailed information about 384// the error. 385// 386// See the AWS API reference guide for Service Quotas's 387// API operation GetAWSDefaultServiceQuota for usage and error information. 388// 389// Returned Error Types: 390// * AccessDeniedException 391// You do not have sufficient permission to perform this action. 392// 393// * NoSuchResourceException 394// The specified resource does not exist. 395// 396// * IllegalArgumentException 397// Invalid input was provided. 398// 399// * ServiceException 400// Something went wrong. 401// 402// * TooManyRequestsException 403// Due to throttling, the request was denied. Slow down the rate of request 404// calls, or request an increase for this quota. 405// 406// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAWSDefaultServiceQuota 407func (c *ServiceQuotas) GetAWSDefaultServiceQuota(input *GetAWSDefaultServiceQuotaInput) (*GetAWSDefaultServiceQuotaOutput, error) { 408 req, out := c.GetAWSDefaultServiceQuotaRequest(input) 409 return out, req.Send() 410} 411 412// GetAWSDefaultServiceQuotaWithContext is the same as GetAWSDefaultServiceQuota with the addition of 413// the ability to pass a context and additional request options. 414// 415// See GetAWSDefaultServiceQuota for details on how to use this API operation. 416// 417// The context must be non-nil and will be used for request cancellation. If 418// the context is nil a panic will occur. In the future the SDK may create 419// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 420// for more information on using Contexts. 421func (c *ServiceQuotas) GetAWSDefaultServiceQuotaWithContext(ctx aws.Context, input *GetAWSDefaultServiceQuotaInput, opts ...request.Option) (*GetAWSDefaultServiceQuotaOutput, error) { 422 req, out := c.GetAWSDefaultServiceQuotaRequest(input) 423 req.SetContext(ctx) 424 req.ApplyOptions(opts...) 425 return out, req.Send() 426} 427 428const opGetAssociationForServiceQuotaTemplate = "GetAssociationForServiceQuotaTemplate" 429 430// GetAssociationForServiceQuotaTemplateRequest generates a "aws/request.Request" representing the 431// client's request for the GetAssociationForServiceQuotaTemplate operation. The "output" return 432// value will be populated with the request's response once the request completes 433// successfully. 434// 435// Use "Send" method on the returned Request to send the API call to the service. 436// the "output" return value is not valid until after Send returns without error. 437// 438// See GetAssociationForServiceQuotaTemplate for more information on using the GetAssociationForServiceQuotaTemplate 439// API call, and error handling. 440// 441// This method is useful when you want to inject custom logic or configuration 442// into the SDK's request lifecycle. Such as custom headers, or retry logic. 443// 444// 445// // Example sending a request using the GetAssociationForServiceQuotaTemplateRequest method. 446// req, resp := client.GetAssociationForServiceQuotaTemplateRequest(params) 447// 448// err := req.Send() 449// if err == nil { // resp is now filled 450// fmt.Println(resp) 451// } 452// 453// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAssociationForServiceQuotaTemplate 454func (c *ServiceQuotas) GetAssociationForServiceQuotaTemplateRequest(input *GetAssociationForServiceQuotaTemplateInput) (req *request.Request, output *GetAssociationForServiceQuotaTemplateOutput) { 455 op := &request.Operation{ 456 Name: opGetAssociationForServiceQuotaTemplate, 457 HTTPMethod: "POST", 458 HTTPPath: "/", 459 } 460 461 if input == nil { 462 input = &GetAssociationForServiceQuotaTemplateInput{} 463 } 464 465 output = &GetAssociationForServiceQuotaTemplateOutput{} 466 req = c.newRequest(op, input, output) 467 return 468} 469 470// GetAssociationForServiceQuotaTemplate API operation for Service Quotas. 471// 472// Retrieves the status of the association for the quota request template. 473// 474// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 475// with awserr.Error's Code and Message methods to get detailed information about 476// the error. 477// 478// See the AWS API reference guide for Service Quotas's 479// API operation GetAssociationForServiceQuotaTemplate for usage and error information. 480// 481// Returned Error Types: 482// * DependencyAccessDeniedException 483// You can't perform this action because a dependency does not have access. 484// 485// * ServiceQuotaTemplateNotInUseException 486// The quota request template is not associated with your organization. 487// 488// * AccessDeniedException 489// You do not have sufficient permission to perform this action. 490// 491// * ServiceException 492// Something went wrong. 493// 494// * TooManyRequestsException 495// Due to throttling, the request was denied. Slow down the rate of request 496// calls, or request an increase for this quota. 497// 498// * AWSServiceAccessNotEnabledException 499// The action you attempted is not allowed unless Service Access with Service 500// Quotas is enabled in your organization. 501// 502// * TemplatesNotAvailableInRegionException 503// The Service Quotas template is not available in this AWS Region. 504// 505// * NoAvailableOrganizationException 506// The account making this call is not a member of an organization. 507// 508// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAssociationForServiceQuotaTemplate 509func (c *ServiceQuotas) GetAssociationForServiceQuotaTemplate(input *GetAssociationForServiceQuotaTemplateInput) (*GetAssociationForServiceQuotaTemplateOutput, error) { 510 req, out := c.GetAssociationForServiceQuotaTemplateRequest(input) 511 return out, req.Send() 512} 513 514// GetAssociationForServiceQuotaTemplateWithContext is the same as GetAssociationForServiceQuotaTemplate with the addition of 515// the ability to pass a context and additional request options. 516// 517// See GetAssociationForServiceQuotaTemplate for details on how to use this API operation. 518// 519// The context must be non-nil and will be used for request cancellation. If 520// the context is nil a panic will occur. In the future the SDK may create 521// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 522// for more information on using Contexts. 523func (c *ServiceQuotas) GetAssociationForServiceQuotaTemplateWithContext(ctx aws.Context, input *GetAssociationForServiceQuotaTemplateInput, opts ...request.Option) (*GetAssociationForServiceQuotaTemplateOutput, error) { 524 req, out := c.GetAssociationForServiceQuotaTemplateRequest(input) 525 req.SetContext(ctx) 526 req.ApplyOptions(opts...) 527 return out, req.Send() 528} 529 530const opGetRequestedServiceQuotaChange = "GetRequestedServiceQuotaChange" 531 532// GetRequestedServiceQuotaChangeRequest generates a "aws/request.Request" representing the 533// client's request for the GetRequestedServiceQuotaChange operation. The "output" return 534// value will be populated with the request's response once the request completes 535// successfully. 536// 537// Use "Send" method on the returned Request to send the API call to the service. 538// the "output" return value is not valid until after Send returns without error. 539// 540// See GetRequestedServiceQuotaChange for more information on using the GetRequestedServiceQuotaChange 541// API call, and error handling. 542// 543// This method is useful when you want to inject custom logic or configuration 544// into the SDK's request lifecycle. Such as custom headers, or retry logic. 545// 546// 547// // Example sending a request using the GetRequestedServiceQuotaChangeRequest method. 548// req, resp := client.GetRequestedServiceQuotaChangeRequest(params) 549// 550// err := req.Send() 551// if err == nil { // resp is now filled 552// fmt.Println(resp) 553// } 554// 555// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetRequestedServiceQuotaChange 556func (c *ServiceQuotas) GetRequestedServiceQuotaChangeRequest(input *GetRequestedServiceQuotaChangeInput) (req *request.Request, output *GetRequestedServiceQuotaChangeOutput) { 557 op := &request.Operation{ 558 Name: opGetRequestedServiceQuotaChange, 559 HTTPMethod: "POST", 560 HTTPPath: "/", 561 } 562 563 if input == nil { 564 input = &GetRequestedServiceQuotaChangeInput{} 565 } 566 567 output = &GetRequestedServiceQuotaChangeOutput{} 568 req = c.newRequest(op, input, output) 569 return 570} 571 572// GetRequestedServiceQuotaChange API operation for Service Quotas. 573// 574// Retrieves information about the specified quota increase request. 575// 576// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 577// with awserr.Error's Code and Message methods to get detailed information about 578// the error. 579// 580// See the AWS API reference guide for Service Quotas's 581// API operation GetRequestedServiceQuotaChange for usage and error information. 582// 583// Returned Error Types: 584// * AccessDeniedException 585// You do not have sufficient permission to perform this action. 586// 587// * NoSuchResourceException 588// The specified resource does not exist. 589// 590// * IllegalArgumentException 591// Invalid input was provided. 592// 593// * ServiceException 594// Something went wrong. 595// 596// * TooManyRequestsException 597// Due to throttling, the request was denied. Slow down the rate of request 598// calls, or request an increase for this quota. 599// 600// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetRequestedServiceQuotaChange 601func (c *ServiceQuotas) GetRequestedServiceQuotaChange(input *GetRequestedServiceQuotaChangeInput) (*GetRequestedServiceQuotaChangeOutput, error) { 602 req, out := c.GetRequestedServiceQuotaChangeRequest(input) 603 return out, req.Send() 604} 605 606// GetRequestedServiceQuotaChangeWithContext is the same as GetRequestedServiceQuotaChange with the addition of 607// the ability to pass a context and additional request options. 608// 609// See GetRequestedServiceQuotaChange for details on how to use this API operation. 610// 611// The context must be non-nil and will be used for request cancellation. If 612// the context is nil a panic will occur. In the future the SDK may create 613// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 614// for more information on using Contexts. 615func (c *ServiceQuotas) GetRequestedServiceQuotaChangeWithContext(ctx aws.Context, input *GetRequestedServiceQuotaChangeInput, opts ...request.Option) (*GetRequestedServiceQuotaChangeOutput, error) { 616 req, out := c.GetRequestedServiceQuotaChangeRequest(input) 617 req.SetContext(ctx) 618 req.ApplyOptions(opts...) 619 return out, req.Send() 620} 621 622const opGetServiceQuota = "GetServiceQuota" 623 624// GetServiceQuotaRequest generates a "aws/request.Request" representing the 625// client's request for the GetServiceQuota operation. The "output" return 626// value will be populated with the request's response once the request completes 627// successfully. 628// 629// Use "Send" method on the returned Request to send the API call to the service. 630// the "output" return value is not valid until after Send returns without error. 631// 632// See GetServiceQuota for more information on using the GetServiceQuota 633// API call, and error handling. 634// 635// This method is useful when you want to inject custom logic or configuration 636// into the SDK's request lifecycle. Such as custom headers, or retry logic. 637// 638// 639// // Example sending a request using the GetServiceQuotaRequest method. 640// req, resp := client.GetServiceQuotaRequest(params) 641// 642// err := req.Send() 643// if err == nil { // resp is now filled 644// fmt.Println(resp) 645// } 646// 647// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuota 648func (c *ServiceQuotas) GetServiceQuotaRequest(input *GetServiceQuotaInput) (req *request.Request, output *GetServiceQuotaOutput) { 649 op := &request.Operation{ 650 Name: opGetServiceQuota, 651 HTTPMethod: "POST", 652 HTTPPath: "/", 653 } 654 655 if input == nil { 656 input = &GetServiceQuotaInput{} 657 } 658 659 output = &GetServiceQuotaOutput{} 660 req = c.newRequest(op, input, output) 661 return 662} 663 664// GetServiceQuota API operation for Service Quotas. 665// 666// Retrieves the applied quota value for the specified quota. For some quotas, 667// only the default values are available. If the applied quota value is not 668// available for a quota, the quota is not retrieved. 669// 670// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 671// with awserr.Error's Code and Message methods to get detailed information about 672// the error. 673// 674// See the AWS API reference guide for Service Quotas's 675// API operation GetServiceQuota for usage and error information. 676// 677// Returned Error Types: 678// * AccessDeniedException 679// You do not have sufficient permission to perform this action. 680// 681// * NoSuchResourceException 682// The specified resource does not exist. 683// 684// * IllegalArgumentException 685// Invalid input was provided. 686// 687// * ServiceException 688// Something went wrong. 689// 690// * TooManyRequestsException 691// Due to throttling, the request was denied. Slow down the rate of request 692// calls, or request an increase for this quota. 693// 694// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuota 695func (c *ServiceQuotas) GetServiceQuota(input *GetServiceQuotaInput) (*GetServiceQuotaOutput, error) { 696 req, out := c.GetServiceQuotaRequest(input) 697 return out, req.Send() 698} 699 700// GetServiceQuotaWithContext is the same as GetServiceQuota with the addition of 701// the ability to pass a context and additional request options. 702// 703// See GetServiceQuota for details on how to use this API operation. 704// 705// The context must be non-nil and will be used for request cancellation. If 706// the context is nil a panic will occur. In the future the SDK may create 707// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 708// for more information on using Contexts. 709func (c *ServiceQuotas) GetServiceQuotaWithContext(ctx aws.Context, input *GetServiceQuotaInput, opts ...request.Option) (*GetServiceQuotaOutput, error) { 710 req, out := c.GetServiceQuotaRequest(input) 711 req.SetContext(ctx) 712 req.ApplyOptions(opts...) 713 return out, req.Send() 714} 715 716const opGetServiceQuotaIncreaseRequestFromTemplate = "GetServiceQuotaIncreaseRequestFromTemplate" 717 718// GetServiceQuotaIncreaseRequestFromTemplateRequest generates a "aws/request.Request" representing the 719// client's request for the GetServiceQuotaIncreaseRequestFromTemplate operation. The "output" return 720// value will be populated with the request's response once the request completes 721// successfully. 722// 723// Use "Send" method on the returned Request to send the API call to the service. 724// the "output" return value is not valid until after Send returns without error. 725// 726// See GetServiceQuotaIncreaseRequestFromTemplate for more information on using the GetServiceQuotaIncreaseRequestFromTemplate 727// API call, and error handling. 728// 729// This method is useful when you want to inject custom logic or configuration 730// into the SDK's request lifecycle. Such as custom headers, or retry logic. 731// 732// 733// // Example sending a request using the GetServiceQuotaIncreaseRequestFromTemplateRequest method. 734// req, resp := client.GetServiceQuotaIncreaseRequestFromTemplateRequest(params) 735// 736// err := req.Send() 737// if err == nil { // resp is now filled 738// fmt.Println(resp) 739// } 740// 741// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuotaIncreaseRequestFromTemplate 742func (c *ServiceQuotas) GetServiceQuotaIncreaseRequestFromTemplateRequest(input *GetServiceQuotaIncreaseRequestFromTemplateInput) (req *request.Request, output *GetServiceQuotaIncreaseRequestFromTemplateOutput) { 743 op := &request.Operation{ 744 Name: opGetServiceQuotaIncreaseRequestFromTemplate, 745 HTTPMethod: "POST", 746 HTTPPath: "/", 747 } 748 749 if input == nil { 750 input = &GetServiceQuotaIncreaseRequestFromTemplateInput{} 751 } 752 753 output = &GetServiceQuotaIncreaseRequestFromTemplateOutput{} 754 req = c.newRequest(op, input, output) 755 return 756} 757 758// GetServiceQuotaIncreaseRequestFromTemplate API operation for Service Quotas. 759// 760// Retrieves information about the specified quota increase request in your 761// quota request template. 762// 763// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 764// with awserr.Error's Code and Message methods to get detailed information about 765// the error. 766// 767// See the AWS API reference guide for Service Quotas's 768// API operation GetServiceQuotaIncreaseRequestFromTemplate for usage and error information. 769// 770// Returned Error Types: 771// * AccessDeniedException 772// You do not have sufficient permission to perform this action. 773// 774// * DependencyAccessDeniedException 775// You can't perform this action because a dependency does not have access. 776// 777// * ServiceException 778// Something went wrong. 779// 780// * TooManyRequestsException 781// Due to throttling, the request was denied. Slow down the rate of request 782// calls, or request an increase for this quota. 783// 784// * NoSuchResourceException 785// The specified resource does not exist. 786// 787// * IllegalArgumentException 788// Invalid input was provided. 789// 790// * AWSServiceAccessNotEnabledException 791// The action you attempted is not allowed unless Service Access with Service 792// Quotas is enabled in your organization. 793// 794// * TemplatesNotAvailableInRegionException 795// The Service Quotas template is not available in this AWS Region. 796// 797// * NoAvailableOrganizationException 798// The account making this call is not a member of an organization. 799// 800// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuotaIncreaseRequestFromTemplate 801func (c *ServiceQuotas) GetServiceQuotaIncreaseRequestFromTemplate(input *GetServiceQuotaIncreaseRequestFromTemplateInput) (*GetServiceQuotaIncreaseRequestFromTemplateOutput, error) { 802 req, out := c.GetServiceQuotaIncreaseRequestFromTemplateRequest(input) 803 return out, req.Send() 804} 805 806// GetServiceQuotaIncreaseRequestFromTemplateWithContext is the same as GetServiceQuotaIncreaseRequestFromTemplate with the addition of 807// the ability to pass a context and additional request options. 808// 809// See GetServiceQuotaIncreaseRequestFromTemplate for details on how to use this API operation. 810// 811// The context must be non-nil and will be used for request cancellation. If 812// the context is nil a panic will occur. In the future the SDK may create 813// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 814// for more information on using Contexts. 815func (c *ServiceQuotas) GetServiceQuotaIncreaseRequestFromTemplateWithContext(ctx aws.Context, input *GetServiceQuotaIncreaseRequestFromTemplateInput, opts ...request.Option) (*GetServiceQuotaIncreaseRequestFromTemplateOutput, error) { 816 req, out := c.GetServiceQuotaIncreaseRequestFromTemplateRequest(input) 817 req.SetContext(ctx) 818 req.ApplyOptions(opts...) 819 return out, req.Send() 820} 821 822const opListAWSDefaultServiceQuotas = "ListAWSDefaultServiceQuotas" 823 824// ListAWSDefaultServiceQuotasRequest generates a "aws/request.Request" representing the 825// client's request for the ListAWSDefaultServiceQuotas operation. The "output" return 826// value will be populated with the request's response once the request completes 827// successfully. 828// 829// Use "Send" method on the returned Request to send the API call to the service. 830// the "output" return value is not valid until after Send returns without error. 831// 832// See ListAWSDefaultServiceQuotas for more information on using the ListAWSDefaultServiceQuotas 833// API call, and error handling. 834// 835// This method is useful when you want to inject custom logic or configuration 836// into the SDK's request lifecycle. Such as custom headers, or retry logic. 837// 838// 839// // Example sending a request using the ListAWSDefaultServiceQuotasRequest method. 840// req, resp := client.ListAWSDefaultServiceQuotasRequest(params) 841// 842// err := req.Send() 843// if err == nil { // resp is now filled 844// fmt.Println(resp) 845// } 846// 847// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListAWSDefaultServiceQuotas 848func (c *ServiceQuotas) ListAWSDefaultServiceQuotasRequest(input *ListAWSDefaultServiceQuotasInput) (req *request.Request, output *ListAWSDefaultServiceQuotasOutput) { 849 op := &request.Operation{ 850 Name: opListAWSDefaultServiceQuotas, 851 HTTPMethod: "POST", 852 HTTPPath: "/", 853 Paginator: &request.Paginator{ 854 InputTokens: []string{"NextToken"}, 855 OutputTokens: []string{"NextToken"}, 856 LimitToken: "MaxResults", 857 TruncationToken: "", 858 }, 859 } 860 861 if input == nil { 862 input = &ListAWSDefaultServiceQuotasInput{} 863 } 864 865 output = &ListAWSDefaultServiceQuotasOutput{} 866 req = c.newRequest(op, input, output) 867 return 868} 869 870// ListAWSDefaultServiceQuotas API operation for Service Quotas. 871// 872// Lists the default values for the quotas for the specified AWS service. A 873// default value does not reflect any quota increases. 874// 875// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 876// with awserr.Error's Code and Message methods to get detailed information about 877// the error. 878// 879// See the AWS API reference guide for Service Quotas's 880// API operation ListAWSDefaultServiceQuotas for usage and error information. 881// 882// Returned Error Types: 883// * AccessDeniedException 884// You do not have sufficient permission to perform this action. 885// 886// * NoSuchResourceException 887// The specified resource does not exist. 888// 889// * IllegalArgumentException 890// Invalid input was provided. 891// 892// * InvalidPaginationTokenException 893// Invalid input was provided. 894// 895// * ServiceException 896// Something went wrong. 897// 898// * TooManyRequestsException 899// Due to throttling, the request was denied. Slow down the rate of request 900// calls, or request an increase for this quota. 901// 902// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListAWSDefaultServiceQuotas 903func (c *ServiceQuotas) ListAWSDefaultServiceQuotas(input *ListAWSDefaultServiceQuotasInput) (*ListAWSDefaultServiceQuotasOutput, error) { 904 req, out := c.ListAWSDefaultServiceQuotasRequest(input) 905 return out, req.Send() 906} 907 908// ListAWSDefaultServiceQuotasWithContext is the same as ListAWSDefaultServiceQuotas with the addition of 909// the ability to pass a context and additional request options. 910// 911// See ListAWSDefaultServiceQuotas for details on how to use this API operation. 912// 913// The context must be non-nil and will be used for request cancellation. If 914// the context is nil a panic will occur. In the future the SDK may create 915// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 916// for more information on using Contexts. 917func (c *ServiceQuotas) ListAWSDefaultServiceQuotasWithContext(ctx aws.Context, input *ListAWSDefaultServiceQuotasInput, opts ...request.Option) (*ListAWSDefaultServiceQuotasOutput, error) { 918 req, out := c.ListAWSDefaultServiceQuotasRequest(input) 919 req.SetContext(ctx) 920 req.ApplyOptions(opts...) 921 return out, req.Send() 922} 923 924// ListAWSDefaultServiceQuotasPages iterates over the pages of a ListAWSDefaultServiceQuotas operation, 925// calling the "fn" function with the response data for each page. To stop 926// iterating, return false from the fn function. 927// 928// See ListAWSDefaultServiceQuotas method for more information on how to use this operation. 929// 930// Note: This operation can generate multiple requests to a service. 931// 932// // Example iterating over at most 3 pages of a ListAWSDefaultServiceQuotas operation. 933// pageNum := 0 934// err := client.ListAWSDefaultServiceQuotasPages(params, 935// func(page *servicequotas.ListAWSDefaultServiceQuotasOutput, lastPage bool) bool { 936// pageNum++ 937// fmt.Println(page) 938// return pageNum <= 3 939// }) 940// 941func (c *ServiceQuotas) ListAWSDefaultServiceQuotasPages(input *ListAWSDefaultServiceQuotasInput, fn func(*ListAWSDefaultServiceQuotasOutput, bool) bool) error { 942 return c.ListAWSDefaultServiceQuotasPagesWithContext(aws.BackgroundContext(), input, fn) 943} 944 945// ListAWSDefaultServiceQuotasPagesWithContext same as ListAWSDefaultServiceQuotasPages except 946// it takes a Context and allows setting request options on the pages. 947// 948// The context must be non-nil and will be used for request cancellation. If 949// the context is nil a panic will occur. In the future the SDK may create 950// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 951// for more information on using Contexts. 952func (c *ServiceQuotas) ListAWSDefaultServiceQuotasPagesWithContext(ctx aws.Context, input *ListAWSDefaultServiceQuotasInput, fn func(*ListAWSDefaultServiceQuotasOutput, bool) bool, opts ...request.Option) error { 953 p := request.Pagination{ 954 NewRequest: func() (*request.Request, error) { 955 var inCpy *ListAWSDefaultServiceQuotasInput 956 if input != nil { 957 tmp := *input 958 inCpy = &tmp 959 } 960 req, _ := c.ListAWSDefaultServiceQuotasRequest(inCpy) 961 req.SetContext(ctx) 962 req.ApplyOptions(opts...) 963 return req, nil 964 }, 965 } 966 967 for p.Next() { 968 if !fn(p.Page().(*ListAWSDefaultServiceQuotasOutput), !p.HasNextPage()) { 969 break 970 } 971 } 972 973 return p.Err() 974} 975 976const opListRequestedServiceQuotaChangeHistory = "ListRequestedServiceQuotaChangeHistory" 977 978// ListRequestedServiceQuotaChangeHistoryRequest generates a "aws/request.Request" representing the 979// client's request for the ListRequestedServiceQuotaChangeHistory operation. The "output" return 980// value will be populated with the request's response once the request completes 981// successfully. 982// 983// Use "Send" method on the returned Request to send the API call to the service. 984// the "output" return value is not valid until after Send returns without error. 985// 986// See ListRequestedServiceQuotaChangeHistory for more information on using the ListRequestedServiceQuotaChangeHistory 987// API call, and error handling. 988// 989// This method is useful when you want to inject custom logic or configuration 990// into the SDK's request lifecycle. Such as custom headers, or retry logic. 991// 992// 993// // Example sending a request using the ListRequestedServiceQuotaChangeHistoryRequest method. 994// req, resp := client.ListRequestedServiceQuotaChangeHistoryRequest(params) 995// 996// err := req.Send() 997// if err == nil { // resp is now filled 998// fmt.Println(resp) 999// } 1000// 1001// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistory 1002func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryRequest(input *ListRequestedServiceQuotaChangeHistoryInput) (req *request.Request, output *ListRequestedServiceQuotaChangeHistoryOutput) { 1003 op := &request.Operation{ 1004 Name: opListRequestedServiceQuotaChangeHistory, 1005 HTTPMethod: "POST", 1006 HTTPPath: "/", 1007 Paginator: &request.Paginator{ 1008 InputTokens: []string{"NextToken"}, 1009 OutputTokens: []string{"NextToken"}, 1010 LimitToken: "MaxResults", 1011 TruncationToken: "", 1012 }, 1013 } 1014 1015 if input == nil { 1016 input = &ListRequestedServiceQuotaChangeHistoryInput{} 1017 } 1018 1019 output = &ListRequestedServiceQuotaChangeHistoryOutput{} 1020 req = c.newRequest(op, input, output) 1021 return 1022} 1023 1024// ListRequestedServiceQuotaChangeHistory API operation for Service Quotas. 1025// 1026// Retrieves the quota increase requests for the specified service. 1027// 1028// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1029// with awserr.Error's Code and Message methods to get detailed information about 1030// the error. 1031// 1032// See the AWS API reference guide for Service Quotas's 1033// API operation ListRequestedServiceQuotaChangeHistory for usage and error information. 1034// 1035// Returned Error Types: 1036// * AccessDeniedException 1037// You do not have sufficient permission to perform this action. 1038// 1039// * NoSuchResourceException 1040// The specified resource does not exist. 1041// 1042// * IllegalArgumentException 1043// Invalid input was provided. 1044// 1045// * InvalidPaginationTokenException 1046// Invalid input was provided. 1047// 1048// * ServiceException 1049// Something went wrong. 1050// 1051// * TooManyRequestsException 1052// Due to throttling, the request was denied. Slow down the rate of request 1053// calls, or request an increase for this quota. 1054// 1055// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistory 1056func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistory(input *ListRequestedServiceQuotaChangeHistoryInput) (*ListRequestedServiceQuotaChangeHistoryOutput, error) { 1057 req, out := c.ListRequestedServiceQuotaChangeHistoryRequest(input) 1058 return out, req.Send() 1059} 1060 1061// ListRequestedServiceQuotaChangeHistoryWithContext is the same as ListRequestedServiceQuotaChangeHistory with the addition of 1062// the ability to pass a context and additional request options. 1063// 1064// See ListRequestedServiceQuotaChangeHistory for details on how to use this API operation. 1065// 1066// The context must be non-nil and will be used for request cancellation. If 1067// the context is nil a panic will occur. In the future the SDK may create 1068// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1069// for more information on using Contexts. 1070func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryWithContext(ctx aws.Context, input *ListRequestedServiceQuotaChangeHistoryInput, opts ...request.Option) (*ListRequestedServiceQuotaChangeHistoryOutput, error) { 1071 req, out := c.ListRequestedServiceQuotaChangeHistoryRequest(input) 1072 req.SetContext(ctx) 1073 req.ApplyOptions(opts...) 1074 return out, req.Send() 1075} 1076 1077// ListRequestedServiceQuotaChangeHistoryPages iterates over the pages of a ListRequestedServiceQuotaChangeHistory operation, 1078// calling the "fn" function with the response data for each page. To stop 1079// iterating, return false from the fn function. 1080// 1081// See ListRequestedServiceQuotaChangeHistory method for more information on how to use this operation. 1082// 1083// Note: This operation can generate multiple requests to a service. 1084// 1085// // Example iterating over at most 3 pages of a ListRequestedServiceQuotaChangeHistory operation. 1086// pageNum := 0 1087// err := client.ListRequestedServiceQuotaChangeHistoryPages(params, 1088// func(page *servicequotas.ListRequestedServiceQuotaChangeHistoryOutput, lastPage bool) bool { 1089// pageNum++ 1090// fmt.Println(page) 1091// return pageNum <= 3 1092// }) 1093// 1094func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryPages(input *ListRequestedServiceQuotaChangeHistoryInput, fn func(*ListRequestedServiceQuotaChangeHistoryOutput, bool) bool) error { 1095 return c.ListRequestedServiceQuotaChangeHistoryPagesWithContext(aws.BackgroundContext(), input, fn) 1096} 1097 1098// ListRequestedServiceQuotaChangeHistoryPagesWithContext same as ListRequestedServiceQuotaChangeHistoryPages except 1099// it takes a Context and allows setting request options on the pages. 1100// 1101// The context must be non-nil and will be used for request cancellation. If 1102// the context is nil a panic will occur. In the future the SDK may create 1103// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1104// for more information on using Contexts. 1105func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryPagesWithContext(ctx aws.Context, input *ListRequestedServiceQuotaChangeHistoryInput, fn func(*ListRequestedServiceQuotaChangeHistoryOutput, bool) bool, opts ...request.Option) error { 1106 p := request.Pagination{ 1107 NewRequest: func() (*request.Request, error) { 1108 var inCpy *ListRequestedServiceQuotaChangeHistoryInput 1109 if input != nil { 1110 tmp := *input 1111 inCpy = &tmp 1112 } 1113 req, _ := c.ListRequestedServiceQuotaChangeHistoryRequest(inCpy) 1114 req.SetContext(ctx) 1115 req.ApplyOptions(opts...) 1116 return req, nil 1117 }, 1118 } 1119 1120 for p.Next() { 1121 if !fn(p.Page().(*ListRequestedServiceQuotaChangeHistoryOutput), !p.HasNextPage()) { 1122 break 1123 } 1124 } 1125 1126 return p.Err() 1127} 1128 1129const opListRequestedServiceQuotaChangeHistoryByQuota = "ListRequestedServiceQuotaChangeHistoryByQuota" 1130 1131// ListRequestedServiceQuotaChangeHistoryByQuotaRequest generates a "aws/request.Request" representing the 1132// client's request for the ListRequestedServiceQuotaChangeHistoryByQuota operation. The "output" return 1133// value will be populated with the request's response once the request completes 1134// successfully. 1135// 1136// Use "Send" method on the returned Request to send the API call to the service. 1137// the "output" return value is not valid until after Send returns without error. 1138// 1139// See ListRequestedServiceQuotaChangeHistoryByQuota for more information on using the ListRequestedServiceQuotaChangeHistoryByQuota 1140// API call, and error handling. 1141// 1142// This method is useful when you want to inject custom logic or configuration 1143// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1144// 1145// 1146// // Example sending a request using the ListRequestedServiceQuotaChangeHistoryByQuotaRequest method. 1147// req, resp := client.ListRequestedServiceQuotaChangeHistoryByQuotaRequest(params) 1148// 1149// err := req.Send() 1150// if err == nil { // resp is now filled 1151// fmt.Println(resp) 1152// } 1153// 1154// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistoryByQuota 1155func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryByQuotaRequest(input *ListRequestedServiceQuotaChangeHistoryByQuotaInput) (req *request.Request, output *ListRequestedServiceQuotaChangeHistoryByQuotaOutput) { 1156 op := &request.Operation{ 1157 Name: opListRequestedServiceQuotaChangeHistoryByQuota, 1158 HTTPMethod: "POST", 1159 HTTPPath: "/", 1160 Paginator: &request.Paginator{ 1161 InputTokens: []string{"NextToken"}, 1162 OutputTokens: []string{"NextToken"}, 1163 LimitToken: "MaxResults", 1164 TruncationToken: "", 1165 }, 1166 } 1167 1168 if input == nil { 1169 input = &ListRequestedServiceQuotaChangeHistoryByQuotaInput{} 1170 } 1171 1172 output = &ListRequestedServiceQuotaChangeHistoryByQuotaOutput{} 1173 req = c.newRequest(op, input, output) 1174 return 1175} 1176 1177// ListRequestedServiceQuotaChangeHistoryByQuota API operation for Service Quotas. 1178// 1179// Retrieves the quota increase requests for the specified quota. 1180// 1181// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1182// with awserr.Error's Code and Message methods to get detailed information about 1183// the error. 1184// 1185// See the AWS API reference guide for Service Quotas's 1186// API operation ListRequestedServiceQuotaChangeHistoryByQuota for usage and error information. 1187// 1188// Returned Error Types: 1189// * AccessDeniedException 1190// You do not have sufficient permission to perform this action. 1191// 1192// * NoSuchResourceException 1193// The specified resource does not exist. 1194// 1195// * IllegalArgumentException 1196// Invalid input was provided. 1197// 1198// * InvalidPaginationTokenException 1199// Invalid input was provided. 1200// 1201// * ServiceException 1202// Something went wrong. 1203// 1204// * TooManyRequestsException 1205// Due to throttling, the request was denied. Slow down the rate of request 1206// calls, or request an increase for this quota. 1207// 1208// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListRequestedServiceQuotaChangeHistoryByQuota 1209func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryByQuota(input *ListRequestedServiceQuotaChangeHistoryByQuotaInput) (*ListRequestedServiceQuotaChangeHistoryByQuotaOutput, error) { 1210 req, out := c.ListRequestedServiceQuotaChangeHistoryByQuotaRequest(input) 1211 return out, req.Send() 1212} 1213 1214// ListRequestedServiceQuotaChangeHistoryByQuotaWithContext is the same as ListRequestedServiceQuotaChangeHistoryByQuota with the addition of 1215// the ability to pass a context and additional request options. 1216// 1217// See ListRequestedServiceQuotaChangeHistoryByQuota for details on how to use this API operation. 1218// 1219// The context must be non-nil and will be used for request cancellation. If 1220// the context is nil a panic will occur. In the future the SDK may create 1221// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1222// for more information on using Contexts. 1223func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryByQuotaWithContext(ctx aws.Context, input *ListRequestedServiceQuotaChangeHistoryByQuotaInput, opts ...request.Option) (*ListRequestedServiceQuotaChangeHistoryByQuotaOutput, error) { 1224 req, out := c.ListRequestedServiceQuotaChangeHistoryByQuotaRequest(input) 1225 req.SetContext(ctx) 1226 req.ApplyOptions(opts...) 1227 return out, req.Send() 1228} 1229 1230// ListRequestedServiceQuotaChangeHistoryByQuotaPages iterates over the pages of a ListRequestedServiceQuotaChangeHistoryByQuota operation, 1231// calling the "fn" function with the response data for each page. To stop 1232// iterating, return false from the fn function. 1233// 1234// See ListRequestedServiceQuotaChangeHistoryByQuota method for more information on how to use this operation. 1235// 1236// Note: This operation can generate multiple requests to a service. 1237// 1238// // Example iterating over at most 3 pages of a ListRequestedServiceQuotaChangeHistoryByQuota operation. 1239// pageNum := 0 1240// err := client.ListRequestedServiceQuotaChangeHistoryByQuotaPages(params, 1241// func(page *servicequotas.ListRequestedServiceQuotaChangeHistoryByQuotaOutput, lastPage bool) bool { 1242// pageNum++ 1243// fmt.Println(page) 1244// return pageNum <= 3 1245// }) 1246// 1247func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryByQuotaPages(input *ListRequestedServiceQuotaChangeHistoryByQuotaInput, fn func(*ListRequestedServiceQuotaChangeHistoryByQuotaOutput, bool) bool) error { 1248 return c.ListRequestedServiceQuotaChangeHistoryByQuotaPagesWithContext(aws.BackgroundContext(), input, fn) 1249} 1250 1251// ListRequestedServiceQuotaChangeHistoryByQuotaPagesWithContext same as ListRequestedServiceQuotaChangeHistoryByQuotaPages except 1252// it takes a Context and allows setting request options on the pages. 1253// 1254// The context must be non-nil and will be used for request cancellation. If 1255// the context is nil a panic will occur. In the future the SDK may create 1256// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1257// for more information on using Contexts. 1258func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryByQuotaPagesWithContext(ctx aws.Context, input *ListRequestedServiceQuotaChangeHistoryByQuotaInput, fn func(*ListRequestedServiceQuotaChangeHistoryByQuotaOutput, bool) bool, opts ...request.Option) error { 1259 p := request.Pagination{ 1260 NewRequest: func() (*request.Request, error) { 1261 var inCpy *ListRequestedServiceQuotaChangeHistoryByQuotaInput 1262 if input != nil { 1263 tmp := *input 1264 inCpy = &tmp 1265 } 1266 req, _ := c.ListRequestedServiceQuotaChangeHistoryByQuotaRequest(inCpy) 1267 req.SetContext(ctx) 1268 req.ApplyOptions(opts...) 1269 return req, nil 1270 }, 1271 } 1272 1273 for p.Next() { 1274 if !fn(p.Page().(*ListRequestedServiceQuotaChangeHistoryByQuotaOutput), !p.HasNextPage()) { 1275 break 1276 } 1277 } 1278 1279 return p.Err() 1280} 1281 1282const opListServiceQuotaIncreaseRequestsInTemplate = "ListServiceQuotaIncreaseRequestsInTemplate" 1283 1284// ListServiceQuotaIncreaseRequestsInTemplateRequest generates a "aws/request.Request" representing the 1285// client's request for the ListServiceQuotaIncreaseRequestsInTemplate operation. The "output" return 1286// value will be populated with the request's response once the request completes 1287// successfully. 1288// 1289// Use "Send" method on the returned Request to send the API call to the service. 1290// the "output" return value is not valid until after Send returns without error. 1291// 1292// See ListServiceQuotaIncreaseRequestsInTemplate for more information on using the ListServiceQuotaIncreaseRequestsInTemplate 1293// API call, and error handling. 1294// 1295// This method is useful when you want to inject custom logic or configuration 1296// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1297// 1298// 1299// // Example sending a request using the ListServiceQuotaIncreaseRequestsInTemplateRequest method. 1300// req, resp := client.ListServiceQuotaIncreaseRequestsInTemplateRequest(params) 1301// 1302// err := req.Send() 1303// if err == nil { // resp is now filled 1304// fmt.Println(resp) 1305// } 1306// 1307// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotaIncreaseRequestsInTemplate 1308func (c *ServiceQuotas) ListServiceQuotaIncreaseRequestsInTemplateRequest(input *ListServiceQuotaIncreaseRequestsInTemplateInput) (req *request.Request, output *ListServiceQuotaIncreaseRequestsInTemplateOutput) { 1309 op := &request.Operation{ 1310 Name: opListServiceQuotaIncreaseRequestsInTemplate, 1311 HTTPMethod: "POST", 1312 HTTPPath: "/", 1313 Paginator: &request.Paginator{ 1314 InputTokens: []string{"NextToken"}, 1315 OutputTokens: []string{"NextToken"}, 1316 LimitToken: "MaxResults", 1317 TruncationToken: "", 1318 }, 1319 } 1320 1321 if input == nil { 1322 input = &ListServiceQuotaIncreaseRequestsInTemplateInput{} 1323 } 1324 1325 output = &ListServiceQuotaIncreaseRequestsInTemplateOutput{} 1326 req = c.newRequest(op, input, output) 1327 return 1328} 1329 1330// ListServiceQuotaIncreaseRequestsInTemplate API operation for Service Quotas. 1331// 1332// Lists the quota increase requests in the specified quota request template. 1333// 1334// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1335// with awserr.Error's Code and Message methods to get detailed information about 1336// the error. 1337// 1338// See the AWS API reference guide for Service Quotas's 1339// API operation ListServiceQuotaIncreaseRequestsInTemplate for usage and error information. 1340// 1341// Returned Error Types: 1342// * AccessDeniedException 1343// You do not have sufficient permission to perform this action. 1344// 1345// * DependencyAccessDeniedException 1346// You can't perform this action because a dependency does not have access. 1347// 1348// * ServiceException 1349// Something went wrong. 1350// 1351// * TooManyRequestsException 1352// Due to throttling, the request was denied. Slow down the rate of request 1353// calls, or request an increase for this quota. 1354// 1355// * IllegalArgumentException 1356// Invalid input was provided. 1357// 1358// * AWSServiceAccessNotEnabledException 1359// The action you attempted is not allowed unless Service Access with Service 1360// Quotas is enabled in your organization. 1361// 1362// * TemplatesNotAvailableInRegionException 1363// The Service Quotas template is not available in this AWS Region. 1364// 1365// * NoAvailableOrganizationException 1366// The account making this call is not a member of an organization. 1367// 1368// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotaIncreaseRequestsInTemplate 1369func (c *ServiceQuotas) ListServiceQuotaIncreaseRequestsInTemplate(input *ListServiceQuotaIncreaseRequestsInTemplateInput) (*ListServiceQuotaIncreaseRequestsInTemplateOutput, error) { 1370 req, out := c.ListServiceQuotaIncreaseRequestsInTemplateRequest(input) 1371 return out, req.Send() 1372} 1373 1374// ListServiceQuotaIncreaseRequestsInTemplateWithContext is the same as ListServiceQuotaIncreaseRequestsInTemplate with the addition of 1375// the ability to pass a context and additional request options. 1376// 1377// See ListServiceQuotaIncreaseRequestsInTemplate for details on how to use this API operation. 1378// 1379// The context must be non-nil and will be used for request cancellation. If 1380// the context is nil a panic will occur. In the future the SDK may create 1381// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1382// for more information on using Contexts. 1383func (c *ServiceQuotas) ListServiceQuotaIncreaseRequestsInTemplateWithContext(ctx aws.Context, input *ListServiceQuotaIncreaseRequestsInTemplateInput, opts ...request.Option) (*ListServiceQuotaIncreaseRequestsInTemplateOutput, error) { 1384 req, out := c.ListServiceQuotaIncreaseRequestsInTemplateRequest(input) 1385 req.SetContext(ctx) 1386 req.ApplyOptions(opts...) 1387 return out, req.Send() 1388} 1389 1390// ListServiceQuotaIncreaseRequestsInTemplatePages iterates over the pages of a ListServiceQuotaIncreaseRequestsInTemplate operation, 1391// calling the "fn" function with the response data for each page. To stop 1392// iterating, return false from the fn function. 1393// 1394// See ListServiceQuotaIncreaseRequestsInTemplate method for more information on how to use this operation. 1395// 1396// Note: This operation can generate multiple requests to a service. 1397// 1398// // Example iterating over at most 3 pages of a ListServiceQuotaIncreaseRequestsInTemplate operation. 1399// pageNum := 0 1400// err := client.ListServiceQuotaIncreaseRequestsInTemplatePages(params, 1401// func(page *servicequotas.ListServiceQuotaIncreaseRequestsInTemplateOutput, lastPage bool) bool { 1402// pageNum++ 1403// fmt.Println(page) 1404// return pageNum <= 3 1405// }) 1406// 1407func (c *ServiceQuotas) ListServiceQuotaIncreaseRequestsInTemplatePages(input *ListServiceQuotaIncreaseRequestsInTemplateInput, fn func(*ListServiceQuotaIncreaseRequestsInTemplateOutput, bool) bool) error { 1408 return c.ListServiceQuotaIncreaseRequestsInTemplatePagesWithContext(aws.BackgroundContext(), input, fn) 1409} 1410 1411// ListServiceQuotaIncreaseRequestsInTemplatePagesWithContext same as ListServiceQuotaIncreaseRequestsInTemplatePages except 1412// it takes a Context and allows setting request options on the pages. 1413// 1414// The context must be non-nil and will be used for request cancellation. If 1415// the context is nil a panic will occur. In the future the SDK may create 1416// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1417// for more information on using Contexts. 1418func (c *ServiceQuotas) ListServiceQuotaIncreaseRequestsInTemplatePagesWithContext(ctx aws.Context, input *ListServiceQuotaIncreaseRequestsInTemplateInput, fn func(*ListServiceQuotaIncreaseRequestsInTemplateOutput, bool) bool, opts ...request.Option) error { 1419 p := request.Pagination{ 1420 NewRequest: func() (*request.Request, error) { 1421 var inCpy *ListServiceQuotaIncreaseRequestsInTemplateInput 1422 if input != nil { 1423 tmp := *input 1424 inCpy = &tmp 1425 } 1426 req, _ := c.ListServiceQuotaIncreaseRequestsInTemplateRequest(inCpy) 1427 req.SetContext(ctx) 1428 req.ApplyOptions(opts...) 1429 return req, nil 1430 }, 1431 } 1432 1433 for p.Next() { 1434 if !fn(p.Page().(*ListServiceQuotaIncreaseRequestsInTemplateOutput), !p.HasNextPage()) { 1435 break 1436 } 1437 } 1438 1439 return p.Err() 1440} 1441 1442const opListServiceQuotas = "ListServiceQuotas" 1443 1444// ListServiceQuotasRequest generates a "aws/request.Request" representing the 1445// client's request for the ListServiceQuotas operation. The "output" return 1446// value will be populated with the request's response once the request completes 1447// successfully. 1448// 1449// Use "Send" method on the returned Request to send the API call to the service. 1450// the "output" return value is not valid until after Send returns without error. 1451// 1452// See ListServiceQuotas for more information on using the ListServiceQuotas 1453// API call, and error handling. 1454// 1455// This method is useful when you want to inject custom logic or configuration 1456// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1457// 1458// 1459// // Example sending a request using the ListServiceQuotasRequest method. 1460// req, resp := client.ListServiceQuotasRequest(params) 1461// 1462// err := req.Send() 1463// if err == nil { // resp is now filled 1464// fmt.Println(resp) 1465// } 1466// 1467// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotas 1468func (c *ServiceQuotas) ListServiceQuotasRequest(input *ListServiceQuotasInput) (req *request.Request, output *ListServiceQuotasOutput) { 1469 op := &request.Operation{ 1470 Name: opListServiceQuotas, 1471 HTTPMethod: "POST", 1472 HTTPPath: "/", 1473 Paginator: &request.Paginator{ 1474 InputTokens: []string{"NextToken"}, 1475 OutputTokens: []string{"NextToken"}, 1476 LimitToken: "MaxResults", 1477 TruncationToken: "", 1478 }, 1479 } 1480 1481 if input == nil { 1482 input = &ListServiceQuotasInput{} 1483 } 1484 1485 output = &ListServiceQuotasOutput{} 1486 req = c.newRequest(op, input, output) 1487 return 1488} 1489 1490// ListServiceQuotas API operation for Service Quotas. 1491// 1492// Lists the applied quota values for the specified AWS service. For some quotas, 1493// only the default values are available. If the applied quota value is not 1494// available for a quota, the quota is not retrieved. 1495// 1496// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1497// with awserr.Error's Code and Message methods to get detailed information about 1498// the error. 1499// 1500// See the AWS API reference guide for Service Quotas's 1501// API operation ListServiceQuotas for usage and error information. 1502// 1503// Returned Error Types: 1504// * AccessDeniedException 1505// You do not have sufficient permission to perform this action. 1506// 1507// * NoSuchResourceException 1508// The specified resource does not exist. 1509// 1510// * IllegalArgumentException 1511// Invalid input was provided. 1512// 1513// * InvalidPaginationTokenException 1514// Invalid input was provided. 1515// 1516// * ServiceException 1517// Something went wrong. 1518// 1519// * TooManyRequestsException 1520// Due to throttling, the request was denied. Slow down the rate of request 1521// calls, or request an increase for this quota. 1522// 1523// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotas 1524func (c *ServiceQuotas) ListServiceQuotas(input *ListServiceQuotasInput) (*ListServiceQuotasOutput, error) { 1525 req, out := c.ListServiceQuotasRequest(input) 1526 return out, req.Send() 1527} 1528 1529// ListServiceQuotasWithContext is the same as ListServiceQuotas with the addition of 1530// the ability to pass a context and additional request options. 1531// 1532// See ListServiceQuotas for details on how to use this API operation. 1533// 1534// The context must be non-nil and will be used for request cancellation. If 1535// the context is nil a panic will occur. In the future the SDK may create 1536// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1537// for more information on using Contexts. 1538func (c *ServiceQuotas) ListServiceQuotasWithContext(ctx aws.Context, input *ListServiceQuotasInput, opts ...request.Option) (*ListServiceQuotasOutput, error) { 1539 req, out := c.ListServiceQuotasRequest(input) 1540 req.SetContext(ctx) 1541 req.ApplyOptions(opts...) 1542 return out, req.Send() 1543} 1544 1545// ListServiceQuotasPages iterates over the pages of a ListServiceQuotas operation, 1546// calling the "fn" function with the response data for each page. To stop 1547// iterating, return false from the fn function. 1548// 1549// See ListServiceQuotas method for more information on how to use this operation. 1550// 1551// Note: This operation can generate multiple requests to a service. 1552// 1553// // Example iterating over at most 3 pages of a ListServiceQuotas operation. 1554// pageNum := 0 1555// err := client.ListServiceQuotasPages(params, 1556// func(page *servicequotas.ListServiceQuotasOutput, lastPage bool) bool { 1557// pageNum++ 1558// fmt.Println(page) 1559// return pageNum <= 3 1560// }) 1561// 1562func (c *ServiceQuotas) ListServiceQuotasPages(input *ListServiceQuotasInput, fn func(*ListServiceQuotasOutput, bool) bool) error { 1563 return c.ListServiceQuotasPagesWithContext(aws.BackgroundContext(), input, fn) 1564} 1565 1566// ListServiceQuotasPagesWithContext same as ListServiceQuotasPages except 1567// it takes a Context and allows setting request options on the pages. 1568// 1569// The context must be non-nil and will be used for request cancellation. If 1570// the context is nil a panic will occur. In the future the SDK may create 1571// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1572// for more information on using Contexts. 1573func (c *ServiceQuotas) ListServiceQuotasPagesWithContext(ctx aws.Context, input *ListServiceQuotasInput, fn func(*ListServiceQuotasOutput, bool) bool, opts ...request.Option) error { 1574 p := request.Pagination{ 1575 NewRequest: func() (*request.Request, error) { 1576 var inCpy *ListServiceQuotasInput 1577 if input != nil { 1578 tmp := *input 1579 inCpy = &tmp 1580 } 1581 req, _ := c.ListServiceQuotasRequest(inCpy) 1582 req.SetContext(ctx) 1583 req.ApplyOptions(opts...) 1584 return req, nil 1585 }, 1586 } 1587 1588 for p.Next() { 1589 if !fn(p.Page().(*ListServiceQuotasOutput), !p.HasNextPage()) { 1590 break 1591 } 1592 } 1593 1594 return p.Err() 1595} 1596 1597const opListServices = "ListServices" 1598 1599// ListServicesRequest generates a "aws/request.Request" representing the 1600// client's request for the ListServices operation. The "output" return 1601// value will be populated with the request's response once the request completes 1602// successfully. 1603// 1604// Use "Send" method on the returned Request to send the API call to the service. 1605// the "output" return value is not valid until after Send returns without error. 1606// 1607// See ListServices for more information on using the ListServices 1608// API call, and error handling. 1609// 1610// This method is useful when you want to inject custom logic or configuration 1611// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1612// 1613// 1614// // Example sending a request using the ListServicesRequest method. 1615// req, resp := client.ListServicesRequest(params) 1616// 1617// err := req.Send() 1618// if err == nil { // resp is now filled 1619// fmt.Println(resp) 1620// } 1621// 1622// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServices 1623func (c *ServiceQuotas) ListServicesRequest(input *ListServicesInput) (req *request.Request, output *ListServicesOutput) { 1624 op := &request.Operation{ 1625 Name: opListServices, 1626 HTTPMethod: "POST", 1627 HTTPPath: "/", 1628 Paginator: &request.Paginator{ 1629 InputTokens: []string{"NextToken"}, 1630 OutputTokens: []string{"NextToken"}, 1631 LimitToken: "MaxResults", 1632 TruncationToken: "", 1633 }, 1634 } 1635 1636 if input == nil { 1637 input = &ListServicesInput{} 1638 } 1639 1640 output = &ListServicesOutput{} 1641 req = c.newRequest(op, input, output) 1642 return 1643} 1644 1645// ListServices API operation for Service Quotas. 1646// 1647// Lists the names and codes for the services integrated with Service Quotas. 1648// 1649// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1650// with awserr.Error's Code and Message methods to get detailed information about 1651// the error. 1652// 1653// See the AWS API reference guide for Service Quotas's 1654// API operation ListServices for usage and error information. 1655// 1656// Returned Error Types: 1657// * AccessDeniedException 1658// You do not have sufficient permission to perform this action. 1659// 1660// * IllegalArgumentException 1661// Invalid input was provided. 1662// 1663// * InvalidPaginationTokenException 1664// Invalid input was provided. 1665// 1666// * ServiceException 1667// Something went wrong. 1668// 1669// * TooManyRequestsException 1670// Due to throttling, the request was denied. Slow down the rate of request 1671// calls, or request an increase for this quota. 1672// 1673// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServices 1674func (c *ServiceQuotas) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { 1675 req, out := c.ListServicesRequest(input) 1676 return out, req.Send() 1677} 1678 1679// ListServicesWithContext is the same as ListServices with the addition of 1680// the ability to pass a context and additional request options. 1681// 1682// See ListServices for details on how to use this API operation. 1683// 1684// The context must be non-nil and will be used for request cancellation. If 1685// the context is nil a panic will occur. In the future the SDK may create 1686// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1687// for more information on using Contexts. 1688func (c *ServiceQuotas) ListServicesWithContext(ctx aws.Context, input *ListServicesInput, opts ...request.Option) (*ListServicesOutput, error) { 1689 req, out := c.ListServicesRequest(input) 1690 req.SetContext(ctx) 1691 req.ApplyOptions(opts...) 1692 return out, req.Send() 1693} 1694 1695// ListServicesPages iterates over the pages of a ListServices operation, 1696// calling the "fn" function with the response data for each page. To stop 1697// iterating, return false from the fn function. 1698// 1699// See ListServices method for more information on how to use this operation. 1700// 1701// Note: This operation can generate multiple requests to a service. 1702// 1703// // Example iterating over at most 3 pages of a ListServices operation. 1704// pageNum := 0 1705// err := client.ListServicesPages(params, 1706// func(page *servicequotas.ListServicesOutput, lastPage bool) bool { 1707// pageNum++ 1708// fmt.Println(page) 1709// return pageNum <= 3 1710// }) 1711// 1712func (c *ServiceQuotas) ListServicesPages(input *ListServicesInput, fn func(*ListServicesOutput, bool) bool) error { 1713 return c.ListServicesPagesWithContext(aws.BackgroundContext(), input, fn) 1714} 1715 1716// ListServicesPagesWithContext same as ListServicesPages except 1717// it takes a Context and allows setting request options on the pages. 1718// 1719// The context must be non-nil and will be used for request cancellation. If 1720// the context is nil a panic will occur. In the future the SDK may create 1721// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1722// for more information on using Contexts. 1723func (c *ServiceQuotas) ListServicesPagesWithContext(ctx aws.Context, input *ListServicesInput, fn func(*ListServicesOutput, bool) bool, opts ...request.Option) error { 1724 p := request.Pagination{ 1725 NewRequest: func() (*request.Request, error) { 1726 var inCpy *ListServicesInput 1727 if input != nil { 1728 tmp := *input 1729 inCpy = &tmp 1730 } 1731 req, _ := c.ListServicesRequest(inCpy) 1732 req.SetContext(ctx) 1733 req.ApplyOptions(opts...) 1734 return req, nil 1735 }, 1736 } 1737 1738 for p.Next() { 1739 if !fn(p.Page().(*ListServicesOutput), !p.HasNextPage()) { 1740 break 1741 } 1742 } 1743 1744 return p.Err() 1745} 1746 1747const opListTagsForResource = "ListTagsForResource" 1748 1749// ListTagsForResourceRequest generates a "aws/request.Request" representing the 1750// client's request for the ListTagsForResource operation. The "output" return 1751// value will be populated with the request's response once the request completes 1752// successfully. 1753// 1754// Use "Send" method on the returned Request to send the API call to the service. 1755// the "output" return value is not valid until after Send returns without error. 1756// 1757// See ListTagsForResource for more information on using the ListTagsForResource 1758// API call, and error handling. 1759// 1760// This method is useful when you want to inject custom logic or configuration 1761// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1762// 1763// 1764// // Example sending a request using the ListTagsForResourceRequest method. 1765// req, resp := client.ListTagsForResourceRequest(params) 1766// 1767// err := req.Send() 1768// if err == nil { // resp is now filled 1769// fmt.Println(resp) 1770// } 1771// 1772// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListTagsForResource 1773func (c *ServiceQuotas) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 1774 op := &request.Operation{ 1775 Name: opListTagsForResource, 1776 HTTPMethod: "POST", 1777 HTTPPath: "/", 1778 } 1779 1780 if input == nil { 1781 input = &ListTagsForResourceInput{} 1782 } 1783 1784 output = &ListTagsForResourceOutput{} 1785 req = c.newRequest(op, input, output) 1786 return 1787} 1788 1789// ListTagsForResource API operation for Service Quotas. 1790// 1791// Returns a list of the tags assigned to the specified applied quota. 1792// 1793// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1794// with awserr.Error's Code and Message methods to get detailed information about 1795// the error. 1796// 1797// See the AWS API reference guide for Service Quotas's 1798// API operation ListTagsForResource for usage and error information. 1799// 1800// Returned Error Types: 1801// * TooManyRequestsException 1802// Due to throttling, the request was denied. Slow down the rate of request 1803// calls, or request an increase for this quota. 1804// 1805// * NoSuchResourceException 1806// The specified resource does not exist. 1807// 1808// * IllegalArgumentException 1809// Invalid input was provided. 1810// 1811// * AccessDeniedException 1812// You do not have sufficient permission to perform this action. 1813// 1814// * ServiceException 1815// Something went wrong. 1816// 1817// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListTagsForResource 1818func (c *ServiceQuotas) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 1819 req, out := c.ListTagsForResourceRequest(input) 1820 return out, req.Send() 1821} 1822 1823// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 1824// the ability to pass a context and additional request options. 1825// 1826// See ListTagsForResource for details on how to use this API operation. 1827// 1828// The context must be non-nil and will be used for request cancellation. If 1829// the context is nil a panic will occur. In the future the SDK may create 1830// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1831// for more information on using Contexts. 1832func (c *ServiceQuotas) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 1833 req, out := c.ListTagsForResourceRequest(input) 1834 req.SetContext(ctx) 1835 req.ApplyOptions(opts...) 1836 return out, req.Send() 1837} 1838 1839const opPutServiceQuotaIncreaseRequestIntoTemplate = "PutServiceQuotaIncreaseRequestIntoTemplate" 1840 1841// PutServiceQuotaIncreaseRequestIntoTemplateRequest generates a "aws/request.Request" representing the 1842// client's request for the PutServiceQuotaIncreaseRequestIntoTemplate operation. The "output" return 1843// value will be populated with the request's response once the request completes 1844// successfully. 1845// 1846// Use "Send" method on the returned Request to send the API call to the service. 1847// the "output" return value is not valid until after Send returns without error. 1848// 1849// See PutServiceQuotaIncreaseRequestIntoTemplate for more information on using the PutServiceQuotaIncreaseRequestIntoTemplate 1850// API call, and error handling. 1851// 1852// This method is useful when you want to inject custom logic or configuration 1853// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1854// 1855// 1856// // Example sending a request using the PutServiceQuotaIncreaseRequestIntoTemplateRequest method. 1857// req, resp := client.PutServiceQuotaIncreaseRequestIntoTemplateRequest(params) 1858// 1859// err := req.Send() 1860// if err == nil { // resp is now filled 1861// fmt.Println(resp) 1862// } 1863// 1864// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/PutServiceQuotaIncreaseRequestIntoTemplate 1865func (c *ServiceQuotas) PutServiceQuotaIncreaseRequestIntoTemplateRequest(input *PutServiceQuotaIncreaseRequestIntoTemplateInput) (req *request.Request, output *PutServiceQuotaIncreaseRequestIntoTemplateOutput) { 1866 op := &request.Operation{ 1867 Name: opPutServiceQuotaIncreaseRequestIntoTemplate, 1868 HTTPMethod: "POST", 1869 HTTPPath: "/", 1870 } 1871 1872 if input == nil { 1873 input = &PutServiceQuotaIncreaseRequestIntoTemplateInput{} 1874 } 1875 1876 output = &PutServiceQuotaIncreaseRequestIntoTemplateOutput{} 1877 req = c.newRequest(op, input, output) 1878 return 1879} 1880 1881// PutServiceQuotaIncreaseRequestIntoTemplate API operation for Service Quotas. 1882// 1883// Adds a quota increase request to your quota request template. 1884// 1885// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1886// with awserr.Error's Code and Message methods to get detailed information about 1887// the error. 1888// 1889// See the AWS API reference guide for Service Quotas's 1890// API operation PutServiceQuotaIncreaseRequestIntoTemplate for usage and error information. 1891// 1892// Returned Error Types: 1893// * AccessDeniedException 1894// You do not have sufficient permission to perform this action. 1895// 1896// * DependencyAccessDeniedException 1897// You can't perform this action because a dependency does not have access. 1898// 1899// * ServiceException 1900// Something went wrong. 1901// 1902// * TooManyRequestsException 1903// Due to throttling, the request was denied. Slow down the rate of request 1904// calls, or request an increase for this quota. 1905// 1906// * IllegalArgumentException 1907// Invalid input was provided. 1908// 1909// * QuotaExceededException 1910// You have exceeded your service quota. To perform the requested action, remove 1911// some of the relevant resources, or use Service Quotas to request a service 1912// quota increase. 1913// 1914// * NoSuchResourceException 1915// The specified resource does not exist. 1916// 1917// * AWSServiceAccessNotEnabledException 1918// The action you attempted is not allowed unless Service Access with Service 1919// Quotas is enabled in your organization. 1920// 1921// * TemplatesNotAvailableInRegionException 1922// The Service Quotas template is not available in this AWS Region. 1923// 1924// * NoAvailableOrganizationException 1925// The account making this call is not a member of an organization. 1926// 1927// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/PutServiceQuotaIncreaseRequestIntoTemplate 1928func (c *ServiceQuotas) PutServiceQuotaIncreaseRequestIntoTemplate(input *PutServiceQuotaIncreaseRequestIntoTemplateInput) (*PutServiceQuotaIncreaseRequestIntoTemplateOutput, error) { 1929 req, out := c.PutServiceQuotaIncreaseRequestIntoTemplateRequest(input) 1930 return out, req.Send() 1931} 1932 1933// PutServiceQuotaIncreaseRequestIntoTemplateWithContext is the same as PutServiceQuotaIncreaseRequestIntoTemplate with the addition of 1934// the ability to pass a context and additional request options. 1935// 1936// See PutServiceQuotaIncreaseRequestIntoTemplate for details on how to use this API operation. 1937// 1938// The context must be non-nil and will be used for request cancellation. If 1939// the context is nil a panic will occur. In the future the SDK may create 1940// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1941// for more information on using Contexts. 1942func (c *ServiceQuotas) PutServiceQuotaIncreaseRequestIntoTemplateWithContext(ctx aws.Context, input *PutServiceQuotaIncreaseRequestIntoTemplateInput, opts ...request.Option) (*PutServiceQuotaIncreaseRequestIntoTemplateOutput, error) { 1943 req, out := c.PutServiceQuotaIncreaseRequestIntoTemplateRequest(input) 1944 req.SetContext(ctx) 1945 req.ApplyOptions(opts...) 1946 return out, req.Send() 1947} 1948 1949const opRequestServiceQuotaIncrease = "RequestServiceQuotaIncrease" 1950 1951// RequestServiceQuotaIncreaseRequest generates a "aws/request.Request" representing the 1952// client's request for the RequestServiceQuotaIncrease operation. The "output" return 1953// value will be populated with the request's response once the request completes 1954// successfully. 1955// 1956// Use "Send" method on the returned Request to send the API call to the service. 1957// the "output" return value is not valid until after Send returns without error. 1958// 1959// See RequestServiceQuotaIncrease for more information on using the RequestServiceQuotaIncrease 1960// API call, and error handling. 1961// 1962// This method is useful when you want to inject custom logic or configuration 1963// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1964// 1965// 1966// // Example sending a request using the RequestServiceQuotaIncreaseRequest method. 1967// req, resp := client.RequestServiceQuotaIncreaseRequest(params) 1968// 1969// err := req.Send() 1970// if err == nil { // resp is now filled 1971// fmt.Println(resp) 1972// } 1973// 1974// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/RequestServiceQuotaIncrease 1975func (c *ServiceQuotas) RequestServiceQuotaIncreaseRequest(input *RequestServiceQuotaIncreaseInput) (req *request.Request, output *RequestServiceQuotaIncreaseOutput) { 1976 op := &request.Operation{ 1977 Name: opRequestServiceQuotaIncrease, 1978 HTTPMethod: "POST", 1979 HTTPPath: "/", 1980 } 1981 1982 if input == nil { 1983 input = &RequestServiceQuotaIncreaseInput{} 1984 } 1985 1986 output = &RequestServiceQuotaIncreaseOutput{} 1987 req = c.newRequest(op, input, output) 1988 return 1989} 1990 1991// RequestServiceQuotaIncrease API operation for Service Quotas. 1992// 1993// Submits a quota increase request for the specified quota. 1994// 1995// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1996// with awserr.Error's Code and Message methods to get detailed information about 1997// the error. 1998// 1999// See the AWS API reference guide for Service Quotas's 2000// API operation RequestServiceQuotaIncrease for usage and error information. 2001// 2002// Returned Error Types: 2003// * DependencyAccessDeniedException 2004// You can't perform this action because a dependency does not have access. 2005// 2006// * QuotaExceededException 2007// You have exceeded your service quota. To perform the requested action, remove 2008// some of the relevant resources, or use Service Quotas to request a service 2009// quota increase. 2010// 2011// * ResourceAlreadyExistsException 2012// The specified resource already exists. 2013// 2014// * AccessDeniedException 2015// You do not have sufficient permission to perform this action. 2016// 2017// * NoSuchResourceException 2018// The specified resource does not exist. 2019// 2020// * IllegalArgumentException 2021// Invalid input was provided. 2022// 2023// * InvalidResourceStateException 2024// The resource is in an invalid state. 2025// 2026// * ServiceException 2027// Something went wrong. 2028// 2029// * TooManyRequestsException 2030// Due to throttling, the request was denied. Slow down the rate of request 2031// calls, or request an increase for this quota. 2032// 2033// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/RequestServiceQuotaIncrease 2034func (c *ServiceQuotas) RequestServiceQuotaIncrease(input *RequestServiceQuotaIncreaseInput) (*RequestServiceQuotaIncreaseOutput, error) { 2035 req, out := c.RequestServiceQuotaIncreaseRequest(input) 2036 return out, req.Send() 2037} 2038 2039// RequestServiceQuotaIncreaseWithContext is the same as RequestServiceQuotaIncrease with the addition of 2040// the ability to pass a context and additional request options. 2041// 2042// See RequestServiceQuotaIncrease for details on how to use this API operation. 2043// 2044// The context must be non-nil and will be used for request cancellation. If 2045// the context is nil a panic will occur. In the future the SDK may create 2046// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2047// for more information on using Contexts. 2048func (c *ServiceQuotas) RequestServiceQuotaIncreaseWithContext(ctx aws.Context, input *RequestServiceQuotaIncreaseInput, opts ...request.Option) (*RequestServiceQuotaIncreaseOutput, error) { 2049 req, out := c.RequestServiceQuotaIncreaseRequest(input) 2050 req.SetContext(ctx) 2051 req.ApplyOptions(opts...) 2052 return out, req.Send() 2053} 2054 2055const opTagResource = "TagResource" 2056 2057// TagResourceRequest generates a "aws/request.Request" representing the 2058// client's request for the TagResource operation. The "output" return 2059// value will be populated with the request's response once the request completes 2060// successfully. 2061// 2062// Use "Send" method on the returned Request to send the API call to the service. 2063// the "output" return value is not valid until after Send returns without error. 2064// 2065// See TagResource for more information on using the TagResource 2066// API call, and error handling. 2067// 2068// This method is useful when you want to inject custom logic or configuration 2069// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2070// 2071// 2072// // Example sending a request using the TagResourceRequest method. 2073// req, resp := client.TagResourceRequest(params) 2074// 2075// err := req.Send() 2076// if err == nil { // resp is now filled 2077// fmt.Println(resp) 2078// } 2079// 2080// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/TagResource 2081func (c *ServiceQuotas) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 2082 op := &request.Operation{ 2083 Name: opTagResource, 2084 HTTPMethod: "POST", 2085 HTTPPath: "/", 2086 } 2087 2088 if input == nil { 2089 input = &TagResourceInput{} 2090 } 2091 2092 output = &TagResourceOutput{} 2093 req = c.newRequest(op, input, output) 2094 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2095 return 2096} 2097 2098// TagResource API operation for Service Quotas. 2099// 2100// Adds tags to the specified applied quota. You can include one or more tags 2101// to add to the quota. 2102// 2103// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2104// with awserr.Error's Code and Message methods to get detailed information about 2105// the error. 2106// 2107// See the AWS API reference guide for Service Quotas's 2108// API operation TagResource for usage and error information. 2109// 2110// Returned Error Types: 2111// * TooManyRequestsException 2112// Due to throttling, the request was denied. Slow down the rate of request 2113// calls, or request an increase for this quota. 2114// 2115// * NoSuchResourceException 2116// The specified resource does not exist. 2117// 2118// * TooManyTagsException 2119// You've exceeded the number of tags allowed for a resource. For more information, 2120// see Tag restrictions (https://docs.aws.amazon.com/servicequotas/latest/userguide/sq-tagging.html#sq-tagging-restrictions) 2121// in the Service Quotas User Guide. 2122// 2123// * TagPolicyViolationException 2124// The specified tag is a reserved word and cannot be used. 2125// 2126// * IllegalArgumentException 2127// Invalid input was provided. 2128// 2129// * AccessDeniedException 2130// You do not have sufficient permission to perform this action. 2131// 2132// * ServiceException 2133// Something went wrong. 2134// 2135// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/TagResource 2136func (c *ServiceQuotas) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 2137 req, out := c.TagResourceRequest(input) 2138 return out, req.Send() 2139} 2140 2141// TagResourceWithContext is the same as TagResource with the addition of 2142// the ability to pass a context and additional request options. 2143// 2144// See TagResource for details on how to use this API operation. 2145// 2146// The context must be non-nil and will be used for request cancellation. If 2147// the context is nil a panic will occur. In the future the SDK may create 2148// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2149// for more information on using Contexts. 2150func (c *ServiceQuotas) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 2151 req, out := c.TagResourceRequest(input) 2152 req.SetContext(ctx) 2153 req.ApplyOptions(opts...) 2154 return out, req.Send() 2155} 2156 2157const opUntagResource = "UntagResource" 2158 2159// UntagResourceRequest generates a "aws/request.Request" representing the 2160// client's request for the UntagResource operation. The "output" return 2161// value will be populated with the request's response once the request completes 2162// successfully. 2163// 2164// Use "Send" method on the returned Request to send the API call to the service. 2165// the "output" return value is not valid until after Send returns without error. 2166// 2167// See UntagResource for more information on using the UntagResource 2168// API call, and error handling. 2169// 2170// This method is useful when you want to inject custom logic or configuration 2171// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2172// 2173// 2174// // Example sending a request using the UntagResourceRequest method. 2175// req, resp := client.UntagResourceRequest(params) 2176// 2177// err := req.Send() 2178// if err == nil { // resp is now filled 2179// fmt.Println(resp) 2180// } 2181// 2182// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/UntagResource 2183func (c *ServiceQuotas) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 2184 op := &request.Operation{ 2185 Name: opUntagResource, 2186 HTTPMethod: "POST", 2187 HTTPPath: "/", 2188 } 2189 2190 if input == nil { 2191 input = &UntagResourceInput{} 2192 } 2193 2194 output = &UntagResourceOutput{} 2195 req = c.newRequest(op, input, output) 2196 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2197 return 2198} 2199 2200// UntagResource API operation for Service Quotas. 2201// 2202// Removes tags from the specified applied quota. You can specify one or more 2203// tags to remove. 2204// 2205// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2206// with awserr.Error's Code and Message methods to get detailed information about 2207// the error. 2208// 2209// See the AWS API reference guide for Service Quotas's 2210// API operation UntagResource for usage and error information. 2211// 2212// Returned Error Types: 2213// * TooManyRequestsException 2214// Due to throttling, the request was denied. Slow down the rate of request 2215// calls, or request an increase for this quota. 2216// 2217// * NoSuchResourceException 2218// The specified resource does not exist. 2219// 2220// * IllegalArgumentException 2221// Invalid input was provided. 2222// 2223// * AccessDeniedException 2224// You do not have sufficient permission to perform this action. 2225// 2226// * ServiceException 2227// Something went wrong. 2228// 2229// See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/UntagResource 2230func (c *ServiceQuotas) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 2231 req, out := c.UntagResourceRequest(input) 2232 return out, req.Send() 2233} 2234 2235// UntagResourceWithContext is the same as UntagResource with the addition of 2236// the ability to pass a context and additional request options. 2237// 2238// See UntagResource for details on how to use this API operation. 2239// 2240// The context must be non-nil and will be used for request cancellation. If 2241// the context is nil a panic will occur. In the future the SDK may create 2242// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2243// for more information on using Contexts. 2244func (c *ServiceQuotas) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 2245 req, out := c.UntagResourceRequest(input) 2246 req.SetContext(ctx) 2247 req.ApplyOptions(opts...) 2248 return out, req.Send() 2249} 2250 2251// The action you attempted is not allowed unless Service Access with Service 2252// Quotas is enabled in your organization. 2253type AWSServiceAccessNotEnabledException struct { 2254 _ struct{} `type:"structure"` 2255 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2256 2257 Message_ *string `locationName:"Message" type:"string"` 2258} 2259 2260// String returns the string representation 2261func (s AWSServiceAccessNotEnabledException) String() string { 2262 return awsutil.Prettify(s) 2263} 2264 2265// GoString returns the string representation 2266func (s AWSServiceAccessNotEnabledException) GoString() string { 2267 return s.String() 2268} 2269 2270func newErrorAWSServiceAccessNotEnabledException(v protocol.ResponseMetadata) error { 2271 return &AWSServiceAccessNotEnabledException{ 2272 RespMetadata: v, 2273 } 2274} 2275 2276// Code returns the exception type name. 2277func (s *AWSServiceAccessNotEnabledException) Code() string { 2278 return "AWSServiceAccessNotEnabledException" 2279} 2280 2281// Message returns the exception's message. 2282func (s *AWSServiceAccessNotEnabledException) Message() string { 2283 if s.Message_ != nil { 2284 return *s.Message_ 2285 } 2286 return "" 2287} 2288 2289// OrigErr always returns nil, satisfies awserr.Error interface. 2290func (s *AWSServiceAccessNotEnabledException) OrigErr() error { 2291 return nil 2292} 2293 2294func (s *AWSServiceAccessNotEnabledException) Error() string { 2295 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2296} 2297 2298// Status code returns the HTTP status code for the request's response error. 2299func (s *AWSServiceAccessNotEnabledException) StatusCode() int { 2300 return s.RespMetadata.StatusCode 2301} 2302 2303// RequestID returns the service's response RequestID for request. 2304func (s *AWSServiceAccessNotEnabledException) RequestID() string { 2305 return s.RespMetadata.RequestID 2306} 2307 2308// You do not have sufficient permission to perform this action. 2309type AccessDeniedException struct { 2310 _ struct{} `type:"structure"` 2311 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2312 2313 Message_ *string `locationName:"Message" type:"string"` 2314} 2315 2316// String returns the string representation 2317func (s AccessDeniedException) String() string { 2318 return awsutil.Prettify(s) 2319} 2320 2321// GoString returns the string representation 2322func (s AccessDeniedException) GoString() string { 2323 return s.String() 2324} 2325 2326func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { 2327 return &AccessDeniedException{ 2328 RespMetadata: v, 2329 } 2330} 2331 2332// Code returns the exception type name. 2333func (s *AccessDeniedException) Code() string { 2334 return "AccessDeniedException" 2335} 2336 2337// Message returns the exception's message. 2338func (s *AccessDeniedException) Message() string { 2339 if s.Message_ != nil { 2340 return *s.Message_ 2341 } 2342 return "" 2343} 2344 2345// OrigErr always returns nil, satisfies awserr.Error interface. 2346func (s *AccessDeniedException) OrigErr() error { 2347 return nil 2348} 2349 2350func (s *AccessDeniedException) Error() string { 2351 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2352} 2353 2354// Status code returns the HTTP status code for the request's response error. 2355func (s *AccessDeniedException) StatusCode() int { 2356 return s.RespMetadata.StatusCode 2357} 2358 2359// RequestID returns the service's response RequestID for request. 2360func (s *AccessDeniedException) RequestID() string { 2361 return s.RespMetadata.RequestID 2362} 2363 2364type AssociateServiceQuotaTemplateInput struct { 2365 _ struct{} `type:"structure"` 2366} 2367 2368// String returns the string representation 2369func (s AssociateServiceQuotaTemplateInput) String() string { 2370 return awsutil.Prettify(s) 2371} 2372 2373// GoString returns the string representation 2374func (s AssociateServiceQuotaTemplateInput) GoString() string { 2375 return s.String() 2376} 2377 2378type AssociateServiceQuotaTemplateOutput struct { 2379 _ struct{} `type:"structure"` 2380} 2381 2382// String returns the string representation 2383func (s AssociateServiceQuotaTemplateOutput) String() string { 2384 return awsutil.Prettify(s) 2385} 2386 2387// GoString returns the string representation 2388func (s AssociateServiceQuotaTemplateOutput) GoString() string { 2389 return s.String() 2390} 2391 2392type DeleteServiceQuotaIncreaseRequestFromTemplateInput struct { 2393 _ struct{} `type:"structure"` 2394 2395 // The AWS Region. 2396 // 2397 // AwsRegion is a required field 2398 AwsRegion *string `min:"1" type:"string" required:"true"` 2399 2400 // The quota identifier. 2401 // 2402 // QuotaCode is a required field 2403 QuotaCode *string `min:"1" type:"string" required:"true"` 2404 2405 // The service identifier. 2406 // 2407 // ServiceCode is a required field 2408 ServiceCode *string `min:"1" type:"string" required:"true"` 2409} 2410 2411// String returns the string representation 2412func (s DeleteServiceQuotaIncreaseRequestFromTemplateInput) String() string { 2413 return awsutil.Prettify(s) 2414} 2415 2416// GoString returns the string representation 2417func (s DeleteServiceQuotaIncreaseRequestFromTemplateInput) GoString() string { 2418 return s.String() 2419} 2420 2421// Validate inspects the fields of the type to determine if they are valid. 2422func (s *DeleteServiceQuotaIncreaseRequestFromTemplateInput) Validate() error { 2423 invalidParams := request.ErrInvalidParams{Context: "DeleteServiceQuotaIncreaseRequestFromTemplateInput"} 2424 if s.AwsRegion == nil { 2425 invalidParams.Add(request.NewErrParamRequired("AwsRegion")) 2426 } 2427 if s.AwsRegion != nil && len(*s.AwsRegion) < 1 { 2428 invalidParams.Add(request.NewErrParamMinLen("AwsRegion", 1)) 2429 } 2430 if s.QuotaCode == nil { 2431 invalidParams.Add(request.NewErrParamRequired("QuotaCode")) 2432 } 2433 if s.QuotaCode != nil && len(*s.QuotaCode) < 1 { 2434 invalidParams.Add(request.NewErrParamMinLen("QuotaCode", 1)) 2435 } 2436 if s.ServiceCode == nil { 2437 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 2438 } 2439 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 2440 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 2441 } 2442 2443 if invalidParams.Len() > 0 { 2444 return invalidParams 2445 } 2446 return nil 2447} 2448 2449// SetAwsRegion sets the AwsRegion field's value. 2450func (s *DeleteServiceQuotaIncreaseRequestFromTemplateInput) SetAwsRegion(v string) *DeleteServiceQuotaIncreaseRequestFromTemplateInput { 2451 s.AwsRegion = &v 2452 return s 2453} 2454 2455// SetQuotaCode sets the QuotaCode field's value. 2456func (s *DeleteServiceQuotaIncreaseRequestFromTemplateInput) SetQuotaCode(v string) *DeleteServiceQuotaIncreaseRequestFromTemplateInput { 2457 s.QuotaCode = &v 2458 return s 2459} 2460 2461// SetServiceCode sets the ServiceCode field's value. 2462func (s *DeleteServiceQuotaIncreaseRequestFromTemplateInput) SetServiceCode(v string) *DeleteServiceQuotaIncreaseRequestFromTemplateInput { 2463 s.ServiceCode = &v 2464 return s 2465} 2466 2467type DeleteServiceQuotaIncreaseRequestFromTemplateOutput struct { 2468 _ struct{} `type:"structure"` 2469} 2470 2471// String returns the string representation 2472func (s DeleteServiceQuotaIncreaseRequestFromTemplateOutput) String() string { 2473 return awsutil.Prettify(s) 2474} 2475 2476// GoString returns the string representation 2477func (s DeleteServiceQuotaIncreaseRequestFromTemplateOutput) GoString() string { 2478 return s.String() 2479} 2480 2481// You can't perform this action because a dependency does not have access. 2482type DependencyAccessDeniedException struct { 2483 _ struct{} `type:"structure"` 2484 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2485 2486 Message_ *string `locationName:"Message" type:"string"` 2487} 2488 2489// String returns the string representation 2490func (s DependencyAccessDeniedException) String() string { 2491 return awsutil.Prettify(s) 2492} 2493 2494// GoString returns the string representation 2495func (s DependencyAccessDeniedException) GoString() string { 2496 return s.String() 2497} 2498 2499func newErrorDependencyAccessDeniedException(v protocol.ResponseMetadata) error { 2500 return &DependencyAccessDeniedException{ 2501 RespMetadata: v, 2502 } 2503} 2504 2505// Code returns the exception type name. 2506func (s *DependencyAccessDeniedException) Code() string { 2507 return "DependencyAccessDeniedException" 2508} 2509 2510// Message returns the exception's message. 2511func (s *DependencyAccessDeniedException) Message() string { 2512 if s.Message_ != nil { 2513 return *s.Message_ 2514 } 2515 return "" 2516} 2517 2518// OrigErr always returns nil, satisfies awserr.Error interface. 2519func (s *DependencyAccessDeniedException) OrigErr() error { 2520 return nil 2521} 2522 2523func (s *DependencyAccessDeniedException) Error() string { 2524 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2525} 2526 2527// Status code returns the HTTP status code for the request's response error. 2528func (s *DependencyAccessDeniedException) StatusCode() int { 2529 return s.RespMetadata.StatusCode 2530} 2531 2532// RequestID returns the service's response RequestID for request. 2533func (s *DependencyAccessDeniedException) RequestID() string { 2534 return s.RespMetadata.RequestID 2535} 2536 2537type DisassociateServiceQuotaTemplateInput struct { 2538 _ struct{} `type:"structure"` 2539} 2540 2541// String returns the string representation 2542func (s DisassociateServiceQuotaTemplateInput) String() string { 2543 return awsutil.Prettify(s) 2544} 2545 2546// GoString returns the string representation 2547func (s DisassociateServiceQuotaTemplateInput) GoString() string { 2548 return s.String() 2549} 2550 2551type DisassociateServiceQuotaTemplateOutput struct { 2552 _ struct{} `type:"structure"` 2553} 2554 2555// String returns the string representation 2556func (s DisassociateServiceQuotaTemplateOutput) String() string { 2557 return awsutil.Prettify(s) 2558} 2559 2560// GoString returns the string representation 2561func (s DisassociateServiceQuotaTemplateOutput) GoString() string { 2562 return s.String() 2563} 2564 2565// An error that explains why an action did not succeed. 2566type ErrorReason struct { 2567 _ struct{} `type:"structure"` 2568 2569 // Service Quotas returns the following error values: 2570 // 2571 // * DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required 2572 // permissions to complete the action. To resolve the error, you must have 2573 // permission to access the service or quota. 2574 // 2575 // * DEPENDENCY_THROTTLING_ERROR - The service is throttling Service Quotas. 2576 // 2577 // * DEPENDENCY_SERVICE_ERROR - The service is not available. 2578 // 2579 // * SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas. 2580 ErrorCode *string `type:"string" enum:"ErrorCode"` 2581 2582 // The error message. 2583 ErrorMessage *string `type:"string"` 2584} 2585 2586// String returns the string representation 2587func (s ErrorReason) String() string { 2588 return awsutil.Prettify(s) 2589} 2590 2591// GoString returns the string representation 2592func (s ErrorReason) GoString() string { 2593 return s.String() 2594} 2595 2596// SetErrorCode sets the ErrorCode field's value. 2597func (s *ErrorReason) SetErrorCode(v string) *ErrorReason { 2598 s.ErrorCode = &v 2599 return s 2600} 2601 2602// SetErrorMessage sets the ErrorMessage field's value. 2603func (s *ErrorReason) SetErrorMessage(v string) *ErrorReason { 2604 s.ErrorMessage = &v 2605 return s 2606} 2607 2608type GetAWSDefaultServiceQuotaInput struct { 2609 _ struct{} `type:"structure"` 2610 2611 // The quota identifier. 2612 // 2613 // QuotaCode is a required field 2614 QuotaCode *string `min:"1" type:"string" required:"true"` 2615 2616 // The service identifier. 2617 // 2618 // ServiceCode is a required field 2619 ServiceCode *string `min:"1" type:"string" required:"true"` 2620} 2621 2622// String returns the string representation 2623func (s GetAWSDefaultServiceQuotaInput) String() string { 2624 return awsutil.Prettify(s) 2625} 2626 2627// GoString returns the string representation 2628func (s GetAWSDefaultServiceQuotaInput) GoString() string { 2629 return s.String() 2630} 2631 2632// Validate inspects the fields of the type to determine if they are valid. 2633func (s *GetAWSDefaultServiceQuotaInput) Validate() error { 2634 invalidParams := request.ErrInvalidParams{Context: "GetAWSDefaultServiceQuotaInput"} 2635 if s.QuotaCode == nil { 2636 invalidParams.Add(request.NewErrParamRequired("QuotaCode")) 2637 } 2638 if s.QuotaCode != nil && len(*s.QuotaCode) < 1 { 2639 invalidParams.Add(request.NewErrParamMinLen("QuotaCode", 1)) 2640 } 2641 if s.ServiceCode == nil { 2642 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 2643 } 2644 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 2645 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 2646 } 2647 2648 if invalidParams.Len() > 0 { 2649 return invalidParams 2650 } 2651 return nil 2652} 2653 2654// SetQuotaCode sets the QuotaCode field's value. 2655func (s *GetAWSDefaultServiceQuotaInput) SetQuotaCode(v string) *GetAWSDefaultServiceQuotaInput { 2656 s.QuotaCode = &v 2657 return s 2658} 2659 2660// SetServiceCode sets the ServiceCode field's value. 2661func (s *GetAWSDefaultServiceQuotaInput) SetServiceCode(v string) *GetAWSDefaultServiceQuotaInput { 2662 s.ServiceCode = &v 2663 return s 2664} 2665 2666type GetAWSDefaultServiceQuotaOutput struct { 2667 _ struct{} `type:"structure"` 2668 2669 // Information about the quota. 2670 Quota *ServiceQuota `type:"structure"` 2671} 2672 2673// String returns the string representation 2674func (s GetAWSDefaultServiceQuotaOutput) String() string { 2675 return awsutil.Prettify(s) 2676} 2677 2678// GoString returns the string representation 2679func (s GetAWSDefaultServiceQuotaOutput) GoString() string { 2680 return s.String() 2681} 2682 2683// SetQuota sets the Quota field's value. 2684func (s *GetAWSDefaultServiceQuotaOutput) SetQuota(v *ServiceQuota) *GetAWSDefaultServiceQuotaOutput { 2685 s.Quota = v 2686 return s 2687} 2688 2689type GetAssociationForServiceQuotaTemplateInput struct { 2690 _ struct{} `type:"structure"` 2691} 2692 2693// String returns the string representation 2694func (s GetAssociationForServiceQuotaTemplateInput) String() string { 2695 return awsutil.Prettify(s) 2696} 2697 2698// GoString returns the string representation 2699func (s GetAssociationForServiceQuotaTemplateInput) GoString() string { 2700 return s.String() 2701} 2702 2703type GetAssociationForServiceQuotaTemplateOutput struct { 2704 _ struct{} `type:"structure"` 2705 2706 // The association status. If the status is ASSOCIATED, the quota increase requests 2707 // in the template are automatically applied to new accounts in your organization. 2708 ServiceQuotaTemplateAssociationStatus *string `type:"string" enum:"ServiceQuotaTemplateAssociationStatus"` 2709} 2710 2711// String returns the string representation 2712func (s GetAssociationForServiceQuotaTemplateOutput) String() string { 2713 return awsutil.Prettify(s) 2714} 2715 2716// GoString returns the string representation 2717func (s GetAssociationForServiceQuotaTemplateOutput) GoString() string { 2718 return s.String() 2719} 2720 2721// SetServiceQuotaTemplateAssociationStatus sets the ServiceQuotaTemplateAssociationStatus field's value. 2722func (s *GetAssociationForServiceQuotaTemplateOutput) SetServiceQuotaTemplateAssociationStatus(v string) *GetAssociationForServiceQuotaTemplateOutput { 2723 s.ServiceQuotaTemplateAssociationStatus = &v 2724 return s 2725} 2726 2727type GetRequestedServiceQuotaChangeInput struct { 2728 _ struct{} `type:"structure"` 2729 2730 // The ID of the quota increase request. 2731 // 2732 // RequestId is a required field 2733 RequestId *string `min:"1" type:"string" required:"true"` 2734} 2735 2736// String returns the string representation 2737func (s GetRequestedServiceQuotaChangeInput) String() string { 2738 return awsutil.Prettify(s) 2739} 2740 2741// GoString returns the string representation 2742func (s GetRequestedServiceQuotaChangeInput) GoString() string { 2743 return s.String() 2744} 2745 2746// Validate inspects the fields of the type to determine if they are valid. 2747func (s *GetRequestedServiceQuotaChangeInput) Validate() error { 2748 invalidParams := request.ErrInvalidParams{Context: "GetRequestedServiceQuotaChangeInput"} 2749 if s.RequestId == nil { 2750 invalidParams.Add(request.NewErrParamRequired("RequestId")) 2751 } 2752 if s.RequestId != nil && len(*s.RequestId) < 1 { 2753 invalidParams.Add(request.NewErrParamMinLen("RequestId", 1)) 2754 } 2755 2756 if invalidParams.Len() > 0 { 2757 return invalidParams 2758 } 2759 return nil 2760} 2761 2762// SetRequestId sets the RequestId field's value. 2763func (s *GetRequestedServiceQuotaChangeInput) SetRequestId(v string) *GetRequestedServiceQuotaChangeInput { 2764 s.RequestId = &v 2765 return s 2766} 2767 2768type GetRequestedServiceQuotaChangeOutput struct { 2769 _ struct{} `type:"structure"` 2770 2771 // Information about the quota increase request. 2772 RequestedQuota *RequestedServiceQuotaChange `type:"structure"` 2773} 2774 2775// String returns the string representation 2776func (s GetRequestedServiceQuotaChangeOutput) String() string { 2777 return awsutil.Prettify(s) 2778} 2779 2780// GoString returns the string representation 2781func (s GetRequestedServiceQuotaChangeOutput) GoString() string { 2782 return s.String() 2783} 2784 2785// SetRequestedQuota sets the RequestedQuota field's value. 2786func (s *GetRequestedServiceQuotaChangeOutput) SetRequestedQuota(v *RequestedServiceQuotaChange) *GetRequestedServiceQuotaChangeOutput { 2787 s.RequestedQuota = v 2788 return s 2789} 2790 2791type GetServiceQuotaIncreaseRequestFromTemplateInput struct { 2792 _ struct{} `type:"structure"` 2793 2794 // The AWS Region. 2795 // 2796 // AwsRegion is a required field 2797 AwsRegion *string `min:"1" type:"string" required:"true"` 2798 2799 // The quota identifier. 2800 // 2801 // QuotaCode is a required field 2802 QuotaCode *string `min:"1" type:"string" required:"true"` 2803 2804 // The service identifier. 2805 // 2806 // ServiceCode is a required field 2807 ServiceCode *string `min:"1" type:"string" required:"true"` 2808} 2809 2810// String returns the string representation 2811func (s GetServiceQuotaIncreaseRequestFromTemplateInput) String() string { 2812 return awsutil.Prettify(s) 2813} 2814 2815// GoString returns the string representation 2816func (s GetServiceQuotaIncreaseRequestFromTemplateInput) GoString() string { 2817 return s.String() 2818} 2819 2820// Validate inspects the fields of the type to determine if they are valid. 2821func (s *GetServiceQuotaIncreaseRequestFromTemplateInput) Validate() error { 2822 invalidParams := request.ErrInvalidParams{Context: "GetServiceQuotaIncreaseRequestFromTemplateInput"} 2823 if s.AwsRegion == nil { 2824 invalidParams.Add(request.NewErrParamRequired("AwsRegion")) 2825 } 2826 if s.AwsRegion != nil && len(*s.AwsRegion) < 1 { 2827 invalidParams.Add(request.NewErrParamMinLen("AwsRegion", 1)) 2828 } 2829 if s.QuotaCode == nil { 2830 invalidParams.Add(request.NewErrParamRequired("QuotaCode")) 2831 } 2832 if s.QuotaCode != nil && len(*s.QuotaCode) < 1 { 2833 invalidParams.Add(request.NewErrParamMinLen("QuotaCode", 1)) 2834 } 2835 if s.ServiceCode == nil { 2836 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 2837 } 2838 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 2839 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 2840 } 2841 2842 if invalidParams.Len() > 0 { 2843 return invalidParams 2844 } 2845 return nil 2846} 2847 2848// SetAwsRegion sets the AwsRegion field's value. 2849func (s *GetServiceQuotaIncreaseRequestFromTemplateInput) SetAwsRegion(v string) *GetServiceQuotaIncreaseRequestFromTemplateInput { 2850 s.AwsRegion = &v 2851 return s 2852} 2853 2854// SetQuotaCode sets the QuotaCode field's value. 2855func (s *GetServiceQuotaIncreaseRequestFromTemplateInput) SetQuotaCode(v string) *GetServiceQuotaIncreaseRequestFromTemplateInput { 2856 s.QuotaCode = &v 2857 return s 2858} 2859 2860// SetServiceCode sets the ServiceCode field's value. 2861func (s *GetServiceQuotaIncreaseRequestFromTemplateInput) SetServiceCode(v string) *GetServiceQuotaIncreaseRequestFromTemplateInput { 2862 s.ServiceCode = &v 2863 return s 2864} 2865 2866type GetServiceQuotaIncreaseRequestFromTemplateOutput struct { 2867 _ struct{} `type:"structure"` 2868 2869 // Information about the quota increase request. 2870 ServiceQuotaIncreaseRequestInTemplate *ServiceQuotaIncreaseRequestInTemplate `type:"structure"` 2871} 2872 2873// String returns the string representation 2874func (s GetServiceQuotaIncreaseRequestFromTemplateOutput) String() string { 2875 return awsutil.Prettify(s) 2876} 2877 2878// GoString returns the string representation 2879func (s GetServiceQuotaIncreaseRequestFromTemplateOutput) GoString() string { 2880 return s.String() 2881} 2882 2883// SetServiceQuotaIncreaseRequestInTemplate sets the ServiceQuotaIncreaseRequestInTemplate field's value. 2884func (s *GetServiceQuotaIncreaseRequestFromTemplateOutput) SetServiceQuotaIncreaseRequestInTemplate(v *ServiceQuotaIncreaseRequestInTemplate) *GetServiceQuotaIncreaseRequestFromTemplateOutput { 2885 s.ServiceQuotaIncreaseRequestInTemplate = v 2886 return s 2887} 2888 2889type GetServiceQuotaInput struct { 2890 _ struct{} `type:"structure"` 2891 2892 // The quota identifier. 2893 // 2894 // QuotaCode is a required field 2895 QuotaCode *string `min:"1" type:"string" required:"true"` 2896 2897 // The service identifier. 2898 // 2899 // ServiceCode is a required field 2900 ServiceCode *string `min:"1" type:"string" required:"true"` 2901} 2902 2903// String returns the string representation 2904func (s GetServiceQuotaInput) String() string { 2905 return awsutil.Prettify(s) 2906} 2907 2908// GoString returns the string representation 2909func (s GetServiceQuotaInput) GoString() string { 2910 return s.String() 2911} 2912 2913// Validate inspects the fields of the type to determine if they are valid. 2914func (s *GetServiceQuotaInput) Validate() error { 2915 invalidParams := request.ErrInvalidParams{Context: "GetServiceQuotaInput"} 2916 if s.QuotaCode == nil { 2917 invalidParams.Add(request.NewErrParamRequired("QuotaCode")) 2918 } 2919 if s.QuotaCode != nil && len(*s.QuotaCode) < 1 { 2920 invalidParams.Add(request.NewErrParamMinLen("QuotaCode", 1)) 2921 } 2922 if s.ServiceCode == nil { 2923 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 2924 } 2925 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 2926 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 2927 } 2928 2929 if invalidParams.Len() > 0 { 2930 return invalidParams 2931 } 2932 return nil 2933} 2934 2935// SetQuotaCode sets the QuotaCode field's value. 2936func (s *GetServiceQuotaInput) SetQuotaCode(v string) *GetServiceQuotaInput { 2937 s.QuotaCode = &v 2938 return s 2939} 2940 2941// SetServiceCode sets the ServiceCode field's value. 2942func (s *GetServiceQuotaInput) SetServiceCode(v string) *GetServiceQuotaInput { 2943 s.ServiceCode = &v 2944 return s 2945} 2946 2947type GetServiceQuotaOutput struct { 2948 _ struct{} `type:"structure"` 2949 2950 // Information about the quota. 2951 Quota *ServiceQuota `type:"structure"` 2952} 2953 2954// String returns the string representation 2955func (s GetServiceQuotaOutput) String() string { 2956 return awsutil.Prettify(s) 2957} 2958 2959// GoString returns the string representation 2960func (s GetServiceQuotaOutput) GoString() string { 2961 return s.String() 2962} 2963 2964// SetQuota sets the Quota field's value. 2965func (s *GetServiceQuotaOutput) SetQuota(v *ServiceQuota) *GetServiceQuotaOutput { 2966 s.Quota = v 2967 return s 2968} 2969 2970// Invalid input was provided. 2971type IllegalArgumentException struct { 2972 _ struct{} `type:"structure"` 2973 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2974 2975 Message_ *string `locationName:"Message" type:"string"` 2976} 2977 2978// String returns the string representation 2979func (s IllegalArgumentException) String() string { 2980 return awsutil.Prettify(s) 2981} 2982 2983// GoString returns the string representation 2984func (s IllegalArgumentException) GoString() string { 2985 return s.String() 2986} 2987 2988func newErrorIllegalArgumentException(v protocol.ResponseMetadata) error { 2989 return &IllegalArgumentException{ 2990 RespMetadata: v, 2991 } 2992} 2993 2994// Code returns the exception type name. 2995func (s *IllegalArgumentException) Code() string { 2996 return "IllegalArgumentException" 2997} 2998 2999// Message returns the exception's message. 3000func (s *IllegalArgumentException) Message() string { 3001 if s.Message_ != nil { 3002 return *s.Message_ 3003 } 3004 return "" 3005} 3006 3007// OrigErr always returns nil, satisfies awserr.Error interface. 3008func (s *IllegalArgumentException) OrigErr() error { 3009 return nil 3010} 3011 3012func (s *IllegalArgumentException) Error() string { 3013 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3014} 3015 3016// Status code returns the HTTP status code for the request's response error. 3017func (s *IllegalArgumentException) StatusCode() int { 3018 return s.RespMetadata.StatusCode 3019} 3020 3021// RequestID returns the service's response RequestID for request. 3022func (s *IllegalArgumentException) RequestID() string { 3023 return s.RespMetadata.RequestID 3024} 3025 3026// Invalid input was provided. 3027type InvalidPaginationTokenException struct { 3028 _ struct{} `type:"structure"` 3029 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3030 3031 Message_ *string `locationName:"Message" type:"string"` 3032} 3033 3034// String returns the string representation 3035func (s InvalidPaginationTokenException) String() string { 3036 return awsutil.Prettify(s) 3037} 3038 3039// GoString returns the string representation 3040func (s InvalidPaginationTokenException) GoString() string { 3041 return s.String() 3042} 3043 3044func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error { 3045 return &InvalidPaginationTokenException{ 3046 RespMetadata: v, 3047 } 3048} 3049 3050// Code returns the exception type name. 3051func (s *InvalidPaginationTokenException) Code() string { 3052 return "InvalidPaginationTokenException" 3053} 3054 3055// Message returns the exception's message. 3056func (s *InvalidPaginationTokenException) Message() string { 3057 if s.Message_ != nil { 3058 return *s.Message_ 3059 } 3060 return "" 3061} 3062 3063// OrigErr always returns nil, satisfies awserr.Error interface. 3064func (s *InvalidPaginationTokenException) OrigErr() error { 3065 return nil 3066} 3067 3068func (s *InvalidPaginationTokenException) Error() string { 3069 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3070} 3071 3072// Status code returns the HTTP status code for the request's response error. 3073func (s *InvalidPaginationTokenException) StatusCode() int { 3074 return s.RespMetadata.StatusCode 3075} 3076 3077// RequestID returns the service's response RequestID for request. 3078func (s *InvalidPaginationTokenException) RequestID() string { 3079 return s.RespMetadata.RequestID 3080} 3081 3082// The resource is in an invalid state. 3083type InvalidResourceStateException struct { 3084 _ struct{} `type:"structure"` 3085 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3086 3087 Message_ *string `locationName:"Message" type:"string"` 3088} 3089 3090// String returns the string representation 3091func (s InvalidResourceStateException) String() string { 3092 return awsutil.Prettify(s) 3093} 3094 3095// GoString returns the string representation 3096func (s InvalidResourceStateException) GoString() string { 3097 return s.String() 3098} 3099 3100func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error { 3101 return &InvalidResourceStateException{ 3102 RespMetadata: v, 3103 } 3104} 3105 3106// Code returns the exception type name. 3107func (s *InvalidResourceStateException) Code() string { 3108 return "InvalidResourceStateException" 3109} 3110 3111// Message returns the exception's message. 3112func (s *InvalidResourceStateException) Message() string { 3113 if s.Message_ != nil { 3114 return *s.Message_ 3115 } 3116 return "" 3117} 3118 3119// OrigErr always returns nil, satisfies awserr.Error interface. 3120func (s *InvalidResourceStateException) OrigErr() error { 3121 return nil 3122} 3123 3124func (s *InvalidResourceStateException) Error() string { 3125 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3126} 3127 3128// Status code returns the HTTP status code for the request's response error. 3129func (s *InvalidResourceStateException) StatusCode() int { 3130 return s.RespMetadata.StatusCode 3131} 3132 3133// RequestID returns the service's response RequestID for request. 3134func (s *InvalidResourceStateException) RequestID() string { 3135 return s.RespMetadata.RequestID 3136} 3137 3138type ListAWSDefaultServiceQuotasInput struct { 3139 _ struct{} `type:"structure"` 3140 3141 // The maximum number of results to return with a single call. To retrieve the 3142 // remaining results, if any, make another call with the token returned from 3143 // this call. 3144 MaxResults *int64 `min:"1" type:"integer"` 3145 3146 // The token for the next page of results. 3147 NextToken *string `type:"string"` 3148 3149 // The service identifier. 3150 // 3151 // ServiceCode is a required field 3152 ServiceCode *string `min:"1" type:"string" required:"true"` 3153} 3154 3155// String returns the string representation 3156func (s ListAWSDefaultServiceQuotasInput) String() string { 3157 return awsutil.Prettify(s) 3158} 3159 3160// GoString returns the string representation 3161func (s ListAWSDefaultServiceQuotasInput) GoString() string { 3162 return s.String() 3163} 3164 3165// Validate inspects the fields of the type to determine if they are valid. 3166func (s *ListAWSDefaultServiceQuotasInput) Validate() error { 3167 invalidParams := request.ErrInvalidParams{Context: "ListAWSDefaultServiceQuotasInput"} 3168 if s.MaxResults != nil && *s.MaxResults < 1 { 3169 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3170 } 3171 if s.ServiceCode == nil { 3172 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 3173 } 3174 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 3175 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 3176 } 3177 3178 if invalidParams.Len() > 0 { 3179 return invalidParams 3180 } 3181 return nil 3182} 3183 3184// SetMaxResults sets the MaxResults field's value. 3185func (s *ListAWSDefaultServiceQuotasInput) SetMaxResults(v int64) *ListAWSDefaultServiceQuotasInput { 3186 s.MaxResults = &v 3187 return s 3188} 3189 3190// SetNextToken sets the NextToken field's value. 3191func (s *ListAWSDefaultServiceQuotasInput) SetNextToken(v string) *ListAWSDefaultServiceQuotasInput { 3192 s.NextToken = &v 3193 return s 3194} 3195 3196// SetServiceCode sets the ServiceCode field's value. 3197func (s *ListAWSDefaultServiceQuotasInput) SetServiceCode(v string) *ListAWSDefaultServiceQuotasInput { 3198 s.ServiceCode = &v 3199 return s 3200} 3201 3202type ListAWSDefaultServiceQuotasOutput struct { 3203 _ struct{} `type:"structure"` 3204 3205 // The token to use to retrieve the next page of results. This value is null 3206 // when there are no more results to return. 3207 NextToken *string `type:"string"` 3208 3209 // Information about the quotas. 3210 Quotas []*ServiceQuota `type:"list"` 3211} 3212 3213// String returns the string representation 3214func (s ListAWSDefaultServiceQuotasOutput) String() string { 3215 return awsutil.Prettify(s) 3216} 3217 3218// GoString returns the string representation 3219func (s ListAWSDefaultServiceQuotasOutput) GoString() string { 3220 return s.String() 3221} 3222 3223// SetNextToken sets the NextToken field's value. 3224func (s *ListAWSDefaultServiceQuotasOutput) SetNextToken(v string) *ListAWSDefaultServiceQuotasOutput { 3225 s.NextToken = &v 3226 return s 3227} 3228 3229// SetQuotas sets the Quotas field's value. 3230func (s *ListAWSDefaultServiceQuotasOutput) SetQuotas(v []*ServiceQuota) *ListAWSDefaultServiceQuotasOutput { 3231 s.Quotas = v 3232 return s 3233} 3234 3235type ListRequestedServiceQuotaChangeHistoryByQuotaInput struct { 3236 _ struct{} `type:"structure"` 3237 3238 // The maximum number of results to return with a single call. To retrieve the 3239 // remaining results, if any, make another call with the token returned from 3240 // this call. 3241 MaxResults *int64 `min:"1" type:"integer"` 3242 3243 // The token for the next page of results. 3244 NextToken *string `type:"string"` 3245 3246 // The quota identifier. 3247 // 3248 // QuotaCode is a required field 3249 QuotaCode *string `min:"1" type:"string" required:"true"` 3250 3251 // The service identifier. 3252 // 3253 // ServiceCode is a required field 3254 ServiceCode *string `min:"1" type:"string" required:"true"` 3255 3256 // The status value of the quota increase request. 3257 Status *string `type:"string" enum:"RequestStatus"` 3258} 3259 3260// String returns the string representation 3261func (s ListRequestedServiceQuotaChangeHistoryByQuotaInput) String() string { 3262 return awsutil.Prettify(s) 3263} 3264 3265// GoString returns the string representation 3266func (s ListRequestedServiceQuotaChangeHistoryByQuotaInput) GoString() string { 3267 return s.String() 3268} 3269 3270// Validate inspects the fields of the type to determine if they are valid. 3271func (s *ListRequestedServiceQuotaChangeHistoryByQuotaInput) Validate() error { 3272 invalidParams := request.ErrInvalidParams{Context: "ListRequestedServiceQuotaChangeHistoryByQuotaInput"} 3273 if s.MaxResults != nil && *s.MaxResults < 1 { 3274 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3275 } 3276 if s.QuotaCode == nil { 3277 invalidParams.Add(request.NewErrParamRequired("QuotaCode")) 3278 } 3279 if s.QuotaCode != nil && len(*s.QuotaCode) < 1 { 3280 invalidParams.Add(request.NewErrParamMinLen("QuotaCode", 1)) 3281 } 3282 if s.ServiceCode == nil { 3283 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 3284 } 3285 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 3286 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 3287 } 3288 3289 if invalidParams.Len() > 0 { 3290 return invalidParams 3291 } 3292 return nil 3293} 3294 3295// SetMaxResults sets the MaxResults field's value. 3296func (s *ListRequestedServiceQuotaChangeHistoryByQuotaInput) SetMaxResults(v int64) *ListRequestedServiceQuotaChangeHistoryByQuotaInput { 3297 s.MaxResults = &v 3298 return s 3299} 3300 3301// SetNextToken sets the NextToken field's value. 3302func (s *ListRequestedServiceQuotaChangeHistoryByQuotaInput) SetNextToken(v string) *ListRequestedServiceQuotaChangeHistoryByQuotaInput { 3303 s.NextToken = &v 3304 return s 3305} 3306 3307// SetQuotaCode sets the QuotaCode field's value. 3308func (s *ListRequestedServiceQuotaChangeHistoryByQuotaInput) SetQuotaCode(v string) *ListRequestedServiceQuotaChangeHistoryByQuotaInput { 3309 s.QuotaCode = &v 3310 return s 3311} 3312 3313// SetServiceCode sets the ServiceCode field's value. 3314func (s *ListRequestedServiceQuotaChangeHistoryByQuotaInput) SetServiceCode(v string) *ListRequestedServiceQuotaChangeHistoryByQuotaInput { 3315 s.ServiceCode = &v 3316 return s 3317} 3318 3319// SetStatus sets the Status field's value. 3320func (s *ListRequestedServiceQuotaChangeHistoryByQuotaInput) SetStatus(v string) *ListRequestedServiceQuotaChangeHistoryByQuotaInput { 3321 s.Status = &v 3322 return s 3323} 3324 3325type ListRequestedServiceQuotaChangeHistoryByQuotaOutput struct { 3326 _ struct{} `type:"structure"` 3327 3328 // The token to use to retrieve the next page of results. This value is null 3329 // when there are no more results to return. 3330 NextToken *string `type:"string"` 3331 3332 // Information about the quota increase requests. 3333 RequestedQuotas []*RequestedServiceQuotaChange `type:"list"` 3334} 3335 3336// String returns the string representation 3337func (s ListRequestedServiceQuotaChangeHistoryByQuotaOutput) String() string { 3338 return awsutil.Prettify(s) 3339} 3340 3341// GoString returns the string representation 3342func (s ListRequestedServiceQuotaChangeHistoryByQuotaOutput) GoString() string { 3343 return s.String() 3344} 3345 3346// SetNextToken sets the NextToken field's value. 3347func (s *ListRequestedServiceQuotaChangeHistoryByQuotaOutput) SetNextToken(v string) *ListRequestedServiceQuotaChangeHistoryByQuotaOutput { 3348 s.NextToken = &v 3349 return s 3350} 3351 3352// SetRequestedQuotas sets the RequestedQuotas field's value. 3353func (s *ListRequestedServiceQuotaChangeHistoryByQuotaOutput) SetRequestedQuotas(v []*RequestedServiceQuotaChange) *ListRequestedServiceQuotaChangeHistoryByQuotaOutput { 3354 s.RequestedQuotas = v 3355 return s 3356} 3357 3358type ListRequestedServiceQuotaChangeHistoryInput struct { 3359 _ struct{} `type:"structure"` 3360 3361 // The maximum number of results to return with a single call. To retrieve the 3362 // remaining results, if any, make another call with the token returned from 3363 // this call. 3364 MaxResults *int64 `min:"1" type:"integer"` 3365 3366 // The token for the next page of results. 3367 NextToken *string `type:"string"` 3368 3369 // The service identifier. 3370 ServiceCode *string `min:"1" type:"string"` 3371 3372 // The status of the quota increase request. 3373 Status *string `type:"string" enum:"RequestStatus"` 3374} 3375 3376// String returns the string representation 3377func (s ListRequestedServiceQuotaChangeHistoryInput) String() string { 3378 return awsutil.Prettify(s) 3379} 3380 3381// GoString returns the string representation 3382func (s ListRequestedServiceQuotaChangeHistoryInput) GoString() string { 3383 return s.String() 3384} 3385 3386// Validate inspects the fields of the type to determine if they are valid. 3387func (s *ListRequestedServiceQuotaChangeHistoryInput) Validate() error { 3388 invalidParams := request.ErrInvalidParams{Context: "ListRequestedServiceQuotaChangeHistoryInput"} 3389 if s.MaxResults != nil && *s.MaxResults < 1 { 3390 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3391 } 3392 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 3393 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 3394 } 3395 3396 if invalidParams.Len() > 0 { 3397 return invalidParams 3398 } 3399 return nil 3400} 3401 3402// SetMaxResults sets the MaxResults field's value. 3403func (s *ListRequestedServiceQuotaChangeHistoryInput) SetMaxResults(v int64) *ListRequestedServiceQuotaChangeHistoryInput { 3404 s.MaxResults = &v 3405 return s 3406} 3407 3408// SetNextToken sets the NextToken field's value. 3409func (s *ListRequestedServiceQuotaChangeHistoryInput) SetNextToken(v string) *ListRequestedServiceQuotaChangeHistoryInput { 3410 s.NextToken = &v 3411 return s 3412} 3413 3414// SetServiceCode sets the ServiceCode field's value. 3415func (s *ListRequestedServiceQuotaChangeHistoryInput) SetServiceCode(v string) *ListRequestedServiceQuotaChangeHistoryInput { 3416 s.ServiceCode = &v 3417 return s 3418} 3419 3420// SetStatus sets the Status field's value. 3421func (s *ListRequestedServiceQuotaChangeHistoryInput) SetStatus(v string) *ListRequestedServiceQuotaChangeHistoryInput { 3422 s.Status = &v 3423 return s 3424} 3425 3426type ListRequestedServiceQuotaChangeHistoryOutput struct { 3427 _ struct{} `type:"structure"` 3428 3429 // The token to use to retrieve the next page of results. This value is null 3430 // when there are no more results to return. 3431 NextToken *string `type:"string"` 3432 3433 // Information about the quota increase requests. 3434 RequestedQuotas []*RequestedServiceQuotaChange `type:"list"` 3435} 3436 3437// String returns the string representation 3438func (s ListRequestedServiceQuotaChangeHistoryOutput) String() string { 3439 return awsutil.Prettify(s) 3440} 3441 3442// GoString returns the string representation 3443func (s ListRequestedServiceQuotaChangeHistoryOutput) GoString() string { 3444 return s.String() 3445} 3446 3447// SetNextToken sets the NextToken field's value. 3448func (s *ListRequestedServiceQuotaChangeHistoryOutput) SetNextToken(v string) *ListRequestedServiceQuotaChangeHistoryOutput { 3449 s.NextToken = &v 3450 return s 3451} 3452 3453// SetRequestedQuotas sets the RequestedQuotas field's value. 3454func (s *ListRequestedServiceQuotaChangeHistoryOutput) SetRequestedQuotas(v []*RequestedServiceQuotaChange) *ListRequestedServiceQuotaChangeHistoryOutput { 3455 s.RequestedQuotas = v 3456 return s 3457} 3458 3459type ListServiceQuotaIncreaseRequestsInTemplateInput struct { 3460 _ struct{} `type:"structure"` 3461 3462 // The AWS Region. 3463 AwsRegion *string `min:"1" type:"string"` 3464 3465 // The maximum number of results to return with a single call. To retrieve the 3466 // remaining results, if any, make another call with the token returned from 3467 // this call. 3468 MaxResults *int64 `min:"1" type:"integer"` 3469 3470 // The token for the next page of results. 3471 NextToken *string `type:"string"` 3472 3473 // The service identifier. 3474 ServiceCode *string `min:"1" type:"string"` 3475} 3476 3477// String returns the string representation 3478func (s ListServiceQuotaIncreaseRequestsInTemplateInput) String() string { 3479 return awsutil.Prettify(s) 3480} 3481 3482// GoString returns the string representation 3483func (s ListServiceQuotaIncreaseRequestsInTemplateInput) GoString() string { 3484 return s.String() 3485} 3486 3487// Validate inspects the fields of the type to determine if they are valid. 3488func (s *ListServiceQuotaIncreaseRequestsInTemplateInput) Validate() error { 3489 invalidParams := request.ErrInvalidParams{Context: "ListServiceQuotaIncreaseRequestsInTemplateInput"} 3490 if s.AwsRegion != nil && len(*s.AwsRegion) < 1 { 3491 invalidParams.Add(request.NewErrParamMinLen("AwsRegion", 1)) 3492 } 3493 if s.MaxResults != nil && *s.MaxResults < 1 { 3494 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3495 } 3496 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 3497 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 3498 } 3499 3500 if invalidParams.Len() > 0 { 3501 return invalidParams 3502 } 3503 return nil 3504} 3505 3506// SetAwsRegion sets the AwsRegion field's value. 3507func (s *ListServiceQuotaIncreaseRequestsInTemplateInput) SetAwsRegion(v string) *ListServiceQuotaIncreaseRequestsInTemplateInput { 3508 s.AwsRegion = &v 3509 return s 3510} 3511 3512// SetMaxResults sets the MaxResults field's value. 3513func (s *ListServiceQuotaIncreaseRequestsInTemplateInput) SetMaxResults(v int64) *ListServiceQuotaIncreaseRequestsInTemplateInput { 3514 s.MaxResults = &v 3515 return s 3516} 3517 3518// SetNextToken sets the NextToken field's value. 3519func (s *ListServiceQuotaIncreaseRequestsInTemplateInput) SetNextToken(v string) *ListServiceQuotaIncreaseRequestsInTemplateInput { 3520 s.NextToken = &v 3521 return s 3522} 3523 3524// SetServiceCode sets the ServiceCode field's value. 3525func (s *ListServiceQuotaIncreaseRequestsInTemplateInput) SetServiceCode(v string) *ListServiceQuotaIncreaseRequestsInTemplateInput { 3526 s.ServiceCode = &v 3527 return s 3528} 3529 3530type ListServiceQuotaIncreaseRequestsInTemplateOutput struct { 3531 _ struct{} `type:"structure"` 3532 3533 // The token to use to retrieve the next page of results. This value is null 3534 // when there are no more results to return. 3535 NextToken *string `type:"string"` 3536 3537 // Information about the quota increase requests. 3538 ServiceQuotaIncreaseRequestInTemplateList []*ServiceQuotaIncreaseRequestInTemplate `type:"list"` 3539} 3540 3541// String returns the string representation 3542func (s ListServiceQuotaIncreaseRequestsInTemplateOutput) String() string { 3543 return awsutil.Prettify(s) 3544} 3545 3546// GoString returns the string representation 3547func (s ListServiceQuotaIncreaseRequestsInTemplateOutput) GoString() string { 3548 return s.String() 3549} 3550 3551// SetNextToken sets the NextToken field's value. 3552func (s *ListServiceQuotaIncreaseRequestsInTemplateOutput) SetNextToken(v string) *ListServiceQuotaIncreaseRequestsInTemplateOutput { 3553 s.NextToken = &v 3554 return s 3555} 3556 3557// SetServiceQuotaIncreaseRequestInTemplateList sets the ServiceQuotaIncreaseRequestInTemplateList field's value. 3558func (s *ListServiceQuotaIncreaseRequestsInTemplateOutput) SetServiceQuotaIncreaseRequestInTemplateList(v []*ServiceQuotaIncreaseRequestInTemplate) *ListServiceQuotaIncreaseRequestsInTemplateOutput { 3559 s.ServiceQuotaIncreaseRequestInTemplateList = v 3560 return s 3561} 3562 3563type ListServiceQuotasInput struct { 3564 _ struct{} `type:"structure"` 3565 3566 // The maximum number of results to return with a single call. To retrieve the 3567 // remaining results, if any, make another call with the token returned from 3568 // this call. 3569 MaxResults *int64 `min:"1" type:"integer"` 3570 3571 // The token for the next page of results. 3572 NextToken *string `type:"string"` 3573 3574 // The service identifier. 3575 // 3576 // ServiceCode is a required field 3577 ServiceCode *string `min:"1" type:"string" required:"true"` 3578} 3579 3580// String returns the string representation 3581func (s ListServiceQuotasInput) String() string { 3582 return awsutil.Prettify(s) 3583} 3584 3585// GoString returns the string representation 3586func (s ListServiceQuotasInput) GoString() string { 3587 return s.String() 3588} 3589 3590// Validate inspects the fields of the type to determine if they are valid. 3591func (s *ListServiceQuotasInput) Validate() error { 3592 invalidParams := request.ErrInvalidParams{Context: "ListServiceQuotasInput"} 3593 if s.MaxResults != nil && *s.MaxResults < 1 { 3594 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3595 } 3596 if s.ServiceCode == nil { 3597 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 3598 } 3599 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 3600 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 3601 } 3602 3603 if invalidParams.Len() > 0 { 3604 return invalidParams 3605 } 3606 return nil 3607} 3608 3609// SetMaxResults sets the MaxResults field's value. 3610func (s *ListServiceQuotasInput) SetMaxResults(v int64) *ListServiceQuotasInput { 3611 s.MaxResults = &v 3612 return s 3613} 3614 3615// SetNextToken sets the NextToken field's value. 3616func (s *ListServiceQuotasInput) SetNextToken(v string) *ListServiceQuotasInput { 3617 s.NextToken = &v 3618 return s 3619} 3620 3621// SetServiceCode sets the ServiceCode field's value. 3622func (s *ListServiceQuotasInput) SetServiceCode(v string) *ListServiceQuotasInput { 3623 s.ServiceCode = &v 3624 return s 3625} 3626 3627type ListServiceQuotasOutput struct { 3628 _ struct{} `type:"structure"` 3629 3630 // The token to use to retrieve the next page of results. This value is null 3631 // when there are no more results to return. 3632 NextToken *string `type:"string"` 3633 3634 // Information about the quotas. 3635 Quotas []*ServiceQuota `type:"list"` 3636} 3637 3638// String returns the string representation 3639func (s ListServiceQuotasOutput) String() string { 3640 return awsutil.Prettify(s) 3641} 3642 3643// GoString returns the string representation 3644func (s ListServiceQuotasOutput) GoString() string { 3645 return s.String() 3646} 3647 3648// SetNextToken sets the NextToken field's value. 3649func (s *ListServiceQuotasOutput) SetNextToken(v string) *ListServiceQuotasOutput { 3650 s.NextToken = &v 3651 return s 3652} 3653 3654// SetQuotas sets the Quotas field's value. 3655func (s *ListServiceQuotasOutput) SetQuotas(v []*ServiceQuota) *ListServiceQuotasOutput { 3656 s.Quotas = v 3657 return s 3658} 3659 3660type ListServicesInput struct { 3661 _ struct{} `type:"structure"` 3662 3663 // The maximum number of results to return with a single call. To retrieve the 3664 // remaining results, if any, make another call with the token returned from 3665 // this call. 3666 MaxResults *int64 `min:"1" type:"integer"` 3667 3668 // The token for the next page of results. 3669 NextToken *string `type:"string"` 3670} 3671 3672// String returns the string representation 3673func (s ListServicesInput) String() string { 3674 return awsutil.Prettify(s) 3675} 3676 3677// GoString returns the string representation 3678func (s ListServicesInput) GoString() string { 3679 return s.String() 3680} 3681 3682// Validate inspects the fields of the type to determine if they are valid. 3683func (s *ListServicesInput) Validate() error { 3684 invalidParams := request.ErrInvalidParams{Context: "ListServicesInput"} 3685 if s.MaxResults != nil && *s.MaxResults < 1 { 3686 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3687 } 3688 3689 if invalidParams.Len() > 0 { 3690 return invalidParams 3691 } 3692 return nil 3693} 3694 3695// SetMaxResults sets the MaxResults field's value. 3696func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { 3697 s.MaxResults = &v 3698 return s 3699} 3700 3701// SetNextToken sets the NextToken field's value. 3702func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { 3703 s.NextToken = &v 3704 return s 3705} 3706 3707type ListServicesOutput struct { 3708 _ struct{} `type:"structure"` 3709 3710 // The token to use to retrieve the next page of results. This value is null 3711 // when there are no more results to return. 3712 NextToken *string `type:"string"` 3713 3714 // Information about the services. 3715 Services []*ServiceInfo `type:"list"` 3716} 3717 3718// String returns the string representation 3719func (s ListServicesOutput) String() string { 3720 return awsutil.Prettify(s) 3721} 3722 3723// GoString returns the string representation 3724func (s ListServicesOutput) GoString() string { 3725 return s.String() 3726} 3727 3728// SetNextToken sets the NextToken field's value. 3729func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { 3730 s.NextToken = &v 3731 return s 3732} 3733 3734// SetServices sets the Services field's value. 3735func (s *ListServicesOutput) SetServices(v []*ServiceInfo) *ListServicesOutput { 3736 s.Services = v 3737 return s 3738} 3739 3740type ListTagsForResourceInput struct { 3741 _ struct{} `type:"structure"` 3742 3743 // The Amazon Resource Name (ARN) for the applied quota for which you want to 3744 // list tags. You can get this information by using the Service Quotas console, 3745 // or by listing the quotas using the list-service-quotas (https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html) 3746 // AWS CLI command or the ListServiceQuotas (https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_ListServiceQuotas.html) 3747 // AWS API operation. 3748 // 3749 // ResourceARN is a required field 3750 ResourceARN *string `min:"1" type:"string" required:"true"` 3751} 3752 3753// String returns the string representation 3754func (s ListTagsForResourceInput) String() string { 3755 return awsutil.Prettify(s) 3756} 3757 3758// GoString returns the string representation 3759func (s ListTagsForResourceInput) GoString() string { 3760 return s.String() 3761} 3762 3763// Validate inspects the fields of the type to determine if they are valid. 3764func (s *ListTagsForResourceInput) Validate() error { 3765 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 3766 if s.ResourceARN == nil { 3767 invalidParams.Add(request.NewErrParamRequired("ResourceARN")) 3768 } 3769 if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { 3770 invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) 3771 } 3772 3773 if invalidParams.Len() > 0 { 3774 return invalidParams 3775 } 3776 return nil 3777} 3778 3779// SetResourceARN sets the ResourceARN field's value. 3780func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { 3781 s.ResourceARN = &v 3782 return s 3783} 3784 3785type ListTagsForResourceOutput struct { 3786 _ struct{} `type:"structure"` 3787 3788 // A complex data type that contains zero or more tag elements. 3789 Tags []*Tag `type:"list"` 3790} 3791 3792// String returns the string representation 3793func (s ListTagsForResourceOutput) String() string { 3794 return awsutil.Prettify(s) 3795} 3796 3797// GoString returns the string representation 3798func (s ListTagsForResourceOutput) GoString() string { 3799 return s.String() 3800} 3801 3802// SetTags sets the Tags field's value. 3803func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 3804 s.Tags = v 3805 return s 3806} 3807 3808// Information about the CloudWatch metric that reflects quota usage. 3809type MetricInfo struct { 3810 _ struct{} `type:"structure"` 3811 3812 // The metric dimension. This is a name/value pair that is part of the identity 3813 // of a metric. 3814 MetricDimensions map[string]*string `type:"map"` 3815 3816 // The name of the metric. 3817 MetricName *string `type:"string"` 3818 3819 // The namespace of the metric. 3820 MetricNamespace *string `type:"string"` 3821 3822 // The metric statistic that we recommend you use when determining quota usage. 3823 MetricStatisticRecommendation *string `min:"1" type:"string"` 3824} 3825 3826// String returns the string representation 3827func (s MetricInfo) String() string { 3828 return awsutil.Prettify(s) 3829} 3830 3831// GoString returns the string representation 3832func (s MetricInfo) GoString() string { 3833 return s.String() 3834} 3835 3836// SetMetricDimensions sets the MetricDimensions field's value. 3837func (s *MetricInfo) SetMetricDimensions(v map[string]*string) *MetricInfo { 3838 s.MetricDimensions = v 3839 return s 3840} 3841 3842// SetMetricName sets the MetricName field's value. 3843func (s *MetricInfo) SetMetricName(v string) *MetricInfo { 3844 s.MetricName = &v 3845 return s 3846} 3847 3848// SetMetricNamespace sets the MetricNamespace field's value. 3849func (s *MetricInfo) SetMetricNamespace(v string) *MetricInfo { 3850 s.MetricNamespace = &v 3851 return s 3852} 3853 3854// SetMetricStatisticRecommendation sets the MetricStatisticRecommendation field's value. 3855func (s *MetricInfo) SetMetricStatisticRecommendation(v string) *MetricInfo { 3856 s.MetricStatisticRecommendation = &v 3857 return s 3858} 3859 3860// The account making this call is not a member of an organization. 3861type NoAvailableOrganizationException struct { 3862 _ struct{} `type:"structure"` 3863 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3864 3865 Message_ *string `locationName:"Message" type:"string"` 3866} 3867 3868// String returns the string representation 3869func (s NoAvailableOrganizationException) String() string { 3870 return awsutil.Prettify(s) 3871} 3872 3873// GoString returns the string representation 3874func (s NoAvailableOrganizationException) GoString() string { 3875 return s.String() 3876} 3877 3878func newErrorNoAvailableOrganizationException(v protocol.ResponseMetadata) error { 3879 return &NoAvailableOrganizationException{ 3880 RespMetadata: v, 3881 } 3882} 3883 3884// Code returns the exception type name. 3885func (s *NoAvailableOrganizationException) Code() string { 3886 return "NoAvailableOrganizationException" 3887} 3888 3889// Message returns the exception's message. 3890func (s *NoAvailableOrganizationException) Message() string { 3891 if s.Message_ != nil { 3892 return *s.Message_ 3893 } 3894 return "" 3895} 3896 3897// OrigErr always returns nil, satisfies awserr.Error interface. 3898func (s *NoAvailableOrganizationException) OrigErr() error { 3899 return nil 3900} 3901 3902func (s *NoAvailableOrganizationException) Error() string { 3903 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3904} 3905 3906// Status code returns the HTTP status code for the request's response error. 3907func (s *NoAvailableOrganizationException) StatusCode() int { 3908 return s.RespMetadata.StatusCode 3909} 3910 3911// RequestID returns the service's response RequestID for request. 3912func (s *NoAvailableOrganizationException) RequestID() string { 3913 return s.RespMetadata.RequestID 3914} 3915 3916// The specified resource does not exist. 3917type NoSuchResourceException struct { 3918 _ struct{} `type:"structure"` 3919 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3920 3921 Message_ *string `locationName:"Message" type:"string"` 3922} 3923 3924// String returns the string representation 3925func (s NoSuchResourceException) String() string { 3926 return awsutil.Prettify(s) 3927} 3928 3929// GoString returns the string representation 3930func (s NoSuchResourceException) GoString() string { 3931 return s.String() 3932} 3933 3934func newErrorNoSuchResourceException(v protocol.ResponseMetadata) error { 3935 return &NoSuchResourceException{ 3936 RespMetadata: v, 3937 } 3938} 3939 3940// Code returns the exception type name. 3941func (s *NoSuchResourceException) Code() string { 3942 return "NoSuchResourceException" 3943} 3944 3945// Message returns the exception's message. 3946func (s *NoSuchResourceException) Message() string { 3947 if s.Message_ != nil { 3948 return *s.Message_ 3949 } 3950 return "" 3951} 3952 3953// OrigErr always returns nil, satisfies awserr.Error interface. 3954func (s *NoSuchResourceException) OrigErr() error { 3955 return nil 3956} 3957 3958func (s *NoSuchResourceException) Error() string { 3959 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3960} 3961 3962// Status code returns the HTTP status code for the request's response error. 3963func (s *NoSuchResourceException) StatusCode() int { 3964 return s.RespMetadata.StatusCode 3965} 3966 3967// RequestID returns the service's response RequestID for request. 3968func (s *NoSuchResourceException) RequestID() string { 3969 return s.RespMetadata.RequestID 3970} 3971 3972// The organization that your account belongs to is not in All Features mode. 3973type OrganizationNotInAllFeaturesModeException struct { 3974 _ struct{} `type:"structure"` 3975 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3976 3977 Message_ *string `locationName:"Message" type:"string"` 3978} 3979 3980// String returns the string representation 3981func (s OrganizationNotInAllFeaturesModeException) String() string { 3982 return awsutil.Prettify(s) 3983} 3984 3985// GoString returns the string representation 3986func (s OrganizationNotInAllFeaturesModeException) GoString() string { 3987 return s.String() 3988} 3989 3990func newErrorOrganizationNotInAllFeaturesModeException(v protocol.ResponseMetadata) error { 3991 return &OrganizationNotInAllFeaturesModeException{ 3992 RespMetadata: v, 3993 } 3994} 3995 3996// Code returns the exception type name. 3997func (s *OrganizationNotInAllFeaturesModeException) Code() string { 3998 return "OrganizationNotInAllFeaturesModeException" 3999} 4000 4001// Message returns the exception's message. 4002func (s *OrganizationNotInAllFeaturesModeException) Message() string { 4003 if s.Message_ != nil { 4004 return *s.Message_ 4005 } 4006 return "" 4007} 4008 4009// OrigErr always returns nil, satisfies awserr.Error interface. 4010func (s *OrganizationNotInAllFeaturesModeException) OrigErr() error { 4011 return nil 4012} 4013 4014func (s *OrganizationNotInAllFeaturesModeException) Error() string { 4015 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4016} 4017 4018// Status code returns the HTTP status code for the request's response error. 4019func (s *OrganizationNotInAllFeaturesModeException) StatusCode() int { 4020 return s.RespMetadata.StatusCode 4021} 4022 4023// RequestID returns the service's response RequestID for request. 4024func (s *OrganizationNotInAllFeaturesModeException) RequestID() string { 4025 return s.RespMetadata.RequestID 4026} 4027 4028type PutServiceQuotaIncreaseRequestIntoTemplateInput struct { 4029 _ struct{} `type:"structure"` 4030 4031 // The AWS Region. 4032 // 4033 // AwsRegion is a required field 4034 AwsRegion *string `min:"1" type:"string" required:"true"` 4035 4036 // The new, increased value for the quota. 4037 // 4038 // DesiredValue is a required field 4039 DesiredValue *float64 `type:"double" required:"true"` 4040 4041 // The quota identifier. 4042 // 4043 // QuotaCode is a required field 4044 QuotaCode *string `min:"1" type:"string" required:"true"` 4045 4046 // The service identifier. 4047 // 4048 // ServiceCode is a required field 4049 ServiceCode *string `min:"1" type:"string" required:"true"` 4050} 4051 4052// String returns the string representation 4053func (s PutServiceQuotaIncreaseRequestIntoTemplateInput) String() string { 4054 return awsutil.Prettify(s) 4055} 4056 4057// GoString returns the string representation 4058func (s PutServiceQuotaIncreaseRequestIntoTemplateInput) GoString() string { 4059 return s.String() 4060} 4061 4062// Validate inspects the fields of the type to determine if they are valid. 4063func (s *PutServiceQuotaIncreaseRequestIntoTemplateInput) Validate() error { 4064 invalidParams := request.ErrInvalidParams{Context: "PutServiceQuotaIncreaseRequestIntoTemplateInput"} 4065 if s.AwsRegion == nil { 4066 invalidParams.Add(request.NewErrParamRequired("AwsRegion")) 4067 } 4068 if s.AwsRegion != nil && len(*s.AwsRegion) < 1 { 4069 invalidParams.Add(request.NewErrParamMinLen("AwsRegion", 1)) 4070 } 4071 if s.DesiredValue == nil { 4072 invalidParams.Add(request.NewErrParamRequired("DesiredValue")) 4073 } 4074 if s.QuotaCode == nil { 4075 invalidParams.Add(request.NewErrParamRequired("QuotaCode")) 4076 } 4077 if s.QuotaCode != nil && len(*s.QuotaCode) < 1 { 4078 invalidParams.Add(request.NewErrParamMinLen("QuotaCode", 1)) 4079 } 4080 if s.ServiceCode == nil { 4081 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 4082 } 4083 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 4084 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 4085 } 4086 4087 if invalidParams.Len() > 0 { 4088 return invalidParams 4089 } 4090 return nil 4091} 4092 4093// SetAwsRegion sets the AwsRegion field's value. 4094func (s *PutServiceQuotaIncreaseRequestIntoTemplateInput) SetAwsRegion(v string) *PutServiceQuotaIncreaseRequestIntoTemplateInput { 4095 s.AwsRegion = &v 4096 return s 4097} 4098 4099// SetDesiredValue sets the DesiredValue field's value. 4100func (s *PutServiceQuotaIncreaseRequestIntoTemplateInput) SetDesiredValue(v float64) *PutServiceQuotaIncreaseRequestIntoTemplateInput { 4101 s.DesiredValue = &v 4102 return s 4103} 4104 4105// SetQuotaCode sets the QuotaCode field's value. 4106func (s *PutServiceQuotaIncreaseRequestIntoTemplateInput) SetQuotaCode(v string) *PutServiceQuotaIncreaseRequestIntoTemplateInput { 4107 s.QuotaCode = &v 4108 return s 4109} 4110 4111// SetServiceCode sets the ServiceCode field's value. 4112func (s *PutServiceQuotaIncreaseRequestIntoTemplateInput) SetServiceCode(v string) *PutServiceQuotaIncreaseRequestIntoTemplateInput { 4113 s.ServiceCode = &v 4114 return s 4115} 4116 4117type PutServiceQuotaIncreaseRequestIntoTemplateOutput struct { 4118 _ struct{} `type:"structure"` 4119 4120 // Information about the quota increase request. 4121 ServiceQuotaIncreaseRequestInTemplate *ServiceQuotaIncreaseRequestInTemplate `type:"structure"` 4122} 4123 4124// String returns the string representation 4125func (s PutServiceQuotaIncreaseRequestIntoTemplateOutput) String() string { 4126 return awsutil.Prettify(s) 4127} 4128 4129// GoString returns the string representation 4130func (s PutServiceQuotaIncreaseRequestIntoTemplateOutput) GoString() string { 4131 return s.String() 4132} 4133 4134// SetServiceQuotaIncreaseRequestInTemplate sets the ServiceQuotaIncreaseRequestInTemplate field's value. 4135func (s *PutServiceQuotaIncreaseRequestIntoTemplateOutput) SetServiceQuotaIncreaseRequestInTemplate(v *ServiceQuotaIncreaseRequestInTemplate) *PutServiceQuotaIncreaseRequestIntoTemplateOutput { 4136 s.ServiceQuotaIncreaseRequestInTemplate = v 4137 return s 4138} 4139 4140// You have exceeded your service quota. To perform the requested action, remove 4141// some of the relevant resources, or use Service Quotas to request a service 4142// quota increase. 4143type QuotaExceededException struct { 4144 _ struct{} `type:"structure"` 4145 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4146 4147 Message_ *string `locationName:"Message" type:"string"` 4148} 4149 4150// String returns the string representation 4151func (s QuotaExceededException) String() string { 4152 return awsutil.Prettify(s) 4153} 4154 4155// GoString returns the string representation 4156func (s QuotaExceededException) GoString() string { 4157 return s.String() 4158} 4159 4160func newErrorQuotaExceededException(v protocol.ResponseMetadata) error { 4161 return &QuotaExceededException{ 4162 RespMetadata: v, 4163 } 4164} 4165 4166// Code returns the exception type name. 4167func (s *QuotaExceededException) Code() string { 4168 return "QuotaExceededException" 4169} 4170 4171// Message returns the exception's message. 4172func (s *QuotaExceededException) Message() string { 4173 if s.Message_ != nil { 4174 return *s.Message_ 4175 } 4176 return "" 4177} 4178 4179// OrigErr always returns nil, satisfies awserr.Error interface. 4180func (s *QuotaExceededException) OrigErr() error { 4181 return nil 4182} 4183 4184func (s *QuotaExceededException) Error() string { 4185 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4186} 4187 4188// Status code returns the HTTP status code for the request's response error. 4189func (s *QuotaExceededException) StatusCode() int { 4190 return s.RespMetadata.StatusCode 4191} 4192 4193// RequestID returns the service's response RequestID for request. 4194func (s *QuotaExceededException) RequestID() string { 4195 return s.RespMetadata.RequestID 4196} 4197 4198// Information about the quota period. 4199type QuotaPeriod struct { 4200 _ struct{} `type:"structure"` 4201 4202 // The time unit. 4203 PeriodUnit *string `type:"string" enum:"PeriodUnit"` 4204 4205 // The value. 4206 PeriodValue *int64 `type:"integer"` 4207} 4208 4209// String returns the string representation 4210func (s QuotaPeriod) String() string { 4211 return awsutil.Prettify(s) 4212} 4213 4214// GoString returns the string representation 4215func (s QuotaPeriod) GoString() string { 4216 return s.String() 4217} 4218 4219// SetPeriodUnit sets the PeriodUnit field's value. 4220func (s *QuotaPeriod) SetPeriodUnit(v string) *QuotaPeriod { 4221 s.PeriodUnit = &v 4222 return s 4223} 4224 4225// SetPeriodValue sets the PeriodValue field's value. 4226func (s *QuotaPeriod) SetPeriodValue(v int64) *QuotaPeriod { 4227 s.PeriodValue = &v 4228 return s 4229} 4230 4231type RequestServiceQuotaIncreaseInput struct { 4232 _ struct{} `type:"structure"` 4233 4234 // The new, increased value for the quota. 4235 // 4236 // DesiredValue is a required field 4237 DesiredValue *float64 `type:"double" required:"true"` 4238 4239 // The quota identifier. 4240 // 4241 // QuotaCode is a required field 4242 QuotaCode *string `min:"1" type:"string" required:"true"` 4243 4244 // The service identifier. 4245 // 4246 // ServiceCode is a required field 4247 ServiceCode *string `min:"1" type:"string" required:"true"` 4248} 4249 4250// String returns the string representation 4251func (s RequestServiceQuotaIncreaseInput) String() string { 4252 return awsutil.Prettify(s) 4253} 4254 4255// GoString returns the string representation 4256func (s RequestServiceQuotaIncreaseInput) GoString() string { 4257 return s.String() 4258} 4259 4260// Validate inspects the fields of the type to determine if they are valid. 4261func (s *RequestServiceQuotaIncreaseInput) Validate() error { 4262 invalidParams := request.ErrInvalidParams{Context: "RequestServiceQuotaIncreaseInput"} 4263 if s.DesiredValue == nil { 4264 invalidParams.Add(request.NewErrParamRequired("DesiredValue")) 4265 } 4266 if s.QuotaCode == nil { 4267 invalidParams.Add(request.NewErrParamRequired("QuotaCode")) 4268 } 4269 if s.QuotaCode != nil && len(*s.QuotaCode) < 1 { 4270 invalidParams.Add(request.NewErrParamMinLen("QuotaCode", 1)) 4271 } 4272 if s.ServiceCode == nil { 4273 invalidParams.Add(request.NewErrParamRequired("ServiceCode")) 4274 } 4275 if s.ServiceCode != nil && len(*s.ServiceCode) < 1 { 4276 invalidParams.Add(request.NewErrParamMinLen("ServiceCode", 1)) 4277 } 4278 4279 if invalidParams.Len() > 0 { 4280 return invalidParams 4281 } 4282 return nil 4283} 4284 4285// SetDesiredValue sets the DesiredValue field's value. 4286func (s *RequestServiceQuotaIncreaseInput) SetDesiredValue(v float64) *RequestServiceQuotaIncreaseInput { 4287 s.DesiredValue = &v 4288 return s 4289} 4290 4291// SetQuotaCode sets the QuotaCode field's value. 4292func (s *RequestServiceQuotaIncreaseInput) SetQuotaCode(v string) *RequestServiceQuotaIncreaseInput { 4293 s.QuotaCode = &v 4294 return s 4295} 4296 4297// SetServiceCode sets the ServiceCode field's value. 4298func (s *RequestServiceQuotaIncreaseInput) SetServiceCode(v string) *RequestServiceQuotaIncreaseInput { 4299 s.ServiceCode = &v 4300 return s 4301} 4302 4303type RequestServiceQuotaIncreaseOutput struct { 4304 _ struct{} `type:"structure"` 4305 4306 // Information about the quota increase request. 4307 RequestedQuota *RequestedServiceQuotaChange `type:"structure"` 4308} 4309 4310// String returns the string representation 4311func (s RequestServiceQuotaIncreaseOutput) String() string { 4312 return awsutil.Prettify(s) 4313} 4314 4315// GoString returns the string representation 4316func (s RequestServiceQuotaIncreaseOutput) GoString() string { 4317 return s.String() 4318} 4319 4320// SetRequestedQuota sets the RequestedQuota field's value. 4321func (s *RequestServiceQuotaIncreaseOutput) SetRequestedQuota(v *RequestedServiceQuotaChange) *RequestServiceQuotaIncreaseOutput { 4322 s.RequestedQuota = v 4323 return s 4324} 4325 4326// Information about a quota increase request. 4327type RequestedServiceQuotaChange struct { 4328 _ struct{} `type:"structure"` 4329 4330 // The case ID. 4331 CaseId *string `type:"string"` 4332 4333 // The date and time when the quota increase request was received and the case 4334 // ID was created. 4335 Created *time.Time `type:"timestamp"` 4336 4337 // The new, increased value for the quota. 4338 DesiredValue *float64 `type:"double"` 4339 4340 // Indicates whether the quota is global. 4341 GlobalQuota *bool `type:"boolean"` 4342 4343 // The unique identifier. 4344 Id *string `min:"1" type:"string"` 4345 4346 // The date and time of the most recent change. 4347 LastUpdated *time.Time `type:"timestamp"` 4348 4349 // The Amazon Resource Name (ARN) of the quota. 4350 QuotaArn *string `type:"string"` 4351 4352 // The quota identifier. 4353 QuotaCode *string `min:"1" type:"string"` 4354 4355 // The quota name. 4356 QuotaName *string `type:"string"` 4357 4358 // The IAM identity of the requester. 4359 Requester *string `type:"string"` 4360 4361 // The service identifier. 4362 ServiceCode *string `min:"1" type:"string"` 4363 4364 // The service name. 4365 ServiceName *string `type:"string"` 4366 4367 // The state of the quota increase request. 4368 Status *string `type:"string" enum:"RequestStatus"` 4369 4370 // The unit of measurement. 4371 Unit *string `type:"string"` 4372} 4373 4374// String returns the string representation 4375func (s RequestedServiceQuotaChange) String() string { 4376 return awsutil.Prettify(s) 4377} 4378 4379// GoString returns the string representation 4380func (s RequestedServiceQuotaChange) GoString() string { 4381 return s.String() 4382} 4383 4384// SetCaseId sets the CaseId field's value. 4385func (s *RequestedServiceQuotaChange) SetCaseId(v string) *RequestedServiceQuotaChange { 4386 s.CaseId = &v 4387 return s 4388} 4389 4390// SetCreated sets the Created field's value. 4391func (s *RequestedServiceQuotaChange) SetCreated(v time.Time) *RequestedServiceQuotaChange { 4392 s.Created = &v 4393 return s 4394} 4395 4396// SetDesiredValue sets the DesiredValue field's value. 4397func (s *RequestedServiceQuotaChange) SetDesiredValue(v float64) *RequestedServiceQuotaChange { 4398 s.DesiredValue = &v 4399 return s 4400} 4401 4402// SetGlobalQuota sets the GlobalQuota field's value. 4403func (s *RequestedServiceQuotaChange) SetGlobalQuota(v bool) *RequestedServiceQuotaChange { 4404 s.GlobalQuota = &v 4405 return s 4406} 4407 4408// SetId sets the Id field's value. 4409func (s *RequestedServiceQuotaChange) SetId(v string) *RequestedServiceQuotaChange { 4410 s.Id = &v 4411 return s 4412} 4413 4414// SetLastUpdated sets the LastUpdated field's value. 4415func (s *RequestedServiceQuotaChange) SetLastUpdated(v time.Time) *RequestedServiceQuotaChange { 4416 s.LastUpdated = &v 4417 return s 4418} 4419 4420// SetQuotaArn sets the QuotaArn field's value. 4421func (s *RequestedServiceQuotaChange) SetQuotaArn(v string) *RequestedServiceQuotaChange { 4422 s.QuotaArn = &v 4423 return s 4424} 4425 4426// SetQuotaCode sets the QuotaCode field's value. 4427func (s *RequestedServiceQuotaChange) SetQuotaCode(v string) *RequestedServiceQuotaChange { 4428 s.QuotaCode = &v 4429 return s 4430} 4431 4432// SetQuotaName sets the QuotaName field's value. 4433func (s *RequestedServiceQuotaChange) SetQuotaName(v string) *RequestedServiceQuotaChange { 4434 s.QuotaName = &v 4435 return s 4436} 4437 4438// SetRequester sets the Requester field's value. 4439func (s *RequestedServiceQuotaChange) SetRequester(v string) *RequestedServiceQuotaChange { 4440 s.Requester = &v 4441 return s 4442} 4443 4444// SetServiceCode sets the ServiceCode field's value. 4445func (s *RequestedServiceQuotaChange) SetServiceCode(v string) *RequestedServiceQuotaChange { 4446 s.ServiceCode = &v 4447 return s 4448} 4449 4450// SetServiceName sets the ServiceName field's value. 4451func (s *RequestedServiceQuotaChange) SetServiceName(v string) *RequestedServiceQuotaChange { 4452 s.ServiceName = &v 4453 return s 4454} 4455 4456// SetStatus sets the Status field's value. 4457func (s *RequestedServiceQuotaChange) SetStatus(v string) *RequestedServiceQuotaChange { 4458 s.Status = &v 4459 return s 4460} 4461 4462// SetUnit sets the Unit field's value. 4463func (s *RequestedServiceQuotaChange) SetUnit(v string) *RequestedServiceQuotaChange { 4464 s.Unit = &v 4465 return s 4466} 4467 4468// The specified resource already exists. 4469type ResourceAlreadyExistsException struct { 4470 _ struct{} `type:"structure"` 4471 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4472 4473 Message_ *string `locationName:"Message" type:"string"` 4474} 4475 4476// String returns the string representation 4477func (s ResourceAlreadyExistsException) String() string { 4478 return awsutil.Prettify(s) 4479} 4480 4481// GoString returns the string representation 4482func (s ResourceAlreadyExistsException) GoString() string { 4483 return s.String() 4484} 4485 4486func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { 4487 return &ResourceAlreadyExistsException{ 4488 RespMetadata: v, 4489 } 4490} 4491 4492// Code returns the exception type name. 4493func (s *ResourceAlreadyExistsException) Code() string { 4494 return "ResourceAlreadyExistsException" 4495} 4496 4497// Message returns the exception's message. 4498func (s *ResourceAlreadyExistsException) Message() string { 4499 if s.Message_ != nil { 4500 return *s.Message_ 4501 } 4502 return "" 4503} 4504 4505// OrigErr always returns nil, satisfies awserr.Error interface. 4506func (s *ResourceAlreadyExistsException) OrigErr() error { 4507 return nil 4508} 4509 4510func (s *ResourceAlreadyExistsException) Error() string { 4511 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4512} 4513 4514// Status code returns the HTTP status code for the request's response error. 4515func (s *ResourceAlreadyExistsException) StatusCode() int { 4516 return s.RespMetadata.StatusCode 4517} 4518 4519// RequestID returns the service's response RequestID for request. 4520func (s *ResourceAlreadyExistsException) RequestID() string { 4521 return s.RespMetadata.RequestID 4522} 4523 4524// Something went wrong. 4525type ServiceException struct { 4526 _ struct{} `type:"structure"` 4527 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4528 4529 Message_ *string `locationName:"Message" type:"string"` 4530} 4531 4532// String returns the string representation 4533func (s ServiceException) String() string { 4534 return awsutil.Prettify(s) 4535} 4536 4537// GoString returns the string representation 4538func (s ServiceException) GoString() string { 4539 return s.String() 4540} 4541 4542func newErrorServiceException(v protocol.ResponseMetadata) error { 4543 return &ServiceException{ 4544 RespMetadata: v, 4545 } 4546} 4547 4548// Code returns the exception type name. 4549func (s *ServiceException) Code() string { 4550 return "ServiceException" 4551} 4552 4553// Message returns the exception's message. 4554func (s *ServiceException) Message() string { 4555 if s.Message_ != nil { 4556 return *s.Message_ 4557 } 4558 return "" 4559} 4560 4561// OrigErr always returns nil, satisfies awserr.Error interface. 4562func (s *ServiceException) OrigErr() error { 4563 return nil 4564} 4565 4566func (s *ServiceException) Error() string { 4567 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4568} 4569 4570// Status code returns the HTTP status code for the request's response error. 4571func (s *ServiceException) StatusCode() int { 4572 return s.RespMetadata.StatusCode 4573} 4574 4575// RequestID returns the service's response RequestID for request. 4576func (s *ServiceException) RequestID() string { 4577 return s.RespMetadata.RequestID 4578} 4579 4580// Information about a service. 4581type ServiceInfo struct { 4582 _ struct{} `type:"structure"` 4583 4584 // The service identifier. 4585 ServiceCode *string `min:"1" type:"string"` 4586 4587 // The service name. 4588 ServiceName *string `type:"string"` 4589} 4590 4591// String returns the string representation 4592func (s ServiceInfo) String() string { 4593 return awsutil.Prettify(s) 4594} 4595 4596// GoString returns the string representation 4597func (s ServiceInfo) GoString() string { 4598 return s.String() 4599} 4600 4601// SetServiceCode sets the ServiceCode field's value. 4602func (s *ServiceInfo) SetServiceCode(v string) *ServiceInfo { 4603 s.ServiceCode = &v 4604 return s 4605} 4606 4607// SetServiceName sets the ServiceName field's value. 4608func (s *ServiceInfo) SetServiceName(v string) *ServiceInfo { 4609 s.ServiceName = &v 4610 return s 4611} 4612 4613// Information about a quota. 4614type ServiceQuota struct { 4615 _ struct{} `type:"structure"` 4616 4617 // Indicates whether the quota value can be increased. 4618 Adjustable *bool `type:"boolean"` 4619 4620 // The error code and error reason. 4621 ErrorReason *ErrorReason `type:"structure"` 4622 4623 // Indicates whether the quota is global. 4624 GlobalQuota *bool `type:"boolean"` 4625 4626 // The period of time. 4627 Period *QuotaPeriod `type:"structure"` 4628 4629 // The Amazon Resource Name (ARN) of the quota. 4630 QuotaArn *string `type:"string"` 4631 4632 // The quota identifier. 4633 QuotaCode *string `min:"1" type:"string"` 4634 4635 // The quota name. 4636 QuotaName *string `type:"string"` 4637 4638 // The service identifier. 4639 ServiceCode *string `min:"1" type:"string"` 4640 4641 // The service name. 4642 ServiceName *string `type:"string"` 4643 4644 // The unit of measurement. 4645 Unit *string `type:"string"` 4646 4647 // Information about the measurement. 4648 UsageMetric *MetricInfo `type:"structure"` 4649 4650 // The quota value. 4651 Value *float64 `type:"double"` 4652} 4653 4654// String returns the string representation 4655func (s ServiceQuota) String() string { 4656 return awsutil.Prettify(s) 4657} 4658 4659// GoString returns the string representation 4660func (s ServiceQuota) GoString() string { 4661 return s.String() 4662} 4663 4664// SetAdjustable sets the Adjustable field's value. 4665func (s *ServiceQuota) SetAdjustable(v bool) *ServiceQuota { 4666 s.Adjustable = &v 4667 return s 4668} 4669 4670// SetErrorReason sets the ErrorReason field's value. 4671func (s *ServiceQuota) SetErrorReason(v *ErrorReason) *ServiceQuota { 4672 s.ErrorReason = v 4673 return s 4674} 4675 4676// SetGlobalQuota sets the GlobalQuota field's value. 4677func (s *ServiceQuota) SetGlobalQuota(v bool) *ServiceQuota { 4678 s.GlobalQuota = &v 4679 return s 4680} 4681 4682// SetPeriod sets the Period field's value. 4683func (s *ServiceQuota) SetPeriod(v *QuotaPeriod) *ServiceQuota { 4684 s.Period = v 4685 return s 4686} 4687 4688// SetQuotaArn sets the QuotaArn field's value. 4689func (s *ServiceQuota) SetQuotaArn(v string) *ServiceQuota { 4690 s.QuotaArn = &v 4691 return s 4692} 4693 4694// SetQuotaCode sets the QuotaCode field's value. 4695func (s *ServiceQuota) SetQuotaCode(v string) *ServiceQuota { 4696 s.QuotaCode = &v 4697 return s 4698} 4699 4700// SetQuotaName sets the QuotaName field's value. 4701func (s *ServiceQuota) SetQuotaName(v string) *ServiceQuota { 4702 s.QuotaName = &v 4703 return s 4704} 4705 4706// SetServiceCode sets the ServiceCode field's value. 4707func (s *ServiceQuota) SetServiceCode(v string) *ServiceQuota { 4708 s.ServiceCode = &v 4709 return s 4710} 4711 4712// SetServiceName sets the ServiceName field's value. 4713func (s *ServiceQuota) SetServiceName(v string) *ServiceQuota { 4714 s.ServiceName = &v 4715 return s 4716} 4717 4718// SetUnit sets the Unit field's value. 4719func (s *ServiceQuota) SetUnit(v string) *ServiceQuota { 4720 s.Unit = &v 4721 return s 4722} 4723 4724// SetUsageMetric sets the UsageMetric field's value. 4725func (s *ServiceQuota) SetUsageMetric(v *MetricInfo) *ServiceQuota { 4726 s.UsageMetric = v 4727 return s 4728} 4729 4730// SetValue sets the Value field's value. 4731func (s *ServiceQuota) SetValue(v float64) *ServiceQuota { 4732 s.Value = &v 4733 return s 4734} 4735 4736// Information about a quota increase request. 4737type ServiceQuotaIncreaseRequestInTemplate struct { 4738 _ struct{} `type:"structure"` 4739 4740 // The AWS Region. 4741 AwsRegion *string `min:"1" type:"string"` 4742 4743 // The new, increased value of the quota. 4744 DesiredValue *float64 `type:"double"` 4745 4746 // Indicates whether the quota is global. 4747 GlobalQuota *bool `type:"boolean"` 4748 4749 // The quota identifier. 4750 QuotaCode *string `min:"1" type:"string"` 4751 4752 // The quota name. 4753 QuotaName *string `type:"string"` 4754 4755 // The service identifier. 4756 ServiceCode *string `min:"1" type:"string"` 4757 4758 // The service name. 4759 ServiceName *string `type:"string"` 4760 4761 // The unit of measurement. 4762 Unit *string `type:"string"` 4763} 4764 4765// String returns the string representation 4766func (s ServiceQuotaIncreaseRequestInTemplate) String() string { 4767 return awsutil.Prettify(s) 4768} 4769 4770// GoString returns the string representation 4771func (s ServiceQuotaIncreaseRequestInTemplate) GoString() string { 4772 return s.String() 4773} 4774 4775// SetAwsRegion sets the AwsRegion field's value. 4776func (s *ServiceQuotaIncreaseRequestInTemplate) SetAwsRegion(v string) *ServiceQuotaIncreaseRequestInTemplate { 4777 s.AwsRegion = &v 4778 return s 4779} 4780 4781// SetDesiredValue sets the DesiredValue field's value. 4782func (s *ServiceQuotaIncreaseRequestInTemplate) SetDesiredValue(v float64) *ServiceQuotaIncreaseRequestInTemplate { 4783 s.DesiredValue = &v 4784 return s 4785} 4786 4787// SetGlobalQuota sets the GlobalQuota field's value. 4788func (s *ServiceQuotaIncreaseRequestInTemplate) SetGlobalQuota(v bool) *ServiceQuotaIncreaseRequestInTemplate { 4789 s.GlobalQuota = &v 4790 return s 4791} 4792 4793// SetQuotaCode sets the QuotaCode field's value. 4794func (s *ServiceQuotaIncreaseRequestInTemplate) SetQuotaCode(v string) *ServiceQuotaIncreaseRequestInTemplate { 4795 s.QuotaCode = &v 4796 return s 4797} 4798 4799// SetQuotaName sets the QuotaName field's value. 4800func (s *ServiceQuotaIncreaseRequestInTemplate) SetQuotaName(v string) *ServiceQuotaIncreaseRequestInTemplate { 4801 s.QuotaName = &v 4802 return s 4803} 4804 4805// SetServiceCode sets the ServiceCode field's value. 4806func (s *ServiceQuotaIncreaseRequestInTemplate) SetServiceCode(v string) *ServiceQuotaIncreaseRequestInTemplate { 4807 s.ServiceCode = &v 4808 return s 4809} 4810 4811// SetServiceName sets the ServiceName field's value. 4812func (s *ServiceQuotaIncreaseRequestInTemplate) SetServiceName(v string) *ServiceQuotaIncreaseRequestInTemplate { 4813 s.ServiceName = &v 4814 return s 4815} 4816 4817// SetUnit sets the Unit field's value. 4818func (s *ServiceQuotaIncreaseRequestInTemplate) SetUnit(v string) *ServiceQuotaIncreaseRequestInTemplate { 4819 s.Unit = &v 4820 return s 4821} 4822 4823// The quota request template is not associated with your organization. 4824type ServiceQuotaTemplateNotInUseException struct { 4825 _ struct{} `type:"structure"` 4826 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4827 4828 Message_ *string `locationName:"Message" type:"string"` 4829} 4830 4831// String returns the string representation 4832func (s ServiceQuotaTemplateNotInUseException) String() string { 4833 return awsutil.Prettify(s) 4834} 4835 4836// GoString returns the string representation 4837func (s ServiceQuotaTemplateNotInUseException) GoString() string { 4838 return s.String() 4839} 4840 4841func newErrorServiceQuotaTemplateNotInUseException(v protocol.ResponseMetadata) error { 4842 return &ServiceQuotaTemplateNotInUseException{ 4843 RespMetadata: v, 4844 } 4845} 4846 4847// Code returns the exception type name. 4848func (s *ServiceQuotaTemplateNotInUseException) Code() string { 4849 return "ServiceQuotaTemplateNotInUseException" 4850} 4851 4852// Message returns the exception's message. 4853func (s *ServiceQuotaTemplateNotInUseException) Message() string { 4854 if s.Message_ != nil { 4855 return *s.Message_ 4856 } 4857 return "" 4858} 4859 4860// OrigErr always returns nil, satisfies awserr.Error interface. 4861func (s *ServiceQuotaTemplateNotInUseException) OrigErr() error { 4862 return nil 4863} 4864 4865func (s *ServiceQuotaTemplateNotInUseException) Error() string { 4866 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4867} 4868 4869// Status code returns the HTTP status code for the request's response error. 4870func (s *ServiceQuotaTemplateNotInUseException) StatusCode() int { 4871 return s.RespMetadata.StatusCode 4872} 4873 4874// RequestID returns the service's response RequestID for request. 4875func (s *ServiceQuotaTemplateNotInUseException) RequestID() string { 4876 return s.RespMetadata.RequestID 4877} 4878 4879// A complex data type that contains a tag key and tag value. 4880type Tag struct { 4881 _ struct{} `type:"structure"` 4882 4883 // A string that contains a tag key. The string length should be between 1 and 4884 // 128 characters. Valid characters include a-z, A-Z, 0-9, space, and the special 4885 // characters _ - . : / = + @. 4886 // 4887 // Key is a required field 4888 Key *string `min:"1" type:"string" required:"true"` 4889 4890 // A string that contains an optional tag value. The string length should be 4891 // between 0 and 256 characters. Valid characters include a-z, A-Z, 0-9, space, 4892 // and the special characters _ - . : / = + @. 4893 // 4894 // Value is a required field 4895 Value *string `type:"string" required:"true"` 4896} 4897 4898// String returns the string representation 4899func (s Tag) String() string { 4900 return awsutil.Prettify(s) 4901} 4902 4903// GoString returns the string representation 4904func (s Tag) GoString() string { 4905 return s.String() 4906} 4907 4908// Validate inspects the fields of the type to determine if they are valid. 4909func (s *Tag) Validate() error { 4910 invalidParams := request.ErrInvalidParams{Context: "Tag"} 4911 if s.Key == nil { 4912 invalidParams.Add(request.NewErrParamRequired("Key")) 4913 } 4914 if s.Key != nil && len(*s.Key) < 1 { 4915 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 4916 } 4917 if s.Value == nil { 4918 invalidParams.Add(request.NewErrParamRequired("Value")) 4919 } 4920 4921 if invalidParams.Len() > 0 { 4922 return invalidParams 4923 } 4924 return nil 4925} 4926 4927// SetKey sets the Key field's value. 4928func (s *Tag) SetKey(v string) *Tag { 4929 s.Key = &v 4930 return s 4931} 4932 4933// SetValue sets the Value field's value. 4934func (s *Tag) SetValue(v string) *Tag { 4935 s.Value = &v 4936 return s 4937} 4938 4939// The specified tag is a reserved word and cannot be used. 4940type TagPolicyViolationException struct { 4941 _ struct{} `type:"structure"` 4942 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4943 4944 Message_ *string `locationName:"Message" type:"string"` 4945} 4946 4947// String returns the string representation 4948func (s TagPolicyViolationException) String() string { 4949 return awsutil.Prettify(s) 4950} 4951 4952// GoString returns the string representation 4953func (s TagPolicyViolationException) GoString() string { 4954 return s.String() 4955} 4956 4957func newErrorTagPolicyViolationException(v protocol.ResponseMetadata) error { 4958 return &TagPolicyViolationException{ 4959 RespMetadata: v, 4960 } 4961} 4962 4963// Code returns the exception type name. 4964func (s *TagPolicyViolationException) Code() string { 4965 return "TagPolicyViolationException" 4966} 4967 4968// Message returns the exception's message. 4969func (s *TagPolicyViolationException) Message() string { 4970 if s.Message_ != nil { 4971 return *s.Message_ 4972 } 4973 return "" 4974} 4975 4976// OrigErr always returns nil, satisfies awserr.Error interface. 4977func (s *TagPolicyViolationException) OrigErr() error { 4978 return nil 4979} 4980 4981func (s *TagPolicyViolationException) Error() string { 4982 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4983} 4984 4985// Status code returns the HTTP status code for the request's response error. 4986func (s *TagPolicyViolationException) StatusCode() int { 4987 return s.RespMetadata.StatusCode 4988} 4989 4990// RequestID returns the service's response RequestID for request. 4991func (s *TagPolicyViolationException) RequestID() string { 4992 return s.RespMetadata.RequestID 4993} 4994 4995type TagResourceInput struct { 4996 _ struct{} `type:"structure"` 4997 4998 // The Amazon Resource Name (ARN) for the applied quota. You can get this information 4999 // by using the Service Quotas console, or by listing the quotas using the list-service-quotas 5000 // (https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html) 5001 // AWS CLI command or the ListServiceQuotas (https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_ListServiceQuotas.html) 5002 // AWS API operation. 5003 // 5004 // ResourceARN is a required field 5005 ResourceARN *string `min:"1" type:"string" required:"true"` 5006 5007 // The tags that you want to add to the resource. 5008 // 5009 // Tags is a required field 5010 Tags []*Tag `min:"1" type:"list" required:"true"` 5011} 5012 5013// String returns the string representation 5014func (s TagResourceInput) String() string { 5015 return awsutil.Prettify(s) 5016} 5017 5018// GoString returns the string representation 5019func (s TagResourceInput) GoString() string { 5020 return s.String() 5021} 5022 5023// Validate inspects the fields of the type to determine if they are valid. 5024func (s *TagResourceInput) Validate() error { 5025 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 5026 if s.ResourceARN == nil { 5027 invalidParams.Add(request.NewErrParamRequired("ResourceARN")) 5028 } 5029 if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { 5030 invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) 5031 } 5032 if s.Tags == nil { 5033 invalidParams.Add(request.NewErrParamRequired("Tags")) 5034 } 5035 if s.Tags != nil && len(s.Tags) < 1 { 5036 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 5037 } 5038 if s.Tags != nil { 5039 for i, v := range s.Tags { 5040 if v == nil { 5041 continue 5042 } 5043 if err := v.Validate(); err != nil { 5044 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 5045 } 5046 } 5047 } 5048 5049 if invalidParams.Len() > 0 { 5050 return invalidParams 5051 } 5052 return nil 5053} 5054 5055// SetResourceARN sets the ResourceARN field's value. 5056func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { 5057 s.ResourceARN = &v 5058 return s 5059} 5060 5061// SetTags sets the Tags field's value. 5062func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 5063 s.Tags = v 5064 return s 5065} 5066 5067type TagResourceOutput struct { 5068 _ struct{} `type:"structure"` 5069} 5070 5071// String returns the string representation 5072func (s TagResourceOutput) String() string { 5073 return awsutil.Prettify(s) 5074} 5075 5076// GoString returns the string representation 5077func (s TagResourceOutput) GoString() string { 5078 return s.String() 5079} 5080 5081// The Service Quotas template is not available in this AWS Region. 5082type TemplatesNotAvailableInRegionException struct { 5083 _ struct{} `type:"structure"` 5084 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5085 5086 Message_ *string `locationName:"Message" type:"string"` 5087} 5088 5089// String returns the string representation 5090func (s TemplatesNotAvailableInRegionException) String() string { 5091 return awsutil.Prettify(s) 5092} 5093 5094// GoString returns the string representation 5095func (s TemplatesNotAvailableInRegionException) GoString() string { 5096 return s.String() 5097} 5098 5099func newErrorTemplatesNotAvailableInRegionException(v protocol.ResponseMetadata) error { 5100 return &TemplatesNotAvailableInRegionException{ 5101 RespMetadata: v, 5102 } 5103} 5104 5105// Code returns the exception type name. 5106func (s *TemplatesNotAvailableInRegionException) Code() string { 5107 return "TemplatesNotAvailableInRegionException" 5108} 5109 5110// Message returns the exception's message. 5111func (s *TemplatesNotAvailableInRegionException) Message() string { 5112 if s.Message_ != nil { 5113 return *s.Message_ 5114 } 5115 return "" 5116} 5117 5118// OrigErr always returns nil, satisfies awserr.Error interface. 5119func (s *TemplatesNotAvailableInRegionException) OrigErr() error { 5120 return nil 5121} 5122 5123func (s *TemplatesNotAvailableInRegionException) Error() string { 5124 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5125} 5126 5127// Status code returns the HTTP status code for the request's response error. 5128func (s *TemplatesNotAvailableInRegionException) StatusCode() int { 5129 return s.RespMetadata.StatusCode 5130} 5131 5132// RequestID returns the service's response RequestID for request. 5133func (s *TemplatesNotAvailableInRegionException) RequestID() string { 5134 return s.RespMetadata.RequestID 5135} 5136 5137// Due to throttling, the request was denied. Slow down the rate of request 5138// calls, or request an increase for this quota. 5139type TooManyRequestsException struct { 5140 _ struct{} `type:"structure"` 5141 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5142 5143 Message_ *string `locationName:"Message" type:"string"` 5144} 5145 5146// String returns the string representation 5147func (s TooManyRequestsException) String() string { 5148 return awsutil.Prettify(s) 5149} 5150 5151// GoString returns the string representation 5152func (s TooManyRequestsException) GoString() string { 5153 return s.String() 5154} 5155 5156func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { 5157 return &TooManyRequestsException{ 5158 RespMetadata: v, 5159 } 5160} 5161 5162// Code returns the exception type name. 5163func (s *TooManyRequestsException) Code() string { 5164 return "TooManyRequestsException" 5165} 5166 5167// Message returns the exception's message. 5168func (s *TooManyRequestsException) Message() string { 5169 if s.Message_ != nil { 5170 return *s.Message_ 5171 } 5172 return "" 5173} 5174 5175// OrigErr always returns nil, satisfies awserr.Error interface. 5176func (s *TooManyRequestsException) OrigErr() error { 5177 return nil 5178} 5179 5180func (s *TooManyRequestsException) Error() string { 5181 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5182} 5183 5184// Status code returns the HTTP status code for the request's response error. 5185func (s *TooManyRequestsException) StatusCode() int { 5186 return s.RespMetadata.StatusCode 5187} 5188 5189// RequestID returns the service's response RequestID for request. 5190func (s *TooManyRequestsException) RequestID() string { 5191 return s.RespMetadata.RequestID 5192} 5193 5194// You've exceeded the number of tags allowed for a resource. For more information, 5195// see Tag restrictions (https://docs.aws.amazon.com/servicequotas/latest/userguide/sq-tagging.html#sq-tagging-restrictions) 5196// in the Service Quotas User Guide. 5197type TooManyTagsException struct { 5198 _ struct{} `type:"structure"` 5199 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5200 5201 Message_ *string `locationName:"Message" type:"string"` 5202} 5203 5204// String returns the string representation 5205func (s TooManyTagsException) String() string { 5206 return awsutil.Prettify(s) 5207} 5208 5209// GoString returns the string representation 5210func (s TooManyTagsException) GoString() string { 5211 return s.String() 5212} 5213 5214func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { 5215 return &TooManyTagsException{ 5216 RespMetadata: v, 5217 } 5218} 5219 5220// Code returns the exception type name. 5221func (s *TooManyTagsException) Code() string { 5222 return "TooManyTagsException" 5223} 5224 5225// Message returns the exception's message. 5226func (s *TooManyTagsException) Message() string { 5227 if s.Message_ != nil { 5228 return *s.Message_ 5229 } 5230 return "" 5231} 5232 5233// OrigErr always returns nil, satisfies awserr.Error interface. 5234func (s *TooManyTagsException) OrigErr() error { 5235 return nil 5236} 5237 5238func (s *TooManyTagsException) Error() string { 5239 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5240} 5241 5242// Status code returns the HTTP status code for the request's response error. 5243func (s *TooManyTagsException) StatusCode() int { 5244 return s.RespMetadata.StatusCode 5245} 5246 5247// RequestID returns the service's response RequestID for request. 5248func (s *TooManyTagsException) RequestID() string { 5249 return s.RespMetadata.RequestID 5250} 5251 5252type UntagResourceInput struct { 5253 _ struct{} `type:"structure"` 5254 5255 // The Amazon Resource Name (ARN) for the applied quota that you want to untag. 5256 // You can get this information by using the Service Quotas console, or by listing 5257 // the quotas using the list-service-quotas (https://docs.aws.amazon.com/cli/latest/reference/service-quotas/list-service-quotas.html) 5258 // AWS CLI command or the ListServiceQuotas (https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_ListServiceQuotas.html) 5259 // AWS API operation. 5260 // 5261 // ResourceARN is a required field 5262 ResourceARN *string `min:"1" type:"string" required:"true"` 5263 5264 // The keys of the tags that you want to remove from the resource. 5265 // 5266 // TagKeys is a required field 5267 TagKeys []*string `type:"list" required:"true"` 5268} 5269 5270// String returns the string representation 5271func (s UntagResourceInput) String() string { 5272 return awsutil.Prettify(s) 5273} 5274 5275// GoString returns the string representation 5276func (s UntagResourceInput) GoString() string { 5277 return s.String() 5278} 5279 5280// Validate inspects the fields of the type to determine if they are valid. 5281func (s *UntagResourceInput) Validate() error { 5282 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 5283 if s.ResourceARN == nil { 5284 invalidParams.Add(request.NewErrParamRequired("ResourceARN")) 5285 } 5286 if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { 5287 invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) 5288 } 5289 if s.TagKeys == nil { 5290 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 5291 } 5292 5293 if invalidParams.Len() > 0 { 5294 return invalidParams 5295 } 5296 return nil 5297} 5298 5299// SetResourceARN sets the ResourceARN field's value. 5300func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { 5301 s.ResourceARN = &v 5302 return s 5303} 5304 5305// SetTagKeys sets the TagKeys field's value. 5306func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 5307 s.TagKeys = v 5308 return s 5309} 5310 5311type UntagResourceOutput struct { 5312 _ struct{} `type:"structure"` 5313} 5314 5315// String returns the string representation 5316func (s UntagResourceOutput) String() string { 5317 return awsutil.Prettify(s) 5318} 5319 5320// GoString returns the string representation 5321func (s UntagResourceOutput) GoString() string { 5322 return s.String() 5323} 5324 5325const ( 5326 // ErrorCodeDependencyAccessDeniedError is a ErrorCode enum value 5327 ErrorCodeDependencyAccessDeniedError = "DEPENDENCY_ACCESS_DENIED_ERROR" 5328 5329 // ErrorCodeDependencyThrottlingError is a ErrorCode enum value 5330 ErrorCodeDependencyThrottlingError = "DEPENDENCY_THROTTLING_ERROR" 5331 5332 // ErrorCodeDependencyServiceError is a ErrorCode enum value 5333 ErrorCodeDependencyServiceError = "DEPENDENCY_SERVICE_ERROR" 5334 5335 // ErrorCodeServiceQuotaNotAvailableError is a ErrorCode enum value 5336 ErrorCodeServiceQuotaNotAvailableError = "SERVICE_QUOTA_NOT_AVAILABLE_ERROR" 5337) 5338 5339// ErrorCode_Values returns all elements of the ErrorCode enum 5340func ErrorCode_Values() []string { 5341 return []string{ 5342 ErrorCodeDependencyAccessDeniedError, 5343 ErrorCodeDependencyThrottlingError, 5344 ErrorCodeDependencyServiceError, 5345 ErrorCodeServiceQuotaNotAvailableError, 5346 } 5347} 5348 5349const ( 5350 // PeriodUnitMicrosecond is a PeriodUnit enum value 5351 PeriodUnitMicrosecond = "MICROSECOND" 5352 5353 // PeriodUnitMillisecond is a PeriodUnit enum value 5354 PeriodUnitMillisecond = "MILLISECOND" 5355 5356 // PeriodUnitSecond is a PeriodUnit enum value 5357 PeriodUnitSecond = "SECOND" 5358 5359 // PeriodUnitMinute is a PeriodUnit enum value 5360 PeriodUnitMinute = "MINUTE" 5361 5362 // PeriodUnitHour is a PeriodUnit enum value 5363 PeriodUnitHour = "HOUR" 5364 5365 // PeriodUnitDay is a PeriodUnit enum value 5366 PeriodUnitDay = "DAY" 5367 5368 // PeriodUnitWeek is a PeriodUnit enum value 5369 PeriodUnitWeek = "WEEK" 5370) 5371 5372// PeriodUnit_Values returns all elements of the PeriodUnit enum 5373func PeriodUnit_Values() []string { 5374 return []string{ 5375 PeriodUnitMicrosecond, 5376 PeriodUnitMillisecond, 5377 PeriodUnitSecond, 5378 PeriodUnitMinute, 5379 PeriodUnitHour, 5380 PeriodUnitDay, 5381 PeriodUnitWeek, 5382 } 5383} 5384 5385const ( 5386 // RequestStatusPending is a RequestStatus enum value 5387 RequestStatusPending = "PENDING" 5388 5389 // RequestStatusCaseOpened is a RequestStatus enum value 5390 RequestStatusCaseOpened = "CASE_OPENED" 5391 5392 // RequestStatusApproved is a RequestStatus enum value 5393 RequestStatusApproved = "APPROVED" 5394 5395 // RequestStatusDenied is a RequestStatus enum value 5396 RequestStatusDenied = "DENIED" 5397 5398 // RequestStatusCaseClosed is a RequestStatus enum value 5399 RequestStatusCaseClosed = "CASE_CLOSED" 5400) 5401 5402// RequestStatus_Values returns all elements of the RequestStatus enum 5403func RequestStatus_Values() []string { 5404 return []string{ 5405 RequestStatusPending, 5406 RequestStatusCaseOpened, 5407 RequestStatusApproved, 5408 RequestStatusDenied, 5409 RequestStatusCaseClosed, 5410 } 5411} 5412 5413const ( 5414 // ServiceQuotaTemplateAssociationStatusAssociated is a ServiceQuotaTemplateAssociationStatus enum value 5415 ServiceQuotaTemplateAssociationStatusAssociated = "ASSOCIATED" 5416 5417 // ServiceQuotaTemplateAssociationStatusDisassociated is a ServiceQuotaTemplateAssociationStatus enum value 5418 ServiceQuotaTemplateAssociationStatusDisassociated = "DISASSOCIATED" 5419) 5420 5421// ServiceQuotaTemplateAssociationStatus_Values returns all elements of the ServiceQuotaTemplateAssociationStatus enum 5422func ServiceQuotaTemplateAssociationStatus_Values() []string { 5423 return []string{ 5424 ServiceQuotaTemplateAssociationStatusAssociated, 5425 ServiceQuotaTemplateAssociationStatusDisassociated, 5426 } 5427} 5428