1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package licensemanager 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 opAcceptGrant = "AcceptGrant" 17 18// AcceptGrantRequest generates a "aws/request.Request" representing the 19// client's request for the AcceptGrant 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 AcceptGrant for more information on using the AcceptGrant 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 AcceptGrantRequest method. 34// req, resp := client.AcceptGrantRequest(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/license-manager-2018-08-01/AcceptGrant 42func (c *LicenseManager) AcceptGrantRequest(input *AcceptGrantInput) (req *request.Request, output *AcceptGrantOutput) { 43 op := &request.Operation{ 44 Name: opAcceptGrant, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &AcceptGrantInput{} 51 } 52 53 output = &AcceptGrantOutput{} 54 req = c.newRequest(op, input, output) 55 return 56} 57 58// AcceptGrant API operation for AWS License Manager. 59// 60// Accepts the specified grant. 61// 62// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 63// with awserr.Error's Code and Message methods to get detailed information about 64// the error. 65// 66// See the AWS API reference guide for AWS License Manager's 67// API operation AcceptGrant for usage and error information. 68// 69// Returned Error Types: 70// * ValidationException 71// The provided input is not valid. Try your request again. 72// 73// * InvalidParameterValueException 74// One or more parameter values are not valid. 75// 76// * AuthorizationException 77// The AWS user account does not have permission to perform the action. Check 78// the IAM policy associated with this account. 79// 80// * AccessDeniedException 81// Access to resource denied. 82// 83// * RateLimitExceededException 84// Too many requests have been submitted. Try again after a brief wait. 85// 86// * ResourceLimitExceededException 87// Your resource limits have been exceeded. 88// 89// * ServerInternalException 90// The server experienced an internal error. Try again. 91// 92// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/AcceptGrant 93func (c *LicenseManager) AcceptGrant(input *AcceptGrantInput) (*AcceptGrantOutput, error) { 94 req, out := c.AcceptGrantRequest(input) 95 return out, req.Send() 96} 97 98// AcceptGrantWithContext is the same as AcceptGrant with the addition of 99// the ability to pass a context and additional request options. 100// 101// See AcceptGrant for details on how to use this API operation. 102// 103// The context must be non-nil and will be used for request cancellation. If 104// the context is nil a panic will occur. In the future the SDK may create 105// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 106// for more information on using Contexts. 107func (c *LicenseManager) AcceptGrantWithContext(ctx aws.Context, input *AcceptGrantInput, opts ...request.Option) (*AcceptGrantOutput, error) { 108 req, out := c.AcceptGrantRequest(input) 109 req.SetContext(ctx) 110 req.ApplyOptions(opts...) 111 return out, req.Send() 112} 113 114const opCheckInLicense = "CheckInLicense" 115 116// CheckInLicenseRequest generates a "aws/request.Request" representing the 117// client's request for the CheckInLicense operation. The "output" return 118// value will be populated with the request's response once the request completes 119// successfully. 120// 121// Use "Send" method on the returned Request to send the API call to the service. 122// the "output" return value is not valid until after Send returns without error. 123// 124// See CheckInLicense for more information on using the CheckInLicense 125// API call, and error handling. 126// 127// This method is useful when you want to inject custom logic or configuration 128// into the SDK's request lifecycle. Such as custom headers, or retry logic. 129// 130// 131// // Example sending a request using the CheckInLicenseRequest method. 132// req, resp := client.CheckInLicenseRequest(params) 133// 134// err := req.Send() 135// if err == nil { // resp is now filled 136// fmt.Println(resp) 137// } 138// 139// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckInLicense 140func (c *LicenseManager) CheckInLicenseRequest(input *CheckInLicenseInput) (req *request.Request, output *CheckInLicenseOutput) { 141 op := &request.Operation{ 142 Name: opCheckInLicense, 143 HTTPMethod: "POST", 144 HTTPPath: "/", 145 } 146 147 if input == nil { 148 input = &CheckInLicenseInput{} 149 } 150 151 output = &CheckInLicenseOutput{} 152 req = c.newRequest(op, input, output) 153 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 154 return 155} 156 157// CheckInLicense API operation for AWS License Manager. 158// 159// Checks in the specified license. Check in a license when it is no longer 160// in use. 161// 162// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 163// with awserr.Error's Code and Message methods to get detailed information about 164// the error. 165// 166// See the AWS API reference guide for AWS License Manager's 167// API operation CheckInLicense for usage and error information. 168// 169// Returned Error Types: 170// * ValidationException 171// The provided input is not valid. Try your request again. 172// 173// * ResourceNotFoundException 174// The resource cannot be found. 175// 176// * ConflictException 177// There was a conflict processing the request. Try your request again. 178// 179// * AuthorizationException 180// The AWS user account does not have permission to perform the action. Check 181// the IAM policy associated with this account. 182// 183// * AccessDeniedException 184// Access to resource denied. 185// 186// * RateLimitExceededException 187// Too many requests have been submitted. Try again after a brief wait. 188// 189// * ServerInternalException 190// The server experienced an internal error. Try again. 191// 192// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckInLicense 193func (c *LicenseManager) CheckInLicense(input *CheckInLicenseInput) (*CheckInLicenseOutput, error) { 194 req, out := c.CheckInLicenseRequest(input) 195 return out, req.Send() 196} 197 198// CheckInLicenseWithContext is the same as CheckInLicense with the addition of 199// the ability to pass a context and additional request options. 200// 201// See CheckInLicense for details on how to use this API operation. 202// 203// The context must be non-nil and will be used for request cancellation. If 204// the context is nil a panic will occur. In the future the SDK may create 205// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 206// for more information on using Contexts. 207func (c *LicenseManager) CheckInLicenseWithContext(ctx aws.Context, input *CheckInLicenseInput, opts ...request.Option) (*CheckInLicenseOutput, error) { 208 req, out := c.CheckInLicenseRequest(input) 209 req.SetContext(ctx) 210 req.ApplyOptions(opts...) 211 return out, req.Send() 212} 213 214const opCheckoutBorrowLicense = "CheckoutBorrowLicense" 215 216// CheckoutBorrowLicenseRequest generates a "aws/request.Request" representing the 217// client's request for the CheckoutBorrowLicense operation. The "output" return 218// value will be populated with the request's response once the request completes 219// successfully. 220// 221// Use "Send" method on the returned Request to send the API call to the service. 222// the "output" return value is not valid until after Send returns without error. 223// 224// See CheckoutBorrowLicense for more information on using the CheckoutBorrowLicense 225// API call, and error handling. 226// 227// This method is useful when you want to inject custom logic or configuration 228// into the SDK's request lifecycle. Such as custom headers, or retry logic. 229// 230// 231// // Example sending a request using the CheckoutBorrowLicenseRequest method. 232// req, resp := client.CheckoutBorrowLicenseRequest(params) 233// 234// err := req.Send() 235// if err == nil { // resp is now filled 236// fmt.Println(resp) 237// } 238// 239// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutBorrowLicense 240func (c *LicenseManager) CheckoutBorrowLicenseRequest(input *CheckoutBorrowLicenseInput) (req *request.Request, output *CheckoutBorrowLicenseOutput) { 241 op := &request.Operation{ 242 Name: opCheckoutBorrowLicense, 243 HTTPMethod: "POST", 244 HTTPPath: "/", 245 } 246 247 if input == nil { 248 input = &CheckoutBorrowLicenseInput{} 249 } 250 251 output = &CheckoutBorrowLicenseOutput{} 252 req = c.newRequest(op, input, output) 253 return 254} 255 256// CheckoutBorrowLicense API operation for AWS License Manager. 257// 258// Checks out the specified license for offline use. 259// 260// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 261// with awserr.Error's Code and Message methods to get detailed information about 262// the error. 263// 264// See the AWS API reference guide for AWS License Manager's 265// API operation CheckoutBorrowLicense for usage and error information. 266// 267// Returned Error Types: 268// * ValidationException 269// The provided input is not valid. Try your request again. 270// 271// * ResourceNotFoundException 272// The resource cannot be found. 273// 274// * NoEntitlementsAllowedException 275// There are no entitlements found for this license, or the entitlement maximum 276// count is reached. 277// 278// * EntitlementNotAllowedException 279// The entitlement is not allowed. 280// 281// * UnsupportedDigitalSignatureMethodException 282// The digital signature method is unsupported. Try your request again. 283// 284// * RedirectException 285// This is not the correct Region for the resource. Try again. 286// 287// * AuthorizationException 288// The AWS user account does not have permission to perform the action. Check 289// the IAM policy associated with this account. 290// 291// * AccessDeniedException 292// Access to resource denied. 293// 294// * RateLimitExceededException 295// Too many requests have been submitted. Try again after a brief wait. 296// 297// * ServerInternalException 298// The server experienced an internal error. Try again. 299// 300// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutBorrowLicense 301func (c *LicenseManager) CheckoutBorrowLicense(input *CheckoutBorrowLicenseInput) (*CheckoutBorrowLicenseOutput, error) { 302 req, out := c.CheckoutBorrowLicenseRequest(input) 303 return out, req.Send() 304} 305 306// CheckoutBorrowLicenseWithContext is the same as CheckoutBorrowLicense with the addition of 307// the ability to pass a context and additional request options. 308// 309// See CheckoutBorrowLicense for details on how to use this API operation. 310// 311// The context must be non-nil and will be used for request cancellation. If 312// the context is nil a panic will occur. In the future the SDK may create 313// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 314// for more information on using Contexts. 315func (c *LicenseManager) CheckoutBorrowLicenseWithContext(ctx aws.Context, input *CheckoutBorrowLicenseInput, opts ...request.Option) (*CheckoutBorrowLicenseOutput, error) { 316 req, out := c.CheckoutBorrowLicenseRequest(input) 317 req.SetContext(ctx) 318 req.ApplyOptions(opts...) 319 return out, req.Send() 320} 321 322const opCheckoutLicense = "CheckoutLicense" 323 324// CheckoutLicenseRequest generates a "aws/request.Request" representing the 325// client's request for the CheckoutLicense operation. The "output" return 326// value will be populated with the request's response once the request completes 327// successfully. 328// 329// Use "Send" method on the returned Request to send the API call to the service. 330// the "output" return value is not valid until after Send returns without error. 331// 332// See CheckoutLicense for more information on using the CheckoutLicense 333// API call, and error handling. 334// 335// This method is useful when you want to inject custom logic or configuration 336// into the SDK's request lifecycle. Such as custom headers, or retry logic. 337// 338// 339// // Example sending a request using the CheckoutLicenseRequest method. 340// req, resp := client.CheckoutLicenseRequest(params) 341// 342// err := req.Send() 343// if err == nil { // resp is now filled 344// fmt.Println(resp) 345// } 346// 347// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutLicense 348func (c *LicenseManager) CheckoutLicenseRequest(input *CheckoutLicenseInput) (req *request.Request, output *CheckoutLicenseOutput) { 349 op := &request.Operation{ 350 Name: opCheckoutLicense, 351 HTTPMethod: "POST", 352 HTTPPath: "/", 353 } 354 355 if input == nil { 356 input = &CheckoutLicenseInput{} 357 } 358 359 output = &CheckoutLicenseOutput{} 360 req = c.newRequest(op, input, output) 361 return 362} 363 364// CheckoutLicense API operation for AWS License Manager. 365// 366// Checks out the specified license. 367// 368// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 369// with awserr.Error's Code and Message methods to get detailed information about 370// the error. 371// 372// See the AWS API reference guide for AWS License Manager's 373// API operation CheckoutLicense for usage and error information. 374// 375// Returned Error Types: 376// * ValidationException 377// The provided input is not valid. Try your request again. 378// 379// * ResourceNotFoundException 380// The resource cannot be found. 381// 382// * NoEntitlementsAllowedException 383// There are no entitlements found for this license, or the entitlement maximum 384// count is reached. 385// 386// * UnsupportedDigitalSignatureMethodException 387// The digital signature method is unsupported. Try your request again. 388// 389// * RedirectException 390// This is not the correct Region for the resource. Try again. 391// 392// * AuthorizationException 393// The AWS user account does not have permission to perform the action. Check 394// the IAM policy associated with this account. 395// 396// * AccessDeniedException 397// Access to resource denied. 398// 399// * RateLimitExceededException 400// Too many requests have been submitted. Try again after a brief wait. 401// 402// * ServerInternalException 403// The server experienced an internal error. Try again. 404// 405// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutLicense 406func (c *LicenseManager) CheckoutLicense(input *CheckoutLicenseInput) (*CheckoutLicenseOutput, error) { 407 req, out := c.CheckoutLicenseRequest(input) 408 return out, req.Send() 409} 410 411// CheckoutLicenseWithContext is the same as CheckoutLicense with the addition of 412// the ability to pass a context and additional request options. 413// 414// See CheckoutLicense for details on how to use this API operation. 415// 416// The context must be non-nil and will be used for request cancellation. If 417// the context is nil a panic will occur. In the future the SDK may create 418// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 419// for more information on using Contexts. 420func (c *LicenseManager) CheckoutLicenseWithContext(ctx aws.Context, input *CheckoutLicenseInput, opts ...request.Option) (*CheckoutLicenseOutput, error) { 421 req, out := c.CheckoutLicenseRequest(input) 422 req.SetContext(ctx) 423 req.ApplyOptions(opts...) 424 return out, req.Send() 425} 426 427const opCreateGrant = "CreateGrant" 428 429// CreateGrantRequest generates a "aws/request.Request" representing the 430// client's request for the CreateGrant operation. The "output" return 431// value will be populated with the request's response once the request completes 432// successfully. 433// 434// Use "Send" method on the returned Request to send the API call to the service. 435// the "output" return value is not valid until after Send returns without error. 436// 437// See CreateGrant for more information on using the CreateGrant 438// API call, and error handling. 439// 440// This method is useful when you want to inject custom logic or configuration 441// into the SDK's request lifecycle. Such as custom headers, or retry logic. 442// 443// 444// // Example sending a request using the CreateGrantRequest method. 445// req, resp := client.CreateGrantRequest(params) 446// 447// err := req.Send() 448// if err == nil { // resp is now filled 449// fmt.Println(resp) 450// } 451// 452// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrant 453func (c *LicenseManager) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, output *CreateGrantOutput) { 454 op := &request.Operation{ 455 Name: opCreateGrant, 456 HTTPMethod: "POST", 457 HTTPPath: "/", 458 } 459 460 if input == nil { 461 input = &CreateGrantInput{} 462 } 463 464 output = &CreateGrantOutput{} 465 req = c.newRequest(op, input, output) 466 return 467} 468 469// CreateGrant API operation for AWS License Manager. 470// 471// Creates a grant for the specified license. A grant shares the use of license 472// entitlements with specific AWS accounts. 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 AWS License Manager's 479// API operation CreateGrant for usage and error information. 480// 481// Returned Error Types: 482// * ValidationException 483// The provided input is not valid. Try your request again. 484// 485// * InvalidParameterValueException 486// One or more parameter values are not valid. 487// 488// * ResourceLimitExceededException 489// Your resource limits have been exceeded. 490// 491// * ServerInternalException 492// The server experienced an internal error. Try again. 493// 494// * AuthorizationException 495// The AWS user account does not have permission to perform the action. Check 496// the IAM policy associated with this account. 497// 498// * RateLimitExceededException 499// Too many requests have been submitted. Try again after a brief wait. 500// 501// * AccessDeniedException 502// Access to resource denied. 503// 504// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrant 505func (c *LicenseManager) CreateGrant(input *CreateGrantInput) (*CreateGrantOutput, error) { 506 req, out := c.CreateGrantRequest(input) 507 return out, req.Send() 508} 509 510// CreateGrantWithContext is the same as CreateGrant with the addition of 511// the ability to pass a context and additional request options. 512// 513// See CreateGrant for details on how to use this API operation. 514// 515// The context must be non-nil and will be used for request cancellation. If 516// the context is nil a panic will occur. In the future the SDK may create 517// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 518// for more information on using Contexts. 519func (c *LicenseManager) CreateGrantWithContext(ctx aws.Context, input *CreateGrantInput, opts ...request.Option) (*CreateGrantOutput, error) { 520 req, out := c.CreateGrantRequest(input) 521 req.SetContext(ctx) 522 req.ApplyOptions(opts...) 523 return out, req.Send() 524} 525 526const opCreateGrantVersion = "CreateGrantVersion" 527 528// CreateGrantVersionRequest generates a "aws/request.Request" representing the 529// client's request for the CreateGrantVersion operation. The "output" return 530// value will be populated with the request's response once the request completes 531// successfully. 532// 533// Use "Send" method on the returned Request to send the API call to the service. 534// the "output" return value is not valid until after Send returns without error. 535// 536// See CreateGrantVersion for more information on using the CreateGrantVersion 537// API call, and error handling. 538// 539// This method is useful when you want to inject custom logic or configuration 540// into the SDK's request lifecycle. Such as custom headers, or retry logic. 541// 542// 543// // Example sending a request using the CreateGrantVersionRequest method. 544// req, resp := client.CreateGrantVersionRequest(params) 545// 546// err := req.Send() 547// if err == nil { // resp is now filled 548// fmt.Println(resp) 549// } 550// 551// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrantVersion 552func (c *LicenseManager) CreateGrantVersionRequest(input *CreateGrantVersionInput) (req *request.Request, output *CreateGrantVersionOutput) { 553 op := &request.Operation{ 554 Name: opCreateGrantVersion, 555 HTTPMethod: "POST", 556 HTTPPath: "/", 557 } 558 559 if input == nil { 560 input = &CreateGrantVersionInput{} 561 } 562 563 output = &CreateGrantVersionOutput{} 564 req = c.newRequest(op, input, output) 565 return 566} 567 568// CreateGrantVersion API operation for AWS License Manager. 569// 570// Creates a new version of the specified grant. 571// 572// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 573// with awserr.Error's Code and Message methods to get detailed information about 574// the error. 575// 576// See the AWS API reference guide for AWS License Manager's 577// API operation CreateGrantVersion for usage and error information. 578// 579// Returned Error Types: 580// * ValidationException 581// The provided input is not valid. Try your request again. 582// 583// * InvalidParameterValueException 584// One or more parameter values are not valid. 585// 586// * ResourceLimitExceededException 587// Your resource limits have been exceeded. 588// 589// * ServerInternalException 590// The server experienced an internal error. Try again. 591// 592// * AuthorizationException 593// The AWS user account does not have permission to perform the action. Check 594// the IAM policy associated with this account. 595// 596// * AccessDeniedException 597// Access to resource denied. 598// 599// * RateLimitExceededException 600// Too many requests have been submitted. Try again after a brief wait. 601// 602// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrantVersion 603func (c *LicenseManager) CreateGrantVersion(input *CreateGrantVersionInput) (*CreateGrantVersionOutput, error) { 604 req, out := c.CreateGrantVersionRequest(input) 605 return out, req.Send() 606} 607 608// CreateGrantVersionWithContext is the same as CreateGrantVersion with the addition of 609// the ability to pass a context and additional request options. 610// 611// See CreateGrantVersion for details on how to use this API operation. 612// 613// The context must be non-nil and will be used for request cancellation. If 614// the context is nil a panic will occur. In the future the SDK may create 615// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 616// for more information on using Contexts. 617func (c *LicenseManager) CreateGrantVersionWithContext(ctx aws.Context, input *CreateGrantVersionInput, opts ...request.Option) (*CreateGrantVersionOutput, error) { 618 req, out := c.CreateGrantVersionRequest(input) 619 req.SetContext(ctx) 620 req.ApplyOptions(opts...) 621 return out, req.Send() 622} 623 624const opCreateLicense = "CreateLicense" 625 626// CreateLicenseRequest generates a "aws/request.Request" representing the 627// client's request for the CreateLicense operation. The "output" return 628// value will be populated with the request's response once the request completes 629// successfully. 630// 631// Use "Send" method on the returned Request to send the API call to the service. 632// the "output" return value is not valid until after Send returns without error. 633// 634// See CreateLicense for more information on using the CreateLicense 635// API call, and error handling. 636// 637// This method is useful when you want to inject custom logic or configuration 638// into the SDK's request lifecycle. Such as custom headers, or retry logic. 639// 640// 641// // Example sending a request using the CreateLicenseRequest method. 642// req, resp := client.CreateLicenseRequest(params) 643// 644// err := req.Send() 645// if err == nil { // resp is now filled 646// fmt.Println(resp) 647// } 648// 649// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicense 650func (c *LicenseManager) CreateLicenseRequest(input *CreateLicenseInput) (req *request.Request, output *CreateLicenseOutput) { 651 op := &request.Operation{ 652 Name: opCreateLicense, 653 HTTPMethod: "POST", 654 HTTPPath: "/", 655 } 656 657 if input == nil { 658 input = &CreateLicenseInput{} 659 } 660 661 output = &CreateLicenseOutput{} 662 req = c.newRequest(op, input, output) 663 return 664} 665 666// CreateLicense API operation for AWS License Manager. 667// 668// Creates a license. 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 AWS License Manager's 675// API operation CreateLicense for usage and error information. 676// 677// Returned Error Types: 678// * ValidationException 679// The provided input is not valid. Try your request again. 680// 681// * InvalidParameterValueException 682// One or more parameter values are not valid. 683// 684// * RedirectException 685// This is not the correct Region for the resource. Try again. 686// 687// * AuthorizationException 688// The AWS user account does not have permission to perform the action. Check 689// the IAM policy associated with this account. 690// 691// * AccessDeniedException 692// Access to resource denied. 693// 694// * RateLimitExceededException 695// Too many requests have been submitted. Try again after a brief wait. 696// 697// * ServerInternalException 698// The server experienced an internal error. Try again. 699// 700// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicense 701func (c *LicenseManager) CreateLicense(input *CreateLicenseInput) (*CreateLicenseOutput, error) { 702 req, out := c.CreateLicenseRequest(input) 703 return out, req.Send() 704} 705 706// CreateLicenseWithContext is the same as CreateLicense with the addition of 707// the ability to pass a context and additional request options. 708// 709// See CreateLicense for details on how to use this API operation. 710// 711// The context must be non-nil and will be used for request cancellation. If 712// the context is nil a panic will occur. In the future the SDK may create 713// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 714// for more information on using Contexts. 715func (c *LicenseManager) CreateLicenseWithContext(ctx aws.Context, input *CreateLicenseInput, opts ...request.Option) (*CreateLicenseOutput, error) { 716 req, out := c.CreateLicenseRequest(input) 717 req.SetContext(ctx) 718 req.ApplyOptions(opts...) 719 return out, req.Send() 720} 721 722const opCreateLicenseConfiguration = "CreateLicenseConfiguration" 723 724// CreateLicenseConfigurationRequest generates a "aws/request.Request" representing the 725// client's request for the CreateLicenseConfiguration operation. The "output" return 726// value will be populated with the request's response once the request completes 727// successfully. 728// 729// Use "Send" method on the returned Request to send the API call to the service. 730// the "output" return value is not valid until after Send returns without error. 731// 732// See CreateLicenseConfiguration for more information on using the CreateLicenseConfiguration 733// API call, and error handling. 734// 735// This method is useful when you want to inject custom logic or configuration 736// into the SDK's request lifecycle. Such as custom headers, or retry logic. 737// 738// 739// // Example sending a request using the CreateLicenseConfigurationRequest method. 740// req, resp := client.CreateLicenseConfigurationRequest(params) 741// 742// err := req.Send() 743// if err == nil { // resp is now filled 744// fmt.Println(resp) 745// } 746// 747// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration 748func (c *LicenseManager) CreateLicenseConfigurationRequest(input *CreateLicenseConfigurationInput) (req *request.Request, output *CreateLicenseConfigurationOutput) { 749 op := &request.Operation{ 750 Name: opCreateLicenseConfiguration, 751 HTTPMethod: "POST", 752 HTTPPath: "/", 753 } 754 755 if input == nil { 756 input = &CreateLicenseConfigurationInput{} 757 } 758 759 output = &CreateLicenseConfigurationOutput{} 760 req = c.newRequest(op, input, output) 761 return 762} 763 764// CreateLicenseConfiguration API operation for AWS License Manager. 765// 766// Creates a license configuration. 767// 768// A license configuration is an abstraction of a customer license agreement 769// that can be consumed and enforced by License Manager. Components include 770// specifications for the license type (licensing by instance, socket, CPU, 771// or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated 772// Host, or all of these), license affinity to host (how long a license must 773// be associated with a host), and the number of licenses purchased and used. 774// 775// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 776// with awserr.Error's Code and Message methods to get detailed information about 777// the error. 778// 779// See the AWS API reference guide for AWS License Manager's 780// API operation CreateLicenseConfiguration for usage and error information. 781// 782// Returned Error Types: 783// * InvalidParameterValueException 784// One or more parameter values are not valid. 785// 786// * ServerInternalException 787// The server experienced an internal error. Try again. 788// 789// * ResourceLimitExceededException 790// Your resource limits have been exceeded. 791// 792// * AuthorizationException 793// The AWS user account does not have permission to perform the action. Check 794// the IAM policy associated with this account. 795// 796// * AccessDeniedException 797// Access to resource denied. 798// 799// * RateLimitExceededException 800// Too many requests have been submitted. Try again after a brief wait. 801// 802// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration 803func (c *LicenseManager) CreateLicenseConfiguration(input *CreateLicenseConfigurationInput) (*CreateLicenseConfigurationOutput, error) { 804 req, out := c.CreateLicenseConfigurationRequest(input) 805 return out, req.Send() 806} 807 808// CreateLicenseConfigurationWithContext is the same as CreateLicenseConfiguration with the addition of 809// the ability to pass a context and additional request options. 810// 811// See CreateLicenseConfiguration for details on how to use this API operation. 812// 813// The context must be non-nil and will be used for request cancellation. If 814// the context is nil a panic will occur. In the future the SDK may create 815// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 816// for more information on using Contexts. 817func (c *LicenseManager) CreateLicenseConfigurationWithContext(ctx aws.Context, input *CreateLicenseConfigurationInput, opts ...request.Option) (*CreateLicenseConfigurationOutput, error) { 818 req, out := c.CreateLicenseConfigurationRequest(input) 819 req.SetContext(ctx) 820 req.ApplyOptions(opts...) 821 return out, req.Send() 822} 823 824const opCreateLicenseVersion = "CreateLicenseVersion" 825 826// CreateLicenseVersionRequest generates a "aws/request.Request" representing the 827// client's request for the CreateLicenseVersion operation. The "output" return 828// value will be populated with the request's response once the request completes 829// successfully. 830// 831// Use "Send" method on the returned Request to send the API call to the service. 832// the "output" return value is not valid until after Send returns without error. 833// 834// See CreateLicenseVersion for more information on using the CreateLicenseVersion 835// API call, and error handling. 836// 837// This method is useful when you want to inject custom logic or configuration 838// into the SDK's request lifecycle. Such as custom headers, or retry logic. 839// 840// 841// // Example sending a request using the CreateLicenseVersionRequest method. 842// req, resp := client.CreateLicenseVersionRequest(params) 843// 844// err := req.Send() 845// if err == nil { // resp is now filled 846// fmt.Println(resp) 847// } 848// 849// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseVersion 850func (c *LicenseManager) CreateLicenseVersionRequest(input *CreateLicenseVersionInput) (req *request.Request, output *CreateLicenseVersionOutput) { 851 op := &request.Operation{ 852 Name: opCreateLicenseVersion, 853 HTTPMethod: "POST", 854 HTTPPath: "/", 855 } 856 857 if input == nil { 858 input = &CreateLicenseVersionInput{} 859 } 860 861 output = &CreateLicenseVersionOutput{} 862 req = c.newRequest(op, input, output) 863 return 864} 865 866// CreateLicenseVersion API operation for AWS License Manager. 867// 868// Creates a new version of the specified license. 869// 870// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 871// with awserr.Error's Code and Message methods to get detailed information about 872// the error. 873// 874// See the AWS API reference guide for AWS License Manager's 875// API operation CreateLicenseVersion for usage and error information. 876// 877// Returned Error Types: 878// * ValidationException 879// The provided input is not valid. Try your request again. 880// 881// * AccessDeniedException 882// Access to resource denied. 883// 884// * ResourceNotFoundException 885// The resource cannot be found. 886// 887// * RedirectException 888// This is not the correct Region for the resource. Try again. 889// 890// * ConflictException 891// There was a conflict processing the request. Try your request again. 892// 893// * ServerInternalException 894// The server experienced an internal error. Try again. 895// 896// * AuthorizationException 897// The AWS user account does not have permission to perform the action. Check 898// the IAM policy associated with this account. 899// 900// * RateLimitExceededException 901// Too many requests have been submitted. Try again after a brief wait. 902// 903// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseVersion 904func (c *LicenseManager) CreateLicenseVersion(input *CreateLicenseVersionInput) (*CreateLicenseVersionOutput, error) { 905 req, out := c.CreateLicenseVersionRequest(input) 906 return out, req.Send() 907} 908 909// CreateLicenseVersionWithContext is the same as CreateLicenseVersion with the addition of 910// the ability to pass a context and additional request options. 911// 912// See CreateLicenseVersion for details on how to use this API operation. 913// 914// The context must be non-nil and will be used for request cancellation. If 915// the context is nil a panic will occur. In the future the SDK may create 916// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 917// for more information on using Contexts. 918func (c *LicenseManager) CreateLicenseVersionWithContext(ctx aws.Context, input *CreateLicenseVersionInput, opts ...request.Option) (*CreateLicenseVersionOutput, error) { 919 req, out := c.CreateLicenseVersionRequest(input) 920 req.SetContext(ctx) 921 req.ApplyOptions(opts...) 922 return out, req.Send() 923} 924 925const opCreateToken = "CreateToken" 926 927// CreateTokenRequest generates a "aws/request.Request" representing the 928// client's request for the CreateToken operation. The "output" return 929// value will be populated with the request's response once the request completes 930// successfully. 931// 932// Use "Send" method on the returned Request to send the API call to the service. 933// the "output" return value is not valid until after Send returns without error. 934// 935// See CreateToken for more information on using the CreateToken 936// API call, and error handling. 937// 938// This method is useful when you want to inject custom logic or configuration 939// into the SDK's request lifecycle. Such as custom headers, or retry logic. 940// 941// 942// // Example sending a request using the CreateTokenRequest method. 943// req, resp := client.CreateTokenRequest(params) 944// 945// err := req.Send() 946// if err == nil { // resp is now filled 947// fmt.Println(resp) 948// } 949// 950// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateToken 951func (c *LicenseManager) CreateTokenRequest(input *CreateTokenInput) (req *request.Request, output *CreateTokenOutput) { 952 op := &request.Operation{ 953 Name: opCreateToken, 954 HTTPMethod: "POST", 955 HTTPPath: "/", 956 } 957 958 if input == nil { 959 input = &CreateTokenInput{} 960 } 961 962 output = &CreateTokenOutput{} 963 req = c.newRequest(op, input, output) 964 return 965} 966 967// CreateToken API operation for AWS License Manager. 968// 969// Creates a long-lived token. 970// 971// A refresh token is a JWT token used to get an access token. With an access 972// token, you can call AssumeRoleWithWebIdentity to get role credentials that 973// you can use to call License Manager to manage the specified license. 974// 975// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 976// with awserr.Error's Code and Message methods to get detailed information about 977// the error. 978// 979// See the AWS API reference guide for AWS License Manager's 980// API operation CreateToken for usage and error information. 981// 982// Returned Error Types: 983// * ValidationException 984// The provided input is not valid. Try your request again. 985// 986// * AuthorizationException 987// The AWS user account does not have permission to perform the action. Check 988// the IAM policy associated with this account. 989// 990// * AccessDeniedException 991// Access to resource denied. 992// 993// * RateLimitExceededException 994// Too many requests have been submitted. Try again after a brief wait. 995// 996// * ResourceLimitExceededException 997// Your resource limits have been exceeded. 998// 999// * ServerInternalException 1000// The server experienced an internal error. Try again. 1001// 1002// * ResourceNotFoundException 1003// The resource cannot be found. 1004// 1005// * RedirectException 1006// This is not the correct Region for the resource. Try again. 1007// 1008// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateToken 1009func (c *LicenseManager) CreateToken(input *CreateTokenInput) (*CreateTokenOutput, error) { 1010 req, out := c.CreateTokenRequest(input) 1011 return out, req.Send() 1012} 1013 1014// CreateTokenWithContext is the same as CreateToken with the addition of 1015// the ability to pass a context and additional request options. 1016// 1017// See CreateToken for details on how to use this API operation. 1018// 1019// The context must be non-nil and will be used for request cancellation. If 1020// the context is nil a panic will occur. In the future the SDK may create 1021// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1022// for more information on using Contexts. 1023func (c *LicenseManager) CreateTokenWithContext(ctx aws.Context, input *CreateTokenInput, opts ...request.Option) (*CreateTokenOutput, error) { 1024 req, out := c.CreateTokenRequest(input) 1025 req.SetContext(ctx) 1026 req.ApplyOptions(opts...) 1027 return out, req.Send() 1028} 1029 1030const opDeleteGrant = "DeleteGrant" 1031 1032// DeleteGrantRequest generates a "aws/request.Request" representing the 1033// client's request for the DeleteGrant operation. The "output" return 1034// value will be populated with the request's response once the request completes 1035// successfully. 1036// 1037// Use "Send" method on the returned Request to send the API call to the service. 1038// the "output" return value is not valid until after Send returns without error. 1039// 1040// See DeleteGrant for more information on using the DeleteGrant 1041// API call, and error handling. 1042// 1043// This method is useful when you want to inject custom logic or configuration 1044// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1045// 1046// 1047// // Example sending a request using the DeleteGrantRequest method. 1048// req, resp := client.DeleteGrantRequest(params) 1049// 1050// err := req.Send() 1051// if err == nil { // resp is now filled 1052// fmt.Println(resp) 1053// } 1054// 1055// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteGrant 1056func (c *LicenseManager) DeleteGrantRequest(input *DeleteGrantInput) (req *request.Request, output *DeleteGrantOutput) { 1057 op := &request.Operation{ 1058 Name: opDeleteGrant, 1059 HTTPMethod: "POST", 1060 HTTPPath: "/", 1061 } 1062 1063 if input == nil { 1064 input = &DeleteGrantInput{} 1065 } 1066 1067 output = &DeleteGrantOutput{} 1068 req = c.newRequest(op, input, output) 1069 return 1070} 1071 1072// DeleteGrant API operation for AWS License Manager. 1073// 1074// Deletes the specified grant. 1075// 1076// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1077// with awserr.Error's Code and Message methods to get detailed information about 1078// the error. 1079// 1080// See the AWS API reference guide for AWS License Manager's 1081// API operation DeleteGrant for usage and error information. 1082// 1083// Returned Error Types: 1084// * ValidationException 1085// The provided input is not valid. Try your request again. 1086// 1087// * InvalidParameterValueException 1088// One or more parameter values are not valid. 1089// 1090// * AuthorizationException 1091// The AWS user account does not have permission to perform the action. Check 1092// the IAM policy associated with this account. 1093// 1094// * AccessDeniedException 1095// Access to resource denied. 1096// 1097// * RateLimitExceededException 1098// Too many requests have been submitted. Try again after a brief wait. 1099// 1100// * ResourceLimitExceededException 1101// Your resource limits have been exceeded. 1102// 1103// * ServerInternalException 1104// The server experienced an internal error. Try again. 1105// 1106// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteGrant 1107func (c *LicenseManager) DeleteGrant(input *DeleteGrantInput) (*DeleteGrantOutput, error) { 1108 req, out := c.DeleteGrantRequest(input) 1109 return out, req.Send() 1110} 1111 1112// DeleteGrantWithContext is the same as DeleteGrant with the addition of 1113// the ability to pass a context and additional request options. 1114// 1115// See DeleteGrant for details on how to use this API operation. 1116// 1117// The context must be non-nil and will be used for request cancellation. If 1118// the context is nil a panic will occur. In the future the SDK may create 1119// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1120// for more information on using Contexts. 1121func (c *LicenseManager) DeleteGrantWithContext(ctx aws.Context, input *DeleteGrantInput, opts ...request.Option) (*DeleteGrantOutput, error) { 1122 req, out := c.DeleteGrantRequest(input) 1123 req.SetContext(ctx) 1124 req.ApplyOptions(opts...) 1125 return out, req.Send() 1126} 1127 1128const opDeleteLicense = "DeleteLicense" 1129 1130// DeleteLicenseRequest generates a "aws/request.Request" representing the 1131// client's request for the DeleteLicense operation. The "output" return 1132// value will be populated with the request's response once the request completes 1133// successfully. 1134// 1135// Use "Send" method on the returned Request to send the API call to the service. 1136// the "output" return value is not valid until after Send returns without error. 1137// 1138// See DeleteLicense for more information on using the DeleteLicense 1139// API call, and error handling. 1140// 1141// This method is useful when you want to inject custom logic or configuration 1142// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1143// 1144// 1145// // Example sending a request using the DeleteLicenseRequest method. 1146// req, resp := client.DeleteLicenseRequest(params) 1147// 1148// err := req.Send() 1149// if err == nil { // resp is now filled 1150// fmt.Println(resp) 1151// } 1152// 1153// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicense 1154func (c *LicenseManager) DeleteLicenseRequest(input *DeleteLicenseInput) (req *request.Request, output *DeleteLicenseOutput) { 1155 op := &request.Operation{ 1156 Name: opDeleteLicense, 1157 HTTPMethod: "POST", 1158 HTTPPath: "/", 1159 } 1160 1161 if input == nil { 1162 input = &DeleteLicenseInput{} 1163 } 1164 1165 output = &DeleteLicenseOutput{} 1166 req = c.newRequest(op, input, output) 1167 return 1168} 1169 1170// DeleteLicense API operation for AWS License Manager. 1171// 1172// Deletes the specified license. 1173// 1174// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1175// with awserr.Error's Code and Message methods to get detailed information about 1176// the error. 1177// 1178// See the AWS API reference guide for AWS License Manager's 1179// API operation DeleteLicense for usage and error information. 1180// 1181// Returned Error Types: 1182// * ValidationException 1183// The provided input is not valid. Try your request again. 1184// 1185// * InvalidParameterValueException 1186// One or more parameter values are not valid. 1187// 1188// * RedirectException 1189// This is not the correct Region for the resource. Try again. 1190// 1191// * ConflictException 1192// There was a conflict processing the request. Try your request again. 1193// 1194// * ServerInternalException 1195// The server experienced an internal error. Try again. 1196// 1197// * AuthorizationException 1198// The AWS user account does not have permission to perform the action. Check 1199// the IAM policy associated with this account. 1200// 1201// * AccessDeniedException 1202// Access to resource denied. 1203// 1204// * RateLimitExceededException 1205// Too many requests have been submitted. Try again after a brief wait. 1206// 1207// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicense 1208func (c *LicenseManager) DeleteLicense(input *DeleteLicenseInput) (*DeleteLicenseOutput, error) { 1209 req, out := c.DeleteLicenseRequest(input) 1210 return out, req.Send() 1211} 1212 1213// DeleteLicenseWithContext is the same as DeleteLicense with the addition of 1214// the ability to pass a context and additional request options. 1215// 1216// See DeleteLicense for details on how to use this API operation. 1217// 1218// The context must be non-nil and will be used for request cancellation. If 1219// the context is nil a panic will occur. In the future the SDK may create 1220// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1221// for more information on using Contexts. 1222func (c *LicenseManager) DeleteLicenseWithContext(ctx aws.Context, input *DeleteLicenseInput, opts ...request.Option) (*DeleteLicenseOutput, error) { 1223 req, out := c.DeleteLicenseRequest(input) 1224 req.SetContext(ctx) 1225 req.ApplyOptions(opts...) 1226 return out, req.Send() 1227} 1228 1229const opDeleteLicenseConfiguration = "DeleteLicenseConfiguration" 1230 1231// DeleteLicenseConfigurationRequest generates a "aws/request.Request" representing the 1232// client's request for the DeleteLicenseConfiguration operation. The "output" return 1233// value will be populated with the request's response once the request completes 1234// successfully. 1235// 1236// Use "Send" method on the returned Request to send the API call to the service. 1237// the "output" return value is not valid until after Send returns without error. 1238// 1239// See DeleteLicenseConfiguration for more information on using the DeleteLicenseConfiguration 1240// API call, and error handling. 1241// 1242// This method is useful when you want to inject custom logic or configuration 1243// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1244// 1245// 1246// // Example sending a request using the DeleteLicenseConfigurationRequest method. 1247// req, resp := client.DeleteLicenseConfigurationRequest(params) 1248// 1249// err := req.Send() 1250// if err == nil { // resp is now filled 1251// fmt.Println(resp) 1252// } 1253// 1254// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration 1255func (c *LicenseManager) DeleteLicenseConfigurationRequest(input *DeleteLicenseConfigurationInput) (req *request.Request, output *DeleteLicenseConfigurationOutput) { 1256 op := &request.Operation{ 1257 Name: opDeleteLicenseConfiguration, 1258 HTTPMethod: "POST", 1259 HTTPPath: "/", 1260 } 1261 1262 if input == nil { 1263 input = &DeleteLicenseConfigurationInput{} 1264 } 1265 1266 output = &DeleteLicenseConfigurationOutput{} 1267 req = c.newRequest(op, input, output) 1268 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1269 return 1270} 1271 1272// DeleteLicenseConfiguration API operation for AWS License Manager. 1273// 1274// Deletes the specified license configuration. 1275// 1276// You cannot delete a license configuration that is in use. 1277// 1278// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1279// with awserr.Error's Code and Message methods to get detailed information about 1280// the error. 1281// 1282// See the AWS API reference guide for AWS License Manager's 1283// API operation DeleteLicenseConfiguration for usage and error information. 1284// 1285// Returned Error Types: 1286// * InvalidParameterValueException 1287// One or more parameter values are not valid. 1288// 1289// * ServerInternalException 1290// The server experienced an internal error. Try again. 1291// 1292// * AuthorizationException 1293// The AWS user account does not have permission to perform the action. Check 1294// the IAM policy associated with this account. 1295// 1296// * AccessDeniedException 1297// Access to resource denied. 1298// 1299// * RateLimitExceededException 1300// Too many requests have been submitted. Try again after a brief wait. 1301// 1302// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration 1303func (c *LicenseManager) DeleteLicenseConfiguration(input *DeleteLicenseConfigurationInput) (*DeleteLicenseConfigurationOutput, error) { 1304 req, out := c.DeleteLicenseConfigurationRequest(input) 1305 return out, req.Send() 1306} 1307 1308// DeleteLicenseConfigurationWithContext is the same as DeleteLicenseConfiguration with the addition of 1309// the ability to pass a context and additional request options. 1310// 1311// See DeleteLicenseConfiguration for details on how to use this API operation. 1312// 1313// The context must be non-nil and will be used for request cancellation. If 1314// the context is nil a panic will occur. In the future the SDK may create 1315// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1316// for more information on using Contexts. 1317func (c *LicenseManager) DeleteLicenseConfigurationWithContext(ctx aws.Context, input *DeleteLicenseConfigurationInput, opts ...request.Option) (*DeleteLicenseConfigurationOutput, error) { 1318 req, out := c.DeleteLicenseConfigurationRequest(input) 1319 req.SetContext(ctx) 1320 req.ApplyOptions(opts...) 1321 return out, req.Send() 1322} 1323 1324const opDeleteToken = "DeleteToken" 1325 1326// DeleteTokenRequest generates a "aws/request.Request" representing the 1327// client's request for the DeleteToken operation. The "output" return 1328// value will be populated with the request's response once the request completes 1329// successfully. 1330// 1331// Use "Send" method on the returned Request to send the API call to the service. 1332// the "output" return value is not valid until after Send returns without error. 1333// 1334// See DeleteToken for more information on using the DeleteToken 1335// API call, and error handling. 1336// 1337// This method is useful when you want to inject custom logic or configuration 1338// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1339// 1340// 1341// // Example sending a request using the DeleteTokenRequest method. 1342// req, resp := client.DeleteTokenRequest(params) 1343// 1344// err := req.Send() 1345// if err == nil { // resp is now filled 1346// fmt.Println(resp) 1347// } 1348// 1349// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteToken 1350func (c *LicenseManager) DeleteTokenRequest(input *DeleteTokenInput) (req *request.Request, output *DeleteTokenOutput) { 1351 op := &request.Operation{ 1352 Name: opDeleteToken, 1353 HTTPMethod: "POST", 1354 HTTPPath: "/", 1355 } 1356 1357 if input == nil { 1358 input = &DeleteTokenInput{} 1359 } 1360 1361 output = &DeleteTokenOutput{} 1362 req = c.newRequest(op, input, output) 1363 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1364 return 1365} 1366 1367// DeleteToken API operation for AWS License Manager. 1368// 1369// Deletes the specified token. Must be called in the license home Region. 1370// 1371// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1372// with awserr.Error's Code and Message methods to get detailed information about 1373// the error. 1374// 1375// See the AWS API reference guide for AWS License Manager's 1376// API operation DeleteToken for usage and error information. 1377// 1378// Returned Error Types: 1379// * ValidationException 1380// The provided input is not valid. Try your request again. 1381// 1382// * AuthorizationException 1383// The AWS user account does not have permission to perform the action. Check 1384// the IAM policy associated with this account. 1385// 1386// * AccessDeniedException 1387// Access to resource denied. 1388// 1389// * RateLimitExceededException 1390// Too many requests have been submitted. Try again after a brief wait. 1391// 1392// * ServerInternalException 1393// The server experienced an internal error. Try again. 1394// 1395// * ResourceNotFoundException 1396// The resource cannot be found. 1397// 1398// * RedirectException 1399// This is not the correct Region for the resource. Try again. 1400// 1401// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteToken 1402func (c *LicenseManager) DeleteToken(input *DeleteTokenInput) (*DeleteTokenOutput, error) { 1403 req, out := c.DeleteTokenRequest(input) 1404 return out, req.Send() 1405} 1406 1407// DeleteTokenWithContext is the same as DeleteToken with the addition of 1408// the ability to pass a context and additional request options. 1409// 1410// See DeleteToken for details on how to use this API operation. 1411// 1412// The context must be non-nil and will be used for request cancellation. If 1413// the context is nil a panic will occur. In the future the SDK may create 1414// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1415// for more information on using Contexts. 1416func (c *LicenseManager) DeleteTokenWithContext(ctx aws.Context, input *DeleteTokenInput, opts ...request.Option) (*DeleteTokenOutput, error) { 1417 req, out := c.DeleteTokenRequest(input) 1418 req.SetContext(ctx) 1419 req.ApplyOptions(opts...) 1420 return out, req.Send() 1421} 1422 1423const opExtendLicenseConsumption = "ExtendLicenseConsumption" 1424 1425// ExtendLicenseConsumptionRequest generates a "aws/request.Request" representing the 1426// client's request for the ExtendLicenseConsumption operation. The "output" return 1427// value will be populated with the request's response once the request completes 1428// successfully. 1429// 1430// Use "Send" method on the returned Request to send the API call to the service. 1431// the "output" return value is not valid until after Send returns without error. 1432// 1433// See ExtendLicenseConsumption for more information on using the ExtendLicenseConsumption 1434// API call, and error handling. 1435// 1436// This method is useful when you want to inject custom logic or configuration 1437// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1438// 1439// 1440// // Example sending a request using the ExtendLicenseConsumptionRequest method. 1441// req, resp := client.ExtendLicenseConsumptionRequest(params) 1442// 1443// err := req.Send() 1444// if err == nil { // resp is now filled 1445// fmt.Println(resp) 1446// } 1447// 1448// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ExtendLicenseConsumption 1449func (c *LicenseManager) ExtendLicenseConsumptionRequest(input *ExtendLicenseConsumptionInput) (req *request.Request, output *ExtendLicenseConsumptionOutput) { 1450 op := &request.Operation{ 1451 Name: opExtendLicenseConsumption, 1452 HTTPMethod: "POST", 1453 HTTPPath: "/", 1454 } 1455 1456 if input == nil { 1457 input = &ExtendLicenseConsumptionInput{} 1458 } 1459 1460 output = &ExtendLicenseConsumptionOutput{} 1461 req = c.newRequest(op, input, output) 1462 return 1463} 1464 1465// ExtendLicenseConsumption API operation for AWS License Manager. 1466// 1467// Extends the expiration date for license consumption. 1468// 1469// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1470// with awserr.Error's Code and Message methods to get detailed information about 1471// the error. 1472// 1473// See the AWS API reference guide for AWS License Manager's 1474// API operation ExtendLicenseConsumption for usage and error information. 1475// 1476// Returned Error Types: 1477// * ValidationException 1478// The provided input is not valid. Try your request again. 1479// 1480// * InvalidParameterValueException 1481// One or more parameter values are not valid. 1482// 1483// * AuthorizationException 1484// The AWS user account does not have permission to perform the action. Check 1485// the IAM policy associated with this account. 1486// 1487// * AccessDeniedException 1488// Access to resource denied. 1489// 1490// * RateLimitExceededException 1491// Too many requests have been submitted. Try again after a brief wait. 1492// 1493// * ServerInternalException 1494// The server experienced an internal error. Try again. 1495// 1496// * ResourceNotFoundException 1497// The resource cannot be found. 1498// 1499// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ExtendLicenseConsumption 1500func (c *LicenseManager) ExtendLicenseConsumption(input *ExtendLicenseConsumptionInput) (*ExtendLicenseConsumptionOutput, error) { 1501 req, out := c.ExtendLicenseConsumptionRequest(input) 1502 return out, req.Send() 1503} 1504 1505// ExtendLicenseConsumptionWithContext is the same as ExtendLicenseConsumption with the addition of 1506// the ability to pass a context and additional request options. 1507// 1508// See ExtendLicenseConsumption for details on how to use this API operation. 1509// 1510// The context must be non-nil and will be used for request cancellation. If 1511// the context is nil a panic will occur. In the future the SDK may create 1512// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1513// for more information on using Contexts. 1514func (c *LicenseManager) ExtendLicenseConsumptionWithContext(ctx aws.Context, input *ExtendLicenseConsumptionInput, opts ...request.Option) (*ExtendLicenseConsumptionOutput, error) { 1515 req, out := c.ExtendLicenseConsumptionRequest(input) 1516 req.SetContext(ctx) 1517 req.ApplyOptions(opts...) 1518 return out, req.Send() 1519} 1520 1521const opGetAccessToken = "GetAccessToken" 1522 1523// GetAccessTokenRequest generates a "aws/request.Request" representing the 1524// client's request for the GetAccessToken operation. The "output" return 1525// value will be populated with the request's response once the request completes 1526// successfully. 1527// 1528// Use "Send" method on the returned Request to send the API call to the service. 1529// the "output" return value is not valid until after Send returns without error. 1530// 1531// See GetAccessToken for more information on using the GetAccessToken 1532// API call, and error handling. 1533// 1534// This method is useful when you want to inject custom logic or configuration 1535// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1536// 1537// 1538// // Example sending a request using the GetAccessTokenRequest method. 1539// req, resp := client.GetAccessTokenRequest(params) 1540// 1541// err := req.Send() 1542// if err == nil { // resp is now filled 1543// fmt.Println(resp) 1544// } 1545// 1546// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetAccessToken 1547func (c *LicenseManager) GetAccessTokenRequest(input *GetAccessTokenInput) (req *request.Request, output *GetAccessTokenOutput) { 1548 op := &request.Operation{ 1549 Name: opGetAccessToken, 1550 HTTPMethod: "POST", 1551 HTTPPath: "/", 1552 } 1553 1554 if input == nil { 1555 input = &GetAccessTokenInput{} 1556 } 1557 1558 output = &GetAccessTokenOutput{} 1559 req = c.newRequest(op, input, output) 1560 return 1561} 1562 1563// GetAccessToken API operation for AWS License Manager. 1564// 1565// Gets a temporary access token to use with AssumeRoleWithWebIdentity. Access 1566// tokens are valid for one hour. 1567// 1568// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1569// with awserr.Error's Code and Message methods to get detailed information about 1570// the error. 1571// 1572// See the AWS API reference guide for AWS License Manager's 1573// API operation GetAccessToken for usage and error information. 1574// 1575// Returned Error Types: 1576// * ValidationException 1577// The provided input is not valid. Try your request again. 1578// 1579// * AuthorizationException 1580// The AWS user account does not have permission to perform the action. Check 1581// the IAM policy associated with this account. 1582// 1583// * AccessDeniedException 1584// Access to resource denied. 1585// 1586// * RateLimitExceededException 1587// Too many requests have been submitted. Try again after a brief wait. 1588// 1589// * ServerInternalException 1590// The server experienced an internal error. Try again. 1591// 1592// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetAccessToken 1593func (c *LicenseManager) GetAccessToken(input *GetAccessTokenInput) (*GetAccessTokenOutput, error) { 1594 req, out := c.GetAccessTokenRequest(input) 1595 return out, req.Send() 1596} 1597 1598// GetAccessTokenWithContext is the same as GetAccessToken with the addition of 1599// the ability to pass a context and additional request options. 1600// 1601// See GetAccessToken for details on how to use this API operation. 1602// 1603// The context must be non-nil and will be used for request cancellation. If 1604// the context is nil a panic will occur. In the future the SDK may create 1605// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1606// for more information on using Contexts. 1607func (c *LicenseManager) GetAccessTokenWithContext(ctx aws.Context, input *GetAccessTokenInput, opts ...request.Option) (*GetAccessTokenOutput, error) { 1608 req, out := c.GetAccessTokenRequest(input) 1609 req.SetContext(ctx) 1610 req.ApplyOptions(opts...) 1611 return out, req.Send() 1612} 1613 1614const opGetGrant = "GetGrant" 1615 1616// GetGrantRequest generates a "aws/request.Request" representing the 1617// client's request for the GetGrant operation. The "output" return 1618// value will be populated with the request's response once the request completes 1619// successfully. 1620// 1621// Use "Send" method on the returned Request to send the API call to the service. 1622// the "output" return value is not valid until after Send returns without error. 1623// 1624// See GetGrant for more information on using the GetGrant 1625// API call, and error handling. 1626// 1627// This method is useful when you want to inject custom logic or configuration 1628// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1629// 1630// 1631// // Example sending a request using the GetGrantRequest method. 1632// req, resp := client.GetGrantRequest(params) 1633// 1634// err := req.Send() 1635// if err == nil { // resp is now filled 1636// fmt.Println(resp) 1637// } 1638// 1639// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetGrant 1640func (c *LicenseManager) GetGrantRequest(input *GetGrantInput) (req *request.Request, output *GetGrantOutput) { 1641 op := &request.Operation{ 1642 Name: opGetGrant, 1643 HTTPMethod: "POST", 1644 HTTPPath: "/", 1645 } 1646 1647 if input == nil { 1648 input = &GetGrantInput{} 1649 } 1650 1651 output = &GetGrantOutput{} 1652 req = c.newRequest(op, input, output) 1653 return 1654} 1655 1656// GetGrant API operation for AWS License Manager. 1657// 1658// Gets detailed information about the specified grant. 1659// 1660// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1661// with awserr.Error's Code and Message methods to get detailed information about 1662// the error. 1663// 1664// See the AWS API reference guide for AWS License Manager's 1665// API operation GetGrant for usage and error information. 1666// 1667// Returned Error Types: 1668// * ValidationException 1669// The provided input is not valid. Try your request again. 1670// 1671// * InvalidParameterValueException 1672// One or more parameter values are not valid. 1673// 1674// * ResourceLimitExceededException 1675// Your resource limits have been exceeded. 1676// 1677// * ServerInternalException 1678// The server experienced an internal error. Try again. 1679// 1680// * AuthorizationException 1681// The AWS user account does not have permission to perform the action. Check 1682// the IAM policy associated with this account. 1683// 1684// * AccessDeniedException 1685// Access to resource denied. 1686// 1687// * RateLimitExceededException 1688// Too many requests have been submitted. Try again after a brief wait. 1689// 1690// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetGrant 1691func (c *LicenseManager) GetGrant(input *GetGrantInput) (*GetGrantOutput, error) { 1692 req, out := c.GetGrantRequest(input) 1693 return out, req.Send() 1694} 1695 1696// GetGrantWithContext is the same as GetGrant with the addition of 1697// the ability to pass a context and additional request options. 1698// 1699// See GetGrant for details on how to use this API operation. 1700// 1701// The context must be non-nil and will be used for request cancellation. If 1702// the context is nil a panic will occur. In the future the SDK may create 1703// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1704// for more information on using Contexts. 1705func (c *LicenseManager) GetGrantWithContext(ctx aws.Context, input *GetGrantInput, opts ...request.Option) (*GetGrantOutput, error) { 1706 req, out := c.GetGrantRequest(input) 1707 req.SetContext(ctx) 1708 req.ApplyOptions(opts...) 1709 return out, req.Send() 1710} 1711 1712const opGetLicense = "GetLicense" 1713 1714// GetLicenseRequest generates a "aws/request.Request" representing the 1715// client's request for the GetLicense operation. The "output" return 1716// value will be populated with the request's response once the request completes 1717// successfully. 1718// 1719// Use "Send" method on the returned Request to send the API call to the service. 1720// the "output" return value is not valid until after Send returns without error. 1721// 1722// See GetLicense for more information on using the GetLicense 1723// API call, and error handling. 1724// 1725// This method is useful when you want to inject custom logic or configuration 1726// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1727// 1728// 1729// // Example sending a request using the GetLicenseRequest method. 1730// req, resp := client.GetLicenseRequest(params) 1731// 1732// err := req.Send() 1733// if err == nil { // resp is now filled 1734// fmt.Println(resp) 1735// } 1736// 1737// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicense 1738func (c *LicenseManager) GetLicenseRequest(input *GetLicenseInput) (req *request.Request, output *GetLicenseOutput) { 1739 op := &request.Operation{ 1740 Name: opGetLicense, 1741 HTTPMethod: "POST", 1742 HTTPPath: "/", 1743 } 1744 1745 if input == nil { 1746 input = &GetLicenseInput{} 1747 } 1748 1749 output = &GetLicenseOutput{} 1750 req = c.newRequest(op, input, output) 1751 return 1752} 1753 1754// GetLicense API operation for AWS License Manager. 1755// 1756// Gets detailed information about the specified license. 1757// 1758// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1759// with awserr.Error's Code and Message methods to get detailed information about 1760// the error. 1761// 1762// See the AWS API reference guide for AWS License Manager's 1763// API operation GetLicense for usage and error information. 1764// 1765// Returned Error Types: 1766// * ValidationException 1767// The provided input is not valid. Try your request again. 1768// 1769// * InvalidParameterValueException 1770// One or more parameter values are not valid. 1771// 1772// * AuthorizationException 1773// The AWS user account does not have permission to perform the action. Check 1774// the IAM policy associated with this account. 1775// 1776// * AccessDeniedException 1777// Access to resource denied. 1778// 1779// * RateLimitExceededException 1780// Too many requests have been submitted. Try again after a brief wait. 1781// 1782// * ServerInternalException 1783// The server experienced an internal error. Try again. 1784// 1785// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicense 1786func (c *LicenseManager) GetLicense(input *GetLicenseInput) (*GetLicenseOutput, error) { 1787 req, out := c.GetLicenseRequest(input) 1788 return out, req.Send() 1789} 1790 1791// GetLicenseWithContext is the same as GetLicense with the addition of 1792// the ability to pass a context and additional request options. 1793// 1794// See GetLicense for details on how to use this API operation. 1795// 1796// The context must be non-nil and will be used for request cancellation. If 1797// the context is nil a panic will occur. In the future the SDK may create 1798// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1799// for more information on using Contexts. 1800func (c *LicenseManager) GetLicenseWithContext(ctx aws.Context, input *GetLicenseInput, opts ...request.Option) (*GetLicenseOutput, error) { 1801 req, out := c.GetLicenseRequest(input) 1802 req.SetContext(ctx) 1803 req.ApplyOptions(opts...) 1804 return out, req.Send() 1805} 1806 1807const opGetLicenseConfiguration = "GetLicenseConfiguration" 1808 1809// GetLicenseConfigurationRequest generates a "aws/request.Request" representing the 1810// client's request for the GetLicenseConfiguration operation. The "output" return 1811// value will be populated with the request's response once the request completes 1812// successfully. 1813// 1814// Use "Send" method on the returned Request to send the API call to the service. 1815// the "output" return value is not valid until after Send returns without error. 1816// 1817// See GetLicenseConfiguration for more information on using the GetLicenseConfiguration 1818// API call, and error handling. 1819// 1820// This method is useful when you want to inject custom logic or configuration 1821// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1822// 1823// 1824// // Example sending a request using the GetLicenseConfigurationRequest method. 1825// req, resp := client.GetLicenseConfigurationRequest(params) 1826// 1827// err := req.Send() 1828// if err == nil { // resp is now filled 1829// fmt.Println(resp) 1830// } 1831// 1832// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration 1833func (c *LicenseManager) GetLicenseConfigurationRequest(input *GetLicenseConfigurationInput) (req *request.Request, output *GetLicenseConfigurationOutput) { 1834 op := &request.Operation{ 1835 Name: opGetLicenseConfiguration, 1836 HTTPMethod: "POST", 1837 HTTPPath: "/", 1838 } 1839 1840 if input == nil { 1841 input = &GetLicenseConfigurationInput{} 1842 } 1843 1844 output = &GetLicenseConfigurationOutput{} 1845 req = c.newRequest(op, input, output) 1846 return 1847} 1848 1849// GetLicenseConfiguration API operation for AWS License Manager. 1850// 1851// Gets detailed information about the specified license configuration. 1852// 1853// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1854// with awserr.Error's Code and Message methods to get detailed information about 1855// the error. 1856// 1857// See the AWS API reference guide for AWS License Manager's 1858// API operation GetLicenseConfiguration for usage and error information. 1859// 1860// Returned Error Types: 1861// * InvalidParameterValueException 1862// One or more parameter values are not valid. 1863// 1864// * ServerInternalException 1865// The server experienced an internal error. Try again. 1866// 1867// * AuthorizationException 1868// The AWS user account does not have permission to perform the action. Check 1869// the IAM policy associated with this account. 1870// 1871// * AccessDeniedException 1872// Access to resource denied. 1873// 1874// * RateLimitExceededException 1875// Too many requests have been submitted. Try again after a brief wait. 1876// 1877// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration 1878func (c *LicenseManager) GetLicenseConfiguration(input *GetLicenseConfigurationInput) (*GetLicenseConfigurationOutput, error) { 1879 req, out := c.GetLicenseConfigurationRequest(input) 1880 return out, req.Send() 1881} 1882 1883// GetLicenseConfigurationWithContext is the same as GetLicenseConfiguration with the addition of 1884// the ability to pass a context and additional request options. 1885// 1886// See GetLicenseConfiguration for details on how to use this API operation. 1887// 1888// The context must be non-nil and will be used for request cancellation. If 1889// the context is nil a panic will occur. In the future the SDK may create 1890// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1891// for more information on using Contexts. 1892func (c *LicenseManager) GetLicenseConfigurationWithContext(ctx aws.Context, input *GetLicenseConfigurationInput, opts ...request.Option) (*GetLicenseConfigurationOutput, error) { 1893 req, out := c.GetLicenseConfigurationRequest(input) 1894 req.SetContext(ctx) 1895 req.ApplyOptions(opts...) 1896 return out, req.Send() 1897} 1898 1899const opGetLicenseUsage = "GetLicenseUsage" 1900 1901// GetLicenseUsageRequest generates a "aws/request.Request" representing the 1902// client's request for the GetLicenseUsage operation. The "output" return 1903// value will be populated with the request's response once the request completes 1904// successfully. 1905// 1906// Use "Send" method on the returned Request to send the API call to the service. 1907// the "output" return value is not valid until after Send returns without error. 1908// 1909// See GetLicenseUsage for more information on using the GetLicenseUsage 1910// API call, and error handling. 1911// 1912// This method is useful when you want to inject custom logic or configuration 1913// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1914// 1915// 1916// // Example sending a request using the GetLicenseUsageRequest method. 1917// req, resp := client.GetLicenseUsageRequest(params) 1918// 1919// err := req.Send() 1920// if err == nil { // resp is now filled 1921// fmt.Println(resp) 1922// } 1923// 1924// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseUsage 1925func (c *LicenseManager) GetLicenseUsageRequest(input *GetLicenseUsageInput) (req *request.Request, output *GetLicenseUsageOutput) { 1926 op := &request.Operation{ 1927 Name: opGetLicenseUsage, 1928 HTTPMethod: "POST", 1929 HTTPPath: "/", 1930 } 1931 1932 if input == nil { 1933 input = &GetLicenseUsageInput{} 1934 } 1935 1936 output = &GetLicenseUsageOutput{} 1937 req = c.newRequest(op, input, output) 1938 return 1939} 1940 1941// GetLicenseUsage API operation for AWS License Manager. 1942// 1943// Gets detailed information about the usage of the specified license. 1944// 1945// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1946// with awserr.Error's Code and Message methods to get detailed information about 1947// the error. 1948// 1949// See the AWS API reference guide for AWS License Manager's 1950// API operation GetLicenseUsage for usage and error information. 1951// 1952// Returned Error Types: 1953// * ValidationException 1954// The provided input is not valid. Try your request again. 1955// 1956// * InvalidParameterValueException 1957// One or more parameter values are not valid. 1958// 1959// * AuthorizationException 1960// The AWS user account does not have permission to perform the action. Check 1961// the IAM policy associated with this account. 1962// 1963// * AccessDeniedException 1964// Access to resource denied. 1965// 1966// * RateLimitExceededException 1967// Too many requests have been submitted. Try again after a brief wait. 1968// 1969// * ServerInternalException 1970// The server experienced an internal error. Try again. 1971// 1972// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseUsage 1973func (c *LicenseManager) GetLicenseUsage(input *GetLicenseUsageInput) (*GetLicenseUsageOutput, error) { 1974 req, out := c.GetLicenseUsageRequest(input) 1975 return out, req.Send() 1976} 1977 1978// GetLicenseUsageWithContext is the same as GetLicenseUsage with the addition of 1979// the ability to pass a context and additional request options. 1980// 1981// See GetLicenseUsage for details on how to use this API operation. 1982// 1983// The context must be non-nil and will be used for request cancellation. If 1984// the context is nil a panic will occur. In the future the SDK may create 1985// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1986// for more information on using Contexts. 1987func (c *LicenseManager) GetLicenseUsageWithContext(ctx aws.Context, input *GetLicenseUsageInput, opts ...request.Option) (*GetLicenseUsageOutput, error) { 1988 req, out := c.GetLicenseUsageRequest(input) 1989 req.SetContext(ctx) 1990 req.ApplyOptions(opts...) 1991 return out, req.Send() 1992} 1993 1994const opGetServiceSettings = "GetServiceSettings" 1995 1996// GetServiceSettingsRequest generates a "aws/request.Request" representing the 1997// client's request for the GetServiceSettings operation. The "output" return 1998// value will be populated with the request's response once the request completes 1999// successfully. 2000// 2001// Use "Send" method on the returned Request to send the API call to the service. 2002// the "output" return value is not valid until after Send returns without error. 2003// 2004// See GetServiceSettings for more information on using the GetServiceSettings 2005// API call, and error handling. 2006// 2007// This method is useful when you want to inject custom logic or configuration 2008// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2009// 2010// 2011// // Example sending a request using the GetServiceSettingsRequest method. 2012// req, resp := client.GetServiceSettingsRequest(params) 2013// 2014// err := req.Send() 2015// if err == nil { // resp is now filled 2016// fmt.Println(resp) 2017// } 2018// 2019// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings 2020func (c *LicenseManager) GetServiceSettingsRequest(input *GetServiceSettingsInput) (req *request.Request, output *GetServiceSettingsOutput) { 2021 op := &request.Operation{ 2022 Name: opGetServiceSettings, 2023 HTTPMethod: "POST", 2024 HTTPPath: "/", 2025 } 2026 2027 if input == nil { 2028 input = &GetServiceSettingsInput{} 2029 } 2030 2031 output = &GetServiceSettingsOutput{} 2032 req = c.newRequest(op, input, output) 2033 return 2034} 2035 2036// GetServiceSettings API operation for AWS License Manager. 2037// 2038// Gets the License Manager settings for the current Region. 2039// 2040// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2041// with awserr.Error's Code and Message methods to get detailed information about 2042// the error. 2043// 2044// See the AWS API reference guide for AWS License Manager's 2045// API operation GetServiceSettings for usage and error information. 2046// 2047// Returned Error Types: 2048// * ServerInternalException 2049// The server experienced an internal error. Try again. 2050// 2051// * AuthorizationException 2052// The AWS user account does not have permission to perform the action. Check 2053// the IAM policy associated with this account. 2054// 2055// * AccessDeniedException 2056// Access to resource denied. 2057// 2058// * RateLimitExceededException 2059// Too many requests have been submitted. Try again after a brief wait. 2060// 2061// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings 2062func (c *LicenseManager) GetServiceSettings(input *GetServiceSettingsInput) (*GetServiceSettingsOutput, error) { 2063 req, out := c.GetServiceSettingsRequest(input) 2064 return out, req.Send() 2065} 2066 2067// GetServiceSettingsWithContext is the same as GetServiceSettings with the addition of 2068// the ability to pass a context and additional request options. 2069// 2070// See GetServiceSettings for details on how to use this API operation. 2071// 2072// The context must be non-nil and will be used for request cancellation. If 2073// the context is nil a panic will occur. In the future the SDK may create 2074// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2075// for more information on using Contexts. 2076func (c *LicenseManager) GetServiceSettingsWithContext(ctx aws.Context, input *GetServiceSettingsInput, opts ...request.Option) (*GetServiceSettingsOutput, error) { 2077 req, out := c.GetServiceSettingsRequest(input) 2078 req.SetContext(ctx) 2079 req.ApplyOptions(opts...) 2080 return out, req.Send() 2081} 2082 2083const opListAssociationsForLicenseConfiguration = "ListAssociationsForLicenseConfiguration" 2084 2085// ListAssociationsForLicenseConfigurationRequest generates a "aws/request.Request" representing the 2086// client's request for the ListAssociationsForLicenseConfiguration operation. The "output" return 2087// value will be populated with the request's response once the request completes 2088// successfully. 2089// 2090// Use "Send" method on the returned Request to send the API call to the service. 2091// the "output" return value is not valid until after Send returns without error. 2092// 2093// See ListAssociationsForLicenseConfiguration for more information on using the ListAssociationsForLicenseConfiguration 2094// API call, and error handling. 2095// 2096// This method is useful when you want to inject custom logic or configuration 2097// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2098// 2099// 2100// // Example sending a request using the ListAssociationsForLicenseConfigurationRequest method. 2101// req, resp := client.ListAssociationsForLicenseConfigurationRequest(params) 2102// 2103// err := req.Send() 2104// if err == nil { // resp is now filled 2105// fmt.Println(resp) 2106// } 2107// 2108// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration 2109func (c *LicenseManager) ListAssociationsForLicenseConfigurationRequest(input *ListAssociationsForLicenseConfigurationInput) (req *request.Request, output *ListAssociationsForLicenseConfigurationOutput) { 2110 op := &request.Operation{ 2111 Name: opListAssociationsForLicenseConfiguration, 2112 HTTPMethod: "POST", 2113 HTTPPath: "/", 2114 } 2115 2116 if input == nil { 2117 input = &ListAssociationsForLicenseConfigurationInput{} 2118 } 2119 2120 output = &ListAssociationsForLicenseConfigurationOutput{} 2121 req = c.newRequest(op, input, output) 2122 return 2123} 2124 2125// ListAssociationsForLicenseConfiguration API operation for AWS License Manager. 2126// 2127// Lists the resource associations for the specified license configuration. 2128// 2129// Resource associations need not consume licenses from a license configuration. 2130// For example, an AMI or a stopped instance might not consume a license (depending 2131// on the license rules). 2132// 2133// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2134// with awserr.Error's Code and Message methods to get detailed information about 2135// the error. 2136// 2137// See the AWS API reference guide for AWS License Manager's 2138// API operation ListAssociationsForLicenseConfiguration for usage and error information. 2139// 2140// Returned Error Types: 2141// * InvalidParameterValueException 2142// One or more parameter values are not valid. 2143// 2144// * FilterLimitExceededException 2145// The request uses too many filters or too many filter values. 2146// 2147// * ServerInternalException 2148// The server experienced an internal error. Try again. 2149// 2150// * AuthorizationException 2151// The AWS user account does not have permission to perform the action. Check 2152// the IAM policy associated with this account. 2153// 2154// * AccessDeniedException 2155// Access to resource denied. 2156// 2157// * RateLimitExceededException 2158// Too many requests have been submitted. Try again after a brief wait. 2159// 2160// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration 2161func (c *LicenseManager) ListAssociationsForLicenseConfiguration(input *ListAssociationsForLicenseConfigurationInput) (*ListAssociationsForLicenseConfigurationOutput, error) { 2162 req, out := c.ListAssociationsForLicenseConfigurationRequest(input) 2163 return out, req.Send() 2164} 2165 2166// ListAssociationsForLicenseConfigurationWithContext is the same as ListAssociationsForLicenseConfiguration with the addition of 2167// the ability to pass a context and additional request options. 2168// 2169// See ListAssociationsForLicenseConfiguration for details on how to use this API operation. 2170// 2171// The context must be non-nil and will be used for request cancellation. If 2172// the context is nil a panic will occur. In the future the SDK may create 2173// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2174// for more information on using Contexts. 2175func (c *LicenseManager) ListAssociationsForLicenseConfigurationWithContext(ctx aws.Context, input *ListAssociationsForLicenseConfigurationInput, opts ...request.Option) (*ListAssociationsForLicenseConfigurationOutput, error) { 2176 req, out := c.ListAssociationsForLicenseConfigurationRequest(input) 2177 req.SetContext(ctx) 2178 req.ApplyOptions(opts...) 2179 return out, req.Send() 2180} 2181 2182const opListDistributedGrants = "ListDistributedGrants" 2183 2184// ListDistributedGrantsRequest generates a "aws/request.Request" representing the 2185// client's request for the ListDistributedGrants operation. The "output" return 2186// value will be populated with the request's response once the request completes 2187// successfully. 2188// 2189// Use "Send" method on the returned Request to send the API call to the service. 2190// the "output" return value is not valid until after Send returns without error. 2191// 2192// See ListDistributedGrants for more information on using the ListDistributedGrants 2193// API call, and error handling. 2194// 2195// This method is useful when you want to inject custom logic or configuration 2196// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2197// 2198// 2199// // Example sending a request using the ListDistributedGrantsRequest method. 2200// req, resp := client.ListDistributedGrantsRequest(params) 2201// 2202// err := req.Send() 2203// if err == nil { // resp is now filled 2204// fmt.Println(resp) 2205// } 2206// 2207// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListDistributedGrants 2208func (c *LicenseManager) ListDistributedGrantsRequest(input *ListDistributedGrantsInput) (req *request.Request, output *ListDistributedGrantsOutput) { 2209 op := &request.Operation{ 2210 Name: opListDistributedGrants, 2211 HTTPMethod: "POST", 2212 HTTPPath: "/", 2213 } 2214 2215 if input == nil { 2216 input = &ListDistributedGrantsInput{} 2217 } 2218 2219 output = &ListDistributedGrantsOutput{} 2220 req = c.newRequest(op, input, output) 2221 return 2222} 2223 2224// ListDistributedGrants API operation for AWS License Manager. 2225// 2226// Lists the grants distributed for the specified license. 2227// 2228// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2229// with awserr.Error's Code and Message methods to get detailed information about 2230// the error. 2231// 2232// See the AWS API reference guide for AWS License Manager's 2233// API operation ListDistributedGrants for usage and error information. 2234// 2235// Returned Error Types: 2236// * ValidationException 2237// The provided input is not valid. Try your request again. 2238// 2239// * InvalidParameterValueException 2240// One or more parameter values are not valid. 2241// 2242// * ResourceLimitExceededException 2243// Your resource limits have been exceeded. 2244// 2245// * ServerInternalException 2246// The server experienced an internal error. Try again. 2247// 2248// * AuthorizationException 2249// The AWS user account does not have permission to perform the action. Check 2250// the IAM policy associated with this account. 2251// 2252// * AccessDeniedException 2253// Access to resource denied. 2254// 2255// * RateLimitExceededException 2256// Too many requests have been submitted. Try again after a brief wait. 2257// 2258// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListDistributedGrants 2259func (c *LicenseManager) ListDistributedGrants(input *ListDistributedGrantsInput) (*ListDistributedGrantsOutput, error) { 2260 req, out := c.ListDistributedGrantsRequest(input) 2261 return out, req.Send() 2262} 2263 2264// ListDistributedGrantsWithContext is the same as ListDistributedGrants with the addition of 2265// the ability to pass a context and additional request options. 2266// 2267// See ListDistributedGrants for details on how to use this API operation. 2268// 2269// The context must be non-nil and will be used for request cancellation. If 2270// the context is nil a panic will occur. In the future the SDK may create 2271// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2272// for more information on using Contexts. 2273func (c *LicenseManager) ListDistributedGrantsWithContext(ctx aws.Context, input *ListDistributedGrantsInput, opts ...request.Option) (*ListDistributedGrantsOutput, error) { 2274 req, out := c.ListDistributedGrantsRequest(input) 2275 req.SetContext(ctx) 2276 req.ApplyOptions(opts...) 2277 return out, req.Send() 2278} 2279 2280const opListFailuresForLicenseConfigurationOperations = "ListFailuresForLicenseConfigurationOperations" 2281 2282// ListFailuresForLicenseConfigurationOperationsRequest generates a "aws/request.Request" representing the 2283// client's request for the ListFailuresForLicenseConfigurationOperations operation. The "output" return 2284// value will be populated with the request's response once the request completes 2285// successfully. 2286// 2287// Use "Send" method on the returned Request to send the API call to the service. 2288// the "output" return value is not valid until after Send returns without error. 2289// 2290// See ListFailuresForLicenseConfigurationOperations for more information on using the ListFailuresForLicenseConfigurationOperations 2291// API call, and error handling. 2292// 2293// This method is useful when you want to inject custom logic or configuration 2294// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2295// 2296// 2297// // Example sending a request using the ListFailuresForLicenseConfigurationOperationsRequest method. 2298// req, resp := client.ListFailuresForLicenseConfigurationOperationsRequest(params) 2299// 2300// err := req.Send() 2301// if err == nil { // resp is now filled 2302// fmt.Println(resp) 2303// } 2304// 2305// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListFailuresForLicenseConfigurationOperations 2306func (c *LicenseManager) ListFailuresForLicenseConfigurationOperationsRequest(input *ListFailuresForLicenseConfigurationOperationsInput) (req *request.Request, output *ListFailuresForLicenseConfigurationOperationsOutput) { 2307 op := &request.Operation{ 2308 Name: opListFailuresForLicenseConfigurationOperations, 2309 HTTPMethod: "POST", 2310 HTTPPath: "/", 2311 } 2312 2313 if input == nil { 2314 input = &ListFailuresForLicenseConfigurationOperationsInput{} 2315 } 2316 2317 output = &ListFailuresForLicenseConfigurationOperationsOutput{} 2318 req = c.newRequest(op, input, output) 2319 return 2320} 2321 2322// ListFailuresForLicenseConfigurationOperations API operation for AWS License Manager. 2323// 2324// Lists the license configuration operations that failed. 2325// 2326// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2327// with awserr.Error's Code and Message methods to get detailed information about 2328// the error. 2329// 2330// See the AWS API reference guide for AWS License Manager's 2331// API operation ListFailuresForLicenseConfigurationOperations for usage and error information. 2332// 2333// Returned Error Types: 2334// * InvalidParameterValueException 2335// One or more parameter values are not valid. 2336// 2337// * ServerInternalException 2338// The server experienced an internal error. Try again. 2339// 2340// * AuthorizationException 2341// The AWS user account does not have permission to perform the action. Check 2342// the IAM policy associated with this account. 2343// 2344// * AccessDeniedException 2345// Access to resource denied. 2346// 2347// * RateLimitExceededException 2348// Too many requests have been submitted. Try again after a brief wait. 2349// 2350// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListFailuresForLicenseConfigurationOperations 2351func (c *LicenseManager) ListFailuresForLicenseConfigurationOperations(input *ListFailuresForLicenseConfigurationOperationsInput) (*ListFailuresForLicenseConfigurationOperationsOutput, error) { 2352 req, out := c.ListFailuresForLicenseConfigurationOperationsRequest(input) 2353 return out, req.Send() 2354} 2355 2356// ListFailuresForLicenseConfigurationOperationsWithContext is the same as ListFailuresForLicenseConfigurationOperations with the addition of 2357// the ability to pass a context and additional request options. 2358// 2359// See ListFailuresForLicenseConfigurationOperations for details on how to use this API operation. 2360// 2361// The context must be non-nil and will be used for request cancellation. If 2362// the context is nil a panic will occur. In the future the SDK may create 2363// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2364// for more information on using Contexts. 2365func (c *LicenseManager) ListFailuresForLicenseConfigurationOperationsWithContext(ctx aws.Context, input *ListFailuresForLicenseConfigurationOperationsInput, opts ...request.Option) (*ListFailuresForLicenseConfigurationOperationsOutput, error) { 2366 req, out := c.ListFailuresForLicenseConfigurationOperationsRequest(input) 2367 req.SetContext(ctx) 2368 req.ApplyOptions(opts...) 2369 return out, req.Send() 2370} 2371 2372const opListLicenseConfigurations = "ListLicenseConfigurations" 2373 2374// ListLicenseConfigurationsRequest generates a "aws/request.Request" representing the 2375// client's request for the ListLicenseConfigurations operation. The "output" return 2376// value will be populated with the request's response once the request completes 2377// successfully. 2378// 2379// Use "Send" method on the returned Request to send the API call to the service. 2380// the "output" return value is not valid until after Send returns without error. 2381// 2382// See ListLicenseConfigurations for more information on using the ListLicenseConfigurations 2383// API call, and error handling. 2384// 2385// This method is useful when you want to inject custom logic or configuration 2386// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2387// 2388// 2389// // Example sending a request using the ListLicenseConfigurationsRequest method. 2390// req, resp := client.ListLicenseConfigurationsRequest(params) 2391// 2392// err := req.Send() 2393// if err == nil { // resp is now filled 2394// fmt.Println(resp) 2395// } 2396// 2397// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseConfigurations 2398func (c *LicenseManager) ListLicenseConfigurationsRequest(input *ListLicenseConfigurationsInput) (req *request.Request, output *ListLicenseConfigurationsOutput) { 2399 op := &request.Operation{ 2400 Name: opListLicenseConfigurations, 2401 HTTPMethod: "POST", 2402 HTTPPath: "/", 2403 } 2404 2405 if input == nil { 2406 input = &ListLicenseConfigurationsInput{} 2407 } 2408 2409 output = &ListLicenseConfigurationsOutput{} 2410 req = c.newRequest(op, input, output) 2411 return 2412} 2413 2414// ListLicenseConfigurations API operation for AWS License Manager. 2415// 2416// Lists the license configurations for your account. 2417// 2418// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2419// with awserr.Error's Code and Message methods to get detailed information about 2420// the error. 2421// 2422// See the AWS API reference guide for AWS License Manager's 2423// API operation ListLicenseConfigurations for usage and error information. 2424// 2425// Returned Error Types: 2426// * InvalidParameterValueException 2427// One or more parameter values are not valid. 2428// 2429// * ServerInternalException 2430// The server experienced an internal error. Try again. 2431// 2432// * FilterLimitExceededException 2433// The request uses too many filters or too many filter values. 2434// 2435// * AuthorizationException 2436// The AWS user account does not have permission to perform the action. Check 2437// the IAM policy associated with this account. 2438// 2439// * AccessDeniedException 2440// Access to resource denied. 2441// 2442// * RateLimitExceededException 2443// Too many requests have been submitted. Try again after a brief wait. 2444// 2445// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseConfigurations 2446func (c *LicenseManager) ListLicenseConfigurations(input *ListLicenseConfigurationsInput) (*ListLicenseConfigurationsOutput, error) { 2447 req, out := c.ListLicenseConfigurationsRequest(input) 2448 return out, req.Send() 2449} 2450 2451// ListLicenseConfigurationsWithContext is the same as ListLicenseConfigurations with the addition of 2452// the ability to pass a context and additional request options. 2453// 2454// See ListLicenseConfigurations for details on how to use this API operation. 2455// 2456// The context must be non-nil and will be used for request cancellation. If 2457// the context is nil a panic will occur. In the future the SDK may create 2458// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2459// for more information on using Contexts. 2460func (c *LicenseManager) ListLicenseConfigurationsWithContext(ctx aws.Context, input *ListLicenseConfigurationsInput, opts ...request.Option) (*ListLicenseConfigurationsOutput, error) { 2461 req, out := c.ListLicenseConfigurationsRequest(input) 2462 req.SetContext(ctx) 2463 req.ApplyOptions(opts...) 2464 return out, req.Send() 2465} 2466 2467const opListLicenseSpecificationsForResource = "ListLicenseSpecificationsForResource" 2468 2469// ListLicenseSpecificationsForResourceRequest generates a "aws/request.Request" representing the 2470// client's request for the ListLicenseSpecificationsForResource operation. The "output" return 2471// value will be populated with the request's response once the request completes 2472// successfully. 2473// 2474// Use "Send" method on the returned Request to send the API call to the service. 2475// the "output" return value is not valid until after Send returns without error. 2476// 2477// See ListLicenseSpecificationsForResource for more information on using the ListLicenseSpecificationsForResource 2478// API call, and error handling. 2479// 2480// This method is useful when you want to inject custom logic or configuration 2481// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2482// 2483// 2484// // Example sending a request using the ListLicenseSpecificationsForResourceRequest method. 2485// req, resp := client.ListLicenseSpecificationsForResourceRequest(params) 2486// 2487// err := req.Send() 2488// if err == nil { // resp is now filled 2489// fmt.Println(resp) 2490// } 2491// 2492// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource 2493func (c *LicenseManager) ListLicenseSpecificationsForResourceRequest(input *ListLicenseSpecificationsForResourceInput) (req *request.Request, output *ListLicenseSpecificationsForResourceOutput) { 2494 op := &request.Operation{ 2495 Name: opListLicenseSpecificationsForResource, 2496 HTTPMethod: "POST", 2497 HTTPPath: "/", 2498 } 2499 2500 if input == nil { 2501 input = &ListLicenseSpecificationsForResourceInput{} 2502 } 2503 2504 output = &ListLicenseSpecificationsForResourceOutput{} 2505 req = c.newRequest(op, input, output) 2506 return 2507} 2508 2509// ListLicenseSpecificationsForResource API operation for AWS License Manager. 2510// 2511// Describes the license configurations for the specified resource. 2512// 2513// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2514// with awserr.Error's Code and Message methods to get detailed information about 2515// the error. 2516// 2517// See the AWS API reference guide for AWS License Manager's 2518// API operation ListLicenseSpecificationsForResource for usage and error information. 2519// 2520// Returned Error Types: 2521// * InvalidParameterValueException 2522// One or more parameter values are not valid. 2523// 2524// * ServerInternalException 2525// The server experienced an internal error. Try again. 2526// 2527// * AuthorizationException 2528// The AWS user account does not have permission to perform the action. Check 2529// the IAM policy associated with this account. 2530// 2531// * AccessDeniedException 2532// Access to resource denied. 2533// 2534// * RateLimitExceededException 2535// Too many requests have been submitted. Try again after a brief wait. 2536// 2537// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource 2538func (c *LicenseManager) ListLicenseSpecificationsForResource(input *ListLicenseSpecificationsForResourceInput) (*ListLicenseSpecificationsForResourceOutput, error) { 2539 req, out := c.ListLicenseSpecificationsForResourceRequest(input) 2540 return out, req.Send() 2541} 2542 2543// ListLicenseSpecificationsForResourceWithContext is the same as ListLicenseSpecificationsForResource with the addition of 2544// the ability to pass a context and additional request options. 2545// 2546// See ListLicenseSpecificationsForResource for details on how to use this API operation. 2547// 2548// The context must be non-nil and will be used for request cancellation. If 2549// the context is nil a panic will occur. In the future the SDK may create 2550// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2551// for more information on using Contexts. 2552func (c *LicenseManager) ListLicenseSpecificationsForResourceWithContext(ctx aws.Context, input *ListLicenseSpecificationsForResourceInput, opts ...request.Option) (*ListLicenseSpecificationsForResourceOutput, error) { 2553 req, out := c.ListLicenseSpecificationsForResourceRequest(input) 2554 req.SetContext(ctx) 2555 req.ApplyOptions(opts...) 2556 return out, req.Send() 2557} 2558 2559const opListLicenseVersions = "ListLicenseVersions" 2560 2561// ListLicenseVersionsRequest generates a "aws/request.Request" representing the 2562// client's request for the ListLicenseVersions operation. The "output" return 2563// value will be populated with the request's response once the request completes 2564// successfully. 2565// 2566// Use "Send" method on the returned Request to send the API call to the service. 2567// the "output" return value is not valid until after Send returns without error. 2568// 2569// See ListLicenseVersions for more information on using the ListLicenseVersions 2570// API call, and error handling. 2571// 2572// This method is useful when you want to inject custom logic or configuration 2573// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2574// 2575// 2576// // Example sending a request using the ListLicenseVersionsRequest method. 2577// req, resp := client.ListLicenseVersionsRequest(params) 2578// 2579// err := req.Send() 2580// if err == nil { // resp is now filled 2581// fmt.Println(resp) 2582// } 2583// 2584// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseVersions 2585func (c *LicenseManager) ListLicenseVersionsRequest(input *ListLicenseVersionsInput) (req *request.Request, output *ListLicenseVersionsOutput) { 2586 op := &request.Operation{ 2587 Name: opListLicenseVersions, 2588 HTTPMethod: "POST", 2589 HTTPPath: "/", 2590 } 2591 2592 if input == nil { 2593 input = &ListLicenseVersionsInput{} 2594 } 2595 2596 output = &ListLicenseVersionsOutput{} 2597 req = c.newRequest(op, input, output) 2598 return 2599} 2600 2601// ListLicenseVersions API operation for AWS License Manager. 2602// 2603// Lists all versions of the specified license. 2604// 2605// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2606// with awserr.Error's Code and Message methods to get detailed information about 2607// the error. 2608// 2609// See the AWS API reference guide for AWS License Manager's 2610// API operation ListLicenseVersions for usage and error information. 2611// 2612// Returned Error Types: 2613// * InvalidParameterValueException 2614// One or more parameter values are not valid. 2615// 2616// * AuthorizationException 2617// The AWS user account does not have permission to perform the action. Check 2618// the IAM policy associated with this account. 2619// 2620// * AccessDeniedException 2621// Access to resource denied. 2622// 2623// * RateLimitExceededException 2624// Too many requests have been submitted. Try again after a brief wait. 2625// 2626// * ServerInternalException 2627// The server experienced an internal error. Try again. 2628// 2629// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseVersions 2630func (c *LicenseManager) ListLicenseVersions(input *ListLicenseVersionsInput) (*ListLicenseVersionsOutput, error) { 2631 req, out := c.ListLicenseVersionsRequest(input) 2632 return out, req.Send() 2633} 2634 2635// ListLicenseVersionsWithContext is the same as ListLicenseVersions with the addition of 2636// the ability to pass a context and additional request options. 2637// 2638// See ListLicenseVersions for details on how to use this API operation. 2639// 2640// The context must be non-nil and will be used for request cancellation. If 2641// the context is nil a panic will occur. In the future the SDK may create 2642// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2643// for more information on using Contexts. 2644func (c *LicenseManager) ListLicenseVersionsWithContext(ctx aws.Context, input *ListLicenseVersionsInput, opts ...request.Option) (*ListLicenseVersionsOutput, error) { 2645 req, out := c.ListLicenseVersionsRequest(input) 2646 req.SetContext(ctx) 2647 req.ApplyOptions(opts...) 2648 return out, req.Send() 2649} 2650 2651const opListLicenses = "ListLicenses" 2652 2653// ListLicensesRequest generates a "aws/request.Request" representing the 2654// client's request for the ListLicenses operation. The "output" return 2655// value will be populated with the request's response once the request completes 2656// successfully. 2657// 2658// Use "Send" method on the returned Request to send the API call to the service. 2659// the "output" return value is not valid until after Send returns without error. 2660// 2661// See ListLicenses for more information on using the ListLicenses 2662// API call, and error handling. 2663// 2664// This method is useful when you want to inject custom logic or configuration 2665// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2666// 2667// 2668// // Example sending a request using the ListLicensesRequest method. 2669// req, resp := client.ListLicensesRequest(params) 2670// 2671// err := req.Send() 2672// if err == nil { // resp is now filled 2673// fmt.Println(resp) 2674// } 2675// 2676// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenses 2677func (c *LicenseManager) ListLicensesRequest(input *ListLicensesInput) (req *request.Request, output *ListLicensesOutput) { 2678 op := &request.Operation{ 2679 Name: opListLicenses, 2680 HTTPMethod: "POST", 2681 HTTPPath: "/", 2682 } 2683 2684 if input == nil { 2685 input = &ListLicensesInput{} 2686 } 2687 2688 output = &ListLicensesOutput{} 2689 req = c.newRequest(op, input, output) 2690 return 2691} 2692 2693// ListLicenses API operation for AWS License Manager. 2694// 2695// Lists the licenses for your account. 2696// 2697// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2698// with awserr.Error's Code and Message methods to get detailed information about 2699// the error. 2700// 2701// See the AWS API reference guide for AWS License Manager's 2702// API operation ListLicenses for usage and error information. 2703// 2704// Returned Error Types: 2705// * ValidationException 2706// The provided input is not valid. Try your request again. 2707// 2708// * InvalidParameterValueException 2709// One or more parameter values are not valid. 2710// 2711// * AuthorizationException 2712// The AWS user account does not have permission to perform the action. Check 2713// the IAM policy associated with this account. 2714// 2715// * AccessDeniedException 2716// Access to resource denied. 2717// 2718// * RateLimitExceededException 2719// Too many requests have been submitted. Try again after a brief wait. 2720// 2721// * ServerInternalException 2722// The server experienced an internal error. Try again. 2723// 2724// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenses 2725func (c *LicenseManager) ListLicenses(input *ListLicensesInput) (*ListLicensesOutput, error) { 2726 req, out := c.ListLicensesRequest(input) 2727 return out, req.Send() 2728} 2729 2730// ListLicensesWithContext is the same as ListLicenses with the addition of 2731// the ability to pass a context and additional request options. 2732// 2733// See ListLicenses for details on how to use this API operation. 2734// 2735// The context must be non-nil and will be used for request cancellation. If 2736// the context is nil a panic will occur. In the future the SDK may create 2737// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2738// for more information on using Contexts. 2739func (c *LicenseManager) ListLicensesWithContext(ctx aws.Context, input *ListLicensesInput, opts ...request.Option) (*ListLicensesOutput, error) { 2740 req, out := c.ListLicensesRequest(input) 2741 req.SetContext(ctx) 2742 req.ApplyOptions(opts...) 2743 return out, req.Send() 2744} 2745 2746const opListReceivedGrants = "ListReceivedGrants" 2747 2748// ListReceivedGrantsRequest generates a "aws/request.Request" representing the 2749// client's request for the ListReceivedGrants operation. The "output" return 2750// value will be populated with the request's response once the request completes 2751// successfully. 2752// 2753// Use "Send" method on the returned Request to send the API call to the service. 2754// the "output" return value is not valid until after Send returns without error. 2755// 2756// See ListReceivedGrants for more information on using the ListReceivedGrants 2757// API call, and error handling. 2758// 2759// This method is useful when you want to inject custom logic or configuration 2760// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2761// 2762// 2763// // Example sending a request using the ListReceivedGrantsRequest method. 2764// req, resp := client.ListReceivedGrantsRequest(params) 2765// 2766// err := req.Send() 2767// if err == nil { // resp is now filled 2768// fmt.Println(resp) 2769// } 2770// 2771// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedGrants 2772func (c *LicenseManager) ListReceivedGrantsRequest(input *ListReceivedGrantsInput) (req *request.Request, output *ListReceivedGrantsOutput) { 2773 op := &request.Operation{ 2774 Name: opListReceivedGrants, 2775 HTTPMethod: "POST", 2776 HTTPPath: "/", 2777 } 2778 2779 if input == nil { 2780 input = &ListReceivedGrantsInput{} 2781 } 2782 2783 output = &ListReceivedGrantsOutput{} 2784 req = c.newRequest(op, input, output) 2785 return 2786} 2787 2788// ListReceivedGrants API operation for AWS License Manager. 2789// 2790// Lists grants that are received but not accepted. 2791// 2792// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2793// with awserr.Error's Code and Message methods to get detailed information about 2794// the error. 2795// 2796// See the AWS API reference guide for AWS License Manager's 2797// API operation ListReceivedGrants for usage and error information. 2798// 2799// Returned Error Types: 2800// * ValidationException 2801// The provided input is not valid. Try your request again. 2802// 2803// * InvalidParameterValueException 2804// One or more parameter values are not valid. 2805// 2806// * ResourceLimitExceededException 2807// Your resource limits have been exceeded. 2808// 2809// * ServerInternalException 2810// The server experienced an internal error. Try again. 2811// 2812// * AuthorizationException 2813// The AWS user account does not have permission to perform the action. Check 2814// the IAM policy associated with this account. 2815// 2816// * AccessDeniedException 2817// Access to resource denied. 2818// 2819// * RateLimitExceededException 2820// Too many requests have been submitted. Try again after a brief wait. 2821// 2822// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedGrants 2823func (c *LicenseManager) ListReceivedGrants(input *ListReceivedGrantsInput) (*ListReceivedGrantsOutput, error) { 2824 req, out := c.ListReceivedGrantsRequest(input) 2825 return out, req.Send() 2826} 2827 2828// ListReceivedGrantsWithContext is the same as ListReceivedGrants with the addition of 2829// the ability to pass a context and additional request options. 2830// 2831// See ListReceivedGrants for details on how to use this API operation. 2832// 2833// The context must be non-nil and will be used for request cancellation. If 2834// the context is nil a panic will occur. In the future the SDK may create 2835// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2836// for more information on using Contexts. 2837func (c *LicenseManager) ListReceivedGrantsWithContext(ctx aws.Context, input *ListReceivedGrantsInput, opts ...request.Option) (*ListReceivedGrantsOutput, error) { 2838 req, out := c.ListReceivedGrantsRequest(input) 2839 req.SetContext(ctx) 2840 req.ApplyOptions(opts...) 2841 return out, req.Send() 2842} 2843 2844const opListReceivedLicenses = "ListReceivedLicenses" 2845 2846// ListReceivedLicensesRequest generates a "aws/request.Request" representing the 2847// client's request for the ListReceivedLicenses operation. The "output" return 2848// value will be populated with the request's response once the request completes 2849// successfully. 2850// 2851// Use "Send" method on the returned Request to send the API call to the service. 2852// the "output" return value is not valid until after Send returns without error. 2853// 2854// See ListReceivedLicenses for more information on using the ListReceivedLicenses 2855// API call, and error handling. 2856// 2857// This method is useful when you want to inject custom logic or configuration 2858// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2859// 2860// 2861// // Example sending a request using the ListReceivedLicensesRequest method. 2862// req, resp := client.ListReceivedLicensesRequest(params) 2863// 2864// err := req.Send() 2865// if err == nil { // resp is now filled 2866// fmt.Println(resp) 2867// } 2868// 2869// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedLicenses 2870func (c *LicenseManager) ListReceivedLicensesRequest(input *ListReceivedLicensesInput) (req *request.Request, output *ListReceivedLicensesOutput) { 2871 op := &request.Operation{ 2872 Name: opListReceivedLicenses, 2873 HTTPMethod: "POST", 2874 HTTPPath: "/", 2875 } 2876 2877 if input == nil { 2878 input = &ListReceivedLicensesInput{} 2879 } 2880 2881 output = &ListReceivedLicensesOutput{} 2882 req = c.newRequest(op, input, output) 2883 return 2884} 2885 2886// ListReceivedLicenses API operation for AWS License Manager. 2887// 2888// Lists received licenses. 2889// 2890// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2891// with awserr.Error's Code and Message methods to get detailed information about 2892// the error. 2893// 2894// See the AWS API reference guide for AWS License Manager's 2895// API operation ListReceivedLicenses for usage and error information. 2896// 2897// Returned Error Types: 2898// * ValidationException 2899// The provided input is not valid. Try your request again. 2900// 2901// * InvalidParameterValueException 2902// One or more parameter values are not valid. 2903// 2904// * ResourceLimitExceededException 2905// Your resource limits have been exceeded. 2906// 2907// * ServerInternalException 2908// The server experienced an internal error. Try again. 2909// 2910// * AuthorizationException 2911// The AWS user account does not have permission to perform the action. Check 2912// the IAM policy associated with this account. 2913// 2914// * AccessDeniedException 2915// Access to resource denied. 2916// 2917// * RateLimitExceededException 2918// Too many requests have been submitted. Try again after a brief wait. 2919// 2920// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedLicenses 2921func (c *LicenseManager) ListReceivedLicenses(input *ListReceivedLicensesInput) (*ListReceivedLicensesOutput, error) { 2922 req, out := c.ListReceivedLicensesRequest(input) 2923 return out, req.Send() 2924} 2925 2926// ListReceivedLicensesWithContext is the same as ListReceivedLicenses with the addition of 2927// the ability to pass a context and additional request options. 2928// 2929// See ListReceivedLicenses for details on how to use this API operation. 2930// 2931// The context must be non-nil and will be used for request cancellation. If 2932// the context is nil a panic will occur. In the future the SDK may create 2933// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2934// for more information on using Contexts. 2935func (c *LicenseManager) ListReceivedLicensesWithContext(ctx aws.Context, input *ListReceivedLicensesInput, opts ...request.Option) (*ListReceivedLicensesOutput, error) { 2936 req, out := c.ListReceivedLicensesRequest(input) 2937 req.SetContext(ctx) 2938 req.ApplyOptions(opts...) 2939 return out, req.Send() 2940} 2941 2942const opListResourceInventory = "ListResourceInventory" 2943 2944// ListResourceInventoryRequest generates a "aws/request.Request" representing the 2945// client's request for the ListResourceInventory operation. The "output" return 2946// value will be populated with the request's response once the request completes 2947// successfully. 2948// 2949// Use "Send" method on the returned Request to send the API call to the service. 2950// the "output" return value is not valid until after Send returns without error. 2951// 2952// See ListResourceInventory for more information on using the ListResourceInventory 2953// API call, and error handling. 2954// 2955// This method is useful when you want to inject custom logic or configuration 2956// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2957// 2958// 2959// // Example sending a request using the ListResourceInventoryRequest method. 2960// req, resp := client.ListResourceInventoryRequest(params) 2961// 2962// err := req.Send() 2963// if err == nil { // resp is now filled 2964// fmt.Println(resp) 2965// } 2966// 2967// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListResourceInventory 2968func (c *LicenseManager) ListResourceInventoryRequest(input *ListResourceInventoryInput) (req *request.Request, output *ListResourceInventoryOutput) { 2969 op := &request.Operation{ 2970 Name: opListResourceInventory, 2971 HTTPMethod: "POST", 2972 HTTPPath: "/", 2973 } 2974 2975 if input == nil { 2976 input = &ListResourceInventoryInput{} 2977 } 2978 2979 output = &ListResourceInventoryOutput{} 2980 req = c.newRequest(op, input, output) 2981 return 2982} 2983 2984// ListResourceInventory API operation for AWS License Manager. 2985// 2986// Lists resources managed using Systems Manager inventory. 2987// 2988// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2989// with awserr.Error's Code and Message methods to get detailed information about 2990// the error. 2991// 2992// See the AWS API reference guide for AWS License Manager's 2993// API operation ListResourceInventory for usage and error information. 2994// 2995// Returned Error Types: 2996// * InvalidParameterValueException 2997// One or more parameter values are not valid. 2998// 2999// * ServerInternalException 3000// The server experienced an internal error. Try again. 3001// 3002// * FilterLimitExceededException 3003// The request uses too many filters or too many filter values. 3004// 3005// * FailedDependencyException 3006// A dependency required to run the API is missing. 3007// 3008// * AuthorizationException 3009// The AWS user account does not have permission to perform the action. Check 3010// the IAM policy associated with this account. 3011// 3012// * AccessDeniedException 3013// Access to resource denied. 3014// 3015// * RateLimitExceededException 3016// Too many requests have been submitted. Try again after a brief wait. 3017// 3018// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListResourceInventory 3019func (c *LicenseManager) ListResourceInventory(input *ListResourceInventoryInput) (*ListResourceInventoryOutput, error) { 3020 req, out := c.ListResourceInventoryRequest(input) 3021 return out, req.Send() 3022} 3023 3024// ListResourceInventoryWithContext is the same as ListResourceInventory with the addition of 3025// the ability to pass a context and additional request options. 3026// 3027// See ListResourceInventory for details on how to use this API operation. 3028// 3029// The context must be non-nil and will be used for request cancellation. If 3030// the context is nil a panic will occur. In the future the SDK may create 3031// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3032// for more information on using Contexts. 3033func (c *LicenseManager) ListResourceInventoryWithContext(ctx aws.Context, input *ListResourceInventoryInput, opts ...request.Option) (*ListResourceInventoryOutput, error) { 3034 req, out := c.ListResourceInventoryRequest(input) 3035 req.SetContext(ctx) 3036 req.ApplyOptions(opts...) 3037 return out, req.Send() 3038} 3039 3040const opListTagsForResource = "ListTagsForResource" 3041 3042// ListTagsForResourceRequest generates a "aws/request.Request" representing the 3043// client's request for the ListTagsForResource operation. The "output" return 3044// value will be populated with the request's response once the request completes 3045// successfully. 3046// 3047// Use "Send" method on the returned Request to send the API call to the service. 3048// the "output" return value is not valid until after Send returns without error. 3049// 3050// See ListTagsForResource for more information on using the ListTagsForResource 3051// API call, and error handling. 3052// 3053// This method is useful when you want to inject custom logic or configuration 3054// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3055// 3056// 3057// // Example sending a request using the ListTagsForResourceRequest method. 3058// req, resp := client.ListTagsForResourceRequest(params) 3059// 3060// err := req.Send() 3061// if err == nil { // resp is now filled 3062// fmt.Println(resp) 3063// } 3064// 3065// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTagsForResource 3066func (c *LicenseManager) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 3067 op := &request.Operation{ 3068 Name: opListTagsForResource, 3069 HTTPMethod: "POST", 3070 HTTPPath: "/", 3071 } 3072 3073 if input == nil { 3074 input = &ListTagsForResourceInput{} 3075 } 3076 3077 output = &ListTagsForResourceOutput{} 3078 req = c.newRequest(op, input, output) 3079 return 3080} 3081 3082// ListTagsForResource API operation for AWS License Manager. 3083// 3084// Lists the tags for the specified license configuration. 3085// 3086// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3087// with awserr.Error's Code and Message methods to get detailed information about 3088// the error. 3089// 3090// See the AWS API reference guide for AWS License Manager's 3091// API operation ListTagsForResource for usage and error information. 3092// 3093// Returned Error Types: 3094// * InvalidParameterValueException 3095// One or more parameter values are not valid. 3096// 3097// * ServerInternalException 3098// The server experienced an internal error. Try again. 3099// 3100// * AuthorizationException 3101// The AWS user account does not have permission to perform the action. Check 3102// the IAM policy associated with this account. 3103// 3104// * AccessDeniedException 3105// Access to resource denied. 3106// 3107// * RateLimitExceededException 3108// Too many requests have been submitted. Try again after a brief wait. 3109// 3110// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTagsForResource 3111func (c *LicenseManager) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 3112 req, out := c.ListTagsForResourceRequest(input) 3113 return out, req.Send() 3114} 3115 3116// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 3117// the ability to pass a context and additional request options. 3118// 3119// See ListTagsForResource for details on how to use this API operation. 3120// 3121// The context must be non-nil and will be used for request cancellation. If 3122// the context is nil a panic will occur. In the future the SDK may create 3123// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3124// for more information on using Contexts. 3125func (c *LicenseManager) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 3126 req, out := c.ListTagsForResourceRequest(input) 3127 req.SetContext(ctx) 3128 req.ApplyOptions(opts...) 3129 return out, req.Send() 3130} 3131 3132const opListTokens = "ListTokens" 3133 3134// ListTokensRequest generates a "aws/request.Request" representing the 3135// client's request for the ListTokens operation. The "output" return 3136// value will be populated with the request's response once the request completes 3137// successfully. 3138// 3139// Use "Send" method on the returned Request to send the API call to the service. 3140// the "output" return value is not valid until after Send returns without error. 3141// 3142// See ListTokens for more information on using the ListTokens 3143// API call, and error handling. 3144// 3145// This method is useful when you want to inject custom logic or configuration 3146// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3147// 3148// 3149// // Example sending a request using the ListTokensRequest method. 3150// req, resp := client.ListTokensRequest(params) 3151// 3152// err := req.Send() 3153// if err == nil { // resp is now filled 3154// fmt.Println(resp) 3155// } 3156// 3157// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTokens 3158func (c *LicenseManager) ListTokensRequest(input *ListTokensInput) (req *request.Request, output *ListTokensOutput) { 3159 op := &request.Operation{ 3160 Name: opListTokens, 3161 HTTPMethod: "POST", 3162 HTTPPath: "/", 3163 } 3164 3165 if input == nil { 3166 input = &ListTokensInput{} 3167 } 3168 3169 output = &ListTokensOutput{} 3170 req = c.newRequest(op, input, output) 3171 return 3172} 3173 3174// ListTokens API operation for AWS License Manager. 3175// 3176// Lists your tokens. 3177// 3178// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3179// with awserr.Error's Code and Message methods to get detailed information about 3180// the error. 3181// 3182// See the AWS API reference guide for AWS License Manager's 3183// API operation ListTokens for usage and error information. 3184// 3185// Returned Error Types: 3186// * ValidationException 3187// The provided input is not valid. Try your request again. 3188// 3189// * AuthorizationException 3190// The AWS user account does not have permission to perform the action. Check 3191// the IAM policy associated with this account. 3192// 3193// * AccessDeniedException 3194// Access to resource denied. 3195// 3196// * RateLimitExceededException 3197// Too many requests have been submitted. Try again after a brief wait. 3198// 3199// * ServerInternalException 3200// The server experienced an internal error. Try again. 3201// 3202// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTokens 3203func (c *LicenseManager) ListTokens(input *ListTokensInput) (*ListTokensOutput, error) { 3204 req, out := c.ListTokensRequest(input) 3205 return out, req.Send() 3206} 3207 3208// ListTokensWithContext is the same as ListTokens with the addition of 3209// the ability to pass a context and additional request options. 3210// 3211// See ListTokens for details on how to use this API operation. 3212// 3213// The context must be non-nil and will be used for request cancellation. If 3214// the context is nil a panic will occur. In the future the SDK may create 3215// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3216// for more information on using Contexts. 3217func (c *LicenseManager) ListTokensWithContext(ctx aws.Context, input *ListTokensInput, opts ...request.Option) (*ListTokensOutput, error) { 3218 req, out := c.ListTokensRequest(input) 3219 req.SetContext(ctx) 3220 req.ApplyOptions(opts...) 3221 return out, req.Send() 3222} 3223 3224const opListUsageForLicenseConfiguration = "ListUsageForLicenseConfiguration" 3225 3226// ListUsageForLicenseConfigurationRequest generates a "aws/request.Request" representing the 3227// client's request for the ListUsageForLicenseConfiguration operation. The "output" return 3228// value will be populated with the request's response once the request completes 3229// successfully. 3230// 3231// Use "Send" method on the returned Request to send the API call to the service. 3232// the "output" return value is not valid until after Send returns without error. 3233// 3234// See ListUsageForLicenseConfiguration for more information on using the ListUsageForLicenseConfiguration 3235// API call, and error handling. 3236// 3237// This method is useful when you want to inject custom logic or configuration 3238// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3239// 3240// 3241// // Example sending a request using the ListUsageForLicenseConfigurationRequest method. 3242// req, resp := client.ListUsageForLicenseConfigurationRequest(params) 3243// 3244// err := req.Send() 3245// if err == nil { // resp is now filled 3246// fmt.Println(resp) 3247// } 3248// 3249// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration 3250func (c *LicenseManager) ListUsageForLicenseConfigurationRequest(input *ListUsageForLicenseConfigurationInput) (req *request.Request, output *ListUsageForLicenseConfigurationOutput) { 3251 op := &request.Operation{ 3252 Name: opListUsageForLicenseConfiguration, 3253 HTTPMethod: "POST", 3254 HTTPPath: "/", 3255 } 3256 3257 if input == nil { 3258 input = &ListUsageForLicenseConfigurationInput{} 3259 } 3260 3261 output = &ListUsageForLicenseConfigurationOutput{} 3262 req = c.newRequest(op, input, output) 3263 return 3264} 3265 3266// ListUsageForLicenseConfiguration API operation for AWS License Manager. 3267// 3268// Lists all license usage records for a license configuration, displaying license 3269// consumption details by resource at a selected point in time. Use this action 3270// to audit the current license consumption for any license inventory and configuration. 3271// 3272// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3273// with awserr.Error's Code and Message methods to get detailed information about 3274// the error. 3275// 3276// See the AWS API reference guide for AWS License Manager's 3277// API operation ListUsageForLicenseConfiguration for usage and error information. 3278// 3279// Returned Error Types: 3280// * InvalidParameterValueException 3281// One or more parameter values are not valid. 3282// 3283// * FilterLimitExceededException 3284// The request uses too many filters or too many filter values. 3285// 3286// * ServerInternalException 3287// The server experienced an internal error. Try again. 3288// 3289// * AuthorizationException 3290// The AWS user account does not have permission to perform the action. Check 3291// the IAM policy associated with this account. 3292// 3293// * AccessDeniedException 3294// Access to resource denied. 3295// 3296// * RateLimitExceededException 3297// Too many requests have been submitted. Try again after a brief wait. 3298// 3299// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration 3300func (c *LicenseManager) ListUsageForLicenseConfiguration(input *ListUsageForLicenseConfigurationInput) (*ListUsageForLicenseConfigurationOutput, error) { 3301 req, out := c.ListUsageForLicenseConfigurationRequest(input) 3302 return out, req.Send() 3303} 3304 3305// ListUsageForLicenseConfigurationWithContext is the same as ListUsageForLicenseConfiguration with the addition of 3306// the ability to pass a context and additional request options. 3307// 3308// See ListUsageForLicenseConfiguration for details on how to use this API operation. 3309// 3310// The context must be non-nil and will be used for request cancellation. If 3311// the context is nil a panic will occur. In the future the SDK may create 3312// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3313// for more information on using Contexts. 3314func (c *LicenseManager) ListUsageForLicenseConfigurationWithContext(ctx aws.Context, input *ListUsageForLicenseConfigurationInput, opts ...request.Option) (*ListUsageForLicenseConfigurationOutput, error) { 3315 req, out := c.ListUsageForLicenseConfigurationRequest(input) 3316 req.SetContext(ctx) 3317 req.ApplyOptions(opts...) 3318 return out, req.Send() 3319} 3320 3321const opRejectGrant = "RejectGrant" 3322 3323// RejectGrantRequest generates a "aws/request.Request" representing the 3324// client's request for the RejectGrant operation. The "output" return 3325// value will be populated with the request's response once the request completes 3326// successfully. 3327// 3328// Use "Send" method on the returned Request to send the API call to the service. 3329// the "output" return value is not valid until after Send returns without error. 3330// 3331// See RejectGrant for more information on using the RejectGrant 3332// API call, and error handling. 3333// 3334// This method is useful when you want to inject custom logic or configuration 3335// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3336// 3337// 3338// // Example sending a request using the RejectGrantRequest method. 3339// req, resp := client.RejectGrantRequest(params) 3340// 3341// err := req.Send() 3342// if err == nil { // resp is now filled 3343// fmt.Println(resp) 3344// } 3345// 3346// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/RejectGrant 3347func (c *LicenseManager) RejectGrantRequest(input *RejectGrantInput) (req *request.Request, output *RejectGrantOutput) { 3348 op := &request.Operation{ 3349 Name: opRejectGrant, 3350 HTTPMethod: "POST", 3351 HTTPPath: "/", 3352 } 3353 3354 if input == nil { 3355 input = &RejectGrantInput{} 3356 } 3357 3358 output = &RejectGrantOutput{} 3359 req = c.newRequest(op, input, output) 3360 return 3361} 3362 3363// RejectGrant API operation for AWS License Manager. 3364// 3365// Rejects the specified grant. 3366// 3367// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3368// with awserr.Error's Code and Message methods to get detailed information about 3369// the error. 3370// 3371// See the AWS API reference guide for AWS License Manager's 3372// API operation RejectGrant for usage and error information. 3373// 3374// Returned Error Types: 3375// * ValidationException 3376// The provided input is not valid. Try your request again. 3377// 3378// * InvalidParameterValueException 3379// One or more parameter values are not valid. 3380// 3381// * AuthorizationException 3382// The AWS user account does not have permission to perform the action. Check 3383// the IAM policy associated with this account. 3384// 3385// * AccessDeniedException 3386// Access to resource denied. 3387// 3388// * RateLimitExceededException 3389// Too many requests have been submitted. Try again after a brief wait. 3390// 3391// * ResourceLimitExceededException 3392// Your resource limits have been exceeded. 3393// 3394// * ServerInternalException 3395// The server experienced an internal error. Try again. 3396// 3397// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/RejectGrant 3398func (c *LicenseManager) RejectGrant(input *RejectGrantInput) (*RejectGrantOutput, error) { 3399 req, out := c.RejectGrantRequest(input) 3400 return out, req.Send() 3401} 3402 3403// RejectGrantWithContext is the same as RejectGrant with the addition of 3404// the ability to pass a context and additional request options. 3405// 3406// See RejectGrant for details on how to use this API operation. 3407// 3408// The context must be non-nil and will be used for request cancellation. If 3409// the context is nil a panic will occur. In the future the SDK may create 3410// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3411// for more information on using Contexts. 3412func (c *LicenseManager) RejectGrantWithContext(ctx aws.Context, input *RejectGrantInput, opts ...request.Option) (*RejectGrantOutput, error) { 3413 req, out := c.RejectGrantRequest(input) 3414 req.SetContext(ctx) 3415 req.ApplyOptions(opts...) 3416 return out, req.Send() 3417} 3418 3419const opTagResource = "TagResource" 3420 3421// TagResourceRequest generates a "aws/request.Request" representing the 3422// client's request for the TagResource operation. The "output" return 3423// value will be populated with the request's response once the request completes 3424// successfully. 3425// 3426// Use "Send" method on the returned Request to send the API call to the service. 3427// the "output" return value is not valid until after Send returns without error. 3428// 3429// See TagResource for more information on using the TagResource 3430// API call, and error handling. 3431// 3432// This method is useful when you want to inject custom logic or configuration 3433// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3434// 3435// 3436// // Example sending a request using the TagResourceRequest method. 3437// req, resp := client.TagResourceRequest(params) 3438// 3439// err := req.Send() 3440// if err == nil { // resp is now filled 3441// fmt.Println(resp) 3442// } 3443// 3444// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource 3445func (c *LicenseManager) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 3446 op := &request.Operation{ 3447 Name: opTagResource, 3448 HTTPMethod: "POST", 3449 HTTPPath: "/", 3450 } 3451 3452 if input == nil { 3453 input = &TagResourceInput{} 3454 } 3455 3456 output = &TagResourceOutput{} 3457 req = c.newRequest(op, input, output) 3458 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 3459 return 3460} 3461 3462// TagResource API operation for AWS License Manager. 3463// 3464// Adds the specified tags to the specified license configuration. 3465// 3466// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3467// with awserr.Error's Code and Message methods to get detailed information about 3468// the error. 3469// 3470// See the AWS API reference guide for AWS License Manager's 3471// API operation TagResource for usage and error information. 3472// 3473// Returned Error Types: 3474// * InvalidParameterValueException 3475// One or more parameter values are not valid. 3476// 3477// * ServerInternalException 3478// The server experienced an internal error. Try again. 3479// 3480// * AuthorizationException 3481// The AWS user account does not have permission to perform the action. Check 3482// the IAM policy associated with this account. 3483// 3484// * AccessDeniedException 3485// Access to resource denied. 3486// 3487// * RateLimitExceededException 3488// Too many requests have been submitted. Try again after a brief wait. 3489// 3490// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource 3491func (c *LicenseManager) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 3492 req, out := c.TagResourceRequest(input) 3493 return out, req.Send() 3494} 3495 3496// TagResourceWithContext is the same as TagResource with the addition of 3497// the ability to pass a context and additional request options. 3498// 3499// See TagResource for details on how to use this API operation. 3500// 3501// The context must be non-nil and will be used for request cancellation. If 3502// the context is nil a panic will occur. In the future the SDK may create 3503// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3504// for more information on using Contexts. 3505func (c *LicenseManager) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 3506 req, out := c.TagResourceRequest(input) 3507 req.SetContext(ctx) 3508 req.ApplyOptions(opts...) 3509 return out, req.Send() 3510} 3511 3512const opUntagResource = "UntagResource" 3513 3514// UntagResourceRequest generates a "aws/request.Request" representing the 3515// client's request for the UntagResource operation. The "output" return 3516// value will be populated with the request's response once the request completes 3517// successfully. 3518// 3519// Use "Send" method on the returned Request to send the API call to the service. 3520// the "output" return value is not valid until after Send returns without error. 3521// 3522// See UntagResource for more information on using the UntagResource 3523// API call, and error handling. 3524// 3525// This method is useful when you want to inject custom logic or configuration 3526// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3527// 3528// 3529// // Example sending a request using the UntagResourceRequest method. 3530// req, resp := client.UntagResourceRequest(params) 3531// 3532// err := req.Send() 3533// if err == nil { // resp is now filled 3534// fmt.Println(resp) 3535// } 3536// 3537// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UntagResource 3538func (c *LicenseManager) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 3539 op := &request.Operation{ 3540 Name: opUntagResource, 3541 HTTPMethod: "POST", 3542 HTTPPath: "/", 3543 } 3544 3545 if input == nil { 3546 input = &UntagResourceInput{} 3547 } 3548 3549 output = &UntagResourceOutput{} 3550 req = c.newRequest(op, input, output) 3551 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 3552 return 3553} 3554 3555// UntagResource API operation for AWS License Manager. 3556// 3557// Removes the specified tags from the specified license configuration. 3558// 3559// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3560// with awserr.Error's Code and Message methods to get detailed information about 3561// the error. 3562// 3563// See the AWS API reference guide for AWS License Manager's 3564// API operation UntagResource for usage and error information. 3565// 3566// Returned Error Types: 3567// * InvalidParameterValueException 3568// One or more parameter values are not valid. 3569// 3570// * ServerInternalException 3571// The server experienced an internal error. Try again. 3572// 3573// * AuthorizationException 3574// The AWS user account does not have permission to perform the action. Check 3575// the IAM policy associated with this account. 3576// 3577// * AccessDeniedException 3578// Access to resource denied. 3579// 3580// * RateLimitExceededException 3581// Too many requests have been submitted. Try again after a brief wait. 3582// 3583// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UntagResource 3584func (c *LicenseManager) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 3585 req, out := c.UntagResourceRequest(input) 3586 return out, req.Send() 3587} 3588 3589// UntagResourceWithContext is the same as UntagResource with the addition of 3590// the ability to pass a context and additional request options. 3591// 3592// See UntagResource for details on how to use this API operation. 3593// 3594// The context must be non-nil and will be used for request cancellation. If 3595// the context is nil a panic will occur. In the future the SDK may create 3596// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3597// for more information on using Contexts. 3598func (c *LicenseManager) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 3599 req, out := c.UntagResourceRequest(input) 3600 req.SetContext(ctx) 3601 req.ApplyOptions(opts...) 3602 return out, req.Send() 3603} 3604 3605const opUpdateLicenseConfiguration = "UpdateLicenseConfiguration" 3606 3607// UpdateLicenseConfigurationRequest generates a "aws/request.Request" representing the 3608// client's request for the UpdateLicenseConfiguration operation. The "output" return 3609// value will be populated with the request's response once the request completes 3610// successfully. 3611// 3612// Use "Send" method on the returned Request to send the API call to the service. 3613// the "output" return value is not valid until after Send returns without error. 3614// 3615// See UpdateLicenseConfiguration for more information on using the UpdateLicenseConfiguration 3616// API call, and error handling. 3617// 3618// This method is useful when you want to inject custom logic or configuration 3619// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3620// 3621// 3622// // Example sending a request using the UpdateLicenseConfigurationRequest method. 3623// req, resp := client.UpdateLicenseConfigurationRequest(params) 3624// 3625// err := req.Send() 3626// if err == nil { // resp is now filled 3627// fmt.Println(resp) 3628// } 3629// 3630// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration 3631func (c *LicenseManager) UpdateLicenseConfigurationRequest(input *UpdateLicenseConfigurationInput) (req *request.Request, output *UpdateLicenseConfigurationOutput) { 3632 op := &request.Operation{ 3633 Name: opUpdateLicenseConfiguration, 3634 HTTPMethod: "POST", 3635 HTTPPath: "/", 3636 } 3637 3638 if input == nil { 3639 input = &UpdateLicenseConfigurationInput{} 3640 } 3641 3642 output = &UpdateLicenseConfigurationOutput{} 3643 req = c.newRequest(op, input, output) 3644 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 3645 return 3646} 3647 3648// UpdateLicenseConfiguration API operation for AWS License Manager. 3649// 3650// Modifies the attributes of an existing license configuration. 3651// 3652// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3653// with awserr.Error's Code and Message methods to get detailed information about 3654// the error. 3655// 3656// See the AWS API reference guide for AWS License Manager's 3657// API operation UpdateLicenseConfiguration for usage and error information. 3658// 3659// Returned Error Types: 3660// * InvalidParameterValueException 3661// One or more parameter values are not valid. 3662// 3663// * ServerInternalException 3664// The server experienced an internal error. Try again. 3665// 3666// * AuthorizationException 3667// The AWS user account does not have permission to perform the action. Check 3668// the IAM policy associated with this account. 3669// 3670// * AccessDeniedException 3671// Access to resource denied. 3672// 3673// * RateLimitExceededException 3674// Too many requests have been submitted. Try again after a brief wait. 3675// 3676// * ResourceLimitExceededException 3677// Your resource limits have been exceeded. 3678// 3679// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration 3680func (c *LicenseManager) UpdateLicenseConfiguration(input *UpdateLicenseConfigurationInput) (*UpdateLicenseConfigurationOutput, error) { 3681 req, out := c.UpdateLicenseConfigurationRequest(input) 3682 return out, req.Send() 3683} 3684 3685// UpdateLicenseConfigurationWithContext is the same as UpdateLicenseConfiguration with the addition of 3686// the ability to pass a context and additional request options. 3687// 3688// See UpdateLicenseConfiguration for details on how to use this API operation. 3689// 3690// The context must be non-nil and will be used for request cancellation. If 3691// the context is nil a panic will occur. In the future the SDK may create 3692// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3693// for more information on using Contexts. 3694func (c *LicenseManager) UpdateLicenseConfigurationWithContext(ctx aws.Context, input *UpdateLicenseConfigurationInput, opts ...request.Option) (*UpdateLicenseConfigurationOutput, error) { 3695 req, out := c.UpdateLicenseConfigurationRequest(input) 3696 req.SetContext(ctx) 3697 req.ApplyOptions(opts...) 3698 return out, req.Send() 3699} 3700 3701const opUpdateLicenseSpecificationsForResource = "UpdateLicenseSpecificationsForResource" 3702 3703// UpdateLicenseSpecificationsForResourceRequest generates a "aws/request.Request" representing the 3704// client's request for the UpdateLicenseSpecificationsForResource operation. The "output" return 3705// value will be populated with the request's response once the request completes 3706// successfully. 3707// 3708// Use "Send" method on the returned Request to send the API call to the service. 3709// the "output" return value is not valid until after Send returns without error. 3710// 3711// See UpdateLicenseSpecificationsForResource for more information on using the UpdateLicenseSpecificationsForResource 3712// API call, and error handling. 3713// 3714// This method is useful when you want to inject custom logic or configuration 3715// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3716// 3717// 3718// // Example sending a request using the UpdateLicenseSpecificationsForResourceRequest method. 3719// req, resp := client.UpdateLicenseSpecificationsForResourceRequest(params) 3720// 3721// err := req.Send() 3722// if err == nil { // resp is now filled 3723// fmt.Println(resp) 3724// } 3725// 3726// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource 3727func (c *LicenseManager) UpdateLicenseSpecificationsForResourceRequest(input *UpdateLicenseSpecificationsForResourceInput) (req *request.Request, output *UpdateLicenseSpecificationsForResourceOutput) { 3728 op := &request.Operation{ 3729 Name: opUpdateLicenseSpecificationsForResource, 3730 HTTPMethod: "POST", 3731 HTTPPath: "/", 3732 } 3733 3734 if input == nil { 3735 input = &UpdateLicenseSpecificationsForResourceInput{} 3736 } 3737 3738 output = &UpdateLicenseSpecificationsForResourceOutput{} 3739 req = c.newRequest(op, input, output) 3740 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 3741 return 3742} 3743 3744// UpdateLicenseSpecificationsForResource API operation for AWS License Manager. 3745// 3746// Adds or removes the specified license configurations for the specified AWS 3747// resource. 3748// 3749// You can update the license specifications of AMIs, instances, and hosts. 3750// You cannot update the license specifications for launch templates and AWS 3751// CloudFormation templates, as they send license configurations to the operation 3752// that creates the resource. 3753// 3754// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3755// with awserr.Error's Code and Message methods to get detailed information about 3756// the error. 3757// 3758// See the AWS API reference guide for AWS License Manager's 3759// API operation UpdateLicenseSpecificationsForResource for usage and error information. 3760// 3761// Returned Error Types: 3762// * InvalidParameterValueException 3763// One or more parameter values are not valid. 3764// 3765// * InvalidResourceStateException 3766// License Manager cannot allocate a license to a resource because of its state. 3767// 3768// For example, you cannot allocate a license to an instance in the process 3769// of shutting down. 3770// 3771// * LicenseUsageException 3772// You do not have enough licenses available to support a new resource launch. 3773// 3774// * ServerInternalException 3775// The server experienced an internal error. Try again. 3776// 3777// * AuthorizationException 3778// The AWS user account does not have permission to perform the action. Check 3779// the IAM policy associated with this account. 3780// 3781// * AccessDeniedException 3782// Access to resource denied. 3783// 3784// * RateLimitExceededException 3785// Too many requests have been submitted. Try again after a brief wait. 3786// 3787// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource 3788func (c *LicenseManager) UpdateLicenseSpecificationsForResource(input *UpdateLicenseSpecificationsForResourceInput) (*UpdateLicenseSpecificationsForResourceOutput, error) { 3789 req, out := c.UpdateLicenseSpecificationsForResourceRequest(input) 3790 return out, req.Send() 3791} 3792 3793// UpdateLicenseSpecificationsForResourceWithContext is the same as UpdateLicenseSpecificationsForResource with the addition of 3794// the ability to pass a context and additional request options. 3795// 3796// See UpdateLicenseSpecificationsForResource for details on how to use this API operation. 3797// 3798// The context must be non-nil and will be used for request cancellation. If 3799// the context is nil a panic will occur. In the future the SDK may create 3800// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3801// for more information on using Contexts. 3802func (c *LicenseManager) UpdateLicenseSpecificationsForResourceWithContext(ctx aws.Context, input *UpdateLicenseSpecificationsForResourceInput, opts ...request.Option) (*UpdateLicenseSpecificationsForResourceOutput, error) { 3803 req, out := c.UpdateLicenseSpecificationsForResourceRequest(input) 3804 req.SetContext(ctx) 3805 req.ApplyOptions(opts...) 3806 return out, req.Send() 3807} 3808 3809const opUpdateServiceSettings = "UpdateServiceSettings" 3810 3811// UpdateServiceSettingsRequest generates a "aws/request.Request" representing the 3812// client's request for the UpdateServiceSettings operation. The "output" return 3813// value will be populated with the request's response once the request completes 3814// successfully. 3815// 3816// Use "Send" method on the returned Request to send the API call to the service. 3817// the "output" return value is not valid until after Send returns without error. 3818// 3819// See UpdateServiceSettings for more information on using the UpdateServiceSettings 3820// API call, and error handling. 3821// 3822// This method is useful when you want to inject custom logic or configuration 3823// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3824// 3825// 3826// // Example sending a request using the UpdateServiceSettingsRequest method. 3827// req, resp := client.UpdateServiceSettingsRequest(params) 3828// 3829// err := req.Send() 3830// if err == nil { // resp is now filled 3831// fmt.Println(resp) 3832// } 3833// 3834// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateServiceSettings 3835func (c *LicenseManager) UpdateServiceSettingsRequest(input *UpdateServiceSettingsInput) (req *request.Request, output *UpdateServiceSettingsOutput) { 3836 op := &request.Operation{ 3837 Name: opUpdateServiceSettings, 3838 HTTPMethod: "POST", 3839 HTTPPath: "/", 3840 } 3841 3842 if input == nil { 3843 input = &UpdateServiceSettingsInput{} 3844 } 3845 3846 output = &UpdateServiceSettingsOutput{} 3847 req = c.newRequest(op, input, output) 3848 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 3849 return 3850} 3851 3852// UpdateServiceSettings API operation for AWS License Manager. 3853// 3854// Updates License Manager settings for the current Region. 3855// 3856// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3857// with awserr.Error's Code and Message methods to get detailed information about 3858// the error. 3859// 3860// See the AWS API reference guide for AWS License Manager's 3861// API operation UpdateServiceSettings for usage and error information. 3862// 3863// Returned Error Types: 3864// * InvalidParameterValueException 3865// One or more parameter values are not valid. 3866// 3867// * ServerInternalException 3868// The server experienced an internal error. Try again. 3869// 3870// * AuthorizationException 3871// The AWS user account does not have permission to perform the action. Check 3872// the IAM policy associated with this account. 3873// 3874// * AccessDeniedException 3875// Access to resource denied. 3876// 3877// * RateLimitExceededException 3878// Too many requests have been submitted. Try again after a brief wait. 3879// 3880// See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateServiceSettings 3881func (c *LicenseManager) UpdateServiceSettings(input *UpdateServiceSettingsInput) (*UpdateServiceSettingsOutput, error) { 3882 req, out := c.UpdateServiceSettingsRequest(input) 3883 return out, req.Send() 3884} 3885 3886// UpdateServiceSettingsWithContext is the same as UpdateServiceSettings with the addition of 3887// the ability to pass a context and additional request options. 3888// 3889// See UpdateServiceSettings for details on how to use this API operation. 3890// 3891// The context must be non-nil and will be used for request cancellation. If 3892// the context is nil a panic will occur. In the future the SDK may create 3893// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3894// for more information on using Contexts. 3895func (c *LicenseManager) UpdateServiceSettingsWithContext(ctx aws.Context, input *UpdateServiceSettingsInput, opts ...request.Option) (*UpdateServiceSettingsOutput, error) { 3896 req, out := c.UpdateServiceSettingsRequest(input) 3897 req.SetContext(ctx) 3898 req.ApplyOptions(opts...) 3899 return out, req.Send() 3900} 3901 3902type AcceptGrantInput struct { 3903 _ struct{} `type:"structure"` 3904 3905 // Amazon Resource Name (ARN) of the grant. 3906 // 3907 // GrantArn is a required field 3908 GrantArn *string `type:"string" required:"true"` 3909} 3910 3911// String returns the string representation 3912func (s AcceptGrantInput) String() string { 3913 return awsutil.Prettify(s) 3914} 3915 3916// GoString returns the string representation 3917func (s AcceptGrantInput) GoString() string { 3918 return s.String() 3919} 3920 3921// Validate inspects the fields of the type to determine if they are valid. 3922func (s *AcceptGrantInput) Validate() error { 3923 invalidParams := request.ErrInvalidParams{Context: "AcceptGrantInput"} 3924 if s.GrantArn == nil { 3925 invalidParams.Add(request.NewErrParamRequired("GrantArn")) 3926 } 3927 3928 if invalidParams.Len() > 0 { 3929 return invalidParams 3930 } 3931 return nil 3932} 3933 3934// SetGrantArn sets the GrantArn field's value. 3935func (s *AcceptGrantInput) SetGrantArn(v string) *AcceptGrantInput { 3936 s.GrantArn = &v 3937 return s 3938} 3939 3940type AcceptGrantOutput struct { 3941 _ struct{} `type:"structure"` 3942 3943 // Grant ARN. 3944 GrantArn *string `type:"string"` 3945 3946 // Grant status. 3947 Status *string `type:"string" enum:"GrantStatus"` 3948 3949 // Grant version. 3950 Version *string `type:"string"` 3951} 3952 3953// String returns the string representation 3954func (s AcceptGrantOutput) String() string { 3955 return awsutil.Prettify(s) 3956} 3957 3958// GoString returns the string representation 3959func (s AcceptGrantOutput) GoString() string { 3960 return s.String() 3961} 3962 3963// SetGrantArn sets the GrantArn field's value. 3964func (s *AcceptGrantOutput) SetGrantArn(v string) *AcceptGrantOutput { 3965 s.GrantArn = &v 3966 return s 3967} 3968 3969// SetStatus sets the Status field's value. 3970func (s *AcceptGrantOutput) SetStatus(v string) *AcceptGrantOutput { 3971 s.Status = &v 3972 return s 3973} 3974 3975// SetVersion sets the Version field's value. 3976func (s *AcceptGrantOutput) SetVersion(v string) *AcceptGrantOutput { 3977 s.Version = &v 3978 return s 3979} 3980 3981// Access to resource denied. 3982type AccessDeniedException struct { 3983 _ struct{} `type:"structure"` 3984 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3985 3986 Message_ *string `locationName:"Message" type:"string"` 3987} 3988 3989// String returns the string representation 3990func (s AccessDeniedException) String() string { 3991 return awsutil.Prettify(s) 3992} 3993 3994// GoString returns the string representation 3995func (s AccessDeniedException) GoString() string { 3996 return s.String() 3997} 3998 3999func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { 4000 return &AccessDeniedException{ 4001 RespMetadata: v, 4002 } 4003} 4004 4005// Code returns the exception type name. 4006func (s *AccessDeniedException) Code() string { 4007 return "AccessDeniedException" 4008} 4009 4010// Message returns the exception's message. 4011func (s *AccessDeniedException) Message() string { 4012 if s.Message_ != nil { 4013 return *s.Message_ 4014 } 4015 return "" 4016} 4017 4018// OrigErr always returns nil, satisfies awserr.Error interface. 4019func (s *AccessDeniedException) OrigErr() error { 4020 return nil 4021} 4022 4023func (s *AccessDeniedException) Error() string { 4024 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4025} 4026 4027// Status code returns the HTTP status code for the request's response error. 4028func (s *AccessDeniedException) StatusCode() int { 4029 return s.RespMetadata.StatusCode 4030} 4031 4032// RequestID returns the service's response RequestID for request. 4033func (s *AccessDeniedException) RequestID() string { 4034 return s.RespMetadata.RequestID 4035} 4036 4037// The AWS user account does not have permission to perform the action. Check 4038// the IAM policy associated with this account. 4039type AuthorizationException struct { 4040 _ struct{} `type:"structure"` 4041 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4042 4043 Message_ *string `locationName:"Message" type:"string"` 4044} 4045 4046// String returns the string representation 4047func (s AuthorizationException) String() string { 4048 return awsutil.Prettify(s) 4049} 4050 4051// GoString returns the string representation 4052func (s AuthorizationException) GoString() string { 4053 return s.String() 4054} 4055 4056func newErrorAuthorizationException(v protocol.ResponseMetadata) error { 4057 return &AuthorizationException{ 4058 RespMetadata: v, 4059 } 4060} 4061 4062// Code returns the exception type name. 4063func (s *AuthorizationException) Code() string { 4064 return "AuthorizationException" 4065} 4066 4067// Message returns the exception's message. 4068func (s *AuthorizationException) Message() string { 4069 if s.Message_ != nil { 4070 return *s.Message_ 4071 } 4072 return "" 4073} 4074 4075// OrigErr always returns nil, satisfies awserr.Error interface. 4076func (s *AuthorizationException) OrigErr() error { 4077 return nil 4078} 4079 4080func (s *AuthorizationException) Error() string { 4081 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4082} 4083 4084// Status code returns the HTTP status code for the request's response error. 4085func (s *AuthorizationException) StatusCode() int { 4086 return s.RespMetadata.StatusCode 4087} 4088 4089// RequestID returns the service's response RequestID for request. 4090func (s *AuthorizationException) RequestID() string { 4091 return s.RespMetadata.RequestID 4092} 4093 4094// Describes automated discovery. 4095type AutomatedDiscoveryInformation struct { 4096 _ struct{} `type:"structure"` 4097 4098 // Time that automated discovery last ran. 4099 LastRunTime *time.Time `type:"timestamp"` 4100} 4101 4102// String returns the string representation 4103func (s AutomatedDiscoveryInformation) String() string { 4104 return awsutil.Prettify(s) 4105} 4106 4107// GoString returns the string representation 4108func (s AutomatedDiscoveryInformation) GoString() string { 4109 return s.String() 4110} 4111 4112// SetLastRunTime sets the LastRunTime field's value. 4113func (s *AutomatedDiscoveryInformation) SetLastRunTime(v time.Time) *AutomatedDiscoveryInformation { 4114 s.LastRunTime = &v 4115 return s 4116} 4117 4118// Details about a borrow configuration. 4119type BorrowConfiguration struct { 4120 _ struct{} `type:"structure"` 4121 4122 // Indicates whether early check-ins are allowed. 4123 // 4124 // AllowEarlyCheckIn is a required field 4125 AllowEarlyCheckIn *bool `type:"boolean" required:"true"` 4126 4127 // Maximum time for the borrow configuration, in minutes. 4128 // 4129 // MaxTimeToLiveInMinutes is a required field 4130 MaxTimeToLiveInMinutes *int64 `type:"integer" required:"true"` 4131} 4132 4133// String returns the string representation 4134func (s BorrowConfiguration) String() string { 4135 return awsutil.Prettify(s) 4136} 4137 4138// GoString returns the string representation 4139func (s BorrowConfiguration) GoString() string { 4140 return s.String() 4141} 4142 4143// Validate inspects the fields of the type to determine if they are valid. 4144func (s *BorrowConfiguration) Validate() error { 4145 invalidParams := request.ErrInvalidParams{Context: "BorrowConfiguration"} 4146 if s.AllowEarlyCheckIn == nil { 4147 invalidParams.Add(request.NewErrParamRequired("AllowEarlyCheckIn")) 4148 } 4149 if s.MaxTimeToLiveInMinutes == nil { 4150 invalidParams.Add(request.NewErrParamRequired("MaxTimeToLiveInMinutes")) 4151 } 4152 4153 if invalidParams.Len() > 0 { 4154 return invalidParams 4155 } 4156 return nil 4157} 4158 4159// SetAllowEarlyCheckIn sets the AllowEarlyCheckIn field's value. 4160func (s *BorrowConfiguration) SetAllowEarlyCheckIn(v bool) *BorrowConfiguration { 4161 s.AllowEarlyCheckIn = &v 4162 return s 4163} 4164 4165// SetMaxTimeToLiveInMinutes sets the MaxTimeToLiveInMinutes field's value. 4166func (s *BorrowConfiguration) SetMaxTimeToLiveInMinutes(v int64) *BorrowConfiguration { 4167 s.MaxTimeToLiveInMinutes = &v 4168 return s 4169} 4170 4171type CheckInLicenseInput struct { 4172 _ struct{} `type:"structure"` 4173 4174 // License beneficiary. 4175 Beneficiary *string `type:"string"` 4176 4177 // License consumption token. 4178 // 4179 // LicenseConsumptionToken is a required field 4180 LicenseConsumptionToken *string `type:"string" required:"true"` 4181} 4182 4183// String returns the string representation 4184func (s CheckInLicenseInput) String() string { 4185 return awsutil.Prettify(s) 4186} 4187 4188// GoString returns the string representation 4189func (s CheckInLicenseInput) GoString() string { 4190 return s.String() 4191} 4192 4193// Validate inspects the fields of the type to determine if they are valid. 4194func (s *CheckInLicenseInput) Validate() error { 4195 invalidParams := request.ErrInvalidParams{Context: "CheckInLicenseInput"} 4196 if s.LicenseConsumptionToken == nil { 4197 invalidParams.Add(request.NewErrParamRequired("LicenseConsumptionToken")) 4198 } 4199 4200 if invalidParams.Len() > 0 { 4201 return invalidParams 4202 } 4203 return nil 4204} 4205 4206// SetBeneficiary sets the Beneficiary field's value. 4207func (s *CheckInLicenseInput) SetBeneficiary(v string) *CheckInLicenseInput { 4208 s.Beneficiary = &v 4209 return s 4210} 4211 4212// SetLicenseConsumptionToken sets the LicenseConsumptionToken field's value. 4213func (s *CheckInLicenseInput) SetLicenseConsumptionToken(v string) *CheckInLicenseInput { 4214 s.LicenseConsumptionToken = &v 4215 return s 4216} 4217 4218type CheckInLicenseOutput struct { 4219 _ struct{} `type:"structure"` 4220} 4221 4222// String returns the string representation 4223func (s CheckInLicenseOutput) String() string { 4224 return awsutil.Prettify(s) 4225} 4226 4227// GoString returns the string representation 4228func (s CheckInLicenseOutput) GoString() string { 4229 return s.String() 4230} 4231 4232type CheckoutBorrowLicenseInput struct { 4233 _ struct{} `type:"structure"` 4234 4235 // Information about constraints. 4236 CheckoutMetadata []*Metadata `type:"list"` 4237 4238 // Unique, case-sensitive identifier that you provide to ensure the idempotency 4239 // of the request. 4240 // 4241 // ClientToken is a required field 4242 ClientToken *string `type:"string" required:"true"` 4243 4244 // Digital signature method. The possible value is JSON Web Signature (JWS) 4245 // algorithm PS384. For more information, see RFC 7518 Digital Signature with 4246 // RSASSA-PSS (https://tools.ietf.org/html/rfc7518#section-3.5). 4247 // 4248 // DigitalSignatureMethod is a required field 4249 DigitalSignatureMethod *string `type:"string" required:"true" enum:"DigitalSignatureMethod"` 4250 4251 // License entitlements. Partial checkouts are not supported. 4252 // 4253 // Entitlements is a required field 4254 Entitlements []*EntitlementData `type:"list" required:"true"` 4255 4256 // Amazon Resource Name (ARN) of the license. The license must use the borrow 4257 // consumption configuration. 4258 // 4259 // LicenseArn is a required field 4260 LicenseArn *string `type:"string" required:"true"` 4261 4262 // Node ID. 4263 NodeId *string `type:"string"` 4264} 4265 4266// String returns the string representation 4267func (s CheckoutBorrowLicenseInput) String() string { 4268 return awsutil.Prettify(s) 4269} 4270 4271// GoString returns the string representation 4272func (s CheckoutBorrowLicenseInput) GoString() string { 4273 return s.String() 4274} 4275 4276// Validate inspects the fields of the type to determine if they are valid. 4277func (s *CheckoutBorrowLicenseInput) Validate() error { 4278 invalidParams := request.ErrInvalidParams{Context: "CheckoutBorrowLicenseInput"} 4279 if s.ClientToken == nil { 4280 invalidParams.Add(request.NewErrParamRequired("ClientToken")) 4281 } 4282 if s.DigitalSignatureMethod == nil { 4283 invalidParams.Add(request.NewErrParamRequired("DigitalSignatureMethod")) 4284 } 4285 if s.Entitlements == nil { 4286 invalidParams.Add(request.NewErrParamRequired("Entitlements")) 4287 } 4288 if s.LicenseArn == nil { 4289 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 4290 } 4291 if s.Entitlements != nil { 4292 for i, v := range s.Entitlements { 4293 if v == nil { 4294 continue 4295 } 4296 if err := v.Validate(); err != nil { 4297 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams)) 4298 } 4299 } 4300 } 4301 4302 if invalidParams.Len() > 0 { 4303 return invalidParams 4304 } 4305 return nil 4306} 4307 4308// SetCheckoutMetadata sets the CheckoutMetadata field's value. 4309func (s *CheckoutBorrowLicenseInput) SetCheckoutMetadata(v []*Metadata) *CheckoutBorrowLicenseInput { 4310 s.CheckoutMetadata = v 4311 return s 4312} 4313 4314// SetClientToken sets the ClientToken field's value. 4315func (s *CheckoutBorrowLicenseInput) SetClientToken(v string) *CheckoutBorrowLicenseInput { 4316 s.ClientToken = &v 4317 return s 4318} 4319 4320// SetDigitalSignatureMethod sets the DigitalSignatureMethod field's value. 4321func (s *CheckoutBorrowLicenseInput) SetDigitalSignatureMethod(v string) *CheckoutBorrowLicenseInput { 4322 s.DigitalSignatureMethod = &v 4323 return s 4324} 4325 4326// SetEntitlements sets the Entitlements field's value. 4327func (s *CheckoutBorrowLicenseInput) SetEntitlements(v []*EntitlementData) *CheckoutBorrowLicenseInput { 4328 s.Entitlements = v 4329 return s 4330} 4331 4332// SetLicenseArn sets the LicenseArn field's value. 4333func (s *CheckoutBorrowLicenseInput) SetLicenseArn(v string) *CheckoutBorrowLicenseInput { 4334 s.LicenseArn = &v 4335 return s 4336} 4337 4338// SetNodeId sets the NodeId field's value. 4339func (s *CheckoutBorrowLicenseInput) SetNodeId(v string) *CheckoutBorrowLicenseInput { 4340 s.NodeId = &v 4341 return s 4342} 4343 4344type CheckoutBorrowLicenseOutput struct { 4345 _ struct{} `type:"structure"` 4346 4347 // Information about constraints. 4348 CheckoutMetadata []*Metadata `type:"list"` 4349 4350 // Allowed license entitlements. 4351 EntitlementsAllowed []*EntitlementData `type:"list"` 4352 4353 // Date and time at which the license checkout expires. 4354 Expiration *string `type:"string"` 4355 4356 // Date and time at which the license checkout is issued. 4357 IssuedAt *string `type:"string"` 4358 4359 // Amazon Resource Name (ARN) of the license. 4360 LicenseArn *string `type:"string"` 4361 4362 // License consumption token. 4363 LicenseConsumptionToken *string `type:"string"` 4364 4365 // Node ID. 4366 NodeId *string `type:"string"` 4367 4368 // Signed token. 4369 SignedToken *string `min:"4096" type:"string"` 4370} 4371 4372// String returns the string representation 4373func (s CheckoutBorrowLicenseOutput) String() string { 4374 return awsutil.Prettify(s) 4375} 4376 4377// GoString returns the string representation 4378func (s CheckoutBorrowLicenseOutput) GoString() string { 4379 return s.String() 4380} 4381 4382// SetCheckoutMetadata sets the CheckoutMetadata field's value. 4383func (s *CheckoutBorrowLicenseOutput) SetCheckoutMetadata(v []*Metadata) *CheckoutBorrowLicenseOutput { 4384 s.CheckoutMetadata = v 4385 return s 4386} 4387 4388// SetEntitlementsAllowed sets the EntitlementsAllowed field's value. 4389func (s *CheckoutBorrowLicenseOutput) SetEntitlementsAllowed(v []*EntitlementData) *CheckoutBorrowLicenseOutput { 4390 s.EntitlementsAllowed = v 4391 return s 4392} 4393 4394// SetExpiration sets the Expiration field's value. 4395func (s *CheckoutBorrowLicenseOutput) SetExpiration(v string) *CheckoutBorrowLicenseOutput { 4396 s.Expiration = &v 4397 return s 4398} 4399 4400// SetIssuedAt sets the IssuedAt field's value. 4401func (s *CheckoutBorrowLicenseOutput) SetIssuedAt(v string) *CheckoutBorrowLicenseOutput { 4402 s.IssuedAt = &v 4403 return s 4404} 4405 4406// SetLicenseArn sets the LicenseArn field's value. 4407func (s *CheckoutBorrowLicenseOutput) SetLicenseArn(v string) *CheckoutBorrowLicenseOutput { 4408 s.LicenseArn = &v 4409 return s 4410} 4411 4412// SetLicenseConsumptionToken sets the LicenseConsumptionToken field's value. 4413func (s *CheckoutBorrowLicenseOutput) SetLicenseConsumptionToken(v string) *CheckoutBorrowLicenseOutput { 4414 s.LicenseConsumptionToken = &v 4415 return s 4416} 4417 4418// SetNodeId sets the NodeId field's value. 4419func (s *CheckoutBorrowLicenseOutput) SetNodeId(v string) *CheckoutBorrowLicenseOutput { 4420 s.NodeId = &v 4421 return s 4422} 4423 4424// SetSignedToken sets the SignedToken field's value. 4425func (s *CheckoutBorrowLicenseOutput) SetSignedToken(v string) *CheckoutBorrowLicenseOutput { 4426 s.SignedToken = &v 4427 return s 4428} 4429 4430type CheckoutLicenseInput struct { 4431 _ struct{} `type:"structure"` 4432 4433 // License beneficiary. 4434 Beneficiary *string `type:"string"` 4435 4436 // Checkout type. 4437 // 4438 // CheckoutType is a required field 4439 CheckoutType *string `type:"string" required:"true" enum:"CheckoutType"` 4440 4441 // Unique, case-sensitive identifier that you provide to ensure the idempotency 4442 // of the request. 4443 // 4444 // ClientToken is a required field 4445 ClientToken *string `type:"string" required:"true"` 4446 4447 // License entitlements. 4448 // 4449 // Entitlements is a required field 4450 Entitlements []*EntitlementData `type:"list" required:"true"` 4451 4452 // Key fingerprint identifying the license. 4453 // 4454 // KeyFingerprint is a required field 4455 KeyFingerprint *string `type:"string" required:"true"` 4456 4457 // Node ID. 4458 NodeId *string `type:"string"` 4459 4460 // Product SKU. 4461 // 4462 // ProductSKU is a required field 4463 ProductSKU *string `type:"string" required:"true"` 4464} 4465 4466// String returns the string representation 4467func (s CheckoutLicenseInput) String() string { 4468 return awsutil.Prettify(s) 4469} 4470 4471// GoString returns the string representation 4472func (s CheckoutLicenseInput) GoString() string { 4473 return s.String() 4474} 4475 4476// Validate inspects the fields of the type to determine if they are valid. 4477func (s *CheckoutLicenseInput) Validate() error { 4478 invalidParams := request.ErrInvalidParams{Context: "CheckoutLicenseInput"} 4479 if s.CheckoutType == nil { 4480 invalidParams.Add(request.NewErrParamRequired("CheckoutType")) 4481 } 4482 if s.ClientToken == nil { 4483 invalidParams.Add(request.NewErrParamRequired("ClientToken")) 4484 } 4485 if s.Entitlements == nil { 4486 invalidParams.Add(request.NewErrParamRequired("Entitlements")) 4487 } 4488 if s.KeyFingerprint == nil { 4489 invalidParams.Add(request.NewErrParamRequired("KeyFingerprint")) 4490 } 4491 if s.ProductSKU == nil { 4492 invalidParams.Add(request.NewErrParamRequired("ProductSKU")) 4493 } 4494 if s.Entitlements != nil { 4495 for i, v := range s.Entitlements { 4496 if v == nil { 4497 continue 4498 } 4499 if err := v.Validate(); err != nil { 4500 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams)) 4501 } 4502 } 4503 } 4504 4505 if invalidParams.Len() > 0 { 4506 return invalidParams 4507 } 4508 return nil 4509} 4510 4511// SetBeneficiary sets the Beneficiary field's value. 4512func (s *CheckoutLicenseInput) SetBeneficiary(v string) *CheckoutLicenseInput { 4513 s.Beneficiary = &v 4514 return s 4515} 4516 4517// SetCheckoutType sets the CheckoutType field's value. 4518func (s *CheckoutLicenseInput) SetCheckoutType(v string) *CheckoutLicenseInput { 4519 s.CheckoutType = &v 4520 return s 4521} 4522 4523// SetClientToken sets the ClientToken field's value. 4524func (s *CheckoutLicenseInput) SetClientToken(v string) *CheckoutLicenseInput { 4525 s.ClientToken = &v 4526 return s 4527} 4528 4529// SetEntitlements sets the Entitlements field's value. 4530func (s *CheckoutLicenseInput) SetEntitlements(v []*EntitlementData) *CheckoutLicenseInput { 4531 s.Entitlements = v 4532 return s 4533} 4534 4535// SetKeyFingerprint sets the KeyFingerprint field's value. 4536func (s *CheckoutLicenseInput) SetKeyFingerprint(v string) *CheckoutLicenseInput { 4537 s.KeyFingerprint = &v 4538 return s 4539} 4540 4541// SetNodeId sets the NodeId field's value. 4542func (s *CheckoutLicenseInput) SetNodeId(v string) *CheckoutLicenseInput { 4543 s.NodeId = &v 4544 return s 4545} 4546 4547// SetProductSKU sets the ProductSKU field's value. 4548func (s *CheckoutLicenseInput) SetProductSKU(v string) *CheckoutLicenseInput { 4549 s.ProductSKU = &v 4550 return s 4551} 4552 4553type CheckoutLicenseOutput struct { 4554 _ struct{} `type:"structure"` 4555 4556 // Checkout type. 4557 CheckoutType *string `type:"string" enum:"CheckoutType"` 4558 4559 // Allowed license entitlements. 4560 EntitlementsAllowed []*EntitlementData `type:"list"` 4561 4562 // Date and time at which the license checkout expires. 4563 Expiration *string `type:"string"` 4564 4565 // Date and time at which the license checkout is issued. 4566 IssuedAt *string `type:"string"` 4567 4568 // License consumption token. 4569 LicenseConsumptionToken *string `type:"string"` 4570 4571 // Node ID. 4572 NodeId *string `type:"string"` 4573 4574 // Signed token. 4575 SignedToken *string `min:"4096" type:"string"` 4576} 4577 4578// String returns the string representation 4579func (s CheckoutLicenseOutput) String() string { 4580 return awsutil.Prettify(s) 4581} 4582 4583// GoString returns the string representation 4584func (s CheckoutLicenseOutput) GoString() string { 4585 return s.String() 4586} 4587 4588// SetCheckoutType sets the CheckoutType field's value. 4589func (s *CheckoutLicenseOutput) SetCheckoutType(v string) *CheckoutLicenseOutput { 4590 s.CheckoutType = &v 4591 return s 4592} 4593 4594// SetEntitlementsAllowed sets the EntitlementsAllowed field's value. 4595func (s *CheckoutLicenseOutput) SetEntitlementsAllowed(v []*EntitlementData) *CheckoutLicenseOutput { 4596 s.EntitlementsAllowed = v 4597 return s 4598} 4599 4600// SetExpiration sets the Expiration field's value. 4601func (s *CheckoutLicenseOutput) SetExpiration(v string) *CheckoutLicenseOutput { 4602 s.Expiration = &v 4603 return s 4604} 4605 4606// SetIssuedAt sets the IssuedAt field's value. 4607func (s *CheckoutLicenseOutput) SetIssuedAt(v string) *CheckoutLicenseOutput { 4608 s.IssuedAt = &v 4609 return s 4610} 4611 4612// SetLicenseConsumptionToken sets the LicenseConsumptionToken field's value. 4613func (s *CheckoutLicenseOutput) SetLicenseConsumptionToken(v string) *CheckoutLicenseOutput { 4614 s.LicenseConsumptionToken = &v 4615 return s 4616} 4617 4618// SetNodeId sets the NodeId field's value. 4619func (s *CheckoutLicenseOutput) SetNodeId(v string) *CheckoutLicenseOutput { 4620 s.NodeId = &v 4621 return s 4622} 4623 4624// SetSignedToken sets the SignedToken field's value. 4625func (s *CheckoutLicenseOutput) SetSignedToken(v string) *CheckoutLicenseOutput { 4626 s.SignedToken = &v 4627 return s 4628} 4629 4630// There was a conflict processing the request. Try your request again. 4631type ConflictException struct { 4632 _ struct{} `type:"structure"` 4633 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4634 4635 Message_ *string `locationName:"Message" type:"string"` 4636} 4637 4638// String returns the string representation 4639func (s ConflictException) String() string { 4640 return awsutil.Prettify(s) 4641} 4642 4643// GoString returns the string representation 4644func (s ConflictException) GoString() string { 4645 return s.String() 4646} 4647 4648func newErrorConflictException(v protocol.ResponseMetadata) error { 4649 return &ConflictException{ 4650 RespMetadata: v, 4651 } 4652} 4653 4654// Code returns the exception type name. 4655func (s *ConflictException) Code() string { 4656 return "ConflictException" 4657} 4658 4659// Message returns the exception's message. 4660func (s *ConflictException) Message() string { 4661 if s.Message_ != nil { 4662 return *s.Message_ 4663 } 4664 return "" 4665} 4666 4667// OrigErr always returns nil, satisfies awserr.Error interface. 4668func (s *ConflictException) OrigErr() error { 4669 return nil 4670} 4671 4672func (s *ConflictException) Error() string { 4673 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4674} 4675 4676// Status code returns the HTTP status code for the request's response error. 4677func (s *ConflictException) StatusCode() int { 4678 return s.RespMetadata.StatusCode 4679} 4680 4681// RequestID returns the service's response RequestID for request. 4682func (s *ConflictException) RequestID() string { 4683 return s.RespMetadata.RequestID 4684} 4685 4686// Details about license consumption. 4687type ConsumedLicenseSummary struct { 4688 _ struct{} `type:"structure"` 4689 4690 // Number of licenses consumed by the resource. 4691 ConsumedLicenses *int64 `type:"long"` 4692 4693 // Resource type of the resource consuming a license. 4694 ResourceType *string `type:"string" enum:"ResourceType"` 4695} 4696 4697// String returns the string representation 4698func (s ConsumedLicenseSummary) String() string { 4699 return awsutil.Prettify(s) 4700} 4701 4702// GoString returns the string representation 4703func (s ConsumedLicenseSummary) GoString() string { 4704 return s.String() 4705} 4706 4707// SetConsumedLicenses sets the ConsumedLicenses field's value. 4708func (s *ConsumedLicenseSummary) SetConsumedLicenses(v int64) *ConsumedLicenseSummary { 4709 s.ConsumedLicenses = &v 4710 return s 4711} 4712 4713// SetResourceType sets the ResourceType field's value. 4714func (s *ConsumedLicenseSummary) SetResourceType(v string) *ConsumedLicenseSummary { 4715 s.ResourceType = &v 4716 return s 4717} 4718 4719// Details about a consumption configuration. 4720type ConsumptionConfiguration struct { 4721 _ struct{} `type:"structure"` 4722 4723 // Details about a borrow configuration. 4724 BorrowConfiguration *BorrowConfiguration `type:"structure"` 4725 4726 // Details about a provisional configuration. 4727 ProvisionalConfiguration *ProvisionalConfiguration `type:"structure"` 4728 4729 // Renewal frequency. 4730 RenewType *string `type:"string" enum:"RenewType"` 4731} 4732 4733// String returns the string representation 4734func (s ConsumptionConfiguration) String() string { 4735 return awsutil.Prettify(s) 4736} 4737 4738// GoString returns the string representation 4739func (s ConsumptionConfiguration) GoString() string { 4740 return s.String() 4741} 4742 4743// Validate inspects the fields of the type to determine if they are valid. 4744func (s *ConsumptionConfiguration) Validate() error { 4745 invalidParams := request.ErrInvalidParams{Context: "ConsumptionConfiguration"} 4746 if s.BorrowConfiguration != nil { 4747 if err := s.BorrowConfiguration.Validate(); err != nil { 4748 invalidParams.AddNested("BorrowConfiguration", err.(request.ErrInvalidParams)) 4749 } 4750 } 4751 if s.ProvisionalConfiguration != nil { 4752 if err := s.ProvisionalConfiguration.Validate(); err != nil { 4753 invalidParams.AddNested("ProvisionalConfiguration", err.(request.ErrInvalidParams)) 4754 } 4755 } 4756 4757 if invalidParams.Len() > 0 { 4758 return invalidParams 4759 } 4760 return nil 4761} 4762 4763// SetBorrowConfiguration sets the BorrowConfiguration field's value. 4764func (s *ConsumptionConfiguration) SetBorrowConfiguration(v *BorrowConfiguration) *ConsumptionConfiguration { 4765 s.BorrowConfiguration = v 4766 return s 4767} 4768 4769// SetProvisionalConfiguration sets the ProvisionalConfiguration field's value. 4770func (s *ConsumptionConfiguration) SetProvisionalConfiguration(v *ProvisionalConfiguration) *ConsumptionConfiguration { 4771 s.ProvisionalConfiguration = v 4772 return s 4773} 4774 4775// SetRenewType sets the RenewType field's value. 4776func (s *ConsumptionConfiguration) SetRenewType(v string) *ConsumptionConfiguration { 4777 s.RenewType = &v 4778 return s 4779} 4780 4781type CreateGrantInput struct { 4782 _ struct{} `type:"structure"` 4783 4784 // Allowed operations for the grant. 4785 // 4786 // AllowedOperations is a required field 4787 AllowedOperations []*string `min:"1" type:"list" required:"true"` 4788 4789 // Unique, case-sensitive identifier that you provide to ensure the idempotency 4790 // of the request. 4791 // 4792 // ClientToken is a required field 4793 ClientToken *string `type:"string" required:"true"` 4794 4795 // Grant name. 4796 // 4797 // GrantName is a required field 4798 GrantName *string `type:"string" required:"true"` 4799 4800 // Home Region of the grant. 4801 // 4802 // HomeRegion is a required field 4803 HomeRegion *string `type:"string" required:"true"` 4804 4805 // Amazon Resource Name (ARN) of the license. 4806 // 4807 // LicenseArn is a required field 4808 LicenseArn *string `type:"string" required:"true"` 4809 4810 // The grant principals. 4811 // 4812 // Principals is a required field 4813 Principals []*string `min:"1" type:"list" required:"true"` 4814} 4815 4816// String returns the string representation 4817func (s CreateGrantInput) String() string { 4818 return awsutil.Prettify(s) 4819} 4820 4821// GoString returns the string representation 4822func (s CreateGrantInput) GoString() string { 4823 return s.String() 4824} 4825 4826// Validate inspects the fields of the type to determine if they are valid. 4827func (s *CreateGrantInput) Validate() error { 4828 invalidParams := request.ErrInvalidParams{Context: "CreateGrantInput"} 4829 if s.AllowedOperations == nil { 4830 invalidParams.Add(request.NewErrParamRequired("AllowedOperations")) 4831 } 4832 if s.AllowedOperations != nil && len(s.AllowedOperations) < 1 { 4833 invalidParams.Add(request.NewErrParamMinLen("AllowedOperations", 1)) 4834 } 4835 if s.ClientToken == nil { 4836 invalidParams.Add(request.NewErrParamRequired("ClientToken")) 4837 } 4838 if s.GrantName == nil { 4839 invalidParams.Add(request.NewErrParamRequired("GrantName")) 4840 } 4841 if s.HomeRegion == nil { 4842 invalidParams.Add(request.NewErrParamRequired("HomeRegion")) 4843 } 4844 if s.LicenseArn == nil { 4845 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 4846 } 4847 if s.Principals == nil { 4848 invalidParams.Add(request.NewErrParamRequired("Principals")) 4849 } 4850 if s.Principals != nil && len(s.Principals) < 1 { 4851 invalidParams.Add(request.NewErrParamMinLen("Principals", 1)) 4852 } 4853 4854 if invalidParams.Len() > 0 { 4855 return invalidParams 4856 } 4857 return nil 4858} 4859 4860// SetAllowedOperations sets the AllowedOperations field's value. 4861func (s *CreateGrantInput) SetAllowedOperations(v []*string) *CreateGrantInput { 4862 s.AllowedOperations = v 4863 return s 4864} 4865 4866// SetClientToken sets the ClientToken field's value. 4867func (s *CreateGrantInput) SetClientToken(v string) *CreateGrantInput { 4868 s.ClientToken = &v 4869 return s 4870} 4871 4872// SetGrantName sets the GrantName field's value. 4873func (s *CreateGrantInput) SetGrantName(v string) *CreateGrantInput { 4874 s.GrantName = &v 4875 return s 4876} 4877 4878// SetHomeRegion sets the HomeRegion field's value. 4879func (s *CreateGrantInput) SetHomeRegion(v string) *CreateGrantInput { 4880 s.HomeRegion = &v 4881 return s 4882} 4883 4884// SetLicenseArn sets the LicenseArn field's value. 4885func (s *CreateGrantInput) SetLicenseArn(v string) *CreateGrantInput { 4886 s.LicenseArn = &v 4887 return s 4888} 4889 4890// SetPrincipals sets the Principals field's value. 4891func (s *CreateGrantInput) SetPrincipals(v []*string) *CreateGrantInput { 4892 s.Principals = v 4893 return s 4894} 4895 4896type CreateGrantOutput struct { 4897 _ struct{} `type:"structure"` 4898 4899 // Grant ARN. 4900 GrantArn *string `type:"string"` 4901 4902 // Grant status. 4903 Status *string `type:"string" enum:"GrantStatus"` 4904 4905 // Grant version. 4906 Version *string `type:"string"` 4907} 4908 4909// String returns the string representation 4910func (s CreateGrantOutput) String() string { 4911 return awsutil.Prettify(s) 4912} 4913 4914// GoString returns the string representation 4915func (s CreateGrantOutput) GoString() string { 4916 return s.String() 4917} 4918 4919// SetGrantArn sets the GrantArn field's value. 4920func (s *CreateGrantOutput) SetGrantArn(v string) *CreateGrantOutput { 4921 s.GrantArn = &v 4922 return s 4923} 4924 4925// SetStatus sets the Status field's value. 4926func (s *CreateGrantOutput) SetStatus(v string) *CreateGrantOutput { 4927 s.Status = &v 4928 return s 4929} 4930 4931// SetVersion sets the Version field's value. 4932func (s *CreateGrantOutput) SetVersion(v string) *CreateGrantOutput { 4933 s.Version = &v 4934 return s 4935} 4936 4937type CreateGrantVersionInput struct { 4938 _ struct{} `type:"structure"` 4939 4940 // Allowed operations for the grant. 4941 AllowedOperations []*string `min:"1" type:"list"` 4942 4943 // Unique, case-sensitive identifier that you provide to ensure the idempotency 4944 // of the request. 4945 // 4946 // ClientToken is a required field 4947 ClientToken *string `type:"string" required:"true"` 4948 4949 // Amazon Resource Name (ARN) of the grant. 4950 // 4951 // GrantArn is a required field 4952 GrantArn *string `type:"string" required:"true"` 4953 4954 // Grant name. 4955 GrantName *string `type:"string"` 4956 4957 // Current version of the grant. 4958 SourceVersion *string `type:"string"` 4959 4960 // Grant status. 4961 Status *string `type:"string" enum:"GrantStatus"` 4962} 4963 4964// String returns the string representation 4965func (s CreateGrantVersionInput) String() string { 4966 return awsutil.Prettify(s) 4967} 4968 4969// GoString returns the string representation 4970func (s CreateGrantVersionInput) GoString() string { 4971 return s.String() 4972} 4973 4974// Validate inspects the fields of the type to determine if they are valid. 4975func (s *CreateGrantVersionInput) Validate() error { 4976 invalidParams := request.ErrInvalidParams{Context: "CreateGrantVersionInput"} 4977 if s.AllowedOperations != nil && len(s.AllowedOperations) < 1 { 4978 invalidParams.Add(request.NewErrParamMinLen("AllowedOperations", 1)) 4979 } 4980 if s.ClientToken == nil { 4981 invalidParams.Add(request.NewErrParamRequired("ClientToken")) 4982 } 4983 if s.GrantArn == nil { 4984 invalidParams.Add(request.NewErrParamRequired("GrantArn")) 4985 } 4986 4987 if invalidParams.Len() > 0 { 4988 return invalidParams 4989 } 4990 return nil 4991} 4992 4993// SetAllowedOperations sets the AllowedOperations field's value. 4994func (s *CreateGrantVersionInput) SetAllowedOperations(v []*string) *CreateGrantVersionInput { 4995 s.AllowedOperations = v 4996 return s 4997} 4998 4999// SetClientToken sets the ClientToken field's value. 5000func (s *CreateGrantVersionInput) SetClientToken(v string) *CreateGrantVersionInput { 5001 s.ClientToken = &v 5002 return s 5003} 5004 5005// SetGrantArn sets the GrantArn field's value. 5006func (s *CreateGrantVersionInput) SetGrantArn(v string) *CreateGrantVersionInput { 5007 s.GrantArn = &v 5008 return s 5009} 5010 5011// SetGrantName sets the GrantName field's value. 5012func (s *CreateGrantVersionInput) SetGrantName(v string) *CreateGrantVersionInput { 5013 s.GrantName = &v 5014 return s 5015} 5016 5017// SetSourceVersion sets the SourceVersion field's value. 5018func (s *CreateGrantVersionInput) SetSourceVersion(v string) *CreateGrantVersionInput { 5019 s.SourceVersion = &v 5020 return s 5021} 5022 5023// SetStatus sets the Status field's value. 5024func (s *CreateGrantVersionInput) SetStatus(v string) *CreateGrantVersionInput { 5025 s.Status = &v 5026 return s 5027} 5028 5029type CreateGrantVersionOutput struct { 5030 _ struct{} `type:"structure"` 5031 5032 // Grant ARN. 5033 GrantArn *string `type:"string"` 5034 5035 // Grant status. 5036 Status *string `type:"string" enum:"GrantStatus"` 5037 5038 // New version of the grant. 5039 Version *string `type:"string"` 5040} 5041 5042// String returns the string representation 5043func (s CreateGrantVersionOutput) String() string { 5044 return awsutil.Prettify(s) 5045} 5046 5047// GoString returns the string representation 5048func (s CreateGrantVersionOutput) GoString() string { 5049 return s.String() 5050} 5051 5052// SetGrantArn sets the GrantArn field's value. 5053func (s *CreateGrantVersionOutput) SetGrantArn(v string) *CreateGrantVersionOutput { 5054 s.GrantArn = &v 5055 return s 5056} 5057 5058// SetStatus sets the Status field's value. 5059func (s *CreateGrantVersionOutput) SetStatus(v string) *CreateGrantVersionOutput { 5060 s.Status = &v 5061 return s 5062} 5063 5064// SetVersion sets the Version field's value. 5065func (s *CreateGrantVersionOutput) SetVersion(v string) *CreateGrantVersionOutput { 5066 s.Version = &v 5067 return s 5068} 5069 5070type CreateLicenseConfigurationInput struct { 5071 _ struct{} `type:"structure"` 5072 5073 // Description of the license configuration. 5074 Description *string `type:"string"` 5075 5076 // When true, disassociates a resource when software is uninstalled. 5077 DisassociateWhenNotFound *bool `type:"boolean"` 5078 5079 // Number of licenses managed by the license configuration. 5080 LicenseCount *int64 `type:"long"` 5081 5082 // Indicates whether hard or soft license enforcement is used. Exceeding a hard 5083 // limit blocks the launch of new instances. 5084 LicenseCountHardLimit *bool `type:"boolean"` 5085 5086 // Dimension used to track the license inventory. 5087 // 5088 // LicenseCountingType is a required field 5089 LicenseCountingType *string `type:"string" required:"true" enum:"LicenseCountingType"` 5090 5091 // License rules. The syntax is #name=value (for example, #allowedTenancy=EC2-DedicatedHost). 5092 // The available rules vary by dimension, as follows. 5093 // 5094 // * Cores dimension: allowedTenancy | licenseAffinityToHost | maximumCores 5095 // | minimumCores 5096 // 5097 // * Instances dimension: allowedTenancy | maximumCores | minimumCores | 5098 // maximumSockets | minimumSockets | maximumVcpus | minimumVcpus 5099 // 5100 // * Sockets dimension: allowedTenancy | licenseAffinityToHost | maximumSockets 5101 // | minimumSockets 5102 // 5103 // * vCPUs dimension: allowedTenancy | honorVcpuOptimization | maximumVcpus 5104 // | minimumVcpus 5105 // 5106 // The unit for licenseAffinityToHost is days and the range is 1 to 180. The 5107 // possible values for allowedTenancy are EC2-Default, EC2-DedicatedHost, and 5108 // EC2-DedicatedInstance. The possible values for honorVcpuOptimization are 5109 // True and False. 5110 LicenseRules []*string `type:"list"` 5111 5112 // Name of the license configuration. 5113 // 5114 // Name is a required field 5115 Name *string `type:"string" required:"true"` 5116 5117 // Product information. 5118 ProductInformationList []*ProductInformation `type:"list"` 5119 5120 // Tags to add to the license configuration. 5121 Tags []*Tag `type:"list"` 5122} 5123 5124// String returns the string representation 5125func (s CreateLicenseConfigurationInput) String() string { 5126 return awsutil.Prettify(s) 5127} 5128 5129// GoString returns the string representation 5130func (s CreateLicenseConfigurationInput) GoString() string { 5131 return s.String() 5132} 5133 5134// Validate inspects the fields of the type to determine if they are valid. 5135func (s *CreateLicenseConfigurationInput) Validate() error { 5136 invalidParams := request.ErrInvalidParams{Context: "CreateLicenseConfigurationInput"} 5137 if s.LicenseCountingType == nil { 5138 invalidParams.Add(request.NewErrParamRequired("LicenseCountingType")) 5139 } 5140 if s.Name == nil { 5141 invalidParams.Add(request.NewErrParamRequired("Name")) 5142 } 5143 if s.ProductInformationList != nil { 5144 for i, v := range s.ProductInformationList { 5145 if v == nil { 5146 continue 5147 } 5148 if err := v.Validate(); err != nil { 5149 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductInformationList", i), err.(request.ErrInvalidParams)) 5150 } 5151 } 5152 } 5153 5154 if invalidParams.Len() > 0 { 5155 return invalidParams 5156 } 5157 return nil 5158} 5159 5160// SetDescription sets the Description field's value. 5161func (s *CreateLicenseConfigurationInput) SetDescription(v string) *CreateLicenseConfigurationInput { 5162 s.Description = &v 5163 return s 5164} 5165 5166// SetDisassociateWhenNotFound sets the DisassociateWhenNotFound field's value. 5167func (s *CreateLicenseConfigurationInput) SetDisassociateWhenNotFound(v bool) *CreateLicenseConfigurationInput { 5168 s.DisassociateWhenNotFound = &v 5169 return s 5170} 5171 5172// SetLicenseCount sets the LicenseCount field's value. 5173func (s *CreateLicenseConfigurationInput) SetLicenseCount(v int64) *CreateLicenseConfigurationInput { 5174 s.LicenseCount = &v 5175 return s 5176} 5177 5178// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. 5179func (s *CreateLicenseConfigurationInput) SetLicenseCountHardLimit(v bool) *CreateLicenseConfigurationInput { 5180 s.LicenseCountHardLimit = &v 5181 return s 5182} 5183 5184// SetLicenseCountingType sets the LicenseCountingType field's value. 5185func (s *CreateLicenseConfigurationInput) SetLicenseCountingType(v string) *CreateLicenseConfigurationInput { 5186 s.LicenseCountingType = &v 5187 return s 5188} 5189 5190// SetLicenseRules sets the LicenseRules field's value. 5191func (s *CreateLicenseConfigurationInput) SetLicenseRules(v []*string) *CreateLicenseConfigurationInput { 5192 s.LicenseRules = v 5193 return s 5194} 5195 5196// SetName sets the Name field's value. 5197func (s *CreateLicenseConfigurationInput) SetName(v string) *CreateLicenseConfigurationInput { 5198 s.Name = &v 5199 return s 5200} 5201 5202// SetProductInformationList sets the ProductInformationList field's value. 5203func (s *CreateLicenseConfigurationInput) SetProductInformationList(v []*ProductInformation) *CreateLicenseConfigurationInput { 5204 s.ProductInformationList = v 5205 return s 5206} 5207 5208// SetTags sets the Tags field's value. 5209func (s *CreateLicenseConfigurationInput) SetTags(v []*Tag) *CreateLicenseConfigurationInput { 5210 s.Tags = v 5211 return s 5212} 5213 5214type CreateLicenseConfigurationOutput struct { 5215 _ struct{} `type:"structure"` 5216 5217 // Amazon Resource Name (ARN) of the license configuration. 5218 LicenseConfigurationArn *string `type:"string"` 5219} 5220 5221// String returns the string representation 5222func (s CreateLicenseConfigurationOutput) String() string { 5223 return awsutil.Prettify(s) 5224} 5225 5226// GoString returns the string representation 5227func (s CreateLicenseConfigurationOutput) GoString() string { 5228 return s.String() 5229} 5230 5231// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 5232func (s *CreateLicenseConfigurationOutput) SetLicenseConfigurationArn(v string) *CreateLicenseConfigurationOutput { 5233 s.LicenseConfigurationArn = &v 5234 return s 5235} 5236 5237type CreateLicenseInput struct { 5238 _ struct{} `type:"structure"` 5239 5240 // License beneficiary. 5241 // 5242 // Beneficiary is a required field 5243 Beneficiary *string `type:"string" required:"true"` 5244 5245 // Unique, case-sensitive identifier that you provide to ensure the idempotency 5246 // of the request. 5247 // 5248 // ClientToken is a required field 5249 ClientToken *string `type:"string" required:"true"` 5250 5251 // Configuration for consumption of the license. Choose a provisional configuration 5252 // for workloads running with continuous connectivity. Choose a borrow configuration 5253 // for workloads with offline usage. 5254 // 5255 // ConsumptionConfiguration is a required field 5256 ConsumptionConfiguration *ConsumptionConfiguration `type:"structure" required:"true"` 5257 5258 // License entitlements. 5259 // 5260 // Entitlements is a required field 5261 Entitlements []*Entitlement `type:"list" required:"true"` 5262 5263 // Home Region for the license. 5264 // 5265 // HomeRegion is a required field 5266 HomeRegion *string `type:"string" required:"true"` 5267 5268 // License issuer. 5269 // 5270 // Issuer is a required field 5271 Issuer *Issuer `type:"structure" required:"true"` 5272 5273 // Information about the license. 5274 LicenseMetadata []*Metadata `type:"list"` 5275 5276 // License name. 5277 // 5278 // LicenseName is a required field 5279 LicenseName *string `type:"string" required:"true"` 5280 5281 // Product name. 5282 // 5283 // ProductName is a required field 5284 ProductName *string `type:"string" required:"true"` 5285 5286 // Product SKU. 5287 // 5288 // ProductSKU is a required field 5289 ProductSKU *string `type:"string" required:"true"` 5290 5291 // Date and time range during which the license is valid, in ISO8601-UTC format. 5292 // 5293 // Validity is a required field 5294 Validity *DatetimeRange `type:"structure" required:"true"` 5295} 5296 5297// String returns the string representation 5298func (s CreateLicenseInput) String() string { 5299 return awsutil.Prettify(s) 5300} 5301 5302// GoString returns the string representation 5303func (s CreateLicenseInput) GoString() string { 5304 return s.String() 5305} 5306 5307// Validate inspects the fields of the type to determine if they are valid. 5308func (s *CreateLicenseInput) Validate() error { 5309 invalidParams := request.ErrInvalidParams{Context: "CreateLicenseInput"} 5310 if s.Beneficiary == nil { 5311 invalidParams.Add(request.NewErrParamRequired("Beneficiary")) 5312 } 5313 if s.ClientToken == nil { 5314 invalidParams.Add(request.NewErrParamRequired("ClientToken")) 5315 } 5316 if s.ConsumptionConfiguration == nil { 5317 invalidParams.Add(request.NewErrParamRequired("ConsumptionConfiguration")) 5318 } 5319 if s.Entitlements == nil { 5320 invalidParams.Add(request.NewErrParamRequired("Entitlements")) 5321 } 5322 if s.HomeRegion == nil { 5323 invalidParams.Add(request.NewErrParamRequired("HomeRegion")) 5324 } 5325 if s.Issuer == nil { 5326 invalidParams.Add(request.NewErrParamRequired("Issuer")) 5327 } 5328 if s.LicenseName == nil { 5329 invalidParams.Add(request.NewErrParamRequired("LicenseName")) 5330 } 5331 if s.ProductName == nil { 5332 invalidParams.Add(request.NewErrParamRequired("ProductName")) 5333 } 5334 if s.ProductSKU == nil { 5335 invalidParams.Add(request.NewErrParamRequired("ProductSKU")) 5336 } 5337 if s.Validity == nil { 5338 invalidParams.Add(request.NewErrParamRequired("Validity")) 5339 } 5340 if s.ConsumptionConfiguration != nil { 5341 if err := s.ConsumptionConfiguration.Validate(); err != nil { 5342 invalidParams.AddNested("ConsumptionConfiguration", err.(request.ErrInvalidParams)) 5343 } 5344 } 5345 if s.Entitlements != nil { 5346 for i, v := range s.Entitlements { 5347 if v == nil { 5348 continue 5349 } 5350 if err := v.Validate(); err != nil { 5351 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams)) 5352 } 5353 } 5354 } 5355 if s.Issuer != nil { 5356 if err := s.Issuer.Validate(); err != nil { 5357 invalidParams.AddNested("Issuer", err.(request.ErrInvalidParams)) 5358 } 5359 } 5360 if s.Validity != nil { 5361 if err := s.Validity.Validate(); err != nil { 5362 invalidParams.AddNested("Validity", err.(request.ErrInvalidParams)) 5363 } 5364 } 5365 5366 if invalidParams.Len() > 0 { 5367 return invalidParams 5368 } 5369 return nil 5370} 5371 5372// SetBeneficiary sets the Beneficiary field's value. 5373func (s *CreateLicenseInput) SetBeneficiary(v string) *CreateLicenseInput { 5374 s.Beneficiary = &v 5375 return s 5376} 5377 5378// SetClientToken sets the ClientToken field's value. 5379func (s *CreateLicenseInput) SetClientToken(v string) *CreateLicenseInput { 5380 s.ClientToken = &v 5381 return s 5382} 5383 5384// SetConsumptionConfiguration sets the ConsumptionConfiguration field's value. 5385func (s *CreateLicenseInput) SetConsumptionConfiguration(v *ConsumptionConfiguration) *CreateLicenseInput { 5386 s.ConsumptionConfiguration = v 5387 return s 5388} 5389 5390// SetEntitlements sets the Entitlements field's value. 5391func (s *CreateLicenseInput) SetEntitlements(v []*Entitlement) *CreateLicenseInput { 5392 s.Entitlements = v 5393 return s 5394} 5395 5396// SetHomeRegion sets the HomeRegion field's value. 5397func (s *CreateLicenseInput) SetHomeRegion(v string) *CreateLicenseInput { 5398 s.HomeRegion = &v 5399 return s 5400} 5401 5402// SetIssuer sets the Issuer field's value. 5403func (s *CreateLicenseInput) SetIssuer(v *Issuer) *CreateLicenseInput { 5404 s.Issuer = v 5405 return s 5406} 5407 5408// SetLicenseMetadata sets the LicenseMetadata field's value. 5409func (s *CreateLicenseInput) SetLicenseMetadata(v []*Metadata) *CreateLicenseInput { 5410 s.LicenseMetadata = v 5411 return s 5412} 5413 5414// SetLicenseName sets the LicenseName field's value. 5415func (s *CreateLicenseInput) SetLicenseName(v string) *CreateLicenseInput { 5416 s.LicenseName = &v 5417 return s 5418} 5419 5420// SetProductName sets the ProductName field's value. 5421func (s *CreateLicenseInput) SetProductName(v string) *CreateLicenseInput { 5422 s.ProductName = &v 5423 return s 5424} 5425 5426// SetProductSKU sets the ProductSKU field's value. 5427func (s *CreateLicenseInput) SetProductSKU(v string) *CreateLicenseInput { 5428 s.ProductSKU = &v 5429 return s 5430} 5431 5432// SetValidity sets the Validity field's value. 5433func (s *CreateLicenseInput) SetValidity(v *DatetimeRange) *CreateLicenseInput { 5434 s.Validity = v 5435 return s 5436} 5437 5438type CreateLicenseOutput struct { 5439 _ struct{} `type:"structure"` 5440 5441 // Amazon Resource Name (ARN) of the license. 5442 LicenseArn *string `type:"string"` 5443 5444 // License status. 5445 Status *string `type:"string" enum:"LicenseStatus"` 5446 5447 // License version. 5448 Version *string `type:"string"` 5449} 5450 5451// String returns the string representation 5452func (s CreateLicenseOutput) String() string { 5453 return awsutil.Prettify(s) 5454} 5455 5456// GoString returns the string representation 5457func (s CreateLicenseOutput) GoString() string { 5458 return s.String() 5459} 5460 5461// SetLicenseArn sets the LicenseArn field's value. 5462func (s *CreateLicenseOutput) SetLicenseArn(v string) *CreateLicenseOutput { 5463 s.LicenseArn = &v 5464 return s 5465} 5466 5467// SetStatus sets the Status field's value. 5468func (s *CreateLicenseOutput) SetStatus(v string) *CreateLicenseOutput { 5469 s.Status = &v 5470 return s 5471} 5472 5473// SetVersion sets the Version field's value. 5474func (s *CreateLicenseOutput) SetVersion(v string) *CreateLicenseOutput { 5475 s.Version = &v 5476 return s 5477} 5478 5479type CreateLicenseVersionInput struct { 5480 _ struct{} `type:"structure"` 5481 5482 // Unique, case-sensitive identifier that you provide to ensure the idempotency 5483 // of the request. 5484 // 5485 // ClientToken is a required field 5486 ClientToken *string `type:"string" required:"true"` 5487 5488 // Configuration for consumption of the license. Choose a provisional configuration 5489 // for workloads running with continuous connectivity. Choose a borrow configuration 5490 // for workloads with offline usage. 5491 // 5492 // ConsumptionConfiguration is a required field 5493 ConsumptionConfiguration *ConsumptionConfiguration `type:"structure" required:"true"` 5494 5495 // License entitlements. 5496 // 5497 // Entitlements is a required field 5498 Entitlements []*Entitlement `type:"list" required:"true"` 5499 5500 // Home Region of the license. 5501 // 5502 // HomeRegion is a required field 5503 HomeRegion *string `type:"string" required:"true"` 5504 5505 // License issuer. 5506 // 5507 // Issuer is a required field 5508 Issuer *Issuer `type:"structure" required:"true"` 5509 5510 // Amazon Resource Name (ARN) of the license. 5511 // 5512 // LicenseArn is a required field 5513 LicenseArn *string `type:"string" required:"true"` 5514 5515 // Information about the license. 5516 LicenseMetadata []*Metadata `type:"list"` 5517 5518 // License name. 5519 // 5520 // LicenseName is a required field 5521 LicenseName *string `type:"string" required:"true"` 5522 5523 // Product name. 5524 // 5525 // ProductName is a required field 5526 ProductName *string `type:"string" required:"true"` 5527 5528 // Current version of the license. 5529 SourceVersion *string `type:"string"` 5530 5531 // License status. 5532 // 5533 // Status is a required field 5534 Status *string `type:"string" required:"true" enum:"LicenseStatus"` 5535 5536 // Date and time range during which the license is valid, in ISO8601-UTC format. 5537 // 5538 // Validity is a required field 5539 Validity *DatetimeRange `type:"structure" required:"true"` 5540} 5541 5542// String returns the string representation 5543func (s CreateLicenseVersionInput) String() string { 5544 return awsutil.Prettify(s) 5545} 5546 5547// GoString returns the string representation 5548func (s CreateLicenseVersionInput) GoString() string { 5549 return s.String() 5550} 5551 5552// Validate inspects the fields of the type to determine if they are valid. 5553func (s *CreateLicenseVersionInput) Validate() error { 5554 invalidParams := request.ErrInvalidParams{Context: "CreateLicenseVersionInput"} 5555 if s.ClientToken == nil { 5556 invalidParams.Add(request.NewErrParamRequired("ClientToken")) 5557 } 5558 if s.ConsumptionConfiguration == nil { 5559 invalidParams.Add(request.NewErrParamRequired("ConsumptionConfiguration")) 5560 } 5561 if s.Entitlements == nil { 5562 invalidParams.Add(request.NewErrParamRequired("Entitlements")) 5563 } 5564 if s.HomeRegion == nil { 5565 invalidParams.Add(request.NewErrParamRequired("HomeRegion")) 5566 } 5567 if s.Issuer == nil { 5568 invalidParams.Add(request.NewErrParamRequired("Issuer")) 5569 } 5570 if s.LicenseArn == nil { 5571 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 5572 } 5573 if s.LicenseName == nil { 5574 invalidParams.Add(request.NewErrParamRequired("LicenseName")) 5575 } 5576 if s.ProductName == nil { 5577 invalidParams.Add(request.NewErrParamRequired("ProductName")) 5578 } 5579 if s.Status == nil { 5580 invalidParams.Add(request.NewErrParamRequired("Status")) 5581 } 5582 if s.Validity == nil { 5583 invalidParams.Add(request.NewErrParamRequired("Validity")) 5584 } 5585 if s.ConsumptionConfiguration != nil { 5586 if err := s.ConsumptionConfiguration.Validate(); err != nil { 5587 invalidParams.AddNested("ConsumptionConfiguration", err.(request.ErrInvalidParams)) 5588 } 5589 } 5590 if s.Entitlements != nil { 5591 for i, v := range s.Entitlements { 5592 if v == nil { 5593 continue 5594 } 5595 if err := v.Validate(); err != nil { 5596 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entitlements", i), err.(request.ErrInvalidParams)) 5597 } 5598 } 5599 } 5600 if s.Issuer != nil { 5601 if err := s.Issuer.Validate(); err != nil { 5602 invalidParams.AddNested("Issuer", err.(request.ErrInvalidParams)) 5603 } 5604 } 5605 if s.Validity != nil { 5606 if err := s.Validity.Validate(); err != nil { 5607 invalidParams.AddNested("Validity", err.(request.ErrInvalidParams)) 5608 } 5609 } 5610 5611 if invalidParams.Len() > 0 { 5612 return invalidParams 5613 } 5614 return nil 5615} 5616 5617// SetClientToken sets the ClientToken field's value. 5618func (s *CreateLicenseVersionInput) SetClientToken(v string) *CreateLicenseVersionInput { 5619 s.ClientToken = &v 5620 return s 5621} 5622 5623// SetConsumptionConfiguration sets the ConsumptionConfiguration field's value. 5624func (s *CreateLicenseVersionInput) SetConsumptionConfiguration(v *ConsumptionConfiguration) *CreateLicenseVersionInput { 5625 s.ConsumptionConfiguration = v 5626 return s 5627} 5628 5629// SetEntitlements sets the Entitlements field's value. 5630func (s *CreateLicenseVersionInput) SetEntitlements(v []*Entitlement) *CreateLicenseVersionInput { 5631 s.Entitlements = v 5632 return s 5633} 5634 5635// SetHomeRegion sets the HomeRegion field's value. 5636func (s *CreateLicenseVersionInput) SetHomeRegion(v string) *CreateLicenseVersionInput { 5637 s.HomeRegion = &v 5638 return s 5639} 5640 5641// SetIssuer sets the Issuer field's value. 5642func (s *CreateLicenseVersionInput) SetIssuer(v *Issuer) *CreateLicenseVersionInput { 5643 s.Issuer = v 5644 return s 5645} 5646 5647// SetLicenseArn sets the LicenseArn field's value. 5648func (s *CreateLicenseVersionInput) SetLicenseArn(v string) *CreateLicenseVersionInput { 5649 s.LicenseArn = &v 5650 return s 5651} 5652 5653// SetLicenseMetadata sets the LicenseMetadata field's value. 5654func (s *CreateLicenseVersionInput) SetLicenseMetadata(v []*Metadata) *CreateLicenseVersionInput { 5655 s.LicenseMetadata = v 5656 return s 5657} 5658 5659// SetLicenseName sets the LicenseName field's value. 5660func (s *CreateLicenseVersionInput) SetLicenseName(v string) *CreateLicenseVersionInput { 5661 s.LicenseName = &v 5662 return s 5663} 5664 5665// SetProductName sets the ProductName field's value. 5666func (s *CreateLicenseVersionInput) SetProductName(v string) *CreateLicenseVersionInput { 5667 s.ProductName = &v 5668 return s 5669} 5670 5671// SetSourceVersion sets the SourceVersion field's value. 5672func (s *CreateLicenseVersionInput) SetSourceVersion(v string) *CreateLicenseVersionInput { 5673 s.SourceVersion = &v 5674 return s 5675} 5676 5677// SetStatus sets the Status field's value. 5678func (s *CreateLicenseVersionInput) SetStatus(v string) *CreateLicenseVersionInput { 5679 s.Status = &v 5680 return s 5681} 5682 5683// SetValidity sets the Validity field's value. 5684func (s *CreateLicenseVersionInput) SetValidity(v *DatetimeRange) *CreateLicenseVersionInput { 5685 s.Validity = v 5686 return s 5687} 5688 5689type CreateLicenseVersionOutput struct { 5690 _ struct{} `type:"structure"` 5691 5692 // License ARN. 5693 LicenseArn *string `type:"string"` 5694 5695 // License status. 5696 Status *string `type:"string" enum:"LicenseStatus"` 5697 5698 // New version of the license. 5699 Version *string `type:"string"` 5700} 5701 5702// String returns the string representation 5703func (s CreateLicenseVersionOutput) String() string { 5704 return awsutil.Prettify(s) 5705} 5706 5707// GoString returns the string representation 5708func (s CreateLicenseVersionOutput) GoString() string { 5709 return s.String() 5710} 5711 5712// SetLicenseArn sets the LicenseArn field's value. 5713func (s *CreateLicenseVersionOutput) SetLicenseArn(v string) *CreateLicenseVersionOutput { 5714 s.LicenseArn = &v 5715 return s 5716} 5717 5718// SetStatus sets the Status field's value. 5719func (s *CreateLicenseVersionOutput) SetStatus(v string) *CreateLicenseVersionOutput { 5720 s.Status = &v 5721 return s 5722} 5723 5724// SetVersion sets the Version field's value. 5725func (s *CreateLicenseVersionOutput) SetVersion(v string) *CreateLicenseVersionOutput { 5726 s.Version = &v 5727 return s 5728} 5729 5730type CreateTokenInput struct { 5731 _ struct{} `type:"structure"` 5732 5733 // Idempotency token, valid for 10 minutes. 5734 // 5735 // ClientToken is a required field 5736 ClientToken *string `type:"string" required:"true"` 5737 5738 // Token expiration, in days, counted from token creation. The default is 365 5739 // days. 5740 ExpirationInDays *int64 `type:"integer"` 5741 5742 // Amazon Resource Name (ARN) of the license. The ARN is mapped to the aud claim 5743 // of the JWT token. 5744 // 5745 // LicenseArn is a required field 5746 LicenseArn *string `type:"string" required:"true"` 5747 5748 // Amazon Resource Name (ARN) of the IAM roles to embed in the token. License 5749 // Manager does not check whether the roles are in use. 5750 RoleArns []*string `type:"list"` 5751 5752 // Data specified by the caller to be included in the JWT token. The data is 5753 // mapped to the amr claim of the JWT token. 5754 TokenProperties []*string `type:"list"` 5755} 5756 5757// String returns the string representation 5758func (s CreateTokenInput) String() string { 5759 return awsutil.Prettify(s) 5760} 5761 5762// GoString returns the string representation 5763func (s CreateTokenInput) GoString() string { 5764 return s.String() 5765} 5766 5767// Validate inspects the fields of the type to determine if they are valid. 5768func (s *CreateTokenInput) Validate() error { 5769 invalidParams := request.ErrInvalidParams{Context: "CreateTokenInput"} 5770 if s.ClientToken == nil { 5771 invalidParams.Add(request.NewErrParamRequired("ClientToken")) 5772 } 5773 if s.LicenseArn == nil { 5774 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 5775 } 5776 5777 if invalidParams.Len() > 0 { 5778 return invalidParams 5779 } 5780 return nil 5781} 5782 5783// SetClientToken sets the ClientToken field's value. 5784func (s *CreateTokenInput) SetClientToken(v string) *CreateTokenInput { 5785 s.ClientToken = &v 5786 return s 5787} 5788 5789// SetExpirationInDays sets the ExpirationInDays field's value. 5790func (s *CreateTokenInput) SetExpirationInDays(v int64) *CreateTokenInput { 5791 s.ExpirationInDays = &v 5792 return s 5793} 5794 5795// SetLicenseArn sets the LicenseArn field's value. 5796func (s *CreateTokenInput) SetLicenseArn(v string) *CreateTokenInput { 5797 s.LicenseArn = &v 5798 return s 5799} 5800 5801// SetRoleArns sets the RoleArns field's value. 5802func (s *CreateTokenInput) SetRoleArns(v []*string) *CreateTokenInput { 5803 s.RoleArns = v 5804 return s 5805} 5806 5807// SetTokenProperties sets the TokenProperties field's value. 5808func (s *CreateTokenInput) SetTokenProperties(v []*string) *CreateTokenInput { 5809 s.TokenProperties = v 5810 return s 5811} 5812 5813type CreateTokenOutput struct { 5814 _ struct{} `type:"structure"` 5815 5816 // Refresh token, encoded as a JWT token. 5817 Token *string `type:"string"` 5818 5819 // Token ID. 5820 TokenId *string `type:"string"` 5821 5822 // Token type. 5823 TokenType *string `type:"string" enum:"TokenType"` 5824} 5825 5826// String returns the string representation 5827func (s CreateTokenOutput) String() string { 5828 return awsutil.Prettify(s) 5829} 5830 5831// GoString returns the string representation 5832func (s CreateTokenOutput) GoString() string { 5833 return s.String() 5834} 5835 5836// SetToken sets the Token field's value. 5837func (s *CreateTokenOutput) SetToken(v string) *CreateTokenOutput { 5838 s.Token = &v 5839 return s 5840} 5841 5842// SetTokenId sets the TokenId field's value. 5843func (s *CreateTokenOutput) SetTokenId(v string) *CreateTokenOutput { 5844 s.TokenId = &v 5845 return s 5846} 5847 5848// SetTokenType sets the TokenType field's value. 5849func (s *CreateTokenOutput) SetTokenType(v string) *CreateTokenOutput { 5850 s.TokenType = &v 5851 return s 5852} 5853 5854// Describes a time range, in ISO8601-UTC format. 5855type DatetimeRange struct { 5856 _ struct{} `type:"structure"` 5857 5858 // Start of the time range. 5859 // 5860 // Begin is a required field 5861 Begin *string `type:"string" required:"true"` 5862 5863 // End of the time range. 5864 End *string `type:"string"` 5865} 5866 5867// String returns the string representation 5868func (s DatetimeRange) String() string { 5869 return awsutil.Prettify(s) 5870} 5871 5872// GoString returns the string representation 5873func (s DatetimeRange) GoString() string { 5874 return s.String() 5875} 5876 5877// Validate inspects the fields of the type to determine if they are valid. 5878func (s *DatetimeRange) Validate() error { 5879 invalidParams := request.ErrInvalidParams{Context: "DatetimeRange"} 5880 if s.Begin == nil { 5881 invalidParams.Add(request.NewErrParamRequired("Begin")) 5882 } 5883 5884 if invalidParams.Len() > 0 { 5885 return invalidParams 5886 } 5887 return nil 5888} 5889 5890// SetBegin sets the Begin field's value. 5891func (s *DatetimeRange) SetBegin(v string) *DatetimeRange { 5892 s.Begin = &v 5893 return s 5894} 5895 5896// SetEnd sets the End field's value. 5897func (s *DatetimeRange) SetEnd(v string) *DatetimeRange { 5898 s.End = &v 5899 return s 5900} 5901 5902type DeleteGrantInput struct { 5903 _ struct{} `type:"structure"` 5904 5905 // Amazon Resource Name (ARN) of the grant. 5906 // 5907 // GrantArn is a required field 5908 GrantArn *string `type:"string" required:"true"` 5909 5910 // Current version of the grant. 5911 // 5912 // Version is a required field 5913 Version *string `type:"string" required:"true"` 5914} 5915 5916// String returns the string representation 5917func (s DeleteGrantInput) String() string { 5918 return awsutil.Prettify(s) 5919} 5920 5921// GoString returns the string representation 5922func (s DeleteGrantInput) GoString() string { 5923 return s.String() 5924} 5925 5926// Validate inspects the fields of the type to determine if they are valid. 5927func (s *DeleteGrantInput) Validate() error { 5928 invalidParams := request.ErrInvalidParams{Context: "DeleteGrantInput"} 5929 if s.GrantArn == nil { 5930 invalidParams.Add(request.NewErrParamRequired("GrantArn")) 5931 } 5932 if s.Version == nil { 5933 invalidParams.Add(request.NewErrParamRequired("Version")) 5934 } 5935 5936 if invalidParams.Len() > 0 { 5937 return invalidParams 5938 } 5939 return nil 5940} 5941 5942// SetGrantArn sets the GrantArn field's value. 5943func (s *DeleteGrantInput) SetGrantArn(v string) *DeleteGrantInput { 5944 s.GrantArn = &v 5945 return s 5946} 5947 5948// SetVersion sets the Version field's value. 5949func (s *DeleteGrantInput) SetVersion(v string) *DeleteGrantInput { 5950 s.Version = &v 5951 return s 5952} 5953 5954type DeleteGrantOutput struct { 5955 _ struct{} `type:"structure"` 5956 5957 // Grant ARN. 5958 GrantArn *string `type:"string"` 5959 5960 // Grant status. 5961 Status *string `type:"string" enum:"GrantStatus"` 5962 5963 // Grant version. 5964 Version *string `type:"string"` 5965} 5966 5967// String returns the string representation 5968func (s DeleteGrantOutput) String() string { 5969 return awsutil.Prettify(s) 5970} 5971 5972// GoString returns the string representation 5973func (s DeleteGrantOutput) GoString() string { 5974 return s.String() 5975} 5976 5977// SetGrantArn sets the GrantArn field's value. 5978func (s *DeleteGrantOutput) SetGrantArn(v string) *DeleteGrantOutput { 5979 s.GrantArn = &v 5980 return s 5981} 5982 5983// SetStatus sets the Status field's value. 5984func (s *DeleteGrantOutput) SetStatus(v string) *DeleteGrantOutput { 5985 s.Status = &v 5986 return s 5987} 5988 5989// SetVersion sets the Version field's value. 5990func (s *DeleteGrantOutput) SetVersion(v string) *DeleteGrantOutput { 5991 s.Version = &v 5992 return s 5993} 5994 5995type DeleteLicenseConfigurationInput struct { 5996 _ struct{} `type:"structure"` 5997 5998 // ID of the license configuration. 5999 // 6000 // LicenseConfigurationArn is a required field 6001 LicenseConfigurationArn *string `type:"string" required:"true"` 6002} 6003 6004// String returns the string representation 6005func (s DeleteLicenseConfigurationInput) String() string { 6006 return awsutil.Prettify(s) 6007} 6008 6009// GoString returns the string representation 6010func (s DeleteLicenseConfigurationInput) GoString() string { 6011 return s.String() 6012} 6013 6014// Validate inspects the fields of the type to determine if they are valid. 6015func (s *DeleteLicenseConfigurationInput) Validate() error { 6016 invalidParams := request.ErrInvalidParams{Context: "DeleteLicenseConfigurationInput"} 6017 if s.LicenseConfigurationArn == nil { 6018 invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) 6019 } 6020 6021 if invalidParams.Len() > 0 { 6022 return invalidParams 6023 } 6024 return nil 6025} 6026 6027// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 6028func (s *DeleteLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *DeleteLicenseConfigurationInput { 6029 s.LicenseConfigurationArn = &v 6030 return s 6031} 6032 6033type DeleteLicenseConfigurationOutput struct { 6034 _ struct{} `type:"structure"` 6035} 6036 6037// String returns the string representation 6038func (s DeleteLicenseConfigurationOutput) String() string { 6039 return awsutil.Prettify(s) 6040} 6041 6042// GoString returns the string representation 6043func (s DeleteLicenseConfigurationOutput) GoString() string { 6044 return s.String() 6045} 6046 6047type DeleteLicenseInput struct { 6048 _ struct{} `type:"structure"` 6049 6050 // Amazon Resource Name (ARN) of the license. 6051 // 6052 // LicenseArn is a required field 6053 LicenseArn *string `type:"string" required:"true"` 6054 6055 // Current version of the license. 6056 // 6057 // SourceVersion is a required field 6058 SourceVersion *string `type:"string" required:"true"` 6059} 6060 6061// String returns the string representation 6062func (s DeleteLicenseInput) String() string { 6063 return awsutil.Prettify(s) 6064} 6065 6066// GoString returns the string representation 6067func (s DeleteLicenseInput) GoString() string { 6068 return s.String() 6069} 6070 6071// Validate inspects the fields of the type to determine if they are valid. 6072func (s *DeleteLicenseInput) Validate() error { 6073 invalidParams := request.ErrInvalidParams{Context: "DeleteLicenseInput"} 6074 if s.LicenseArn == nil { 6075 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 6076 } 6077 if s.SourceVersion == nil { 6078 invalidParams.Add(request.NewErrParamRequired("SourceVersion")) 6079 } 6080 6081 if invalidParams.Len() > 0 { 6082 return invalidParams 6083 } 6084 return nil 6085} 6086 6087// SetLicenseArn sets the LicenseArn field's value. 6088func (s *DeleteLicenseInput) SetLicenseArn(v string) *DeleteLicenseInput { 6089 s.LicenseArn = &v 6090 return s 6091} 6092 6093// SetSourceVersion sets the SourceVersion field's value. 6094func (s *DeleteLicenseInput) SetSourceVersion(v string) *DeleteLicenseInput { 6095 s.SourceVersion = &v 6096 return s 6097} 6098 6099type DeleteLicenseOutput struct { 6100 _ struct{} `type:"structure"` 6101 6102 // Date on which the license is deleted. 6103 DeletionDate *string `type:"string"` 6104 6105 // License status. 6106 Status *string `type:"string" enum:"LicenseDeletionStatus"` 6107} 6108 6109// String returns the string representation 6110func (s DeleteLicenseOutput) String() string { 6111 return awsutil.Prettify(s) 6112} 6113 6114// GoString returns the string representation 6115func (s DeleteLicenseOutput) GoString() string { 6116 return s.String() 6117} 6118 6119// SetDeletionDate sets the DeletionDate field's value. 6120func (s *DeleteLicenseOutput) SetDeletionDate(v string) *DeleteLicenseOutput { 6121 s.DeletionDate = &v 6122 return s 6123} 6124 6125// SetStatus sets the Status field's value. 6126func (s *DeleteLicenseOutput) SetStatus(v string) *DeleteLicenseOutput { 6127 s.Status = &v 6128 return s 6129} 6130 6131type DeleteTokenInput struct { 6132 _ struct{} `type:"structure"` 6133 6134 // Token ID. 6135 // 6136 // TokenId is a required field 6137 TokenId *string `type:"string" required:"true"` 6138} 6139 6140// String returns the string representation 6141func (s DeleteTokenInput) String() string { 6142 return awsutil.Prettify(s) 6143} 6144 6145// GoString returns the string representation 6146func (s DeleteTokenInput) GoString() string { 6147 return s.String() 6148} 6149 6150// Validate inspects the fields of the type to determine if they are valid. 6151func (s *DeleteTokenInput) Validate() error { 6152 invalidParams := request.ErrInvalidParams{Context: "DeleteTokenInput"} 6153 if s.TokenId == nil { 6154 invalidParams.Add(request.NewErrParamRequired("TokenId")) 6155 } 6156 6157 if invalidParams.Len() > 0 { 6158 return invalidParams 6159 } 6160 return nil 6161} 6162 6163// SetTokenId sets the TokenId field's value. 6164func (s *DeleteTokenInput) SetTokenId(v string) *DeleteTokenInput { 6165 s.TokenId = &v 6166 return s 6167} 6168 6169type DeleteTokenOutput struct { 6170 _ struct{} `type:"structure"` 6171} 6172 6173// String returns the string representation 6174func (s DeleteTokenOutput) String() string { 6175 return awsutil.Prettify(s) 6176} 6177 6178// GoString returns the string representation 6179func (s DeleteTokenOutput) GoString() string { 6180 return s.String() 6181} 6182 6183// Describes a resource entitled for use with a license. 6184type Entitlement struct { 6185 _ struct{} `type:"structure"` 6186 6187 // Indicates whether check-ins are allowed. 6188 AllowCheckIn *bool `type:"boolean"` 6189 6190 // Maximum entitlement count. Use if the unit is not None. 6191 MaxCount *int64 `type:"long"` 6192 6193 // Entitlement name. 6194 // 6195 // Name is a required field 6196 Name *string `type:"string" required:"true"` 6197 6198 // Indicates whether overages are allowed. 6199 Overage *bool `type:"boolean"` 6200 6201 // Entitlement unit. 6202 // 6203 // Unit is a required field 6204 Unit *string `type:"string" required:"true" enum:"EntitlementUnit"` 6205 6206 // Entitlement resource. Use only if the unit is None. 6207 Value *string `type:"string"` 6208} 6209 6210// String returns the string representation 6211func (s Entitlement) String() string { 6212 return awsutil.Prettify(s) 6213} 6214 6215// GoString returns the string representation 6216func (s Entitlement) GoString() string { 6217 return s.String() 6218} 6219 6220// Validate inspects the fields of the type to determine if they are valid. 6221func (s *Entitlement) Validate() error { 6222 invalidParams := request.ErrInvalidParams{Context: "Entitlement"} 6223 if s.Name == nil { 6224 invalidParams.Add(request.NewErrParamRequired("Name")) 6225 } 6226 if s.Unit == nil { 6227 invalidParams.Add(request.NewErrParamRequired("Unit")) 6228 } 6229 6230 if invalidParams.Len() > 0 { 6231 return invalidParams 6232 } 6233 return nil 6234} 6235 6236// SetAllowCheckIn sets the AllowCheckIn field's value. 6237func (s *Entitlement) SetAllowCheckIn(v bool) *Entitlement { 6238 s.AllowCheckIn = &v 6239 return s 6240} 6241 6242// SetMaxCount sets the MaxCount field's value. 6243func (s *Entitlement) SetMaxCount(v int64) *Entitlement { 6244 s.MaxCount = &v 6245 return s 6246} 6247 6248// SetName sets the Name field's value. 6249func (s *Entitlement) SetName(v string) *Entitlement { 6250 s.Name = &v 6251 return s 6252} 6253 6254// SetOverage sets the Overage field's value. 6255func (s *Entitlement) SetOverage(v bool) *Entitlement { 6256 s.Overage = &v 6257 return s 6258} 6259 6260// SetUnit sets the Unit field's value. 6261func (s *Entitlement) SetUnit(v string) *Entitlement { 6262 s.Unit = &v 6263 return s 6264} 6265 6266// SetValue sets the Value field's value. 6267func (s *Entitlement) SetValue(v string) *Entitlement { 6268 s.Value = &v 6269 return s 6270} 6271 6272// Data associated with an entitlement resource. 6273type EntitlementData struct { 6274 _ struct{} `type:"structure"` 6275 6276 // Entitlement data name. 6277 // 6278 // Name is a required field 6279 Name *string `type:"string" required:"true"` 6280 6281 // Entitlement data unit. 6282 // 6283 // Unit is a required field 6284 Unit *string `type:"string" required:"true" enum:"EntitlementDataUnit"` 6285 6286 // Entitlement data value. 6287 Value *string `type:"string"` 6288} 6289 6290// String returns the string representation 6291func (s EntitlementData) String() string { 6292 return awsutil.Prettify(s) 6293} 6294 6295// GoString returns the string representation 6296func (s EntitlementData) GoString() string { 6297 return s.String() 6298} 6299 6300// Validate inspects the fields of the type to determine if they are valid. 6301func (s *EntitlementData) Validate() error { 6302 invalidParams := request.ErrInvalidParams{Context: "EntitlementData"} 6303 if s.Name == nil { 6304 invalidParams.Add(request.NewErrParamRequired("Name")) 6305 } 6306 if s.Unit == nil { 6307 invalidParams.Add(request.NewErrParamRequired("Unit")) 6308 } 6309 6310 if invalidParams.Len() > 0 { 6311 return invalidParams 6312 } 6313 return nil 6314} 6315 6316// SetName sets the Name field's value. 6317func (s *EntitlementData) SetName(v string) *EntitlementData { 6318 s.Name = &v 6319 return s 6320} 6321 6322// SetUnit sets the Unit field's value. 6323func (s *EntitlementData) SetUnit(v string) *EntitlementData { 6324 s.Unit = &v 6325 return s 6326} 6327 6328// SetValue sets the Value field's value. 6329func (s *EntitlementData) SetValue(v string) *EntitlementData { 6330 s.Value = &v 6331 return s 6332} 6333 6334// The entitlement is not allowed. 6335type EntitlementNotAllowedException struct { 6336 _ struct{} `type:"structure"` 6337 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6338 6339 Message_ *string `locationName:"Message" type:"string"` 6340} 6341 6342// String returns the string representation 6343func (s EntitlementNotAllowedException) String() string { 6344 return awsutil.Prettify(s) 6345} 6346 6347// GoString returns the string representation 6348func (s EntitlementNotAllowedException) GoString() string { 6349 return s.String() 6350} 6351 6352func newErrorEntitlementNotAllowedException(v protocol.ResponseMetadata) error { 6353 return &EntitlementNotAllowedException{ 6354 RespMetadata: v, 6355 } 6356} 6357 6358// Code returns the exception type name. 6359func (s *EntitlementNotAllowedException) Code() string { 6360 return "EntitlementNotAllowedException" 6361} 6362 6363// Message returns the exception's message. 6364func (s *EntitlementNotAllowedException) Message() string { 6365 if s.Message_ != nil { 6366 return *s.Message_ 6367 } 6368 return "" 6369} 6370 6371// OrigErr always returns nil, satisfies awserr.Error interface. 6372func (s *EntitlementNotAllowedException) OrigErr() error { 6373 return nil 6374} 6375 6376func (s *EntitlementNotAllowedException) Error() string { 6377 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6378} 6379 6380// Status code returns the HTTP status code for the request's response error. 6381func (s *EntitlementNotAllowedException) StatusCode() int { 6382 return s.RespMetadata.StatusCode 6383} 6384 6385// RequestID returns the service's response RequestID for request. 6386func (s *EntitlementNotAllowedException) RequestID() string { 6387 return s.RespMetadata.RequestID 6388} 6389 6390// Usage associated with an entitlement resource. 6391type EntitlementUsage struct { 6392 _ struct{} `type:"structure"` 6393 6394 // Resource usage consumed. 6395 // 6396 // ConsumedValue is a required field 6397 ConsumedValue *string `type:"string" required:"true"` 6398 6399 // Maximum entitlement usage count. 6400 MaxCount *string `type:"string"` 6401 6402 // Entitlement usage name. 6403 // 6404 // Name is a required field 6405 Name *string `type:"string" required:"true"` 6406 6407 // Entitlement usage unit. 6408 // 6409 // Unit is a required field 6410 Unit *string `type:"string" required:"true" enum:"EntitlementDataUnit"` 6411} 6412 6413// String returns the string representation 6414func (s EntitlementUsage) String() string { 6415 return awsutil.Prettify(s) 6416} 6417 6418// GoString returns the string representation 6419func (s EntitlementUsage) GoString() string { 6420 return s.String() 6421} 6422 6423// SetConsumedValue sets the ConsumedValue field's value. 6424func (s *EntitlementUsage) SetConsumedValue(v string) *EntitlementUsage { 6425 s.ConsumedValue = &v 6426 return s 6427} 6428 6429// SetMaxCount sets the MaxCount field's value. 6430func (s *EntitlementUsage) SetMaxCount(v string) *EntitlementUsage { 6431 s.MaxCount = &v 6432 return s 6433} 6434 6435// SetName sets the Name field's value. 6436func (s *EntitlementUsage) SetName(v string) *EntitlementUsage { 6437 s.Name = &v 6438 return s 6439} 6440 6441// SetUnit sets the Unit field's value. 6442func (s *EntitlementUsage) SetUnit(v string) *EntitlementUsage { 6443 s.Unit = &v 6444 return s 6445} 6446 6447type ExtendLicenseConsumptionInput struct { 6448 _ struct{} `type:"structure"` 6449 6450 // Checks whether you have the required permissions for the action, without 6451 // actually making the request. Provides an error response if you do not have 6452 // the required permissions. 6453 DryRun *bool `type:"boolean"` 6454 6455 // License consumption token. 6456 // 6457 // LicenseConsumptionToken is a required field 6458 LicenseConsumptionToken *string `type:"string" required:"true"` 6459} 6460 6461// String returns the string representation 6462func (s ExtendLicenseConsumptionInput) String() string { 6463 return awsutil.Prettify(s) 6464} 6465 6466// GoString returns the string representation 6467func (s ExtendLicenseConsumptionInput) GoString() string { 6468 return s.String() 6469} 6470 6471// Validate inspects the fields of the type to determine if they are valid. 6472func (s *ExtendLicenseConsumptionInput) Validate() error { 6473 invalidParams := request.ErrInvalidParams{Context: "ExtendLicenseConsumptionInput"} 6474 if s.LicenseConsumptionToken == nil { 6475 invalidParams.Add(request.NewErrParamRequired("LicenseConsumptionToken")) 6476 } 6477 6478 if invalidParams.Len() > 0 { 6479 return invalidParams 6480 } 6481 return nil 6482} 6483 6484// SetDryRun sets the DryRun field's value. 6485func (s *ExtendLicenseConsumptionInput) SetDryRun(v bool) *ExtendLicenseConsumptionInput { 6486 s.DryRun = &v 6487 return s 6488} 6489 6490// SetLicenseConsumptionToken sets the LicenseConsumptionToken field's value. 6491func (s *ExtendLicenseConsumptionInput) SetLicenseConsumptionToken(v string) *ExtendLicenseConsumptionInput { 6492 s.LicenseConsumptionToken = &v 6493 return s 6494} 6495 6496type ExtendLicenseConsumptionOutput struct { 6497 _ struct{} `type:"structure"` 6498 6499 // Date and time at which the license consumption expires. 6500 Expiration *string `type:"string"` 6501 6502 // License consumption token. 6503 LicenseConsumptionToken *string `type:"string"` 6504} 6505 6506// String returns the string representation 6507func (s ExtendLicenseConsumptionOutput) String() string { 6508 return awsutil.Prettify(s) 6509} 6510 6511// GoString returns the string representation 6512func (s ExtendLicenseConsumptionOutput) GoString() string { 6513 return s.String() 6514} 6515 6516// SetExpiration sets the Expiration field's value. 6517func (s *ExtendLicenseConsumptionOutput) SetExpiration(v string) *ExtendLicenseConsumptionOutput { 6518 s.Expiration = &v 6519 return s 6520} 6521 6522// SetLicenseConsumptionToken sets the LicenseConsumptionToken field's value. 6523func (s *ExtendLicenseConsumptionOutput) SetLicenseConsumptionToken(v string) *ExtendLicenseConsumptionOutput { 6524 s.LicenseConsumptionToken = &v 6525 return s 6526} 6527 6528// A dependency required to run the API is missing. 6529type FailedDependencyException struct { 6530 _ struct{} `type:"structure"` 6531 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6532 6533 ErrorCode *string `type:"string"` 6534 6535 Message_ *string `locationName:"Message" type:"string"` 6536} 6537 6538// String returns the string representation 6539func (s FailedDependencyException) String() string { 6540 return awsutil.Prettify(s) 6541} 6542 6543// GoString returns the string representation 6544func (s FailedDependencyException) GoString() string { 6545 return s.String() 6546} 6547 6548func newErrorFailedDependencyException(v protocol.ResponseMetadata) error { 6549 return &FailedDependencyException{ 6550 RespMetadata: v, 6551 } 6552} 6553 6554// Code returns the exception type name. 6555func (s *FailedDependencyException) Code() string { 6556 return "FailedDependencyException" 6557} 6558 6559// Message returns the exception's message. 6560func (s *FailedDependencyException) Message() string { 6561 if s.Message_ != nil { 6562 return *s.Message_ 6563 } 6564 return "" 6565} 6566 6567// OrigErr always returns nil, satisfies awserr.Error interface. 6568func (s *FailedDependencyException) OrigErr() error { 6569 return nil 6570} 6571 6572func (s *FailedDependencyException) Error() string { 6573 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 6574} 6575 6576// Status code returns the HTTP status code for the request's response error. 6577func (s *FailedDependencyException) StatusCode() int { 6578 return s.RespMetadata.StatusCode 6579} 6580 6581// RequestID returns the service's response RequestID for request. 6582func (s *FailedDependencyException) RequestID() string { 6583 return s.RespMetadata.RequestID 6584} 6585 6586// A filter name and value pair that is used to return more specific results 6587// from a describe operation. Filters can be used to match a set of resources 6588// by specific criteria, such as tags, attributes, or IDs. 6589type Filter struct { 6590 _ struct{} `type:"structure"` 6591 6592 // Name of the filter. Filter names are case-sensitive. 6593 Name *string `type:"string"` 6594 6595 // Filter values. Filter values are case-sensitive. 6596 Values []*string `type:"list"` 6597} 6598 6599// String returns the string representation 6600func (s Filter) String() string { 6601 return awsutil.Prettify(s) 6602} 6603 6604// GoString returns the string representation 6605func (s Filter) GoString() string { 6606 return s.String() 6607} 6608 6609// SetName sets the Name field's value. 6610func (s *Filter) SetName(v string) *Filter { 6611 s.Name = &v 6612 return s 6613} 6614 6615// SetValues sets the Values field's value. 6616func (s *Filter) SetValues(v []*string) *Filter { 6617 s.Values = v 6618 return s 6619} 6620 6621// The request uses too many filters or too many filter values. 6622type FilterLimitExceededException struct { 6623 _ struct{} `type:"structure"` 6624 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6625 6626 Message_ *string `locationName:"Message" type:"string"` 6627} 6628 6629// String returns the string representation 6630func (s FilterLimitExceededException) String() string { 6631 return awsutil.Prettify(s) 6632} 6633 6634// GoString returns the string representation 6635func (s FilterLimitExceededException) GoString() string { 6636 return s.String() 6637} 6638 6639func newErrorFilterLimitExceededException(v protocol.ResponseMetadata) error { 6640 return &FilterLimitExceededException{ 6641 RespMetadata: v, 6642 } 6643} 6644 6645// Code returns the exception type name. 6646func (s *FilterLimitExceededException) Code() string { 6647 return "FilterLimitExceededException" 6648} 6649 6650// Message returns the exception's message. 6651func (s *FilterLimitExceededException) Message() string { 6652 if s.Message_ != nil { 6653 return *s.Message_ 6654 } 6655 return "" 6656} 6657 6658// OrigErr always returns nil, satisfies awserr.Error interface. 6659func (s *FilterLimitExceededException) OrigErr() error { 6660 return nil 6661} 6662 6663func (s *FilterLimitExceededException) Error() string { 6664 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6665} 6666 6667// Status code returns the HTTP status code for the request's response error. 6668func (s *FilterLimitExceededException) StatusCode() int { 6669 return s.RespMetadata.StatusCode 6670} 6671 6672// RequestID returns the service's response RequestID for request. 6673func (s *FilterLimitExceededException) RequestID() string { 6674 return s.RespMetadata.RequestID 6675} 6676 6677type GetAccessTokenInput struct { 6678 _ struct{} `type:"structure"` 6679 6680 // Refresh token, encoded as a JWT token. 6681 // 6682 // Token is a required field 6683 Token *string `type:"string" required:"true"` 6684 6685 // Token properties to validate against those present in the JWT token. 6686 TokenProperties []*string `type:"list"` 6687} 6688 6689// String returns the string representation 6690func (s GetAccessTokenInput) String() string { 6691 return awsutil.Prettify(s) 6692} 6693 6694// GoString returns the string representation 6695func (s GetAccessTokenInput) GoString() string { 6696 return s.String() 6697} 6698 6699// Validate inspects the fields of the type to determine if they are valid. 6700func (s *GetAccessTokenInput) Validate() error { 6701 invalidParams := request.ErrInvalidParams{Context: "GetAccessTokenInput"} 6702 if s.Token == nil { 6703 invalidParams.Add(request.NewErrParamRequired("Token")) 6704 } 6705 6706 if invalidParams.Len() > 0 { 6707 return invalidParams 6708 } 6709 return nil 6710} 6711 6712// SetToken sets the Token field's value. 6713func (s *GetAccessTokenInput) SetToken(v string) *GetAccessTokenInput { 6714 s.Token = &v 6715 return s 6716} 6717 6718// SetTokenProperties sets the TokenProperties field's value. 6719func (s *GetAccessTokenInput) SetTokenProperties(v []*string) *GetAccessTokenInput { 6720 s.TokenProperties = v 6721 return s 6722} 6723 6724type GetAccessTokenOutput struct { 6725 _ struct{} `type:"structure"` 6726 6727 // Temporary access token. 6728 AccessToken *string `type:"string"` 6729} 6730 6731// String returns the string representation 6732func (s GetAccessTokenOutput) String() string { 6733 return awsutil.Prettify(s) 6734} 6735 6736// GoString returns the string representation 6737func (s GetAccessTokenOutput) GoString() string { 6738 return s.String() 6739} 6740 6741// SetAccessToken sets the AccessToken field's value. 6742func (s *GetAccessTokenOutput) SetAccessToken(v string) *GetAccessTokenOutput { 6743 s.AccessToken = &v 6744 return s 6745} 6746 6747type GetGrantInput struct { 6748 _ struct{} `type:"structure"` 6749 6750 // Amazon Resource Name (ARN) of the grant. 6751 // 6752 // GrantArn is a required field 6753 GrantArn *string `type:"string" required:"true"` 6754 6755 // Grant version. 6756 Version *string `type:"string"` 6757} 6758 6759// String returns the string representation 6760func (s GetGrantInput) String() string { 6761 return awsutil.Prettify(s) 6762} 6763 6764// GoString returns the string representation 6765func (s GetGrantInput) GoString() string { 6766 return s.String() 6767} 6768 6769// Validate inspects the fields of the type to determine if they are valid. 6770func (s *GetGrantInput) Validate() error { 6771 invalidParams := request.ErrInvalidParams{Context: "GetGrantInput"} 6772 if s.GrantArn == nil { 6773 invalidParams.Add(request.NewErrParamRequired("GrantArn")) 6774 } 6775 6776 if invalidParams.Len() > 0 { 6777 return invalidParams 6778 } 6779 return nil 6780} 6781 6782// SetGrantArn sets the GrantArn field's value. 6783func (s *GetGrantInput) SetGrantArn(v string) *GetGrantInput { 6784 s.GrantArn = &v 6785 return s 6786} 6787 6788// SetVersion sets the Version field's value. 6789func (s *GetGrantInput) SetVersion(v string) *GetGrantInput { 6790 s.Version = &v 6791 return s 6792} 6793 6794type GetGrantOutput struct { 6795 _ struct{} `type:"structure"` 6796 6797 // Grant details. 6798 Grant *Grant `type:"structure"` 6799} 6800 6801// String returns the string representation 6802func (s GetGrantOutput) String() string { 6803 return awsutil.Prettify(s) 6804} 6805 6806// GoString returns the string representation 6807func (s GetGrantOutput) GoString() string { 6808 return s.String() 6809} 6810 6811// SetGrant sets the Grant field's value. 6812func (s *GetGrantOutput) SetGrant(v *Grant) *GetGrantOutput { 6813 s.Grant = v 6814 return s 6815} 6816 6817type GetLicenseConfigurationInput struct { 6818 _ struct{} `type:"structure"` 6819 6820 // Amazon Resource Name (ARN) of the license configuration. 6821 // 6822 // LicenseConfigurationArn is a required field 6823 LicenseConfigurationArn *string `type:"string" required:"true"` 6824} 6825 6826// String returns the string representation 6827func (s GetLicenseConfigurationInput) String() string { 6828 return awsutil.Prettify(s) 6829} 6830 6831// GoString returns the string representation 6832func (s GetLicenseConfigurationInput) GoString() string { 6833 return s.String() 6834} 6835 6836// Validate inspects the fields of the type to determine if they are valid. 6837func (s *GetLicenseConfigurationInput) Validate() error { 6838 invalidParams := request.ErrInvalidParams{Context: "GetLicenseConfigurationInput"} 6839 if s.LicenseConfigurationArn == nil { 6840 invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) 6841 } 6842 6843 if invalidParams.Len() > 0 { 6844 return invalidParams 6845 } 6846 return nil 6847} 6848 6849// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 6850func (s *GetLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *GetLicenseConfigurationInput { 6851 s.LicenseConfigurationArn = &v 6852 return s 6853} 6854 6855type GetLicenseConfigurationOutput struct { 6856 _ struct{} `type:"structure"` 6857 6858 // Automated discovery information. 6859 AutomatedDiscoveryInformation *AutomatedDiscoveryInformation `type:"structure"` 6860 6861 // Summaries of the licenses consumed by resources. 6862 ConsumedLicenseSummaryList []*ConsumedLicenseSummary `type:"list"` 6863 6864 // Number of licenses assigned to resources. 6865 ConsumedLicenses *int64 `type:"long"` 6866 6867 // Description of the license configuration. 6868 Description *string `type:"string"` 6869 6870 // When true, disassociates a resource when software is uninstalled. 6871 DisassociateWhenNotFound *bool `type:"boolean"` 6872 6873 // Amazon Resource Name (ARN) of the license configuration. 6874 LicenseConfigurationArn *string `type:"string"` 6875 6876 // Unique ID for the license configuration. 6877 LicenseConfigurationId *string `type:"string"` 6878 6879 // Number of available licenses. 6880 LicenseCount *int64 `type:"long"` 6881 6882 // Sets the number of available licenses as a hard limit. 6883 LicenseCountHardLimit *bool `type:"boolean"` 6884 6885 // Dimension on which the licenses are counted. 6886 LicenseCountingType *string `type:"string" enum:"LicenseCountingType"` 6887 6888 // License rules. 6889 LicenseRules []*string `type:"list"` 6890 6891 // Summaries of the managed resources. 6892 ManagedResourceSummaryList []*ManagedResourceSummary `type:"list"` 6893 6894 // Name of the license configuration. 6895 Name *string `type:"string"` 6896 6897 // Account ID of the owner of the license configuration. 6898 OwnerAccountId *string `type:"string"` 6899 6900 // Product information. 6901 ProductInformationList []*ProductInformation `type:"list"` 6902 6903 // License configuration status. 6904 Status *string `type:"string"` 6905 6906 // Tags for the license configuration. 6907 Tags []*Tag `type:"list"` 6908} 6909 6910// String returns the string representation 6911func (s GetLicenseConfigurationOutput) String() string { 6912 return awsutil.Prettify(s) 6913} 6914 6915// GoString returns the string representation 6916func (s GetLicenseConfigurationOutput) GoString() string { 6917 return s.String() 6918} 6919 6920// SetAutomatedDiscoveryInformation sets the AutomatedDiscoveryInformation field's value. 6921func (s *GetLicenseConfigurationOutput) SetAutomatedDiscoveryInformation(v *AutomatedDiscoveryInformation) *GetLicenseConfigurationOutput { 6922 s.AutomatedDiscoveryInformation = v 6923 return s 6924} 6925 6926// SetConsumedLicenseSummaryList sets the ConsumedLicenseSummaryList field's value. 6927func (s *GetLicenseConfigurationOutput) SetConsumedLicenseSummaryList(v []*ConsumedLicenseSummary) *GetLicenseConfigurationOutput { 6928 s.ConsumedLicenseSummaryList = v 6929 return s 6930} 6931 6932// SetConsumedLicenses sets the ConsumedLicenses field's value. 6933func (s *GetLicenseConfigurationOutput) SetConsumedLicenses(v int64) *GetLicenseConfigurationOutput { 6934 s.ConsumedLicenses = &v 6935 return s 6936} 6937 6938// SetDescription sets the Description field's value. 6939func (s *GetLicenseConfigurationOutput) SetDescription(v string) *GetLicenseConfigurationOutput { 6940 s.Description = &v 6941 return s 6942} 6943 6944// SetDisassociateWhenNotFound sets the DisassociateWhenNotFound field's value. 6945func (s *GetLicenseConfigurationOutput) SetDisassociateWhenNotFound(v bool) *GetLicenseConfigurationOutput { 6946 s.DisassociateWhenNotFound = &v 6947 return s 6948} 6949 6950// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 6951func (s *GetLicenseConfigurationOutput) SetLicenseConfigurationArn(v string) *GetLicenseConfigurationOutput { 6952 s.LicenseConfigurationArn = &v 6953 return s 6954} 6955 6956// SetLicenseConfigurationId sets the LicenseConfigurationId field's value. 6957func (s *GetLicenseConfigurationOutput) SetLicenseConfigurationId(v string) *GetLicenseConfigurationOutput { 6958 s.LicenseConfigurationId = &v 6959 return s 6960} 6961 6962// SetLicenseCount sets the LicenseCount field's value. 6963func (s *GetLicenseConfigurationOutput) SetLicenseCount(v int64) *GetLicenseConfigurationOutput { 6964 s.LicenseCount = &v 6965 return s 6966} 6967 6968// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. 6969func (s *GetLicenseConfigurationOutput) SetLicenseCountHardLimit(v bool) *GetLicenseConfigurationOutput { 6970 s.LicenseCountHardLimit = &v 6971 return s 6972} 6973 6974// SetLicenseCountingType sets the LicenseCountingType field's value. 6975func (s *GetLicenseConfigurationOutput) SetLicenseCountingType(v string) *GetLicenseConfigurationOutput { 6976 s.LicenseCountingType = &v 6977 return s 6978} 6979 6980// SetLicenseRules sets the LicenseRules field's value. 6981func (s *GetLicenseConfigurationOutput) SetLicenseRules(v []*string) *GetLicenseConfigurationOutput { 6982 s.LicenseRules = v 6983 return s 6984} 6985 6986// SetManagedResourceSummaryList sets the ManagedResourceSummaryList field's value. 6987func (s *GetLicenseConfigurationOutput) SetManagedResourceSummaryList(v []*ManagedResourceSummary) *GetLicenseConfigurationOutput { 6988 s.ManagedResourceSummaryList = v 6989 return s 6990} 6991 6992// SetName sets the Name field's value. 6993func (s *GetLicenseConfigurationOutput) SetName(v string) *GetLicenseConfigurationOutput { 6994 s.Name = &v 6995 return s 6996} 6997 6998// SetOwnerAccountId sets the OwnerAccountId field's value. 6999func (s *GetLicenseConfigurationOutput) SetOwnerAccountId(v string) *GetLicenseConfigurationOutput { 7000 s.OwnerAccountId = &v 7001 return s 7002} 7003 7004// SetProductInformationList sets the ProductInformationList field's value. 7005func (s *GetLicenseConfigurationOutput) SetProductInformationList(v []*ProductInformation) *GetLicenseConfigurationOutput { 7006 s.ProductInformationList = v 7007 return s 7008} 7009 7010// SetStatus sets the Status field's value. 7011func (s *GetLicenseConfigurationOutput) SetStatus(v string) *GetLicenseConfigurationOutput { 7012 s.Status = &v 7013 return s 7014} 7015 7016// SetTags sets the Tags field's value. 7017func (s *GetLicenseConfigurationOutput) SetTags(v []*Tag) *GetLicenseConfigurationOutput { 7018 s.Tags = v 7019 return s 7020} 7021 7022type GetLicenseInput struct { 7023 _ struct{} `type:"structure"` 7024 7025 // Amazon Resource Name (ARN) of the license. 7026 // 7027 // LicenseArn is a required field 7028 LicenseArn *string `type:"string" required:"true"` 7029 7030 // License version. 7031 Version *string `type:"string"` 7032} 7033 7034// String returns the string representation 7035func (s GetLicenseInput) String() string { 7036 return awsutil.Prettify(s) 7037} 7038 7039// GoString returns the string representation 7040func (s GetLicenseInput) GoString() string { 7041 return s.String() 7042} 7043 7044// Validate inspects the fields of the type to determine if they are valid. 7045func (s *GetLicenseInput) Validate() error { 7046 invalidParams := request.ErrInvalidParams{Context: "GetLicenseInput"} 7047 if s.LicenseArn == nil { 7048 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 7049 } 7050 7051 if invalidParams.Len() > 0 { 7052 return invalidParams 7053 } 7054 return nil 7055} 7056 7057// SetLicenseArn sets the LicenseArn field's value. 7058func (s *GetLicenseInput) SetLicenseArn(v string) *GetLicenseInput { 7059 s.LicenseArn = &v 7060 return s 7061} 7062 7063// SetVersion sets the Version field's value. 7064func (s *GetLicenseInput) SetVersion(v string) *GetLicenseInput { 7065 s.Version = &v 7066 return s 7067} 7068 7069type GetLicenseOutput struct { 7070 _ struct{} `type:"structure"` 7071 7072 // License details. 7073 License *License `type:"structure"` 7074} 7075 7076// String returns the string representation 7077func (s GetLicenseOutput) String() string { 7078 return awsutil.Prettify(s) 7079} 7080 7081// GoString returns the string representation 7082func (s GetLicenseOutput) GoString() string { 7083 return s.String() 7084} 7085 7086// SetLicense sets the License field's value. 7087func (s *GetLicenseOutput) SetLicense(v *License) *GetLicenseOutput { 7088 s.License = v 7089 return s 7090} 7091 7092type GetLicenseUsageInput struct { 7093 _ struct{} `type:"structure"` 7094 7095 // Amazon Resource Name (ARN) of the license. 7096 // 7097 // LicenseArn is a required field 7098 LicenseArn *string `type:"string" required:"true"` 7099} 7100 7101// String returns the string representation 7102func (s GetLicenseUsageInput) String() string { 7103 return awsutil.Prettify(s) 7104} 7105 7106// GoString returns the string representation 7107func (s GetLicenseUsageInput) GoString() string { 7108 return s.String() 7109} 7110 7111// Validate inspects the fields of the type to determine if they are valid. 7112func (s *GetLicenseUsageInput) Validate() error { 7113 invalidParams := request.ErrInvalidParams{Context: "GetLicenseUsageInput"} 7114 if s.LicenseArn == nil { 7115 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 7116 } 7117 7118 if invalidParams.Len() > 0 { 7119 return invalidParams 7120 } 7121 return nil 7122} 7123 7124// SetLicenseArn sets the LicenseArn field's value. 7125func (s *GetLicenseUsageInput) SetLicenseArn(v string) *GetLicenseUsageInput { 7126 s.LicenseArn = &v 7127 return s 7128} 7129 7130type GetLicenseUsageOutput struct { 7131 _ struct{} `type:"structure"` 7132 7133 // License usage details. 7134 LicenseUsage *LicenseUsage `type:"structure"` 7135} 7136 7137// String returns the string representation 7138func (s GetLicenseUsageOutput) String() string { 7139 return awsutil.Prettify(s) 7140} 7141 7142// GoString returns the string representation 7143func (s GetLicenseUsageOutput) GoString() string { 7144 return s.String() 7145} 7146 7147// SetLicenseUsage sets the LicenseUsage field's value. 7148func (s *GetLicenseUsageOutput) SetLicenseUsage(v *LicenseUsage) *GetLicenseUsageOutput { 7149 s.LicenseUsage = v 7150 return s 7151} 7152 7153type GetServiceSettingsInput struct { 7154 _ struct{} `type:"structure"` 7155} 7156 7157// String returns the string representation 7158func (s GetServiceSettingsInput) String() string { 7159 return awsutil.Prettify(s) 7160} 7161 7162// GoString returns the string representation 7163func (s GetServiceSettingsInput) GoString() string { 7164 return s.String() 7165} 7166 7167type GetServiceSettingsOutput struct { 7168 _ struct{} `type:"structure"` 7169 7170 // Indicates whether cross-account discovery is enabled. 7171 EnableCrossAccountsDiscovery *bool `type:"boolean"` 7172 7173 // Amazon Resource Name (ARN) of the AWS resource share. The License Manager 7174 // master account will provide member accounts with access to this share. 7175 LicenseManagerResourceShareArn *string `type:"string"` 7176 7177 // Indicates whether AWS Organizations is integrated with License Manager for 7178 // cross-account discovery. 7179 OrganizationConfiguration *OrganizationConfiguration `type:"structure"` 7180 7181 // Regional S3 bucket path for storing reports, license trail event data, discovery 7182 // data, and so on. 7183 S3BucketArn *string `type:"string"` 7184 7185 // SNS topic configured to receive notifications from License Manager. 7186 SnsTopicArn *string `type:"string"` 7187} 7188 7189// String returns the string representation 7190func (s GetServiceSettingsOutput) String() string { 7191 return awsutil.Prettify(s) 7192} 7193 7194// GoString returns the string representation 7195func (s GetServiceSettingsOutput) GoString() string { 7196 return s.String() 7197} 7198 7199// SetEnableCrossAccountsDiscovery sets the EnableCrossAccountsDiscovery field's value. 7200func (s *GetServiceSettingsOutput) SetEnableCrossAccountsDiscovery(v bool) *GetServiceSettingsOutput { 7201 s.EnableCrossAccountsDiscovery = &v 7202 return s 7203} 7204 7205// SetLicenseManagerResourceShareArn sets the LicenseManagerResourceShareArn field's value. 7206func (s *GetServiceSettingsOutput) SetLicenseManagerResourceShareArn(v string) *GetServiceSettingsOutput { 7207 s.LicenseManagerResourceShareArn = &v 7208 return s 7209} 7210 7211// SetOrganizationConfiguration sets the OrganizationConfiguration field's value. 7212func (s *GetServiceSettingsOutput) SetOrganizationConfiguration(v *OrganizationConfiguration) *GetServiceSettingsOutput { 7213 s.OrganizationConfiguration = v 7214 return s 7215} 7216 7217// SetS3BucketArn sets the S3BucketArn field's value. 7218func (s *GetServiceSettingsOutput) SetS3BucketArn(v string) *GetServiceSettingsOutput { 7219 s.S3BucketArn = &v 7220 return s 7221} 7222 7223// SetSnsTopicArn sets the SnsTopicArn field's value. 7224func (s *GetServiceSettingsOutput) SetSnsTopicArn(v string) *GetServiceSettingsOutput { 7225 s.SnsTopicArn = &v 7226 return s 7227} 7228 7229// Describes a grant. 7230type Grant struct { 7231 _ struct{} `type:"structure"` 7232 7233 // Amazon Resource Name (ARN) of the grant. 7234 // 7235 // GrantArn is a required field 7236 GrantArn *string `type:"string" required:"true"` 7237 7238 // Grant name. 7239 // 7240 // GrantName is a required field 7241 GrantName *string `type:"string" required:"true"` 7242 7243 // Grant status. 7244 // 7245 // GrantStatus is a required field 7246 GrantStatus *string `type:"string" required:"true" enum:"GrantStatus"` 7247 7248 // Granted operations. 7249 // 7250 // GrantedOperations is a required field 7251 GrantedOperations []*string `min:"1" type:"list" required:"true"` 7252 7253 // The grantee principal ARN. 7254 // 7255 // GranteePrincipalArn is a required field 7256 GranteePrincipalArn *string `type:"string" required:"true"` 7257 7258 // Home Region of the grant. 7259 // 7260 // HomeRegion is a required field 7261 HomeRegion *string `type:"string" required:"true"` 7262 7263 // License ARN. 7264 // 7265 // LicenseArn is a required field 7266 LicenseArn *string `type:"string" required:"true"` 7267 7268 // Parent ARN. 7269 // 7270 // ParentArn is a required field 7271 ParentArn *string `type:"string" required:"true"` 7272 7273 // Grant status reason. 7274 StatusReason *string `type:"string"` 7275 7276 // Grant version. 7277 // 7278 // Version is a required field 7279 Version *string `type:"string" required:"true"` 7280} 7281 7282// String returns the string representation 7283func (s Grant) String() string { 7284 return awsutil.Prettify(s) 7285} 7286 7287// GoString returns the string representation 7288func (s Grant) GoString() string { 7289 return s.String() 7290} 7291 7292// SetGrantArn sets the GrantArn field's value. 7293func (s *Grant) SetGrantArn(v string) *Grant { 7294 s.GrantArn = &v 7295 return s 7296} 7297 7298// SetGrantName sets the GrantName field's value. 7299func (s *Grant) SetGrantName(v string) *Grant { 7300 s.GrantName = &v 7301 return s 7302} 7303 7304// SetGrantStatus sets the GrantStatus field's value. 7305func (s *Grant) SetGrantStatus(v string) *Grant { 7306 s.GrantStatus = &v 7307 return s 7308} 7309 7310// SetGrantedOperations sets the GrantedOperations field's value. 7311func (s *Grant) SetGrantedOperations(v []*string) *Grant { 7312 s.GrantedOperations = v 7313 return s 7314} 7315 7316// SetGranteePrincipalArn sets the GranteePrincipalArn field's value. 7317func (s *Grant) SetGranteePrincipalArn(v string) *Grant { 7318 s.GranteePrincipalArn = &v 7319 return s 7320} 7321 7322// SetHomeRegion sets the HomeRegion field's value. 7323func (s *Grant) SetHomeRegion(v string) *Grant { 7324 s.HomeRegion = &v 7325 return s 7326} 7327 7328// SetLicenseArn sets the LicenseArn field's value. 7329func (s *Grant) SetLicenseArn(v string) *Grant { 7330 s.LicenseArn = &v 7331 return s 7332} 7333 7334// SetParentArn sets the ParentArn field's value. 7335func (s *Grant) SetParentArn(v string) *Grant { 7336 s.ParentArn = &v 7337 return s 7338} 7339 7340// SetStatusReason sets the StatusReason field's value. 7341func (s *Grant) SetStatusReason(v string) *Grant { 7342 s.StatusReason = &v 7343 return s 7344} 7345 7346// SetVersion sets the Version field's value. 7347func (s *Grant) SetVersion(v string) *Grant { 7348 s.Version = &v 7349 return s 7350} 7351 7352// Describes a license that is granted to a grantee. 7353type GrantedLicense struct { 7354 _ struct{} `type:"structure"` 7355 7356 // Granted license beneficiary. 7357 Beneficiary *string `type:"string"` 7358 7359 // Configuration for consumption of the license. 7360 ConsumptionConfiguration *ConsumptionConfiguration `type:"structure"` 7361 7362 // Creation time of the granted license. 7363 CreateTime *string `type:"string"` 7364 7365 // License entitlements. 7366 Entitlements []*Entitlement `type:"list"` 7367 7368 // Home Region of the granted license. 7369 HomeRegion *string `type:"string"` 7370 7371 // Granted license issuer. 7372 Issuer *IssuerDetails `type:"structure"` 7373 7374 // Amazon Resource Name (ARN) of the license. 7375 LicenseArn *string `type:"string"` 7376 7377 // Granted license metadata. 7378 LicenseMetadata []*Metadata `type:"list"` 7379 7380 // License name. 7381 LicenseName *string `type:"string"` 7382 7383 // Product name. 7384 ProductName *string `type:"string"` 7385 7386 // Product SKU. 7387 ProductSKU *string `type:"string"` 7388 7389 // Granted license received metadata. 7390 ReceivedMetadata *ReceivedMetadata `type:"structure"` 7391 7392 // Granted license status. 7393 Status *string `type:"string" enum:"LicenseStatus"` 7394 7395 // Date and time range during which the granted license is valid, in ISO8601-UTC 7396 // format. 7397 Validity *DatetimeRange `type:"structure"` 7398 7399 // Version of the granted license. 7400 Version *string `type:"string"` 7401} 7402 7403// String returns the string representation 7404func (s GrantedLicense) String() string { 7405 return awsutil.Prettify(s) 7406} 7407 7408// GoString returns the string representation 7409func (s GrantedLicense) GoString() string { 7410 return s.String() 7411} 7412 7413// SetBeneficiary sets the Beneficiary field's value. 7414func (s *GrantedLicense) SetBeneficiary(v string) *GrantedLicense { 7415 s.Beneficiary = &v 7416 return s 7417} 7418 7419// SetConsumptionConfiguration sets the ConsumptionConfiguration field's value. 7420func (s *GrantedLicense) SetConsumptionConfiguration(v *ConsumptionConfiguration) *GrantedLicense { 7421 s.ConsumptionConfiguration = v 7422 return s 7423} 7424 7425// SetCreateTime sets the CreateTime field's value. 7426func (s *GrantedLicense) SetCreateTime(v string) *GrantedLicense { 7427 s.CreateTime = &v 7428 return s 7429} 7430 7431// SetEntitlements sets the Entitlements field's value. 7432func (s *GrantedLicense) SetEntitlements(v []*Entitlement) *GrantedLicense { 7433 s.Entitlements = v 7434 return s 7435} 7436 7437// SetHomeRegion sets the HomeRegion field's value. 7438func (s *GrantedLicense) SetHomeRegion(v string) *GrantedLicense { 7439 s.HomeRegion = &v 7440 return s 7441} 7442 7443// SetIssuer sets the Issuer field's value. 7444func (s *GrantedLicense) SetIssuer(v *IssuerDetails) *GrantedLicense { 7445 s.Issuer = v 7446 return s 7447} 7448 7449// SetLicenseArn sets the LicenseArn field's value. 7450func (s *GrantedLicense) SetLicenseArn(v string) *GrantedLicense { 7451 s.LicenseArn = &v 7452 return s 7453} 7454 7455// SetLicenseMetadata sets the LicenseMetadata field's value. 7456func (s *GrantedLicense) SetLicenseMetadata(v []*Metadata) *GrantedLicense { 7457 s.LicenseMetadata = v 7458 return s 7459} 7460 7461// SetLicenseName sets the LicenseName field's value. 7462func (s *GrantedLicense) SetLicenseName(v string) *GrantedLicense { 7463 s.LicenseName = &v 7464 return s 7465} 7466 7467// SetProductName sets the ProductName field's value. 7468func (s *GrantedLicense) SetProductName(v string) *GrantedLicense { 7469 s.ProductName = &v 7470 return s 7471} 7472 7473// SetProductSKU sets the ProductSKU field's value. 7474func (s *GrantedLicense) SetProductSKU(v string) *GrantedLicense { 7475 s.ProductSKU = &v 7476 return s 7477} 7478 7479// SetReceivedMetadata sets the ReceivedMetadata field's value. 7480func (s *GrantedLicense) SetReceivedMetadata(v *ReceivedMetadata) *GrantedLicense { 7481 s.ReceivedMetadata = v 7482 return s 7483} 7484 7485// SetStatus sets the Status field's value. 7486func (s *GrantedLicense) SetStatus(v string) *GrantedLicense { 7487 s.Status = &v 7488 return s 7489} 7490 7491// SetValidity sets the Validity field's value. 7492func (s *GrantedLicense) SetValidity(v *DatetimeRange) *GrantedLicense { 7493 s.Validity = v 7494 return s 7495} 7496 7497// SetVersion sets the Version field's value. 7498func (s *GrantedLicense) SetVersion(v string) *GrantedLicense { 7499 s.Version = &v 7500 return s 7501} 7502 7503// One or more parameter values are not valid. 7504type InvalidParameterValueException struct { 7505 _ struct{} `type:"structure"` 7506 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7507 7508 Message_ *string `locationName:"Message" type:"string"` 7509} 7510 7511// String returns the string representation 7512func (s InvalidParameterValueException) String() string { 7513 return awsutil.Prettify(s) 7514} 7515 7516// GoString returns the string representation 7517func (s InvalidParameterValueException) GoString() string { 7518 return s.String() 7519} 7520 7521func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { 7522 return &InvalidParameterValueException{ 7523 RespMetadata: v, 7524 } 7525} 7526 7527// Code returns the exception type name. 7528func (s *InvalidParameterValueException) Code() string { 7529 return "InvalidParameterValueException" 7530} 7531 7532// Message returns the exception's message. 7533func (s *InvalidParameterValueException) Message() string { 7534 if s.Message_ != nil { 7535 return *s.Message_ 7536 } 7537 return "" 7538} 7539 7540// OrigErr always returns nil, satisfies awserr.Error interface. 7541func (s *InvalidParameterValueException) OrigErr() error { 7542 return nil 7543} 7544 7545func (s *InvalidParameterValueException) Error() string { 7546 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7547} 7548 7549// Status code returns the HTTP status code for the request's response error. 7550func (s *InvalidParameterValueException) StatusCode() int { 7551 return s.RespMetadata.StatusCode 7552} 7553 7554// RequestID returns the service's response RequestID for request. 7555func (s *InvalidParameterValueException) RequestID() string { 7556 return s.RespMetadata.RequestID 7557} 7558 7559// License Manager cannot allocate a license to a resource because of its state. 7560// 7561// For example, you cannot allocate a license to an instance in the process 7562// of shutting down. 7563type InvalidResourceStateException struct { 7564 _ struct{} `type:"structure"` 7565 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7566 7567 Message_ *string `locationName:"Message" type:"string"` 7568} 7569 7570// String returns the string representation 7571func (s InvalidResourceStateException) String() string { 7572 return awsutil.Prettify(s) 7573} 7574 7575// GoString returns the string representation 7576func (s InvalidResourceStateException) GoString() string { 7577 return s.String() 7578} 7579 7580func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error { 7581 return &InvalidResourceStateException{ 7582 RespMetadata: v, 7583 } 7584} 7585 7586// Code returns the exception type name. 7587func (s *InvalidResourceStateException) Code() string { 7588 return "InvalidResourceStateException" 7589} 7590 7591// Message returns the exception's message. 7592func (s *InvalidResourceStateException) Message() string { 7593 if s.Message_ != nil { 7594 return *s.Message_ 7595 } 7596 return "" 7597} 7598 7599// OrigErr always returns nil, satisfies awserr.Error interface. 7600func (s *InvalidResourceStateException) OrigErr() error { 7601 return nil 7602} 7603 7604func (s *InvalidResourceStateException) Error() string { 7605 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7606} 7607 7608// Status code returns the HTTP status code for the request's response error. 7609func (s *InvalidResourceStateException) StatusCode() int { 7610 return s.RespMetadata.StatusCode 7611} 7612 7613// RequestID returns the service's response RequestID for request. 7614func (s *InvalidResourceStateException) RequestID() string { 7615 return s.RespMetadata.RequestID 7616} 7617 7618// An inventory filter. 7619type InventoryFilter struct { 7620 _ struct{} `type:"structure"` 7621 7622 // Condition of the filter. 7623 // 7624 // Condition is a required field 7625 Condition *string `type:"string" required:"true" enum:"InventoryFilterCondition"` 7626 7627 // Name of the filter. 7628 // 7629 // Name is a required field 7630 Name *string `type:"string" required:"true"` 7631 7632 // Value of the filter. 7633 Value *string `type:"string"` 7634} 7635 7636// String returns the string representation 7637func (s InventoryFilter) String() string { 7638 return awsutil.Prettify(s) 7639} 7640 7641// GoString returns the string representation 7642func (s InventoryFilter) GoString() string { 7643 return s.String() 7644} 7645 7646// Validate inspects the fields of the type to determine if they are valid. 7647func (s *InventoryFilter) Validate() error { 7648 invalidParams := request.ErrInvalidParams{Context: "InventoryFilter"} 7649 if s.Condition == nil { 7650 invalidParams.Add(request.NewErrParamRequired("Condition")) 7651 } 7652 if s.Name == nil { 7653 invalidParams.Add(request.NewErrParamRequired("Name")) 7654 } 7655 7656 if invalidParams.Len() > 0 { 7657 return invalidParams 7658 } 7659 return nil 7660} 7661 7662// SetCondition sets the Condition field's value. 7663func (s *InventoryFilter) SetCondition(v string) *InventoryFilter { 7664 s.Condition = &v 7665 return s 7666} 7667 7668// SetName sets the Name field's value. 7669func (s *InventoryFilter) SetName(v string) *InventoryFilter { 7670 s.Name = &v 7671 return s 7672} 7673 7674// SetValue sets the Value field's value. 7675func (s *InventoryFilter) SetValue(v string) *InventoryFilter { 7676 s.Value = &v 7677 return s 7678} 7679 7680// Details about the issuer of a license. 7681type Issuer struct { 7682 _ struct{} `type:"structure"` 7683 7684 // Issuer name. 7685 // 7686 // Name is a required field 7687 Name *string `type:"string" required:"true"` 7688 7689 // Asymmetric CMK from AWS Key Management Service. The CMK must have a key usage 7690 // of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. 7691 SignKey *string `type:"string"` 7692} 7693 7694// String returns the string representation 7695func (s Issuer) String() string { 7696 return awsutil.Prettify(s) 7697} 7698 7699// GoString returns the string representation 7700func (s Issuer) GoString() string { 7701 return s.String() 7702} 7703 7704// Validate inspects the fields of the type to determine if they are valid. 7705func (s *Issuer) Validate() error { 7706 invalidParams := request.ErrInvalidParams{Context: "Issuer"} 7707 if s.Name == nil { 7708 invalidParams.Add(request.NewErrParamRequired("Name")) 7709 } 7710 7711 if invalidParams.Len() > 0 { 7712 return invalidParams 7713 } 7714 return nil 7715} 7716 7717// SetName sets the Name field's value. 7718func (s *Issuer) SetName(v string) *Issuer { 7719 s.Name = &v 7720 return s 7721} 7722 7723// SetSignKey sets the SignKey field's value. 7724func (s *Issuer) SetSignKey(v string) *Issuer { 7725 s.SignKey = &v 7726 return s 7727} 7728 7729// Details associated with the issuer of a license. 7730type IssuerDetails struct { 7731 _ struct{} `type:"structure"` 7732 7733 // Issuer key fingerprint. 7734 KeyFingerprint *string `type:"string"` 7735 7736 // Issuer name. 7737 Name *string `type:"string"` 7738 7739 // Asymmetric CMK from AWS Key Management Service. The CMK must have a key usage 7740 // of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm. 7741 SignKey *string `type:"string"` 7742} 7743 7744// String returns the string representation 7745func (s IssuerDetails) String() string { 7746 return awsutil.Prettify(s) 7747} 7748 7749// GoString returns the string representation 7750func (s IssuerDetails) GoString() string { 7751 return s.String() 7752} 7753 7754// SetKeyFingerprint sets the KeyFingerprint field's value. 7755func (s *IssuerDetails) SetKeyFingerprint(v string) *IssuerDetails { 7756 s.KeyFingerprint = &v 7757 return s 7758} 7759 7760// SetName sets the Name field's value. 7761func (s *IssuerDetails) SetName(v string) *IssuerDetails { 7762 s.Name = &v 7763 return s 7764} 7765 7766// SetSignKey sets the SignKey field's value. 7767func (s *IssuerDetails) SetSignKey(v string) *IssuerDetails { 7768 s.SignKey = &v 7769 return s 7770} 7771 7772// Software license that is managed in AWS License Manager. 7773type License struct { 7774 _ struct{} `type:"structure"` 7775 7776 // License beneficiary. 7777 Beneficiary *string `type:"string"` 7778 7779 // Configuration for consumption of the license. 7780 ConsumptionConfiguration *ConsumptionConfiguration `type:"structure"` 7781 7782 // License creation time. 7783 CreateTime *string `type:"string"` 7784 7785 // License entitlements. 7786 Entitlements []*Entitlement `type:"list"` 7787 7788 // Home Region of the license. 7789 HomeRegion *string `type:"string"` 7790 7791 // License issuer. 7792 Issuer *IssuerDetails `type:"structure"` 7793 7794 // Amazon Resource Name (ARN) of the license. 7795 LicenseArn *string `type:"string"` 7796 7797 // License metadata. 7798 LicenseMetadata []*Metadata `type:"list"` 7799 7800 // License name. 7801 LicenseName *string `type:"string"` 7802 7803 // Product name. 7804 ProductName *string `type:"string"` 7805 7806 // Product SKU. 7807 ProductSKU *string `type:"string"` 7808 7809 // License status. 7810 Status *string `type:"string" enum:"LicenseStatus"` 7811 7812 // Date and time range during which the license is valid, in ISO8601-UTC format. 7813 Validity *DatetimeRange `type:"structure"` 7814 7815 // License version. 7816 Version *string `type:"string"` 7817} 7818 7819// String returns the string representation 7820func (s License) String() string { 7821 return awsutil.Prettify(s) 7822} 7823 7824// GoString returns the string representation 7825func (s License) GoString() string { 7826 return s.String() 7827} 7828 7829// SetBeneficiary sets the Beneficiary field's value. 7830func (s *License) SetBeneficiary(v string) *License { 7831 s.Beneficiary = &v 7832 return s 7833} 7834 7835// SetConsumptionConfiguration sets the ConsumptionConfiguration field's value. 7836func (s *License) SetConsumptionConfiguration(v *ConsumptionConfiguration) *License { 7837 s.ConsumptionConfiguration = v 7838 return s 7839} 7840 7841// SetCreateTime sets the CreateTime field's value. 7842func (s *License) SetCreateTime(v string) *License { 7843 s.CreateTime = &v 7844 return s 7845} 7846 7847// SetEntitlements sets the Entitlements field's value. 7848func (s *License) SetEntitlements(v []*Entitlement) *License { 7849 s.Entitlements = v 7850 return s 7851} 7852 7853// SetHomeRegion sets the HomeRegion field's value. 7854func (s *License) SetHomeRegion(v string) *License { 7855 s.HomeRegion = &v 7856 return s 7857} 7858 7859// SetIssuer sets the Issuer field's value. 7860func (s *License) SetIssuer(v *IssuerDetails) *License { 7861 s.Issuer = v 7862 return s 7863} 7864 7865// SetLicenseArn sets the LicenseArn field's value. 7866func (s *License) SetLicenseArn(v string) *License { 7867 s.LicenseArn = &v 7868 return s 7869} 7870 7871// SetLicenseMetadata sets the LicenseMetadata field's value. 7872func (s *License) SetLicenseMetadata(v []*Metadata) *License { 7873 s.LicenseMetadata = v 7874 return s 7875} 7876 7877// SetLicenseName sets the LicenseName field's value. 7878func (s *License) SetLicenseName(v string) *License { 7879 s.LicenseName = &v 7880 return s 7881} 7882 7883// SetProductName sets the ProductName field's value. 7884func (s *License) SetProductName(v string) *License { 7885 s.ProductName = &v 7886 return s 7887} 7888 7889// SetProductSKU sets the ProductSKU field's value. 7890func (s *License) SetProductSKU(v string) *License { 7891 s.ProductSKU = &v 7892 return s 7893} 7894 7895// SetStatus sets the Status field's value. 7896func (s *License) SetStatus(v string) *License { 7897 s.Status = &v 7898 return s 7899} 7900 7901// SetValidity sets the Validity field's value. 7902func (s *License) SetValidity(v *DatetimeRange) *License { 7903 s.Validity = v 7904 return s 7905} 7906 7907// SetVersion sets the Version field's value. 7908func (s *License) SetVersion(v string) *License { 7909 s.Version = &v 7910 return s 7911} 7912 7913// A license configuration is an abstraction of a customer license agreement 7914// that can be consumed and enforced by License Manager. Components include 7915// specifications for the license type (licensing by instance, socket, CPU, 7916// or vCPU), allowed tenancy (shared tenancy, Dedicated Instance, Dedicated 7917// Host, or all of these), host affinity (how long a VM must be associated with 7918// a host), and the number of licenses purchased and used. 7919type LicenseConfiguration struct { 7920 _ struct{} `type:"structure"` 7921 7922 // Automated discovery information. 7923 AutomatedDiscoveryInformation *AutomatedDiscoveryInformation `type:"structure"` 7924 7925 // Summaries for licenses consumed by various resources. 7926 ConsumedLicenseSummaryList []*ConsumedLicenseSummary `type:"list"` 7927 7928 // Number of licenses consumed. 7929 ConsumedLicenses *int64 `type:"long"` 7930 7931 // Description of the license configuration. 7932 Description *string `type:"string"` 7933 7934 // When true, disassociates a resource when software is uninstalled. 7935 DisassociateWhenNotFound *bool `type:"boolean"` 7936 7937 // Amazon Resource Name (ARN) of the license configuration. 7938 LicenseConfigurationArn *string `type:"string"` 7939 7940 // Unique ID of the license configuration. 7941 LicenseConfigurationId *string `type:"string"` 7942 7943 // Number of licenses managed by the license configuration. 7944 LicenseCount *int64 `type:"long"` 7945 7946 // Number of available licenses as a hard limit. 7947 LicenseCountHardLimit *bool `type:"boolean"` 7948 7949 // Dimension to use to track the license inventory. 7950 LicenseCountingType *string `type:"string" enum:"LicenseCountingType"` 7951 7952 // License rules. 7953 LicenseRules []*string `type:"list"` 7954 7955 // Summaries for managed resources. 7956 ManagedResourceSummaryList []*ManagedResourceSummary `type:"list"` 7957 7958 // Name of the license configuration. 7959 Name *string `type:"string"` 7960 7961 // Account ID of the license configuration's owner. 7962 OwnerAccountId *string `type:"string"` 7963 7964 // Product information. 7965 ProductInformationList []*ProductInformation `type:"list"` 7966 7967 // Status of the license configuration. 7968 Status *string `type:"string"` 7969} 7970 7971// String returns the string representation 7972func (s LicenseConfiguration) String() string { 7973 return awsutil.Prettify(s) 7974} 7975 7976// GoString returns the string representation 7977func (s LicenseConfiguration) GoString() string { 7978 return s.String() 7979} 7980 7981// SetAutomatedDiscoveryInformation sets the AutomatedDiscoveryInformation field's value. 7982func (s *LicenseConfiguration) SetAutomatedDiscoveryInformation(v *AutomatedDiscoveryInformation) *LicenseConfiguration { 7983 s.AutomatedDiscoveryInformation = v 7984 return s 7985} 7986 7987// SetConsumedLicenseSummaryList sets the ConsumedLicenseSummaryList field's value. 7988func (s *LicenseConfiguration) SetConsumedLicenseSummaryList(v []*ConsumedLicenseSummary) *LicenseConfiguration { 7989 s.ConsumedLicenseSummaryList = v 7990 return s 7991} 7992 7993// SetConsumedLicenses sets the ConsumedLicenses field's value. 7994func (s *LicenseConfiguration) SetConsumedLicenses(v int64) *LicenseConfiguration { 7995 s.ConsumedLicenses = &v 7996 return s 7997} 7998 7999// SetDescription sets the Description field's value. 8000func (s *LicenseConfiguration) SetDescription(v string) *LicenseConfiguration { 8001 s.Description = &v 8002 return s 8003} 8004 8005// SetDisassociateWhenNotFound sets the DisassociateWhenNotFound field's value. 8006func (s *LicenseConfiguration) SetDisassociateWhenNotFound(v bool) *LicenseConfiguration { 8007 s.DisassociateWhenNotFound = &v 8008 return s 8009} 8010 8011// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 8012func (s *LicenseConfiguration) SetLicenseConfigurationArn(v string) *LicenseConfiguration { 8013 s.LicenseConfigurationArn = &v 8014 return s 8015} 8016 8017// SetLicenseConfigurationId sets the LicenseConfigurationId field's value. 8018func (s *LicenseConfiguration) SetLicenseConfigurationId(v string) *LicenseConfiguration { 8019 s.LicenseConfigurationId = &v 8020 return s 8021} 8022 8023// SetLicenseCount sets the LicenseCount field's value. 8024func (s *LicenseConfiguration) SetLicenseCount(v int64) *LicenseConfiguration { 8025 s.LicenseCount = &v 8026 return s 8027} 8028 8029// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. 8030func (s *LicenseConfiguration) SetLicenseCountHardLimit(v bool) *LicenseConfiguration { 8031 s.LicenseCountHardLimit = &v 8032 return s 8033} 8034 8035// SetLicenseCountingType sets the LicenseCountingType field's value. 8036func (s *LicenseConfiguration) SetLicenseCountingType(v string) *LicenseConfiguration { 8037 s.LicenseCountingType = &v 8038 return s 8039} 8040 8041// SetLicenseRules sets the LicenseRules field's value. 8042func (s *LicenseConfiguration) SetLicenseRules(v []*string) *LicenseConfiguration { 8043 s.LicenseRules = v 8044 return s 8045} 8046 8047// SetManagedResourceSummaryList sets the ManagedResourceSummaryList field's value. 8048func (s *LicenseConfiguration) SetManagedResourceSummaryList(v []*ManagedResourceSummary) *LicenseConfiguration { 8049 s.ManagedResourceSummaryList = v 8050 return s 8051} 8052 8053// SetName sets the Name field's value. 8054func (s *LicenseConfiguration) SetName(v string) *LicenseConfiguration { 8055 s.Name = &v 8056 return s 8057} 8058 8059// SetOwnerAccountId sets the OwnerAccountId field's value. 8060func (s *LicenseConfiguration) SetOwnerAccountId(v string) *LicenseConfiguration { 8061 s.OwnerAccountId = &v 8062 return s 8063} 8064 8065// SetProductInformationList sets the ProductInformationList field's value. 8066func (s *LicenseConfiguration) SetProductInformationList(v []*ProductInformation) *LicenseConfiguration { 8067 s.ProductInformationList = v 8068 return s 8069} 8070 8071// SetStatus sets the Status field's value. 8072func (s *LicenseConfiguration) SetStatus(v string) *LicenseConfiguration { 8073 s.Status = &v 8074 return s 8075} 8076 8077// Describes an association with a license configuration. 8078type LicenseConfigurationAssociation struct { 8079 _ struct{} `type:"structure"` 8080 8081 // Scope of AMI associations. The possible value is cross-account. 8082 AmiAssociationScope *string `type:"string"` 8083 8084 // Time when the license configuration was associated with the resource. 8085 AssociationTime *time.Time `type:"timestamp"` 8086 8087 // Amazon Resource Name (ARN) of the resource. 8088 ResourceArn *string `type:"string"` 8089 8090 // ID of the AWS account that owns the resource consuming licenses. 8091 ResourceOwnerId *string `type:"string"` 8092 8093 // Type of server resource. 8094 ResourceType *string `type:"string" enum:"ResourceType"` 8095} 8096 8097// String returns the string representation 8098func (s LicenseConfigurationAssociation) String() string { 8099 return awsutil.Prettify(s) 8100} 8101 8102// GoString returns the string representation 8103func (s LicenseConfigurationAssociation) GoString() string { 8104 return s.String() 8105} 8106 8107// SetAmiAssociationScope sets the AmiAssociationScope field's value. 8108func (s *LicenseConfigurationAssociation) SetAmiAssociationScope(v string) *LicenseConfigurationAssociation { 8109 s.AmiAssociationScope = &v 8110 return s 8111} 8112 8113// SetAssociationTime sets the AssociationTime field's value. 8114func (s *LicenseConfigurationAssociation) SetAssociationTime(v time.Time) *LicenseConfigurationAssociation { 8115 s.AssociationTime = &v 8116 return s 8117} 8118 8119// SetResourceArn sets the ResourceArn field's value. 8120func (s *LicenseConfigurationAssociation) SetResourceArn(v string) *LicenseConfigurationAssociation { 8121 s.ResourceArn = &v 8122 return s 8123} 8124 8125// SetResourceOwnerId sets the ResourceOwnerId field's value. 8126func (s *LicenseConfigurationAssociation) SetResourceOwnerId(v string) *LicenseConfigurationAssociation { 8127 s.ResourceOwnerId = &v 8128 return s 8129} 8130 8131// SetResourceType sets the ResourceType field's value. 8132func (s *LicenseConfigurationAssociation) SetResourceType(v string) *LicenseConfigurationAssociation { 8133 s.ResourceType = &v 8134 return s 8135} 8136 8137// Details about the usage of a resource associated with a license configuration. 8138type LicenseConfigurationUsage struct { 8139 _ struct{} `type:"structure"` 8140 8141 // Time when the license configuration was initially associated with the resource. 8142 AssociationTime *time.Time `type:"timestamp"` 8143 8144 // Number of licenses consumed by the resource. 8145 ConsumedLicenses *int64 `type:"long"` 8146 8147 // Amazon Resource Name (ARN) of the resource. 8148 ResourceArn *string `type:"string"` 8149 8150 // ID of the account that owns the resource. 8151 ResourceOwnerId *string `type:"string"` 8152 8153 // Status of the resource. 8154 ResourceStatus *string `type:"string"` 8155 8156 // Type of resource. 8157 ResourceType *string `type:"string" enum:"ResourceType"` 8158} 8159 8160// String returns the string representation 8161func (s LicenseConfigurationUsage) String() string { 8162 return awsutil.Prettify(s) 8163} 8164 8165// GoString returns the string representation 8166func (s LicenseConfigurationUsage) GoString() string { 8167 return s.String() 8168} 8169 8170// SetAssociationTime sets the AssociationTime field's value. 8171func (s *LicenseConfigurationUsage) SetAssociationTime(v time.Time) *LicenseConfigurationUsage { 8172 s.AssociationTime = &v 8173 return s 8174} 8175 8176// SetConsumedLicenses sets the ConsumedLicenses field's value. 8177func (s *LicenseConfigurationUsage) SetConsumedLicenses(v int64) *LicenseConfigurationUsage { 8178 s.ConsumedLicenses = &v 8179 return s 8180} 8181 8182// SetResourceArn sets the ResourceArn field's value. 8183func (s *LicenseConfigurationUsage) SetResourceArn(v string) *LicenseConfigurationUsage { 8184 s.ResourceArn = &v 8185 return s 8186} 8187 8188// SetResourceOwnerId sets the ResourceOwnerId field's value. 8189func (s *LicenseConfigurationUsage) SetResourceOwnerId(v string) *LicenseConfigurationUsage { 8190 s.ResourceOwnerId = &v 8191 return s 8192} 8193 8194// SetResourceStatus sets the ResourceStatus field's value. 8195func (s *LicenseConfigurationUsage) SetResourceStatus(v string) *LicenseConfigurationUsage { 8196 s.ResourceStatus = &v 8197 return s 8198} 8199 8200// SetResourceType sets the ResourceType field's value. 8201func (s *LicenseConfigurationUsage) SetResourceType(v string) *LicenseConfigurationUsage { 8202 s.ResourceType = &v 8203 return s 8204} 8205 8206// Describes the failure of a license operation. 8207type LicenseOperationFailure struct { 8208 _ struct{} `type:"structure"` 8209 8210 // Error message. 8211 ErrorMessage *string `type:"string"` 8212 8213 // Failure time. 8214 FailureTime *time.Time `type:"timestamp"` 8215 8216 // Reserved. 8217 MetadataList []*Metadata `type:"list"` 8218 8219 // Name of the operation. 8220 OperationName *string `type:"string"` 8221 8222 // The requester is "License Manager Automated Discovery". 8223 OperationRequestedBy *string `type:"string"` 8224 8225 // Amazon Resource Name (ARN) of the resource. 8226 ResourceArn *string `type:"string"` 8227 8228 // ID of the AWS account that owns the resource. 8229 ResourceOwnerId *string `type:"string"` 8230 8231 // Resource type. 8232 ResourceType *string `type:"string" enum:"ResourceType"` 8233} 8234 8235// String returns the string representation 8236func (s LicenseOperationFailure) String() string { 8237 return awsutil.Prettify(s) 8238} 8239 8240// GoString returns the string representation 8241func (s LicenseOperationFailure) GoString() string { 8242 return s.String() 8243} 8244 8245// SetErrorMessage sets the ErrorMessage field's value. 8246func (s *LicenseOperationFailure) SetErrorMessage(v string) *LicenseOperationFailure { 8247 s.ErrorMessage = &v 8248 return s 8249} 8250 8251// SetFailureTime sets the FailureTime field's value. 8252func (s *LicenseOperationFailure) SetFailureTime(v time.Time) *LicenseOperationFailure { 8253 s.FailureTime = &v 8254 return s 8255} 8256 8257// SetMetadataList sets the MetadataList field's value. 8258func (s *LicenseOperationFailure) SetMetadataList(v []*Metadata) *LicenseOperationFailure { 8259 s.MetadataList = v 8260 return s 8261} 8262 8263// SetOperationName sets the OperationName field's value. 8264func (s *LicenseOperationFailure) SetOperationName(v string) *LicenseOperationFailure { 8265 s.OperationName = &v 8266 return s 8267} 8268 8269// SetOperationRequestedBy sets the OperationRequestedBy field's value. 8270func (s *LicenseOperationFailure) SetOperationRequestedBy(v string) *LicenseOperationFailure { 8271 s.OperationRequestedBy = &v 8272 return s 8273} 8274 8275// SetResourceArn sets the ResourceArn field's value. 8276func (s *LicenseOperationFailure) SetResourceArn(v string) *LicenseOperationFailure { 8277 s.ResourceArn = &v 8278 return s 8279} 8280 8281// SetResourceOwnerId sets the ResourceOwnerId field's value. 8282func (s *LicenseOperationFailure) SetResourceOwnerId(v string) *LicenseOperationFailure { 8283 s.ResourceOwnerId = &v 8284 return s 8285} 8286 8287// SetResourceType sets the ResourceType field's value. 8288func (s *LicenseOperationFailure) SetResourceType(v string) *LicenseOperationFailure { 8289 s.ResourceType = &v 8290 return s 8291} 8292 8293// Details for associating a license configuration with a resource. 8294type LicenseSpecification struct { 8295 _ struct{} `type:"structure"` 8296 8297 // Scope of AMI associations. The possible value is cross-account. 8298 AmiAssociationScope *string `type:"string"` 8299 8300 // Amazon Resource Name (ARN) of the license configuration. 8301 // 8302 // LicenseConfigurationArn is a required field 8303 LicenseConfigurationArn *string `type:"string" required:"true"` 8304} 8305 8306// String returns the string representation 8307func (s LicenseSpecification) String() string { 8308 return awsutil.Prettify(s) 8309} 8310 8311// GoString returns the string representation 8312func (s LicenseSpecification) GoString() string { 8313 return s.String() 8314} 8315 8316// Validate inspects the fields of the type to determine if they are valid. 8317func (s *LicenseSpecification) Validate() error { 8318 invalidParams := request.ErrInvalidParams{Context: "LicenseSpecification"} 8319 if s.LicenseConfigurationArn == nil { 8320 invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) 8321 } 8322 8323 if invalidParams.Len() > 0 { 8324 return invalidParams 8325 } 8326 return nil 8327} 8328 8329// SetAmiAssociationScope sets the AmiAssociationScope field's value. 8330func (s *LicenseSpecification) SetAmiAssociationScope(v string) *LicenseSpecification { 8331 s.AmiAssociationScope = &v 8332 return s 8333} 8334 8335// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 8336func (s *LicenseSpecification) SetLicenseConfigurationArn(v string) *LicenseSpecification { 8337 s.LicenseConfigurationArn = &v 8338 return s 8339} 8340 8341// Describes the entitlement usage associated with a license. 8342type LicenseUsage struct { 8343 _ struct{} `type:"structure"` 8344 8345 // License entitlement usages. 8346 EntitlementUsages []*EntitlementUsage `type:"list"` 8347} 8348 8349// String returns the string representation 8350func (s LicenseUsage) String() string { 8351 return awsutil.Prettify(s) 8352} 8353 8354// GoString returns the string representation 8355func (s LicenseUsage) GoString() string { 8356 return s.String() 8357} 8358 8359// SetEntitlementUsages sets the EntitlementUsages field's value. 8360func (s *LicenseUsage) SetEntitlementUsages(v []*EntitlementUsage) *LicenseUsage { 8361 s.EntitlementUsages = v 8362 return s 8363} 8364 8365// You do not have enough licenses available to support a new resource launch. 8366type LicenseUsageException struct { 8367 _ struct{} `type:"structure"` 8368 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8369 8370 Message_ *string `locationName:"Message" type:"string"` 8371} 8372 8373// String returns the string representation 8374func (s LicenseUsageException) String() string { 8375 return awsutil.Prettify(s) 8376} 8377 8378// GoString returns the string representation 8379func (s LicenseUsageException) GoString() string { 8380 return s.String() 8381} 8382 8383func newErrorLicenseUsageException(v protocol.ResponseMetadata) error { 8384 return &LicenseUsageException{ 8385 RespMetadata: v, 8386 } 8387} 8388 8389// Code returns the exception type name. 8390func (s *LicenseUsageException) Code() string { 8391 return "LicenseUsageException" 8392} 8393 8394// Message returns the exception's message. 8395func (s *LicenseUsageException) Message() string { 8396 if s.Message_ != nil { 8397 return *s.Message_ 8398 } 8399 return "" 8400} 8401 8402// OrigErr always returns nil, satisfies awserr.Error interface. 8403func (s *LicenseUsageException) OrigErr() error { 8404 return nil 8405} 8406 8407func (s *LicenseUsageException) Error() string { 8408 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8409} 8410 8411// Status code returns the HTTP status code for the request's response error. 8412func (s *LicenseUsageException) StatusCode() int { 8413 return s.RespMetadata.StatusCode 8414} 8415 8416// RequestID returns the service's response RequestID for request. 8417func (s *LicenseUsageException) RequestID() string { 8418 return s.RespMetadata.RequestID 8419} 8420 8421type ListAssociationsForLicenseConfigurationInput struct { 8422 _ struct{} `type:"structure"` 8423 8424 // Amazon Resource Name (ARN) of a license configuration. 8425 // 8426 // LicenseConfigurationArn is a required field 8427 LicenseConfigurationArn *string `type:"string" required:"true"` 8428 8429 // Maximum number of results to return in a single call. 8430 MaxResults *int64 `type:"integer"` 8431 8432 // Token for the next set of results. 8433 NextToken *string `type:"string"` 8434} 8435 8436// String returns the string representation 8437func (s ListAssociationsForLicenseConfigurationInput) String() string { 8438 return awsutil.Prettify(s) 8439} 8440 8441// GoString returns the string representation 8442func (s ListAssociationsForLicenseConfigurationInput) GoString() string { 8443 return s.String() 8444} 8445 8446// Validate inspects the fields of the type to determine if they are valid. 8447func (s *ListAssociationsForLicenseConfigurationInput) Validate() error { 8448 invalidParams := request.ErrInvalidParams{Context: "ListAssociationsForLicenseConfigurationInput"} 8449 if s.LicenseConfigurationArn == nil { 8450 invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) 8451 } 8452 8453 if invalidParams.Len() > 0 { 8454 return invalidParams 8455 } 8456 return nil 8457} 8458 8459// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 8460func (s *ListAssociationsForLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *ListAssociationsForLicenseConfigurationInput { 8461 s.LicenseConfigurationArn = &v 8462 return s 8463} 8464 8465// SetMaxResults sets the MaxResults field's value. 8466func (s *ListAssociationsForLicenseConfigurationInput) SetMaxResults(v int64) *ListAssociationsForLicenseConfigurationInput { 8467 s.MaxResults = &v 8468 return s 8469} 8470 8471// SetNextToken sets the NextToken field's value. 8472func (s *ListAssociationsForLicenseConfigurationInput) SetNextToken(v string) *ListAssociationsForLicenseConfigurationInput { 8473 s.NextToken = &v 8474 return s 8475} 8476 8477type ListAssociationsForLicenseConfigurationOutput struct { 8478 _ struct{} `type:"structure"` 8479 8480 // Information about the associations for the license configuration. 8481 LicenseConfigurationAssociations []*LicenseConfigurationAssociation `type:"list"` 8482 8483 // Token for the next set of results. 8484 NextToken *string `type:"string"` 8485} 8486 8487// String returns the string representation 8488func (s ListAssociationsForLicenseConfigurationOutput) String() string { 8489 return awsutil.Prettify(s) 8490} 8491 8492// GoString returns the string representation 8493func (s ListAssociationsForLicenseConfigurationOutput) GoString() string { 8494 return s.String() 8495} 8496 8497// SetLicenseConfigurationAssociations sets the LicenseConfigurationAssociations field's value. 8498func (s *ListAssociationsForLicenseConfigurationOutput) SetLicenseConfigurationAssociations(v []*LicenseConfigurationAssociation) *ListAssociationsForLicenseConfigurationOutput { 8499 s.LicenseConfigurationAssociations = v 8500 return s 8501} 8502 8503// SetNextToken sets the NextToken field's value. 8504func (s *ListAssociationsForLicenseConfigurationOutput) SetNextToken(v string) *ListAssociationsForLicenseConfigurationOutput { 8505 s.NextToken = &v 8506 return s 8507} 8508 8509type ListDistributedGrantsInput struct { 8510 _ struct{} `type:"structure"` 8511 8512 // Filters to scope the results. The following filters are supported: 8513 // 8514 // * LicenseARN 8515 // 8516 // * Status 8517 // 8518 // * PrincipalARN 8519 // 8520 // * ParentARN 8521 Filters []*Filter `type:"list"` 8522 8523 // Amazon Resource Names (ARNs) of the grants. 8524 GrantArns []*string `type:"list"` 8525 8526 // Maximum number of results to return in a single call. 8527 MaxResults *int64 `min:"1" type:"integer"` 8528 8529 // Token for the next set of results. 8530 NextToken *string `type:"string"` 8531} 8532 8533// String returns the string representation 8534func (s ListDistributedGrantsInput) String() string { 8535 return awsutil.Prettify(s) 8536} 8537 8538// GoString returns the string representation 8539func (s ListDistributedGrantsInput) GoString() string { 8540 return s.String() 8541} 8542 8543// Validate inspects the fields of the type to determine if they are valid. 8544func (s *ListDistributedGrantsInput) Validate() error { 8545 invalidParams := request.ErrInvalidParams{Context: "ListDistributedGrantsInput"} 8546 if s.MaxResults != nil && *s.MaxResults < 1 { 8547 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 8548 } 8549 8550 if invalidParams.Len() > 0 { 8551 return invalidParams 8552 } 8553 return nil 8554} 8555 8556// SetFilters sets the Filters field's value. 8557func (s *ListDistributedGrantsInput) SetFilters(v []*Filter) *ListDistributedGrantsInput { 8558 s.Filters = v 8559 return s 8560} 8561 8562// SetGrantArns sets the GrantArns field's value. 8563func (s *ListDistributedGrantsInput) SetGrantArns(v []*string) *ListDistributedGrantsInput { 8564 s.GrantArns = v 8565 return s 8566} 8567 8568// SetMaxResults sets the MaxResults field's value. 8569func (s *ListDistributedGrantsInput) SetMaxResults(v int64) *ListDistributedGrantsInput { 8570 s.MaxResults = &v 8571 return s 8572} 8573 8574// SetNextToken sets the NextToken field's value. 8575func (s *ListDistributedGrantsInput) SetNextToken(v string) *ListDistributedGrantsInput { 8576 s.NextToken = &v 8577 return s 8578} 8579 8580type ListDistributedGrantsOutput struct { 8581 _ struct{} `type:"structure"` 8582 8583 // Distributed grant details. 8584 Grants []*Grant `type:"list"` 8585 8586 // Token for the next set of results. 8587 NextToken *string `type:"string"` 8588} 8589 8590// String returns the string representation 8591func (s ListDistributedGrantsOutput) String() string { 8592 return awsutil.Prettify(s) 8593} 8594 8595// GoString returns the string representation 8596func (s ListDistributedGrantsOutput) GoString() string { 8597 return s.String() 8598} 8599 8600// SetGrants sets the Grants field's value. 8601func (s *ListDistributedGrantsOutput) SetGrants(v []*Grant) *ListDistributedGrantsOutput { 8602 s.Grants = v 8603 return s 8604} 8605 8606// SetNextToken sets the NextToken field's value. 8607func (s *ListDistributedGrantsOutput) SetNextToken(v string) *ListDistributedGrantsOutput { 8608 s.NextToken = &v 8609 return s 8610} 8611 8612type ListFailuresForLicenseConfigurationOperationsInput struct { 8613 _ struct{} `type:"structure"` 8614 8615 // Amazon Resource Name of the license configuration. 8616 // 8617 // LicenseConfigurationArn is a required field 8618 LicenseConfigurationArn *string `type:"string" required:"true"` 8619 8620 // Maximum number of results to return in a single call. 8621 MaxResults *int64 `type:"integer"` 8622 8623 // Token for the next set of results. 8624 NextToken *string `type:"string"` 8625} 8626 8627// String returns the string representation 8628func (s ListFailuresForLicenseConfigurationOperationsInput) String() string { 8629 return awsutil.Prettify(s) 8630} 8631 8632// GoString returns the string representation 8633func (s ListFailuresForLicenseConfigurationOperationsInput) GoString() string { 8634 return s.String() 8635} 8636 8637// Validate inspects the fields of the type to determine if they are valid. 8638func (s *ListFailuresForLicenseConfigurationOperationsInput) Validate() error { 8639 invalidParams := request.ErrInvalidParams{Context: "ListFailuresForLicenseConfigurationOperationsInput"} 8640 if s.LicenseConfigurationArn == nil { 8641 invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) 8642 } 8643 8644 if invalidParams.Len() > 0 { 8645 return invalidParams 8646 } 8647 return nil 8648} 8649 8650// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 8651func (s *ListFailuresForLicenseConfigurationOperationsInput) SetLicenseConfigurationArn(v string) *ListFailuresForLicenseConfigurationOperationsInput { 8652 s.LicenseConfigurationArn = &v 8653 return s 8654} 8655 8656// SetMaxResults sets the MaxResults field's value. 8657func (s *ListFailuresForLicenseConfigurationOperationsInput) SetMaxResults(v int64) *ListFailuresForLicenseConfigurationOperationsInput { 8658 s.MaxResults = &v 8659 return s 8660} 8661 8662// SetNextToken sets the NextToken field's value. 8663func (s *ListFailuresForLicenseConfigurationOperationsInput) SetNextToken(v string) *ListFailuresForLicenseConfigurationOperationsInput { 8664 s.NextToken = &v 8665 return s 8666} 8667 8668type ListFailuresForLicenseConfigurationOperationsOutput struct { 8669 _ struct{} `type:"structure"` 8670 8671 // License configuration operations that failed. 8672 LicenseOperationFailureList []*LicenseOperationFailure `type:"list"` 8673 8674 // Token for the next set of results. 8675 NextToken *string `type:"string"` 8676} 8677 8678// String returns the string representation 8679func (s ListFailuresForLicenseConfigurationOperationsOutput) String() string { 8680 return awsutil.Prettify(s) 8681} 8682 8683// GoString returns the string representation 8684func (s ListFailuresForLicenseConfigurationOperationsOutput) GoString() string { 8685 return s.String() 8686} 8687 8688// SetLicenseOperationFailureList sets the LicenseOperationFailureList field's value. 8689func (s *ListFailuresForLicenseConfigurationOperationsOutput) SetLicenseOperationFailureList(v []*LicenseOperationFailure) *ListFailuresForLicenseConfigurationOperationsOutput { 8690 s.LicenseOperationFailureList = v 8691 return s 8692} 8693 8694// SetNextToken sets the NextToken field's value. 8695func (s *ListFailuresForLicenseConfigurationOperationsOutput) SetNextToken(v string) *ListFailuresForLicenseConfigurationOperationsOutput { 8696 s.NextToken = &v 8697 return s 8698} 8699 8700type ListLicenseConfigurationsInput struct { 8701 _ struct{} `type:"structure"` 8702 8703 // Filters to scope the results. The following filters and logical operators 8704 // are supported: 8705 // 8706 // * licenseCountingType - The dimension on which licenses are counted. Possible 8707 // values are vCPU | Instance | Core | Socket. Logical operators are EQUALS 8708 // | NOT_EQUALS. 8709 // 8710 // * enforceLicenseCount - A Boolean value that indicates whether hard license 8711 // enforcement is used. Logical operators are EQUALS | NOT_EQUALS. 8712 // 8713 // * usagelimitExceeded - A Boolean value that indicates whether the available 8714 // licenses have been exceeded. Logical operators are EQUALS | NOT_EQUALS. 8715 Filters []*Filter `type:"list"` 8716 8717 // Amazon Resource Names (ARN) of the license configurations. 8718 LicenseConfigurationArns []*string `type:"list"` 8719 8720 // Maximum number of results to return in a single call. 8721 MaxResults *int64 `type:"integer"` 8722 8723 // Token for the next set of results. 8724 NextToken *string `type:"string"` 8725} 8726 8727// String returns the string representation 8728func (s ListLicenseConfigurationsInput) String() string { 8729 return awsutil.Prettify(s) 8730} 8731 8732// GoString returns the string representation 8733func (s ListLicenseConfigurationsInput) GoString() string { 8734 return s.String() 8735} 8736 8737// SetFilters sets the Filters field's value. 8738func (s *ListLicenseConfigurationsInput) SetFilters(v []*Filter) *ListLicenseConfigurationsInput { 8739 s.Filters = v 8740 return s 8741} 8742 8743// SetLicenseConfigurationArns sets the LicenseConfigurationArns field's value. 8744func (s *ListLicenseConfigurationsInput) SetLicenseConfigurationArns(v []*string) *ListLicenseConfigurationsInput { 8745 s.LicenseConfigurationArns = v 8746 return s 8747} 8748 8749// SetMaxResults sets the MaxResults field's value. 8750func (s *ListLicenseConfigurationsInput) SetMaxResults(v int64) *ListLicenseConfigurationsInput { 8751 s.MaxResults = &v 8752 return s 8753} 8754 8755// SetNextToken sets the NextToken field's value. 8756func (s *ListLicenseConfigurationsInput) SetNextToken(v string) *ListLicenseConfigurationsInput { 8757 s.NextToken = &v 8758 return s 8759} 8760 8761type ListLicenseConfigurationsOutput struct { 8762 _ struct{} `type:"structure"` 8763 8764 // Information about the license configurations. 8765 LicenseConfigurations []*LicenseConfiguration `type:"list"` 8766 8767 // Token for the next set of results. 8768 NextToken *string `type:"string"` 8769} 8770 8771// String returns the string representation 8772func (s ListLicenseConfigurationsOutput) String() string { 8773 return awsutil.Prettify(s) 8774} 8775 8776// GoString returns the string representation 8777func (s ListLicenseConfigurationsOutput) GoString() string { 8778 return s.String() 8779} 8780 8781// SetLicenseConfigurations sets the LicenseConfigurations field's value. 8782func (s *ListLicenseConfigurationsOutput) SetLicenseConfigurations(v []*LicenseConfiguration) *ListLicenseConfigurationsOutput { 8783 s.LicenseConfigurations = v 8784 return s 8785} 8786 8787// SetNextToken sets the NextToken field's value. 8788func (s *ListLicenseConfigurationsOutput) SetNextToken(v string) *ListLicenseConfigurationsOutput { 8789 s.NextToken = &v 8790 return s 8791} 8792 8793type ListLicenseSpecificationsForResourceInput struct { 8794 _ struct{} `type:"structure"` 8795 8796 // Maximum number of results to return in a single call. 8797 MaxResults *int64 `type:"integer"` 8798 8799 // Token for the next set of results. 8800 NextToken *string `type:"string"` 8801 8802 // Amazon Resource Name (ARN) of a resource that has an associated license configuration. 8803 // 8804 // ResourceArn is a required field 8805 ResourceArn *string `type:"string" required:"true"` 8806} 8807 8808// String returns the string representation 8809func (s ListLicenseSpecificationsForResourceInput) String() string { 8810 return awsutil.Prettify(s) 8811} 8812 8813// GoString returns the string representation 8814func (s ListLicenseSpecificationsForResourceInput) GoString() string { 8815 return s.String() 8816} 8817 8818// Validate inspects the fields of the type to determine if they are valid. 8819func (s *ListLicenseSpecificationsForResourceInput) Validate() error { 8820 invalidParams := request.ErrInvalidParams{Context: "ListLicenseSpecificationsForResourceInput"} 8821 if s.ResourceArn == nil { 8822 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 8823 } 8824 8825 if invalidParams.Len() > 0 { 8826 return invalidParams 8827 } 8828 return nil 8829} 8830 8831// SetMaxResults sets the MaxResults field's value. 8832func (s *ListLicenseSpecificationsForResourceInput) SetMaxResults(v int64) *ListLicenseSpecificationsForResourceInput { 8833 s.MaxResults = &v 8834 return s 8835} 8836 8837// SetNextToken sets the NextToken field's value. 8838func (s *ListLicenseSpecificationsForResourceInput) SetNextToken(v string) *ListLicenseSpecificationsForResourceInput { 8839 s.NextToken = &v 8840 return s 8841} 8842 8843// SetResourceArn sets the ResourceArn field's value. 8844func (s *ListLicenseSpecificationsForResourceInput) SetResourceArn(v string) *ListLicenseSpecificationsForResourceInput { 8845 s.ResourceArn = &v 8846 return s 8847} 8848 8849type ListLicenseSpecificationsForResourceOutput struct { 8850 _ struct{} `type:"structure"` 8851 8852 // License configurations associated with a resource. 8853 LicenseSpecifications []*LicenseSpecification `type:"list"` 8854 8855 // Token for the next set of results. 8856 NextToken *string `type:"string"` 8857} 8858 8859// String returns the string representation 8860func (s ListLicenseSpecificationsForResourceOutput) String() string { 8861 return awsutil.Prettify(s) 8862} 8863 8864// GoString returns the string representation 8865func (s ListLicenseSpecificationsForResourceOutput) GoString() string { 8866 return s.String() 8867} 8868 8869// SetLicenseSpecifications sets the LicenseSpecifications field's value. 8870func (s *ListLicenseSpecificationsForResourceOutput) SetLicenseSpecifications(v []*LicenseSpecification) *ListLicenseSpecificationsForResourceOutput { 8871 s.LicenseSpecifications = v 8872 return s 8873} 8874 8875// SetNextToken sets the NextToken field's value. 8876func (s *ListLicenseSpecificationsForResourceOutput) SetNextToken(v string) *ListLicenseSpecificationsForResourceOutput { 8877 s.NextToken = &v 8878 return s 8879} 8880 8881type ListLicenseVersionsInput struct { 8882 _ struct{} `type:"structure"` 8883 8884 // Amazon Resource Name (ARN) of the license. 8885 // 8886 // LicenseArn is a required field 8887 LicenseArn *string `type:"string" required:"true"` 8888 8889 // Maximum number of results to return in a single call. 8890 MaxResults *int64 `min:"1" type:"integer"` 8891 8892 // Token for the next set of results. 8893 NextToken *string `type:"string"` 8894} 8895 8896// String returns the string representation 8897func (s ListLicenseVersionsInput) String() string { 8898 return awsutil.Prettify(s) 8899} 8900 8901// GoString returns the string representation 8902func (s ListLicenseVersionsInput) GoString() string { 8903 return s.String() 8904} 8905 8906// Validate inspects the fields of the type to determine if they are valid. 8907func (s *ListLicenseVersionsInput) Validate() error { 8908 invalidParams := request.ErrInvalidParams{Context: "ListLicenseVersionsInput"} 8909 if s.LicenseArn == nil { 8910 invalidParams.Add(request.NewErrParamRequired("LicenseArn")) 8911 } 8912 if s.MaxResults != nil && *s.MaxResults < 1 { 8913 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 8914 } 8915 8916 if invalidParams.Len() > 0 { 8917 return invalidParams 8918 } 8919 return nil 8920} 8921 8922// SetLicenseArn sets the LicenseArn field's value. 8923func (s *ListLicenseVersionsInput) SetLicenseArn(v string) *ListLicenseVersionsInput { 8924 s.LicenseArn = &v 8925 return s 8926} 8927 8928// SetMaxResults sets the MaxResults field's value. 8929func (s *ListLicenseVersionsInput) SetMaxResults(v int64) *ListLicenseVersionsInput { 8930 s.MaxResults = &v 8931 return s 8932} 8933 8934// SetNextToken sets the NextToken field's value. 8935func (s *ListLicenseVersionsInput) SetNextToken(v string) *ListLicenseVersionsInput { 8936 s.NextToken = &v 8937 return s 8938} 8939 8940type ListLicenseVersionsOutput struct { 8941 _ struct{} `type:"structure"` 8942 8943 // License details. 8944 Licenses []*License `type:"list"` 8945 8946 // Token for the next set of results. 8947 NextToken *string `type:"string"` 8948} 8949 8950// String returns the string representation 8951func (s ListLicenseVersionsOutput) String() string { 8952 return awsutil.Prettify(s) 8953} 8954 8955// GoString returns the string representation 8956func (s ListLicenseVersionsOutput) GoString() string { 8957 return s.String() 8958} 8959 8960// SetLicenses sets the Licenses field's value. 8961func (s *ListLicenseVersionsOutput) SetLicenses(v []*License) *ListLicenseVersionsOutput { 8962 s.Licenses = v 8963 return s 8964} 8965 8966// SetNextToken sets the NextToken field's value. 8967func (s *ListLicenseVersionsOutput) SetNextToken(v string) *ListLicenseVersionsOutput { 8968 s.NextToken = &v 8969 return s 8970} 8971 8972type ListLicensesInput struct { 8973 _ struct{} `type:"structure"` 8974 8975 // Filters to scope the results. The following filters are supported: 8976 // 8977 // * Beneficiary 8978 // 8979 // * ProductSKU 8980 // 8981 // * KeyFingerprint 8982 // 8983 // * Status 8984 Filters []*Filter `type:"list"` 8985 8986 // Amazon Resource Names (ARNs) of the licenses. 8987 LicenseArns []*string `type:"list"` 8988 8989 // Maximum number of results to return in a single call. 8990 MaxResults *int64 `min:"1" type:"integer"` 8991 8992 // Token for the next set of results. 8993 NextToken *string `type:"string"` 8994} 8995 8996// String returns the string representation 8997func (s ListLicensesInput) String() string { 8998 return awsutil.Prettify(s) 8999} 9000 9001// GoString returns the string representation 9002func (s ListLicensesInput) GoString() string { 9003 return s.String() 9004} 9005 9006// Validate inspects the fields of the type to determine if they are valid. 9007func (s *ListLicensesInput) Validate() error { 9008 invalidParams := request.ErrInvalidParams{Context: "ListLicensesInput"} 9009 if s.MaxResults != nil && *s.MaxResults < 1 { 9010 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9011 } 9012 9013 if invalidParams.Len() > 0 { 9014 return invalidParams 9015 } 9016 return nil 9017} 9018 9019// SetFilters sets the Filters field's value. 9020func (s *ListLicensesInput) SetFilters(v []*Filter) *ListLicensesInput { 9021 s.Filters = v 9022 return s 9023} 9024 9025// SetLicenseArns sets the LicenseArns field's value. 9026func (s *ListLicensesInput) SetLicenseArns(v []*string) *ListLicensesInput { 9027 s.LicenseArns = v 9028 return s 9029} 9030 9031// SetMaxResults sets the MaxResults field's value. 9032func (s *ListLicensesInput) SetMaxResults(v int64) *ListLicensesInput { 9033 s.MaxResults = &v 9034 return s 9035} 9036 9037// SetNextToken sets the NextToken field's value. 9038func (s *ListLicensesInput) SetNextToken(v string) *ListLicensesInput { 9039 s.NextToken = &v 9040 return s 9041} 9042 9043type ListLicensesOutput struct { 9044 _ struct{} `type:"structure"` 9045 9046 // License details. 9047 Licenses []*License `type:"list"` 9048 9049 // Token for the next set of results. 9050 NextToken *string `type:"string"` 9051} 9052 9053// String returns the string representation 9054func (s ListLicensesOutput) String() string { 9055 return awsutil.Prettify(s) 9056} 9057 9058// GoString returns the string representation 9059func (s ListLicensesOutput) GoString() string { 9060 return s.String() 9061} 9062 9063// SetLicenses sets the Licenses field's value. 9064func (s *ListLicensesOutput) SetLicenses(v []*License) *ListLicensesOutput { 9065 s.Licenses = v 9066 return s 9067} 9068 9069// SetNextToken sets the NextToken field's value. 9070func (s *ListLicensesOutput) SetNextToken(v string) *ListLicensesOutput { 9071 s.NextToken = &v 9072 return s 9073} 9074 9075type ListReceivedGrantsInput struct { 9076 _ struct{} `type:"structure"` 9077 9078 // Filters to scope the results. The following filters are supported: 9079 // 9080 // * LicenseARN 9081 // 9082 // * Status 9083 Filters []*Filter `type:"list"` 9084 9085 // Amazon Resource Names (ARNs) of the grants. 9086 GrantArns []*string `type:"list"` 9087 9088 // Maximum number of results to return in a single call. 9089 MaxResults *int64 `min:"1" type:"integer"` 9090 9091 // Token for the next set of results. 9092 NextToken *string `type:"string"` 9093} 9094 9095// String returns the string representation 9096func (s ListReceivedGrantsInput) String() string { 9097 return awsutil.Prettify(s) 9098} 9099 9100// GoString returns the string representation 9101func (s ListReceivedGrantsInput) GoString() string { 9102 return s.String() 9103} 9104 9105// Validate inspects the fields of the type to determine if they are valid. 9106func (s *ListReceivedGrantsInput) Validate() error { 9107 invalidParams := request.ErrInvalidParams{Context: "ListReceivedGrantsInput"} 9108 if s.MaxResults != nil && *s.MaxResults < 1 { 9109 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9110 } 9111 9112 if invalidParams.Len() > 0 { 9113 return invalidParams 9114 } 9115 return nil 9116} 9117 9118// SetFilters sets the Filters field's value. 9119func (s *ListReceivedGrantsInput) SetFilters(v []*Filter) *ListReceivedGrantsInput { 9120 s.Filters = v 9121 return s 9122} 9123 9124// SetGrantArns sets the GrantArns field's value. 9125func (s *ListReceivedGrantsInput) SetGrantArns(v []*string) *ListReceivedGrantsInput { 9126 s.GrantArns = v 9127 return s 9128} 9129 9130// SetMaxResults sets the MaxResults field's value. 9131func (s *ListReceivedGrantsInput) SetMaxResults(v int64) *ListReceivedGrantsInput { 9132 s.MaxResults = &v 9133 return s 9134} 9135 9136// SetNextToken sets the NextToken field's value. 9137func (s *ListReceivedGrantsInput) SetNextToken(v string) *ListReceivedGrantsInput { 9138 s.NextToken = &v 9139 return s 9140} 9141 9142type ListReceivedGrantsOutput struct { 9143 _ struct{} `type:"structure"` 9144 9145 // Received grant details. 9146 Grants []*Grant `type:"list"` 9147 9148 // Token for the next set of results. 9149 NextToken *string `type:"string"` 9150} 9151 9152// String returns the string representation 9153func (s ListReceivedGrantsOutput) String() string { 9154 return awsutil.Prettify(s) 9155} 9156 9157// GoString returns the string representation 9158func (s ListReceivedGrantsOutput) GoString() string { 9159 return s.String() 9160} 9161 9162// SetGrants sets the Grants field's value. 9163func (s *ListReceivedGrantsOutput) SetGrants(v []*Grant) *ListReceivedGrantsOutput { 9164 s.Grants = v 9165 return s 9166} 9167 9168// SetNextToken sets the NextToken field's value. 9169func (s *ListReceivedGrantsOutput) SetNextToken(v string) *ListReceivedGrantsOutput { 9170 s.NextToken = &v 9171 return s 9172} 9173 9174type ListReceivedLicensesInput struct { 9175 _ struct{} `type:"structure"` 9176 9177 // Filters to scope the results. The following filters are supported: 9178 // 9179 // * ProductSKU 9180 // 9181 // * Status 9182 // 9183 // * KeyFingerprint 9184 // 9185 // * Issuer 9186 Filters []*Filter `type:"list"` 9187 9188 // Amazon Resource Names (ARNs) of the licenses. 9189 LicenseArns []*string `type:"list"` 9190 9191 // Maximum number of results to return in a single call. 9192 MaxResults *int64 `min:"1" type:"integer"` 9193 9194 // Token for the next set of results. 9195 NextToken *string `type:"string"` 9196} 9197 9198// String returns the string representation 9199func (s ListReceivedLicensesInput) String() string { 9200 return awsutil.Prettify(s) 9201} 9202 9203// GoString returns the string representation 9204func (s ListReceivedLicensesInput) GoString() string { 9205 return s.String() 9206} 9207 9208// Validate inspects the fields of the type to determine if they are valid. 9209func (s *ListReceivedLicensesInput) Validate() error { 9210 invalidParams := request.ErrInvalidParams{Context: "ListReceivedLicensesInput"} 9211 if s.MaxResults != nil && *s.MaxResults < 1 { 9212 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9213 } 9214 9215 if invalidParams.Len() > 0 { 9216 return invalidParams 9217 } 9218 return nil 9219} 9220 9221// SetFilters sets the Filters field's value. 9222func (s *ListReceivedLicensesInput) SetFilters(v []*Filter) *ListReceivedLicensesInput { 9223 s.Filters = v 9224 return s 9225} 9226 9227// SetLicenseArns sets the LicenseArns field's value. 9228func (s *ListReceivedLicensesInput) SetLicenseArns(v []*string) *ListReceivedLicensesInput { 9229 s.LicenseArns = v 9230 return s 9231} 9232 9233// SetMaxResults sets the MaxResults field's value. 9234func (s *ListReceivedLicensesInput) SetMaxResults(v int64) *ListReceivedLicensesInput { 9235 s.MaxResults = &v 9236 return s 9237} 9238 9239// SetNextToken sets the NextToken field's value. 9240func (s *ListReceivedLicensesInput) SetNextToken(v string) *ListReceivedLicensesInput { 9241 s.NextToken = &v 9242 return s 9243} 9244 9245type ListReceivedLicensesOutput struct { 9246 _ struct{} `type:"structure"` 9247 9248 // Received license details. 9249 Licenses []*GrantedLicense `type:"list"` 9250 9251 // Token for the next set of results. 9252 NextToken *string `type:"string"` 9253} 9254 9255// String returns the string representation 9256func (s ListReceivedLicensesOutput) String() string { 9257 return awsutil.Prettify(s) 9258} 9259 9260// GoString returns the string representation 9261func (s ListReceivedLicensesOutput) GoString() string { 9262 return s.String() 9263} 9264 9265// SetLicenses sets the Licenses field's value. 9266func (s *ListReceivedLicensesOutput) SetLicenses(v []*GrantedLicense) *ListReceivedLicensesOutput { 9267 s.Licenses = v 9268 return s 9269} 9270 9271// SetNextToken sets the NextToken field's value. 9272func (s *ListReceivedLicensesOutput) SetNextToken(v string) *ListReceivedLicensesOutput { 9273 s.NextToken = &v 9274 return s 9275} 9276 9277type ListResourceInventoryInput struct { 9278 _ struct{} `type:"structure"` 9279 9280 // Filters to scope the results. The following filters and logical operators 9281 // are supported: 9282 // 9283 // * account_id - The ID of the AWS account that owns the resource. Logical 9284 // operators are EQUALS | NOT_EQUALS. 9285 // 9286 // * application_name - The name of the application. Logical operators are 9287 // EQUALS | BEGINS_WITH. 9288 // 9289 // * license_included - The type of license included. Logical operators are 9290 // EQUALS | NOT_EQUALS. Possible values are sql-server-enterprise | sql-server-standard 9291 // | sql-server-web | windows-server-datacenter. 9292 // 9293 // * platform - The platform of the resource. Logical operators are EQUALS 9294 // | BEGINS_WITH. 9295 // 9296 // * resource_id - The ID of the resource. Logical operators are EQUALS | 9297 // NOT_EQUALS. 9298 // 9299 // * tag:<key> - The key/value combination of a tag assigned to the resource. 9300 // Logical operators are EQUALS (single account) or EQUALS | NOT_EQUALS (cross 9301 // account). 9302 Filters []*InventoryFilter `type:"list"` 9303 9304 // Maximum number of results to return in a single call. 9305 MaxResults *int64 `type:"integer"` 9306 9307 // Token for the next set of results. 9308 NextToken *string `type:"string"` 9309} 9310 9311// String returns the string representation 9312func (s ListResourceInventoryInput) String() string { 9313 return awsutil.Prettify(s) 9314} 9315 9316// GoString returns the string representation 9317func (s ListResourceInventoryInput) GoString() string { 9318 return s.String() 9319} 9320 9321// Validate inspects the fields of the type to determine if they are valid. 9322func (s *ListResourceInventoryInput) Validate() error { 9323 invalidParams := request.ErrInvalidParams{Context: "ListResourceInventoryInput"} 9324 if s.Filters != nil { 9325 for i, v := range s.Filters { 9326 if v == nil { 9327 continue 9328 } 9329 if err := v.Validate(); err != nil { 9330 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) 9331 } 9332 } 9333 } 9334 9335 if invalidParams.Len() > 0 { 9336 return invalidParams 9337 } 9338 return nil 9339} 9340 9341// SetFilters sets the Filters field's value. 9342func (s *ListResourceInventoryInput) SetFilters(v []*InventoryFilter) *ListResourceInventoryInput { 9343 s.Filters = v 9344 return s 9345} 9346 9347// SetMaxResults sets the MaxResults field's value. 9348func (s *ListResourceInventoryInput) SetMaxResults(v int64) *ListResourceInventoryInput { 9349 s.MaxResults = &v 9350 return s 9351} 9352 9353// SetNextToken sets the NextToken field's value. 9354func (s *ListResourceInventoryInput) SetNextToken(v string) *ListResourceInventoryInput { 9355 s.NextToken = &v 9356 return s 9357} 9358 9359type ListResourceInventoryOutput struct { 9360 _ struct{} `type:"structure"` 9361 9362 // Token for the next set of results. 9363 NextToken *string `type:"string"` 9364 9365 // Information about the resources. 9366 ResourceInventoryList []*ResourceInventory `type:"list"` 9367} 9368 9369// String returns the string representation 9370func (s ListResourceInventoryOutput) String() string { 9371 return awsutil.Prettify(s) 9372} 9373 9374// GoString returns the string representation 9375func (s ListResourceInventoryOutput) GoString() string { 9376 return s.String() 9377} 9378 9379// SetNextToken sets the NextToken field's value. 9380func (s *ListResourceInventoryOutput) SetNextToken(v string) *ListResourceInventoryOutput { 9381 s.NextToken = &v 9382 return s 9383} 9384 9385// SetResourceInventoryList sets the ResourceInventoryList field's value. 9386func (s *ListResourceInventoryOutput) SetResourceInventoryList(v []*ResourceInventory) *ListResourceInventoryOutput { 9387 s.ResourceInventoryList = v 9388 return s 9389} 9390 9391type ListTagsForResourceInput struct { 9392 _ struct{} `type:"structure"` 9393 9394 // Amazon Resource Name (ARN) of the license configuration. 9395 // 9396 // ResourceArn is a required field 9397 ResourceArn *string `type:"string" required:"true"` 9398} 9399 9400// String returns the string representation 9401func (s ListTagsForResourceInput) String() string { 9402 return awsutil.Prettify(s) 9403} 9404 9405// GoString returns the string representation 9406func (s ListTagsForResourceInput) GoString() string { 9407 return s.String() 9408} 9409 9410// Validate inspects the fields of the type to determine if they are valid. 9411func (s *ListTagsForResourceInput) Validate() error { 9412 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 9413 if s.ResourceArn == nil { 9414 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 9415 } 9416 9417 if invalidParams.Len() > 0 { 9418 return invalidParams 9419 } 9420 return nil 9421} 9422 9423// SetResourceArn sets the ResourceArn field's value. 9424func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 9425 s.ResourceArn = &v 9426 return s 9427} 9428 9429type ListTagsForResourceOutput struct { 9430 _ struct{} `type:"structure"` 9431 9432 // Information about the tags. 9433 Tags []*Tag `type:"list"` 9434} 9435 9436// String returns the string representation 9437func (s ListTagsForResourceOutput) String() string { 9438 return awsutil.Prettify(s) 9439} 9440 9441// GoString returns the string representation 9442func (s ListTagsForResourceOutput) GoString() string { 9443 return s.String() 9444} 9445 9446// SetTags sets the Tags field's value. 9447func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 9448 s.Tags = v 9449 return s 9450} 9451 9452type ListTokensInput struct { 9453 _ struct{} `type:"structure"` 9454 9455 // Filters to scope the results. The following filter is supported: 9456 // 9457 // * licenseArns 9458 Filters []*Filter `type:"list"` 9459 9460 // Maximum number of results to return in a single call. 9461 MaxResults *int64 `min:"1" type:"integer"` 9462 9463 // Token for the next set of results. 9464 NextToken *string `type:"string"` 9465 9466 // Token IDs. 9467 TokenIds []*string `type:"list"` 9468} 9469 9470// String returns the string representation 9471func (s ListTokensInput) String() string { 9472 return awsutil.Prettify(s) 9473} 9474 9475// GoString returns the string representation 9476func (s ListTokensInput) GoString() string { 9477 return s.String() 9478} 9479 9480// Validate inspects the fields of the type to determine if they are valid. 9481func (s *ListTokensInput) Validate() error { 9482 invalidParams := request.ErrInvalidParams{Context: "ListTokensInput"} 9483 if s.MaxResults != nil && *s.MaxResults < 1 { 9484 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 9485 } 9486 9487 if invalidParams.Len() > 0 { 9488 return invalidParams 9489 } 9490 return nil 9491} 9492 9493// SetFilters sets the Filters field's value. 9494func (s *ListTokensInput) SetFilters(v []*Filter) *ListTokensInput { 9495 s.Filters = v 9496 return s 9497} 9498 9499// SetMaxResults sets the MaxResults field's value. 9500func (s *ListTokensInput) SetMaxResults(v int64) *ListTokensInput { 9501 s.MaxResults = &v 9502 return s 9503} 9504 9505// SetNextToken sets the NextToken field's value. 9506func (s *ListTokensInput) SetNextToken(v string) *ListTokensInput { 9507 s.NextToken = &v 9508 return s 9509} 9510 9511// SetTokenIds sets the TokenIds field's value. 9512func (s *ListTokensInput) SetTokenIds(v []*string) *ListTokensInput { 9513 s.TokenIds = v 9514 return s 9515} 9516 9517type ListTokensOutput struct { 9518 _ struct{} `type:"structure"` 9519 9520 // Token for the next set of results. 9521 NextToken *string `type:"string"` 9522 9523 // Received token details. 9524 Tokens []*TokenData `type:"list"` 9525} 9526 9527// String returns the string representation 9528func (s ListTokensOutput) String() string { 9529 return awsutil.Prettify(s) 9530} 9531 9532// GoString returns the string representation 9533func (s ListTokensOutput) GoString() string { 9534 return s.String() 9535} 9536 9537// SetNextToken sets the NextToken field's value. 9538func (s *ListTokensOutput) SetNextToken(v string) *ListTokensOutput { 9539 s.NextToken = &v 9540 return s 9541} 9542 9543// SetTokens sets the Tokens field's value. 9544func (s *ListTokensOutput) SetTokens(v []*TokenData) *ListTokensOutput { 9545 s.Tokens = v 9546 return s 9547} 9548 9549type ListUsageForLicenseConfigurationInput struct { 9550 _ struct{} `type:"structure"` 9551 9552 // Filters to scope the results. The following filters and logical operators 9553 // are supported: 9554 // 9555 // * resourceArn - The ARN of the license configuration resource. Logical 9556 // operators are EQUALS | NOT_EQUALS. 9557 // 9558 // * resourceType - The resource type (EC2_INSTANCE | EC2_HOST | EC2_AMI 9559 // | SYSTEMS_MANAGER_MANAGED_INSTANCE). Logical operators are EQUALS | NOT_EQUALS. 9560 // 9561 // * resourceAccount - The ID of the account that owns the resource. Logical 9562 // operators are EQUALS | NOT_EQUALS. 9563 Filters []*Filter `type:"list"` 9564 9565 // Amazon Resource Name (ARN) of the license configuration. 9566 // 9567 // LicenseConfigurationArn is a required field 9568 LicenseConfigurationArn *string `type:"string" required:"true"` 9569 9570 // Maximum number of results to return in a single call. 9571 MaxResults *int64 `type:"integer"` 9572 9573 // Token for the next set of results. 9574 NextToken *string `type:"string"` 9575} 9576 9577// String returns the string representation 9578func (s ListUsageForLicenseConfigurationInput) String() string { 9579 return awsutil.Prettify(s) 9580} 9581 9582// GoString returns the string representation 9583func (s ListUsageForLicenseConfigurationInput) GoString() string { 9584 return s.String() 9585} 9586 9587// Validate inspects the fields of the type to determine if they are valid. 9588func (s *ListUsageForLicenseConfigurationInput) Validate() error { 9589 invalidParams := request.ErrInvalidParams{Context: "ListUsageForLicenseConfigurationInput"} 9590 if s.LicenseConfigurationArn == nil { 9591 invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) 9592 } 9593 9594 if invalidParams.Len() > 0 { 9595 return invalidParams 9596 } 9597 return nil 9598} 9599 9600// SetFilters sets the Filters field's value. 9601func (s *ListUsageForLicenseConfigurationInput) SetFilters(v []*Filter) *ListUsageForLicenseConfigurationInput { 9602 s.Filters = v 9603 return s 9604} 9605 9606// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 9607func (s *ListUsageForLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *ListUsageForLicenseConfigurationInput { 9608 s.LicenseConfigurationArn = &v 9609 return s 9610} 9611 9612// SetMaxResults sets the MaxResults field's value. 9613func (s *ListUsageForLicenseConfigurationInput) SetMaxResults(v int64) *ListUsageForLicenseConfigurationInput { 9614 s.MaxResults = &v 9615 return s 9616} 9617 9618// SetNextToken sets the NextToken field's value. 9619func (s *ListUsageForLicenseConfigurationInput) SetNextToken(v string) *ListUsageForLicenseConfigurationInput { 9620 s.NextToken = &v 9621 return s 9622} 9623 9624type ListUsageForLicenseConfigurationOutput struct { 9625 _ struct{} `type:"structure"` 9626 9627 // Information about the license configurations. 9628 LicenseConfigurationUsageList []*LicenseConfigurationUsage `type:"list"` 9629 9630 // Token for the next set of results. 9631 NextToken *string `type:"string"` 9632} 9633 9634// String returns the string representation 9635func (s ListUsageForLicenseConfigurationOutput) String() string { 9636 return awsutil.Prettify(s) 9637} 9638 9639// GoString returns the string representation 9640func (s ListUsageForLicenseConfigurationOutput) GoString() string { 9641 return s.String() 9642} 9643 9644// SetLicenseConfigurationUsageList sets the LicenseConfigurationUsageList field's value. 9645func (s *ListUsageForLicenseConfigurationOutput) SetLicenseConfigurationUsageList(v []*LicenseConfigurationUsage) *ListUsageForLicenseConfigurationOutput { 9646 s.LicenseConfigurationUsageList = v 9647 return s 9648} 9649 9650// SetNextToken sets the NextToken field's value. 9651func (s *ListUsageForLicenseConfigurationOutput) SetNextToken(v string) *ListUsageForLicenseConfigurationOutput { 9652 s.NextToken = &v 9653 return s 9654} 9655 9656// Summary information about a managed resource. 9657type ManagedResourceSummary struct { 9658 _ struct{} `type:"structure"` 9659 9660 // Number of resources associated with licenses. 9661 AssociationCount *int64 `type:"long"` 9662 9663 // Type of resource associated with a license. 9664 ResourceType *string `type:"string" enum:"ResourceType"` 9665} 9666 9667// String returns the string representation 9668func (s ManagedResourceSummary) String() string { 9669 return awsutil.Prettify(s) 9670} 9671 9672// GoString returns the string representation 9673func (s ManagedResourceSummary) GoString() string { 9674 return s.String() 9675} 9676 9677// SetAssociationCount sets the AssociationCount field's value. 9678func (s *ManagedResourceSummary) SetAssociationCount(v int64) *ManagedResourceSummary { 9679 s.AssociationCount = &v 9680 return s 9681} 9682 9683// SetResourceType sets the ResourceType field's value. 9684func (s *ManagedResourceSummary) SetResourceType(v string) *ManagedResourceSummary { 9685 s.ResourceType = &v 9686 return s 9687} 9688 9689// Describes key/value pairs. 9690type Metadata struct { 9691 _ struct{} `type:"structure"` 9692 9693 // The key name. 9694 Name *string `type:"string"` 9695 9696 // The value. 9697 Value *string `type:"string"` 9698} 9699 9700// String returns the string representation 9701func (s Metadata) String() string { 9702 return awsutil.Prettify(s) 9703} 9704 9705// GoString returns the string representation 9706func (s Metadata) GoString() string { 9707 return s.String() 9708} 9709 9710// SetName sets the Name field's value. 9711func (s *Metadata) SetName(v string) *Metadata { 9712 s.Name = &v 9713 return s 9714} 9715 9716// SetValue sets the Value field's value. 9717func (s *Metadata) SetValue(v string) *Metadata { 9718 s.Value = &v 9719 return s 9720} 9721 9722// There are no entitlements found for this license, or the entitlement maximum 9723// count is reached. 9724type NoEntitlementsAllowedException struct { 9725 _ struct{} `type:"structure"` 9726 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9727 9728 Message_ *string `locationName:"Message" type:"string"` 9729} 9730 9731// String returns the string representation 9732func (s NoEntitlementsAllowedException) String() string { 9733 return awsutil.Prettify(s) 9734} 9735 9736// GoString returns the string representation 9737func (s NoEntitlementsAllowedException) GoString() string { 9738 return s.String() 9739} 9740 9741func newErrorNoEntitlementsAllowedException(v protocol.ResponseMetadata) error { 9742 return &NoEntitlementsAllowedException{ 9743 RespMetadata: v, 9744 } 9745} 9746 9747// Code returns the exception type name. 9748func (s *NoEntitlementsAllowedException) Code() string { 9749 return "NoEntitlementsAllowedException" 9750} 9751 9752// Message returns the exception's message. 9753func (s *NoEntitlementsAllowedException) Message() string { 9754 if s.Message_ != nil { 9755 return *s.Message_ 9756 } 9757 return "" 9758} 9759 9760// OrigErr always returns nil, satisfies awserr.Error interface. 9761func (s *NoEntitlementsAllowedException) OrigErr() error { 9762 return nil 9763} 9764 9765func (s *NoEntitlementsAllowedException) Error() string { 9766 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9767} 9768 9769// Status code returns the HTTP status code for the request's response error. 9770func (s *NoEntitlementsAllowedException) StatusCode() int { 9771 return s.RespMetadata.StatusCode 9772} 9773 9774// RequestID returns the service's response RequestID for request. 9775func (s *NoEntitlementsAllowedException) RequestID() string { 9776 return s.RespMetadata.RequestID 9777} 9778 9779// Configuration information for AWS Organizations. 9780type OrganizationConfiguration struct { 9781 _ struct{} `type:"structure"` 9782 9783 // Enables AWS Organization integration. 9784 // 9785 // EnableIntegration is a required field 9786 EnableIntegration *bool `type:"boolean" required:"true"` 9787} 9788 9789// String returns the string representation 9790func (s OrganizationConfiguration) String() string { 9791 return awsutil.Prettify(s) 9792} 9793 9794// GoString returns the string representation 9795func (s OrganizationConfiguration) GoString() string { 9796 return s.String() 9797} 9798 9799// Validate inspects the fields of the type to determine if they are valid. 9800func (s *OrganizationConfiguration) Validate() error { 9801 invalidParams := request.ErrInvalidParams{Context: "OrganizationConfiguration"} 9802 if s.EnableIntegration == nil { 9803 invalidParams.Add(request.NewErrParamRequired("EnableIntegration")) 9804 } 9805 9806 if invalidParams.Len() > 0 { 9807 return invalidParams 9808 } 9809 return nil 9810} 9811 9812// SetEnableIntegration sets the EnableIntegration field's value. 9813func (s *OrganizationConfiguration) SetEnableIntegration(v bool) *OrganizationConfiguration { 9814 s.EnableIntegration = &v 9815 return s 9816} 9817 9818// Describes product information for a license configuration. 9819type ProductInformation struct { 9820 _ struct{} `type:"structure"` 9821 9822 // Product information filters. 9823 // 9824 // The following filters and logical operators are supported when the resource 9825 // type is SSM_MANAGED: 9826 // 9827 // * Application Name - The name of the application. Logical operator is 9828 // EQUALS. 9829 // 9830 // * Application Publisher - The publisher of the application. Logical operator 9831 // is EQUALS. 9832 // 9833 // * Application Version - The version of the application. Logical operator 9834 // is EQUALS. 9835 // 9836 // * Platform Name - The name of the platform. Logical operator is EQUALS. 9837 // 9838 // * Platform Type - The platform type. Logical operator is EQUALS. 9839 // 9840 // * License Included - The type of license included. Logical operators are 9841 // EQUALS and NOT_EQUALS. Possible values are: sql-server-enterprise | sql-server-standard 9842 // | sql-server-web | windows-server-datacenter. 9843 // 9844 // The following filters and logical operators are supported when the resource 9845 // type is RDS: 9846 // 9847 // * Engine Edition - The edition of the database engine. Logical operator 9848 // is EQUALS. Possible values are: oracle-ee | oracle-se | oracle-se1 | oracle-se2. 9849 // 9850 // * License Pack - The license pack. Logical operator is EQUALS. Possible 9851 // values are: data guard | diagnostic pack sqlt | tuning pack sqlt | ols 9852 // | olap. 9853 // 9854 // ProductInformationFilterList is a required field 9855 ProductInformationFilterList []*ProductInformationFilter `type:"list" required:"true"` 9856 9857 // Resource type. The possible values are SSM_MANAGED | RDS. 9858 // 9859 // ResourceType is a required field 9860 ResourceType *string `type:"string" required:"true"` 9861} 9862 9863// String returns the string representation 9864func (s ProductInformation) String() string { 9865 return awsutil.Prettify(s) 9866} 9867 9868// GoString returns the string representation 9869func (s ProductInformation) GoString() string { 9870 return s.String() 9871} 9872 9873// Validate inspects the fields of the type to determine if they are valid. 9874func (s *ProductInformation) Validate() error { 9875 invalidParams := request.ErrInvalidParams{Context: "ProductInformation"} 9876 if s.ProductInformationFilterList == nil { 9877 invalidParams.Add(request.NewErrParamRequired("ProductInformationFilterList")) 9878 } 9879 if s.ResourceType == nil { 9880 invalidParams.Add(request.NewErrParamRequired("ResourceType")) 9881 } 9882 if s.ProductInformationFilterList != nil { 9883 for i, v := range s.ProductInformationFilterList { 9884 if v == nil { 9885 continue 9886 } 9887 if err := v.Validate(); err != nil { 9888 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductInformationFilterList", i), err.(request.ErrInvalidParams)) 9889 } 9890 } 9891 } 9892 9893 if invalidParams.Len() > 0 { 9894 return invalidParams 9895 } 9896 return nil 9897} 9898 9899// SetProductInformationFilterList sets the ProductInformationFilterList field's value. 9900func (s *ProductInformation) SetProductInformationFilterList(v []*ProductInformationFilter) *ProductInformation { 9901 s.ProductInformationFilterList = v 9902 return s 9903} 9904 9905// SetResourceType sets the ResourceType field's value. 9906func (s *ProductInformation) SetResourceType(v string) *ProductInformation { 9907 s.ResourceType = &v 9908 return s 9909} 9910 9911// Describes product information filters. 9912type ProductInformationFilter struct { 9913 _ struct{} `type:"structure"` 9914 9915 // Logical operator. 9916 // 9917 // ProductInformationFilterComparator is a required field 9918 ProductInformationFilterComparator *string `type:"string" required:"true"` 9919 9920 // Filter name. 9921 // 9922 // ProductInformationFilterName is a required field 9923 ProductInformationFilterName *string `type:"string" required:"true"` 9924 9925 // Filter value. 9926 // 9927 // ProductInformationFilterValue is a required field 9928 ProductInformationFilterValue []*string `type:"list" required:"true"` 9929} 9930 9931// String returns the string representation 9932func (s ProductInformationFilter) String() string { 9933 return awsutil.Prettify(s) 9934} 9935 9936// GoString returns the string representation 9937func (s ProductInformationFilter) GoString() string { 9938 return s.String() 9939} 9940 9941// Validate inspects the fields of the type to determine if they are valid. 9942func (s *ProductInformationFilter) Validate() error { 9943 invalidParams := request.ErrInvalidParams{Context: "ProductInformationFilter"} 9944 if s.ProductInformationFilterComparator == nil { 9945 invalidParams.Add(request.NewErrParamRequired("ProductInformationFilterComparator")) 9946 } 9947 if s.ProductInformationFilterName == nil { 9948 invalidParams.Add(request.NewErrParamRequired("ProductInformationFilterName")) 9949 } 9950 if s.ProductInformationFilterValue == nil { 9951 invalidParams.Add(request.NewErrParamRequired("ProductInformationFilterValue")) 9952 } 9953 9954 if invalidParams.Len() > 0 { 9955 return invalidParams 9956 } 9957 return nil 9958} 9959 9960// SetProductInformationFilterComparator sets the ProductInformationFilterComparator field's value. 9961func (s *ProductInformationFilter) SetProductInformationFilterComparator(v string) *ProductInformationFilter { 9962 s.ProductInformationFilterComparator = &v 9963 return s 9964} 9965 9966// SetProductInformationFilterName sets the ProductInformationFilterName field's value. 9967func (s *ProductInformationFilter) SetProductInformationFilterName(v string) *ProductInformationFilter { 9968 s.ProductInformationFilterName = &v 9969 return s 9970} 9971 9972// SetProductInformationFilterValue sets the ProductInformationFilterValue field's value. 9973func (s *ProductInformationFilter) SetProductInformationFilterValue(v []*string) *ProductInformationFilter { 9974 s.ProductInformationFilterValue = v 9975 return s 9976} 9977 9978// Details about a provisional configuration. 9979type ProvisionalConfiguration struct { 9980 _ struct{} `type:"structure"` 9981 9982 // Maximum time for the provisional configuration, in minutes. 9983 // 9984 // MaxTimeToLiveInMinutes is a required field 9985 MaxTimeToLiveInMinutes *int64 `type:"integer" required:"true"` 9986} 9987 9988// String returns the string representation 9989func (s ProvisionalConfiguration) String() string { 9990 return awsutil.Prettify(s) 9991} 9992 9993// GoString returns the string representation 9994func (s ProvisionalConfiguration) GoString() string { 9995 return s.String() 9996} 9997 9998// Validate inspects the fields of the type to determine if they are valid. 9999func (s *ProvisionalConfiguration) Validate() error { 10000 invalidParams := request.ErrInvalidParams{Context: "ProvisionalConfiguration"} 10001 if s.MaxTimeToLiveInMinutes == nil { 10002 invalidParams.Add(request.NewErrParamRequired("MaxTimeToLiveInMinutes")) 10003 } 10004 10005 if invalidParams.Len() > 0 { 10006 return invalidParams 10007 } 10008 return nil 10009} 10010 10011// SetMaxTimeToLiveInMinutes sets the MaxTimeToLiveInMinutes field's value. 10012func (s *ProvisionalConfiguration) SetMaxTimeToLiveInMinutes(v int64) *ProvisionalConfiguration { 10013 s.MaxTimeToLiveInMinutes = &v 10014 return s 10015} 10016 10017// Too many requests have been submitted. Try again after a brief wait. 10018type RateLimitExceededException struct { 10019 _ struct{} `type:"structure"` 10020 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10021 10022 Message_ *string `locationName:"Message" type:"string"` 10023} 10024 10025// String returns the string representation 10026func (s RateLimitExceededException) String() string { 10027 return awsutil.Prettify(s) 10028} 10029 10030// GoString returns the string representation 10031func (s RateLimitExceededException) GoString() string { 10032 return s.String() 10033} 10034 10035func newErrorRateLimitExceededException(v protocol.ResponseMetadata) error { 10036 return &RateLimitExceededException{ 10037 RespMetadata: v, 10038 } 10039} 10040 10041// Code returns the exception type name. 10042func (s *RateLimitExceededException) Code() string { 10043 return "RateLimitExceededException" 10044} 10045 10046// Message returns the exception's message. 10047func (s *RateLimitExceededException) Message() string { 10048 if s.Message_ != nil { 10049 return *s.Message_ 10050 } 10051 return "" 10052} 10053 10054// OrigErr always returns nil, satisfies awserr.Error interface. 10055func (s *RateLimitExceededException) OrigErr() error { 10056 return nil 10057} 10058 10059func (s *RateLimitExceededException) Error() string { 10060 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10061} 10062 10063// Status code returns the HTTP status code for the request's response error. 10064func (s *RateLimitExceededException) StatusCode() int { 10065 return s.RespMetadata.StatusCode 10066} 10067 10068// RequestID returns the service's response RequestID for request. 10069func (s *RateLimitExceededException) RequestID() string { 10070 return s.RespMetadata.RequestID 10071} 10072 10073// Metadata associated with received licenses and grants. 10074type ReceivedMetadata struct { 10075 _ struct{} `type:"structure"` 10076 10077 // Allowed operations. 10078 AllowedOperations []*string `min:"1" type:"list"` 10079 10080 // Received status. 10081 ReceivedStatus *string `type:"string" enum:"ReceivedStatus"` 10082} 10083 10084// String returns the string representation 10085func (s ReceivedMetadata) String() string { 10086 return awsutil.Prettify(s) 10087} 10088 10089// GoString returns the string representation 10090func (s ReceivedMetadata) GoString() string { 10091 return s.String() 10092} 10093 10094// SetAllowedOperations sets the AllowedOperations field's value. 10095func (s *ReceivedMetadata) SetAllowedOperations(v []*string) *ReceivedMetadata { 10096 s.AllowedOperations = v 10097 return s 10098} 10099 10100// SetReceivedStatus sets the ReceivedStatus field's value. 10101func (s *ReceivedMetadata) SetReceivedStatus(v string) *ReceivedMetadata { 10102 s.ReceivedStatus = &v 10103 return s 10104} 10105 10106// This is not the correct Region for the resource. Try again. 10107type RedirectException struct { 10108 _ struct{} `type:"structure"` 10109 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10110 10111 Location *string `type:"string"` 10112 10113 Message_ *string `locationName:"Message" type:"string"` 10114} 10115 10116// String returns the string representation 10117func (s RedirectException) String() string { 10118 return awsutil.Prettify(s) 10119} 10120 10121// GoString returns the string representation 10122func (s RedirectException) GoString() string { 10123 return s.String() 10124} 10125 10126func newErrorRedirectException(v protocol.ResponseMetadata) error { 10127 return &RedirectException{ 10128 RespMetadata: v, 10129 } 10130} 10131 10132// Code returns the exception type name. 10133func (s *RedirectException) Code() string { 10134 return "RedirectException" 10135} 10136 10137// Message returns the exception's message. 10138func (s *RedirectException) Message() string { 10139 if s.Message_ != nil { 10140 return *s.Message_ 10141 } 10142 return "" 10143} 10144 10145// OrigErr always returns nil, satisfies awserr.Error interface. 10146func (s *RedirectException) OrigErr() error { 10147 return nil 10148} 10149 10150func (s *RedirectException) Error() string { 10151 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 10152} 10153 10154// Status code returns the HTTP status code for the request's response error. 10155func (s *RedirectException) StatusCode() int { 10156 return s.RespMetadata.StatusCode 10157} 10158 10159// RequestID returns the service's response RequestID for request. 10160func (s *RedirectException) RequestID() string { 10161 return s.RespMetadata.RequestID 10162} 10163 10164type RejectGrantInput struct { 10165 _ struct{} `type:"structure"` 10166 10167 // Amazon Resource Name (ARN) of the grant. 10168 // 10169 // GrantArn is a required field 10170 GrantArn *string `type:"string" required:"true"` 10171} 10172 10173// String returns the string representation 10174func (s RejectGrantInput) String() string { 10175 return awsutil.Prettify(s) 10176} 10177 10178// GoString returns the string representation 10179func (s RejectGrantInput) GoString() string { 10180 return s.String() 10181} 10182 10183// Validate inspects the fields of the type to determine if they are valid. 10184func (s *RejectGrantInput) Validate() error { 10185 invalidParams := request.ErrInvalidParams{Context: "RejectGrantInput"} 10186 if s.GrantArn == nil { 10187 invalidParams.Add(request.NewErrParamRequired("GrantArn")) 10188 } 10189 10190 if invalidParams.Len() > 0 { 10191 return invalidParams 10192 } 10193 return nil 10194} 10195 10196// SetGrantArn sets the GrantArn field's value. 10197func (s *RejectGrantInput) SetGrantArn(v string) *RejectGrantInput { 10198 s.GrantArn = &v 10199 return s 10200} 10201 10202type RejectGrantOutput struct { 10203 _ struct{} `type:"structure"` 10204 10205 // Grant ARN. 10206 GrantArn *string `type:"string"` 10207 10208 // Grant status. 10209 Status *string `type:"string" enum:"GrantStatus"` 10210 10211 // Grant version. 10212 Version *string `type:"string"` 10213} 10214 10215// String returns the string representation 10216func (s RejectGrantOutput) String() string { 10217 return awsutil.Prettify(s) 10218} 10219 10220// GoString returns the string representation 10221func (s RejectGrantOutput) GoString() string { 10222 return s.String() 10223} 10224 10225// SetGrantArn sets the GrantArn field's value. 10226func (s *RejectGrantOutput) SetGrantArn(v string) *RejectGrantOutput { 10227 s.GrantArn = &v 10228 return s 10229} 10230 10231// SetStatus sets the Status field's value. 10232func (s *RejectGrantOutput) SetStatus(v string) *RejectGrantOutput { 10233 s.Status = &v 10234 return s 10235} 10236 10237// SetVersion sets the Version field's value. 10238func (s *RejectGrantOutput) SetVersion(v string) *RejectGrantOutput { 10239 s.Version = &v 10240 return s 10241} 10242 10243// Details about a resource. 10244type ResourceInventory struct { 10245 _ struct{} `type:"structure"` 10246 10247 // Platform of the resource. 10248 Platform *string `type:"string"` 10249 10250 // Platform version of the resource in the inventory. 10251 PlatformVersion *string `type:"string"` 10252 10253 // Amazon Resource Name (ARN) of the resource. 10254 ResourceArn *string `type:"string"` 10255 10256 // ID of the resource. 10257 ResourceId *string `type:"string"` 10258 10259 // ID of the account that owns the resource. 10260 ResourceOwningAccountId *string `type:"string"` 10261 10262 // Type of resource. 10263 ResourceType *string `type:"string" enum:"ResourceType"` 10264} 10265 10266// String returns the string representation 10267func (s ResourceInventory) String() string { 10268 return awsutil.Prettify(s) 10269} 10270 10271// GoString returns the string representation 10272func (s ResourceInventory) GoString() string { 10273 return s.String() 10274} 10275 10276// SetPlatform sets the Platform field's value. 10277func (s *ResourceInventory) SetPlatform(v string) *ResourceInventory { 10278 s.Platform = &v 10279 return s 10280} 10281 10282// SetPlatformVersion sets the PlatformVersion field's value. 10283func (s *ResourceInventory) SetPlatformVersion(v string) *ResourceInventory { 10284 s.PlatformVersion = &v 10285 return s 10286} 10287 10288// SetResourceArn sets the ResourceArn field's value. 10289func (s *ResourceInventory) SetResourceArn(v string) *ResourceInventory { 10290 s.ResourceArn = &v 10291 return s 10292} 10293 10294// SetResourceId sets the ResourceId field's value. 10295func (s *ResourceInventory) SetResourceId(v string) *ResourceInventory { 10296 s.ResourceId = &v 10297 return s 10298} 10299 10300// SetResourceOwningAccountId sets the ResourceOwningAccountId field's value. 10301func (s *ResourceInventory) SetResourceOwningAccountId(v string) *ResourceInventory { 10302 s.ResourceOwningAccountId = &v 10303 return s 10304} 10305 10306// SetResourceType sets the ResourceType field's value. 10307func (s *ResourceInventory) SetResourceType(v string) *ResourceInventory { 10308 s.ResourceType = &v 10309 return s 10310} 10311 10312// Your resource limits have been exceeded. 10313type ResourceLimitExceededException struct { 10314 _ struct{} `type:"structure"` 10315 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10316 10317 Message_ *string `locationName:"Message" type:"string"` 10318} 10319 10320// String returns the string representation 10321func (s ResourceLimitExceededException) String() string { 10322 return awsutil.Prettify(s) 10323} 10324 10325// GoString returns the string representation 10326func (s ResourceLimitExceededException) GoString() string { 10327 return s.String() 10328} 10329 10330func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { 10331 return &ResourceLimitExceededException{ 10332 RespMetadata: v, 10333 } 10334} 10335 10336// Code returns the exception type name. 10337func (s *ResourceLimitExceededException) Code() string { 10338 return "ResourceLimitExceededException" 10339} 10340 10341// Message returns the exception's message. 10342func (s *ResourceLimitExceededException) Message() string { 10343 if s.Message_ != nil { 10344 return *s.Message_ 10345 } 10346 return "" 10347} 10348 10349// OrigErr always returns nil, satisfies awserr.Error interface. 10350func (s *ResourceLimitExceededException) OrigErr() error { 10351 return nil 10352} 10353 10354func (s *ResourceLimitExceededException) Error() string { 10355 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10356} 10357 10358// Status code returns the HTTP status code for the request's response error. 10359func (s *ResourceLimitExceededException) StatusCode() int { 10360 return s.RespMetadata.StatusCode 10361} 10362 10363// RequestID returns the service's response RequestID for request. 10364func (s *ResourceLimitExceededException) RequestID() string { 10365 return s.RespMetadata.RequestID 10366} 10367 10368// The resource cannot be found. 10369type ResourceNotFoundException struct { 10370 _ struct{} `type:"structure"` 10371 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10372 10373 Message_ *string `locationName:"Message" type:"string"` 10374} 10375 10376// String returns the string representation 10377func (s ResourceNotFoundException) String() string { 10378 return awsutil.Prettify(s) 10379} 10380 10381// GoString returns the string representation 10382func (s ResourceNotFoundException) GoString() string { 10383 return s.String() 10384} 10385 10386func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 10387 return &ResourceNotFoundException{ 10388 RespMetadata: v, 10389 } 10390} 10391 10392// Code returns the exception type name. 10393func (s *ResourceNotFoundException) Code() string { 10394 return "ResourceNotFoundException" 10395} 10396 10397// Message returns the exception's message. 10398func (s *ResourceNotFoundException) Message() string { 10399 if s.Message_ != nil { 10400 return *s.Message_ 10401 } 10402 return "" 10403} 10404 10405// OrigErr always returns nil, satisfies awserr.Error interface. 10406func (s *ResourceNotFoundException) OrigErr() error { 10407 return nil 10408} 10409 10410func (s *ResourceNotFoundException) Error() string { 10411 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10412} 10413 10414// Status code returns the HTTP status code for the request's response error. 10415func (s *ResourceNotFoundException) StatusCode() int { 10416 return s.RespMetadata.StatusCode 10417} 10418 10419// RequestID returns the service's response RequestID for request. 10420func (s *ResourceNotFoundException) RequestID() string { 10421 return s.RespMetadata.RequestID 10422} 10423 10424// The server experienced an internal error. Try again. 10425type ServerInternalException struct { 10426 _ struct{} `type:"structure"` 10427 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10428 10429 Message_ *string `locationName:"Message" type:"string"` 10430} 10431 10432// String returns the string representation 10433func (s ServerInternalException) String() string { 10434 return awsutil.Prettify(s) 10435} 10436 10437// GoString returns the string representation 10438func (s ServerInternalException) GoString() string { 10439 return s.String() 10440} 10441 10442func newErrorServerInternalException(v protocol.ResponseMetadata) error { 10443 return &ServerInternalException{ 10444 RespMetadata: v, 10445 } 10446} 10447 10448// Code returns the exception type name. 10449func (s *ServerInternalException) Code() string { 10450 return "ServerInternalException" 10451} 10452 10453// Message returns the exception's message. 10454func (s *ServerInternalException) Message() string { 10455 if s.Message_ != nil { 10456 return *s.Message_ 10457 } 10458 return "" 10459} 10460 10461// OrigErr always returns nil, satisfies awserr.Error interface. 10462func (s *ServerInternalException) OrigErr() error { 10463 return nil 10464} 10465 10466func (s *ServerInternalException) Error() string { 10467 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10468} 10469 10470// Status code returns the HTTP status code for the request's response error. 10471func (s *ServerInternalException) StatusCode() int { 10472 return s.RespMetadata.StatusCode 10473} 10474 10475// RequestID returns the service's response RequestID for request. 10476func (s *ServerInternalException) RequestID() string { 10477 return s.RespMetadata.RequestID 10478} 10479 10480// Details about a tag for a license configuration. 10481type Tag struct { 10482 _ struct{} `type:"structure"` 10483 10484 // Tag key. 10485 Key *string `type:"string"` 10486 10487 // Tag value. 10488 Value *string `type:"string"` 10489} 10490 10491// String returns the string representation 10492func (s Tag) String() string { 10493 return awsutil.Prettify(s) 10494} 10495 10496// GoString returns the string representation 10497func (s Tag) GoString() string { 10498 return s.String() 10499} 10500 10501// SetKey sets the Key field's value. 10502func (s *Tag) SetKey(v string) *Tag { 10503 s.Key = &v 10504 return s 10505} 10506 10507// SetValue sets the Value field's value. 10508func (s *Tag) SetValue(v string) *Tag { 10509 s.Value = &v 10510 return s 10511} 10512 10513type TagResourceInput struct { 10514 _ struct{} `type:"structure"` 10515 10516 // Amazon Resource Name (ARN) of the license configuration. 10517 // 10518 // ResourceArn is a required field 10519 ResourceArn *string `type:"string" required:"true"` 10520 10521 // One or more tags. 10522 // 10523 // Tags is a required field 10524 Tags []*Tag `type:"list" required:"true"` 10525} 10526 10527// String returns the string representation 10528func (s TagResourceInput) String() string { 10529 return awsutil.Prettify(s) 10530} 10531 10532// GoString returns the string representation 10533func (s TagResourceInput) GoString() string { 10534 return s.String() 10535} 10536 10537// Validate inspects the fields of the type to determine if they are valid. 10538func (s *TagResourceInput) Validate() error { 10539 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 10540 if s.ResourceArn == nil { 10541 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 10542 } 10543 if s.Tags == nil { 10544 invalidParams.Add(request.NewErrParamRequired("Tags")) 10545 } 10546 10547 if invalidParams.Len() > 0 { 10548 return invalidParams 10549 } 10550 return nil 10551} 10552 10553// SetResourceArn sets the ResourceArn field's value. 10554func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 10555 s.ResourceArn = &v 10556 return s 10557} 10558 10559// SetTags sets the Tags field's value. 10560func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 10561 s.Tags = v 10562 return s 10563} 10564 10565type TagResourceOutput struct { 10566 _ struct{} `type:"structure"` 10567} 10568 10569// String returns the string representation 10570func (s TagResourceOutput) String() string { 10571 return awsutil.Prettify(s) 10572} 10573 10574// GoString returns the string representation 10575func (s TagResourceOutput) GoString() string { 10576 return s.String() 10577} 10578 10579// Describes a token. 10580type TokenData struct { 10581 _ struct{} `type:"structure"` 10582 10583 // Token expiration time, in ISO8601-UTC format. 10584 ExpirationTime *string `type:"string"` 10585 10586 // Amazon Resource Name (ARN) of the license. 10587 LicenseArn *string `type:"string"` 10588 10589 // Amazon Resource Names (ARN) of the roles included in the token. 10590 RoleArns []*string `type:"list"` 10591 10592 // Token status. The possible values are AVAILABLE and DELETED. 10593 Status *string `type:"string"` 10594 10595 // Token ID. 10596 TokenId *string `type:"string"` 10597 10598 // Data specified by the caller. 10599 TokenProperties []*string `type:"list"` 10600 10601 // Type of token generated. The supported value is REFRESH_TOKEN. 10602 TokenType *string `type:"string"` 10603} 10604 10605// String returns the string representation 10606func (s TokenData) String() string { 10607 return awsutil.Prettify(s) 10608} 10609 10610// GoString returns the string representation 10611func (s TokenData) GoString() string { 10612 return s.String() 10613} 10614 10615// SetExpirationTime sets the ExpirationTime field's value. 10616func (s *TokenData) SetExpirationTime(v string) *TokenData { 10617 s.ExpirationTime = &v 10618 return s 10619} 10620 10621// SetLicenseArn sets the LicenseArn field's value. 10622func (s *TokenData) SetLicenseArn(v string) *TokenData { 10623 s.LicenseArn = &v 10624 return s 10625} 10626 10627// SetRoleArns sets the RoleArns field's value. 10628func (s *TokenData) SetRoleArns(v []*string) *TokenData { 10629 s.RoleArns = v 10630 return s 10631} 10632 10633// SetStatus sets the Status field's value. 10634func (s *TokenData) SetStatus(v string) *TokenData { 10635 s.Status = &v 10636 return s 10637} 10638 10639// SetTokenId sets the TokenId field's value. 10640func (s *TokenData) SetTokenId(v string) *TokenData { 10641 s.TokenId = &v 10642 return s 10643} 10644 10645// SetTokenProperties sets the TokenProperties field's value. 10646func (s *TokenData) SetTokenProperties(v []*string) *TokenData { 10647 s.TokenProperties = v 10648 return s 10649} 10650 10651// SetTokenType sets the TokenType field's value. 10652func (s *TokenData) SetTokenType(v string) *TokenData { 10653 s.TokenType = &v 10654 return s 10655} 10656 10657// The digital signature method is unsupported. Try your request again. 10658type UnsupportedDigitalSignatureMethodException struct { 10659 _ struct{} `type:"structure"` 10660 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10661 10662 Message_ *string `locationName:"Message" type:"string"` 10663} 10664 10665// String returns the string representation 10666func (s UnsupportedDigitalSignatureMethodException) String() string { 10667 return awsutil.Prettify(s) 10668} 10669 10670// GoString returns the string representation 10671func (s UnsupportedDigitalSignatureMethodException) GoString() string { 10672 return s.String() 10673} 10674 10675func newErrorUnsupportedDigitalSignatureMethodException(v protocol.ResponseMetadata) error { 10676 return &UnsupportedDigitalSignatureMethodException{ 10677 RespMetadata: v, 10678 } 10679} 10680 10681// Code returns the exception type name. 10682func (s *UnsupportedDigitalSignatureMethodException) Code() string { 10683 return "UnsupportedDigitalSignatureMethodException" 10684} 10685 10686// Message returns the exception's message. 10687func (s *UnsupportedDigitalSignatureMethodException) Message() string { 10688 if s.Message_ != nil { 10689 return *s.Message_ 10690 } 10691 return "" 10692} 10693 10694// OrigErr always returns nil, satisfies awserr.Error interface. 10695func (s *UnsupportedDigitalSignatureMethodException) OrigErr() error { 10696 return nil 10697} 10698 10699func (s *UnsupportedDigitalSignatureMethodException) Error() string { 10700 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10701} 10702 10703// Status code returns the HTTP status code for the request's response error. 10704func (s *UnsupportedDigitalSignatureMethodException) StatusCode() int { 10705 return s.RespMetadata.StatusCode 10706} 10707 10708// RequestID returns the service's response RequestID for request. 10709func (s *UnsupportedDigitalSignatureMethodException) RequestID() string { 10710 return s.RespMetadata.RequestID 10711} 10712 10713type UntagResourceInput struct { 10714 _ struct{} `type:"structure"` 10715 10716 // Amazon Resource Name (ARN) of the license configuration. 10717 // 10718 // ResourceArn is a required field 10719 ResourceArn *string `type:"string" required:"true"` 10720 10721 // Keys identifying the tags to remove. 10722 // 10723 // TagKeys is a required field 10724 TagKeys []*string `type:"list" required:"true"` 10725} 10726 10727// String returns the string representation 10728func (s UntagResourceInput) String() string { 10729 return awsutil.Prettify(s) 10730} 10731 10732// GoString returns the string representation 10733func (s UntagResourceInput) GoString() string { 10734 return s.String() 10735} 10736 10737// Validate inspects the fields of the type to determine if they are valid. 10738func (s *UntagResourceInput) Validate() error { 10739 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 10740 if s.ResourceArn == nil { 10741 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 10742 } 10743 if s.TagKeys == nil { 10744 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 10745 } 10746 10747 if invalidParams.Len() > 0 { 10748 return invalidParams 10749 } 10750 return nil 10751} 10752 10753// SetResourceArn sets the ResourceArn field's value. 10754func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 10755 s.ResourceArn = &v 10756 return s 10757} 10758 10759// SetTagKeys sets the TagKeys field's value. 10760func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 10761 s.TagKeys = v 10762 return s 10763} 10764 10765type UntagResourceOutput struct { 10766 _ struct{} `type:"structure"` 10767} 10768 10769// String returns the string representation 10770func (s UntagResourceOutput) String() string { 10771 return awsutil.Prettify(s) 10772} 10773 10774// GoString returns the string representation 10775func (s UntagResourceOutput) GoString() string { 10776 return s.String() 10777} 10778 10779type UpdateLicenseConfigurationInput struct { 10780 _ struct{} `type:"structure"` 10781 10782 // New description of the license configuration. 10783 Description *string `type:"string"` 10784 10785 // When true, disassociates a resource when software is uninstalled. 10786 DisassociateWhenNotFound *bool `type:"boolean"` 10787 10788 // Amazon Resource Name (ARN) of the license configuration. 10789 // 10790 // LicenseConfigurationArn is a required field 10791 LicenseConfigurationArn *string `type:"string" required:"true"` 10792 10793 // New status of the license configuration. 10794 LicenseConfigurationStatus *string `type:"string" enum:"LicenseConfigurationStatus"` 10795 10796 // New number of licenses managed by the license configuration. 10797 LicenseCount *int64 `type:"long"` 10798 10799 // New hard limit of the number of available licenses. 10800 LicenseCountHardLimit *bool `type:"boolean"` 10801 10802 // New license rule. The only rule that you can add after you create a license 10803 // configuration is licenseAffinityToHost. 10804 LicenseRules []*string `type:"list"` 10805 10806 // New name of the license configuration. 10807 Name *string `type:"string"` 10808 10809 // New product information. 10810 ProductInformationList []*ProductInformation `type:"list"` 10811} 10812 10813// String returns the string representation 10814func (s UpdateLicenseConfigurationInput) String() string { 10815 return awsutil.Prettify(s) 10816} 10817 10818// GoString returns the string representation 10819func (s UpdateLicenseConfigurationInput) GoString() string { 10820 return s.String() 10821} 10822 10823// Validate inspects the fields of the type to determine if they are valid. 10824func (s *UpdateLicenseConfigurationInput) Validate() error { 10825 invalidParams := request.ErrInvalidParams{Context: "UpdateLicenseConfigurationInput"} 10826 if s.LicenseConfigurationArn == nil { 10827 invalidParams.Add(request.NewErrParamRequired("LicenseConfigurationArn")) 10828 } 10829 if s.ProductInformationList != nil { 10830 for i, v := range s.ProductInformationList { 10831 if v == nil { 10832 continue 10833 } 10834 if err := v.Validate(); err != nil { 10835 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ProductInformationList", i), err.(request.ErrInvalidParams)) 10836 } 10837 } 10838 } 10839 10840 if invalidParams.Len() > 0 { 10841 return invalidParams 10842 } 10843 return nil 10844} 10845 10846// SetDescription sets the Description field's value. 10847func (s *UpdateLicenseConfigurationInput) SetDescription(v string) *UpdateLicenseConfigurationInput { 10848 s.Description = &v 10849 return s 10850} 10851 10852// SetDisassociateWhenNotFound sets the DisassociateWhenNotFound field's value. 10853func (s *UpdateLicenseConfigurationInput) SetDisassociateWhenNotFound(v bool) *UpdateLicenseConfigurationInput { 10854 s.DisassociateWhenNotFound = &v 10855 return s 10856} 10857 10858// SetLicenseConfigurationArn sets the LicenseConfigurationArn field's value. 10859func (s *UpdateLicenseConfigurationInput) SetLicenseConfigurationArn(v string) *UpdateLicenseConfigurationInput { 10860 s.LicenseConfigurationArn = &v 10861 return s 10862} 10863 10864// SetLicenseConfigurationStatus sets the LicenseConfigurationStatus field's value. 10865func (s *UpdateLicenseConfigurationInput) SetLicenseConfigurationStatus(v string) *UpdateLicenseConfigurationInput { 10866 s.LicenseConfigurationStatus = &v 10867 return s 10868} 10869 10870// SetLicenseCount sets the LicenseCount field's value. 10871func (s *UpdateLicenseConfigurationInput) SetLicenseCount(v int64) *UpdateLicenseConfigurationInput { 10872 s.LicenseCount = &v 10873 return s 10874} 10875 10876// SetLicenseCountHardLimit sets the LicenseCountHardLimit field's value. 10877func (s *UpdateLicenseConfigurationInput) SetLicenseCountHardLimit(v bool) *UpdateLicenseConfigurationInput { 10878 s.LicenseCountHardLimit = &v 10879 return s 10880} 10881 10882// SetLicenseRules sets the LicenseRules field's value. 10883func (s *UpdateLicenseConfigurationInput) SetLicenseRules(v []*string) *UpdateLicenseConfigurationInput { 10884 s.LicenseRules = v 10885 return s 10886} 10887 10888// SetName sets the Name field's value. 10889func (s *UpdateLicenseConfigurationInput) SetName(v string) *UpdateLicenseConfigurationInput { 10890 s.Name = &v 10891 return s 10892} 10893 10894// SetProductInformationList sets the ProductInformationList field's value. 10895func (s *UpdateLicenseConfigurationInput) SetProductInformationList(v []*ProductInformation) *UpdateLicenseConfigurationInput { 10896 s.ProductInformationList = v 10897 return s 10898} 10899 10900type UpdateLicenseConfigurationOutput struct { 10901 _ struct{} `type:"structure"` 10902} 10903 10904// String returns the string representation 10905func (s UpdateLicenseConfigurationOutput) String() string { 10906 return awsutil.Prettify(s) 10907} 10908 10909// GoString returns the string representation 10910func (s UpdateLicenseConfigurationOutput) GoString() string { 10911 return s.String() 10912} 10913 10914type UpdateLicenseSpecificationsForResourceInput struct { 10915 _ struct{} `type:"structure"` 10916 10917 // ARNs of the license configurations to add. 10918 AddLicenseSpecifications []*LicenseSpecification `type:"list"` 10919 10920 // ARNs of the license configurations to remove. 10921 RemoveLicenseSpecifications []*LicenseSpecification `type:"list"` 10922 10923 // Amazon Resource Name (ARN) of the AWS resource. 10924 // 10925 // ResourceArn is a required field 10926 ResourceArn *string `type:"string" required:"true"` 10927} 10928 10929// String returns the string representation 10930func (s UpdateLicenseSpecificationsForResourceInput) String() string { 10931 return awsutil.Prettify(s) 10932} 10933 10934// GoString returns the string representation 10935func (s UpdateLicenseSpecificationsForResourceInput) GoString() string { 10936 return s.String() 10937} 10938 10939// Validate inspects the fields of the type to determine if they are valid. 10940func (s *UpdateLicenseSpecificationsForResourceInput) Validate() error { 10941 invalidParams := request.ErrInvalidParams{Context: "UpdateLicenseSpecificationsForResourceInput"} 10942 if s.ResourceArn == nil { 10943 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 10944 } 10945 if s.AddLicenseSpecifications != nil { 10946 for i, v := range s.AddLicenseSpecifications { 10947 if v == nil { 10948 continue 10949 } 10950 if err := v.Validate(); err != nil { 10951 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AddLicenseSpecifications", i), err.(request.ErrInvalidParams)) 10952 } 10953 } 10954 } 10955 if s.RemoveLicenseSpecifications != nil { 10956 for i, v := range s.RemoveLicenseSpecifications { 10957 if v == nil { 10958 continue 10959 } 10960 if err := v.Validate(); err != nil { 10961 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RemoveLicenseSpecifications", i), err.(request.ErrInvalidParams)) 10962 } 10963 } 10964 } 10965 10966 if invalidParams.Len() > 0 { 10967 return invalidParams 10968 } 10969 return nil 10970} 10971 10972// SetAddLicenseSpecifications sets the AddLicenseSpecifications field's value. 10973func (s *UpdateLicenseSpecificationsForResourceInput) SetAddLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { 10974 s.AddLicenseSpecifications = v 10975 return s 10976} 10977 10978// SetRemoveLicenseSpecifications sets the RemoveLicenseSpecifications field's value. 10979func (s *UpdateLicenseSpecificationsForResourceInput) SetRemoveLicenseSpecifications(v []*LicenseSpecification) *UpdateLicenseSpecificationsForResourceInput { 10980 s.RemoveLicenseSpecifications = v 10981 return s 10982} 10983 10984// SetResourceArn sets the ResourceArn field's value. 10985func (s *UpdateLicenseSpecificationsForResourceInput) SetResourceArn(v string) *UpdateLicenseSpecificationsForResourceInput { 10986 s.ResourceArn = &v 10987 return s 10988} 10989 10990type UpdateLicenseSpecificationsForResourceOutput struct { 10991 _ struct{} `type:"structure"` 10992} 10993 10994// String returns the string representation 10995func (s UpdateLicenseSpecificationsForResourceOutput) String() string { 10996 return awsutil.Prettify(s) 10997} 10998 10999// GoString returns the string representation 11000func (s UpdateLicenseSpecificationsForResourceOutput) GoString() string { 11001 return s.String() 11002} 11003 11004type UpdateServiceSettingsInput struct { 11005 _ struct{} `type:"structure"` 11006 11007 // Activates cross-account discovery. 11008 EnableCrossAccountsDiscovery *bool `type:"boolean"` 11009 11010 // Enables integration with AWS Organizations for cross-account discovery. 11011 OrganizationConfiguration *OrganizationConfiguration `type:"structure"` 11012 11013 // Amazon Resource Name (ARN) of the Amazon S3 bucket where the License Manager 11014 // information is stored. 11015 S3BucketArn *string `type:"string"` 11016 11017 // Amazon Resource Name (ARN) of the Amazon SNS topic used for License Manager 11018 // alerts. 11019 SnsTopicArn *string `type:"string"` 11020} 11021 11022// String returns the string representation 11023func (s UpdateServiceSettingsInput) String() string { 11024 return awsutil.Prettify(s) 11025} 11026 11027// GoString returns the string representation 11028func (s UpdateServiceSettingsInput) GoString() string { 11029 return s.String() 11030} 11031 11032// Validate inspects the fields of the type to determine if they are valid. 11033func (s *UpdateServiceSettingsInput) Validate() error { 11034 invalidParams := request.ErrInvalidParams{Context: "UpdateServiceSettingsInput"} 11035 if s.OrganizationConfiguration != nil { 11036 if err := s.OrganizationConfiguration.Validate(); err != nil { 11037 invalidParams.AddNested("OrganizationConfiguration", err.(request.ErrInvalidParams)) 11038 } 11039 } 11040 11041 if invalidParams.Len() > 0 { 11042 return invalidParams 11043 } 11044 return nil 11045} 11046 11047// SetEnableCrossAccountsDiscovery sets the EnableCrossAccountsDiscovery field's value. 11048func (s *UpdateServiceSettingsInput) SetEnableCrossAccountsDiscovery(v bool) *UpdateServiceSettingsInput { 11049 s.EnableCrossAccountsDiscovery = &v 11050 return s 11051} 11052 11053// SetOrganizationConfiguration sets the OrganizationConfiguration field's value. 11054func (s *UpdateServiceSettingsInput) SetOrganizationConfiguration(v *OrganizationConfiguration) *UpdateServiceSettingsInput { 11055 s.OrganizationConfiguration = v 11056 return s 11057} 11058 11059// SetS3BucketArn sets the S3BucketArn field's value. 11060func (s *UpdateServiceSettingsInput) SetS3BucketArn(v string) *UpdateServiceSettingsInput { 11061 s.S3BucketArn = &v 11062 return s 11063} 11064 11065// SetSnsTopicArn sets the SnsTopicArn field's value. 11066func (s *UpdateServiceSettingsInput) SetSnsTopicArn(v string) *UpdateServiceSettingsInput { 11067 s.SnsTopicArn = &v 11068 return s 11069} 11070 11071type UpdateServiceSettingsOutput struct { 11072 _ struct{} `type:"structure"` 11073} 11074 11075// String returns the string representation 11076func (s UpdateServiceSettingsOutput) String() string { 11077 return awsutil.Prettify(s) 11078} 11079 11080// GoString returns the string representation 11081func (s UpdateServiceSettingsOutput) GoString() string { 11082 return s.String() 11083} 11084 11085// The provided input is not valid. Try your request again. 11086type ValidationException struct { 11087 _ struct{} `type:"structure"` 11088 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11089 11090 Message_ *string `locationName:"Message" type:"string"` 11091} 11092 11093// String returns the string representation 11094func (s ValidationException) String() string { 11095 return awsutil.Prettify(s) 11096} 11097 11098// GoString returns the string representation 11099func (s ValidationException) GoString() string { 11100 return s.String() 11101} 11102 11103func newErrorValidationException(v protocol.ResponseMetadata) error { 11104 return &ValidationException{ 11105 RespMetadata: v, 11106 } 11107} 11108 11109// Code returns the exception type name. 11110func (s *ValidationException) Code() string { 11111 return "ValidationException" 11112} 11113 11114// Message returns the exception's message. 11115func (s *ValidationException) Message() string { 11116 if s.Message_ != nil { 11117 return *s.Message_ 11118 } 11119 return "" 11120} 11121 11122// OrigErr always returns nil, satisfies awserr.Error interface. 11123func (s *ValidationException) OrigErr() error { 11124 return nil 11125} 11126 11127func (s *ValidationException) Error() string { 11128 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11129} 11130 11131// Status code returns the HTTP status code for the request's response error. 11132func (s *ValidationException) StatusCode() int { 11133 return s.RespMetadata.StatusCode 11134} 11135 11136// RequestID returns the service's response RequestID for request. 11137func (s *ValidationException) RequestID() string { 11138 return s.RespMetadata.RequestID 11139} 11140 11141const ( 11142 // AllowedOperationCreateGrant is a AllowedOperation enum value 11143 AllowedOperationCreateGrant = "CreateGrant" 11144 11145 // AllowedOperationCheckoutLicense is a AllowedOperation enum value 11146 AllowedOperationCheckoutLicense = "CheckoutLicense" 11147 11148 // AllowedOperationCheckoutBorrowLicense is a AllowedOperation enum value 11149 AllowedOperationCheckoutBorrowLicense = "CheckoutBorrowLicense" 11150 11151 // AllowedOperationCheckInLicense is a AllowedOperation enum value 11152 AllowedOperationCheckInLicense = "CheckInLicense" 11153 11154 // AllowedOperationExtendConsumptionLicense is a AllowedOperation enum value 11155 AllowedOperationExtendConsumptionLicense = "ExtendConsumptionLicense" 11156 11157 // AllowedOperationListPurchasedLicenses is a AllowedOperation enum value 11158 AllowedOperationListPurchasedLicenses = "ListPurchasedLicenses" 11159 11160 // AllowedOperationCreateToken is a AllowedOperation enum value 11161 AllowedOperationCreateToken = "CreateToken" 11162) 11163 11164// AllowedOperation_Values returns all elements of the AllowedOperation enum 11165func AllowedOperation_Values() []string { 11166 return []string{ 11167 AllowedOperationCreateGrant, 11168 AllowedOperationCheckoutLicense, 11169 AllowedOperationCheckoutBorrowLicense, 11170 AllowedOperationCheckInLicense, 11171 AllowedOperationExtendConsumptionLicense, 11172 AllowedOperationListPurchasedLicenses, 11173 AllowedOperationCreateToken, 11174 } 11175} 11176 11177const ( 11178 // CheckoutTypeProvisional is a CheckoutType enum value 11179 CheckoutTypeProvisional = "PROVISIONAL" 11180) 11181 11182// CheckoutType_Values returns all elements of the CheckoutType enum 11183func CheckoutType_Values() []string { 11184 return []string{ 11185 CheckoutTypeProvisional, 11186 } 11187} 11188 11189const ( 11190 // DigitalSignatureMethodJwtPs384 is a DigitalSignatureMethod enum value 11191 DigitalSignatureMethodJwtPs384 = "JWT_PS384" 11192) 11193 11194// DigitalSignatureMethod_Values returns all elements of the DigitalSignatureMethod enum 11195func DigitalSignatureMethod_Values() []string { 11196 return []string{ 11197 DigitalSignatureMethodJwtPs384, 11198 } 11199} 11200 11201const ( 11202 // EntitlementDataUnitCount is a EntitlementDataUnit enum value 11203 EntitlementDataUnitCount = "Count" 11204 11205 // EntitlementDataUnitNone is a EntitlementDataUnit enum value 11206 EntitlementDataUnitNone = "None" 11207 11208 // EntitlementDataUnitSeconds is a EntitlementDataUnit enum value 11209 EntitlementDataUnitSeconds = "Seconds" 11210 11211 // EntitlementDataUnitMicroseconds is a EntitlementDataUnit enum value 11212 EntitlementDataUnitMicroseconds = "Microseconds" 11213 11214 // EntitlementDataUnitMilliseconds is a EntitlementDataUnit enum value 11215 EntitlementDataUnitMilliseconds = "Milliseconds" 11216 11217 // EntitlementDataUnitBytes is a EntitlementDataUnit enum value 11218 EntitlementDataUnitBytes = "Bytes" 11219 11220 // EntitlementDataUnitKilobytes is a EntitlementDataUnit enum value 11221 EntitlementDataUnitKilobytes = "Kilobytes" 11222 11223 // EntitlementDataUnitMegabytes is a EntitlementDataUnit enum value 11224 EntitlementDataUnitMegabytes = "Megabytes" 11225 11226 // EntitlementDataUnitGigabytes is a EntitlementDataUnit enum value 11227 EntitlementDataUnitGigabytes = "Gigabytes" 11228 11229 // EntitlementDataUnitTerabytes is a EntitlementDataUnit enum value 11230 EntitlementDataUnitTerabytes = "Terabytes" 11231 11232 // EntitlementDataUnitBits is a EntitlementDataUnit enum value 11233 EntitlementDataUnitBits = "Bits" 11234 11235 // EntitlementDataUnitKilobits is a EntitlementDataUnit enum value 11236 EntitlementDataUnitKilobits = "Kilobits" 11237 11238 // EntitlementDataUnitMegabits is a EntitlementDataUnit enum value 11239 EntitlementDataUnitMegabits = "Megabits" 11240 11241 // EntitlementDataUnitGigabits is a EntitlementDataUnit enum value 11242 EntitlementDataUnitGigabits = "Gigabits" 11243 11244 // EntitlementDataUnitTerabits is a EntitlementDataUnit enum value 11245 EntitlementDataUnitTerabits = "Terabits" 11246 11247 // EntitlementDataUnitPercent is a EntitlementDataUnit enum value 11248 EntitlementDataUnitPercent = "Percent" 11249 11250 // EntitlementDataUnitBytesSecond is a EntitlementDataUnit enum value 11251 EntitlementDataUnitBytesSecond = "Bytes/Second" 11252 11253 // EntitlementDataUnitKilobytesSecond is a EntitlementDataUnit enum value 11254 EntitlementDataUnitKilobytesSecond = "Kilobytes/Second" 11255 11256 // EntitlementDataUnitMegabytesSecond is a EntitlementDataUnit enum value 11257 EntitlementDataUnitMegabytesSecond = "Megabytes/Second" 11258 11259 // EntitlementDataUnitGigabytesSecond is a EntitlementDataUnit enum value 11260 EntitlementDataUnitGigabytesSecond = "Gigabytes/Second" 11261 11262 // EntitlementDataUnitTerabytesSecond is a EntitlementDataUnit enum value 11263 EntitlementDataUnitTerabytesSecond = "Terabytes/Second" 11264 11265 // EntitlementDataUnitBitsSecond is a EntitlementDataUnit enum value 11266 EntitlementDataUnitBitsSecond = "Bits/Second" 11267 11268 // EntitlementDataUnitKilobitsSecond is a EntitlementDataUnit enum value 11269 EntitlementDataUnitKilobitsSecond = "Kilobits/Second" 11270 11271 // EntitlementDataUnitMegabitsSecond is a EntitlementDataUnit enum value 11272 EntitlementDataUnitMegabitsSecond = "Megabits/Second" 11273 11274 // EntitlementDataUnitGigabitsSecond is a EntitlementDataUnit enum value 11275 EntitlementDataUnitGigabitsSecond = "Gigabits/Second" 11276 11277 // EntitlementDataUnitTerabitsSecond is a EntitlementDataUnit enum value 11278 EntitlementDataUnitTerabitsSecond = "Terabits/Second" 11279 11280 // EntitlementDataUnitCountSecond is a EntitlementDataUnit enum value 11281 EntitlementDataUnitCountSecond = "Count/Second" 11282) 11283 11284// EntitlementDataUnit_Values returns all elements of the EntitlementDataUnit enum 11285func EntitlementDataUnit_Values() []string { 11286 return []string{ 11287 EntitlementDataUnitCount, 11288 EntitlementDataUnitNone, 11289 EntitlementDataUnitSeconds, 11290 EntitlementDataUnitMicroseconds, 11291 EntitlementDataUnitMilliseconds, 11292 EntitlementDataUnitBytes, 11293 EntitlementDataUnitKilobytes, 11294 EntitlementDataUnitMegabytes, 11295 EntitlementDataUnitGigabytes, 11296 EntitlementDataUnitTerabytes, 11297 EntitlementDataUnitBits, 11298 EntitlementDataUnitKilobits, 11299 EntitlementDataUnitMegabits, 11300 EntitlementDataUnitGigabits, 11301 EntitlementDataUnitTerabits, 11302 EntitlementDataUnitPercent, 11303 EntitlementDataUnitBytesSecond, 11304 EntitlementDataUnitKilobytesSecond, 11305 EntitlementDataUnitMegabytesSecond, 11306 EntitlementDataUnitGigabytesSecond, 11307 EntitlementDataUnitTerabytesSecond, 11308 EntitlementDataUnitBitsSecond, 11309 EntitlementDataUnitKilobitsSecond, 11310 EntitlementDataUnitMegabitsSecond, 11311 EntitlementDataUnitGigabitsSecond, 11312 EntitlementDataUnitTerabitsSecond, 11313 EntitlementDataUnitCountSecond, 11314 } 11315} 11316 11317const ( 11318 // EntitlementUnitCount is a EntitlementUnit enum value 11319 EntitlementUnitCount = "Count" 11320 11321 // EntitlementUnitNone is a EntitlementUnit enum value 11322 EntitlementUnitNone = "None" 11323 11324 // EntitlementUnitSeconds is a EntitlementUnit enum value 11325 EntitlementUnitSeconds = "Seconds" 11326 11327 // EntitlementUnitMicroseconds is a EntitlementUnit enum value 11328 EntitlementUnitMicroseconds = "Microseconds" 11329 11330 // EntitlementUnitMilliseconds is a EntitlementUnit enum value 11331 EntitlementUnitMilliseconds = "Milliseconds" 11332 11333 // EntitlementUnitBytes is a EntitlementUnit enum value 11334 EntitlementUnitBytes = "Bytes" 11335 11336 // EntitlementUnitKilobytes is a EntitlementUnit enum value 11337 EntitlementUnitKilobytes = "Kilobytes" 11338 11339 // EntitlementUnitMegabytes is a EntitlementUnit enum value 11340 EntitlementUnitMegabytes = "Megabytes" 11341 11342 // EntitlementUnitGigabytes is a EntitlementUnit enum value 11343 EntitlementUnitGigabytes = "Gigabytes" 11344 11345 // EntitlementUnitTerabytes is a EntitlementUnit enum value 11346 EntitlementUnitTerabytes = "Terabytes" 11347 11348 // EntitlementUnitBits is a EntitlementUnit enum value 11349 EntitlementUnitBits = "Bits" 11350 11351 // EntitlementUnitKilobits is a EntitlementUnit enum value 11352 EntitlementUnitKilobits = "Kilobits" 11353 11354 // EntitlementUnitMegabits is a EntitlementUnit enum value 11355 EntitlementUnitMegabits = "Megabits" 11356 11357 // EntitlementUnitGigabits is a EntitlementUnit enum value 11358 EntitlementUnitGigabits = "Gigabits" 11359 11360 // EntitlementUnitTerabits is a EntitlementUnit enum value 11361 EntitlementUnitTerabits = "Terabits" 11362 11363 // EntitlementUnitPercent is a EntitlementUnit enum value 11364 EntitlementUnitPercent = "Percent" 11365 11366 // EntitlementUnitBytesSecond is a EntitlementUnit enum value 11367 EntitlementUnitBytesSecond = "Bytes/Second" 11368 11369 // EntitlementUnitKilobytesSecond is a EntitlementUnit enum value 11370 EntitlementUnitKilobytesSecond = "Kilobytes/Second" 11371 11372 // EntitlementUnitMegabytesSecond is a EntitlementUnit enum value 11373 EntitlementUnitMegabytesSecond = "Megabytes/Second" 11374 11375 // EntitlementUnitGigabytesSecond is a EntitlementUnit enum value 11376 EntitlementUnitGigabytesSecond = "Gigabytes/Second" 11377 11378 // EntitlementUnitTerabytesSecond is a EntitlementUnit enum value 11379 EntitlementUnitTerabytesSecond = "Terabytes/Second" 11380 11381 // EntitlementUnitBitsSecond is a EntitlementUnit enum value 11382 EntitlementUnitBitsSecond = "Bits/Second" 11383 11384 // EntitlementUnitKilobitsSecond is a EntitlementUnit enum value 11385 EntitlementUnitKilobitsSecond = "Kilobits/Second" 11386 11387 // EntitlementUnitMegabitsSecond is a EntitlementUnit enum value 11388 EntitlementUnitMegabitsSecond = "Megabits/Second" 11389 11390 // EntitlementUnitGigabitsSecond is a EntitlementUnit enum value 11391 EntitlementUnitGigabitsSecond = "Gigabits/Second" 11392 11393 // EntitlementUnitTerabitsSecond is a EntitlementUnit enum value 11394 EntitlementUnitTerabitsSecond = "Terabits/Second" 11395 11396 // EntitlementUnitCountSecond is a EntitlementUnit enum value 11397 EntitlementUnitCountSecond = "Count/Second" 11398) 11399 11400// EntitlementUnit_Values returns all elements of the EntitlementUnit enum 11401func EntitlementUnit_Values() []string { 11402 return []string{ 11403 EntitlementUnitCount, 11404 EntitlementUnitNone, 11405 EntitlementUnitSeconds, 11406 EntitlementUnitMicroseconds, 11407 EntitlementUnitMilliseconds, 11408 EntitlementUnitBytes, 11409 EntitlementUnitKilobytes, 11410 EntitlementUnitMegabytes, 11411 EntitlementUnitGigabytes, 11412 EntitlementUnitTerabytes, 11413 EntitlementUnitBits, 11414 EntitlementUnitKilobits, 11415 EntitlementUnitMegabits, 11416 EntitlementUnitGigabits, 11417 EntitlementUnitTerabits, 11418 EntitlementUnitPercent, 11419 EntitlementUnitBytesSecond, 11420 EntitlementUnitKilobytesSecond, 11421 EntitlementUnitMegabytesSecond, 11422 EntitlementUnitGigabytesSecond, 11423 EntitlementUnitTerabytesSecond, 11424 EntitlementUnitBitsSecond, 11425 EntitlementUnitKilobitsSecond, 11426 EntitlementUnitMegabitsSecond, 11427 EntitlementUnitGigabitsSecond, 11428 EntitlementUnitTerabitsSecond, 11429 EntitlementUnitCountSecond, 11430 } 11431} 11432 11433const ( 11434 // GrantStatusPendingWorkflow is a GrantStatus enum value 11435 GrantStatusPendingWorkflow = "PENDING_WORKFLOW" 11436 11437 // GrantStatusPendingAccept is a GrantStatus enum value 11438 GrantStatusPendingAccept = "PENDING_ACCEPT" 11439 11440 // GrantStatusRejected is a GrantStatus enum value 11441 GrantStatusRejected = "REJECTED" 11442 11443 // GrantStatusActive is a GrantStatus enum value 11444 GrantStatusActive = "ACTIVE" 11445 11446 // GrantStatusFailedWorkflow is a GrantStatus enum value 11447 GrantStatusFailedWorkflow = "FAILED_WORKFLOW" 11448 11449 // GrantStatusDeleted is a GrantStatus enum value 11450 GrantStatusDeleted = "DELETED" 11451 11452 // GrantStatusPendingDelete is a GrantStatus enum value 11453 GrantStatusPendingDelete = "PENDING_DELETE" 11454 11455 // GrantStatusDisabled is a GrantStatus enum value 11456 GrantStatusDisabled = "DISABLED" 11457) 11458 11459// GrantStatus_Values returns all elements of the GrantStatus enum 11460func GrantStatus_Values() []string { 11461 return []string{ 11462 GrantStatusPendingWorkflow, 11463 GrantStatusPendingAccept, 11464 GrantStatusRejected, 11465 GrantStatusActive, 11466 GrantStatusFailedWorkflow, 11467 GrantStatusDeleted, 11468 GrantStatusPendingDelete, 11469 GrantStatusDisabled, 11470 } 11471} 11472 11473const ( 11474 // InventoryFilterConditionEquals is a InventoryFilterCondition enum value 11475 InventoryFilterConditionEquals = "EQUALS" 11476 11477 // InventoryFilterConditionNotEquals is a InventoryFilterCondition enum value 11478 InventoryFilterConditionNotEquals = "NOT_EQUALS" 11479 11480 // InventoryFilterConditionBeginsWith is a InventoryFilterCondition enum value 11481 InventoryFilterConditionBeginsWith = "BEGINS_WITH" 11482 11483 // InventoryFilterConditionContains is a InventoryFilterCondition enum value 11484 InventoryFilterConditionContains = "CONTAINS" 11485) 11486 11487// InventoryFilterCondition_Values returns all elements of the InventoryFilterCondition enum 11488func InventoryFilterCondition_Values() []string { 11489 return []string{ 11490 InventoryFilterConditionEquals, 11491 InventoryFilterConditionNotEquals, 11492 InventoryFilterConditionBeginsWith, 11493 InventoryFilterConditionContains, 11494 } 11495} 11496 11497const ( 11498 // LicenseConfigurationStatusAvailable is a LicenseConfigurationStatus enum value 11499 LicenseConfigurationStatusAvailable = "AVAILABLE" 11500 11501 // LicenseConfigurationStatusDisabled is a LicenseConfigurationStatus enum value 11502 LicenseConfigurationStatusDisabled = "DISABLED" 11503) 11504 11505// LicenseConfigurationStatus_Values returns all elements of the LicenseConfigurationStatus enum 11506func LicenseConfigurationStatus_Values() []string { 11507 return []string{ 11508 LicenseConfigurationStatusAvailable, 11509 LicenseConfigurationStatusDisabled, 11510 } 11511} 11512 11513const ( 11514 // LicenseCountingTypeVCpu is a LicenseCountingType enum value 11515 LicenseCountingTypeVCpu = "vCPU" 11516 11517 // LicenseCountingTypeInstance is a LicenseCountingType enum value 11518 LicenseCountingTypeInstance = "Instance" 11519 11520 // LicenseCountingTypeCore is a LicenseCountingType enum value 11521 LicenseCountingTypeCore = "Core" 11522 11523 // LicenseCountingTypeSocket is a LicenseCountingType enum value 11524 LicenseCountingTypeSocket = "Socket" 11525) 11526 11527// LicenseCountingType_Values returns all elements of the LicenseCountingType enum 11528func LicenseCountingType_Values() []string { 11529 return []string{ 11530 LicenseCountingTypeVCpu, 11531 LicenseCountingTypeInstance, 11532 LicenseCountingTypeCore, 11533 LicenseCountingTypeSocket, 11534 } 11535} 11536 11537const ( 11538 // LicenseDeletionStatusPendingDelete is a LicenseDeletionStatus enum value 11539 LicenseDeletionStatusPendingDelete = "PENDING_DELETE" 11540 11541 // LicenseDeletionStatusDeleted is a LicenseDeletionStatus enum value 11542 LicenseDeletionStatusDeleted = "DELETED" 11543) 11544 11545// LicenseDeletionStatus_Values returns all elements of the LicenseDeletionStatus enum 11546func LicenseDeletionStatus_Values() []string { 11547 return []string{ 11548 LicenseDeletionStatusPendingDelete, 11549 LicenseDeletionStatusDeleted, 11550 } 11551} 11552 11553const ( 11554 // LicenseStatusAvailable is a LicenseStatus enum value 11555 LicenseStatusAvailable = "AVAILABLE" 11556 11557 // LicenseStatusPendingAvailable is a LicenseStatus enum value 11558 LicenseStatusPendingAvailable = "PENDING_AVAILABLE" 11559 11560 // LicenseStatusDeactivated is a LicenseStatus enum value 11561 LicenseStatusDeactivated = "DEACTIVATED" 11562 11563 // LicenseStatusSuspended is a LicenseStatus enum value 11564 LicenseStatusSuspended = "SUSPENDED" 11565 11566 // LicenseStatusExpired is a LicenseStatus enum value 11567 LicenseStatusExpired = "EXPIRED" 11568 11569 // LicenseStatusPendingDelete is a LicenseStatus enum value 11570 LicenseStatusPendingDelete = "PENDING_DELETE" 11571 11572 // LicenseStatusDeleted is a LicenseStatus enum value 11573 LicenseStatusDeleted = "DELETED" 11574) 11575 11576// LicenseStatus_Values returns all elements of the LicenseStatus enum 11577func LicenseStatus_Values() []string { 11578 return []string{ 11579 LicenseStatusAvailable, 11580 LicenseStatusPendingAvailable, 11581 LicenseStatusDeactivated, 11582 LicenseStatusSuspended, 11583 LicenseStatusExpired, 11584 LicenseStatusPendingDelete, 11585 LicenseStatusDeleted, 11586 } 11587} 11588 11589const ( 11590 // ReceivedStatusPendingWorkflow is a ReceivedStatus enum value 11591 ReceivedStatusPendingWorkflow = "PENDING_WORKFLOW" 11592 11593 // ReceivedStatusPendingAccept is a ReceivedStatus enum value 11594 ReceivedStatusPendingAccept = "PENDING_ACCEPT" 11595 11596 // ReceivedStatusRejected is a ReceivedStatus enum value 11597 ReceivedStatusRejected = "REJECTED" 11598 11599 // ReceivedStatusActive is a ReceivedStatus enum value 11600 ReceivedStatusActive = "ACTIVE" 11601 11602 // ReceivedStatusFailedWorkflow is a ReceivedStatus enum value 11603 ReceivedStatusFailedWorkflow = "FAILED_WORKFLOW" 11604 11605 // ReceivedStatusDeleted is a ReceivedStatus enum value 11606 ReceivedStatusDeleted = "DELETED" 11607 11608 // ReceivedStatusDisabled is a ReceivedStatus enum value 11609 ReceivedStatusDisabled = "DISABLED" 11610) 11611 11612// ReceivedStatus_Values returns all elements of the ReceivedStatus enum 11613func ReceivedStatus_Values() []string { 11614 return []string{ 11615 ReceivedStatusPendingWorkflow, 11616 ReceivedStatusPendingAccept, 11617 ReceivedStatusRejected, 11618 ReceivedStatusActive, 11619 ReceivedStatusFailedWorkflow, 11620 ReceivedStatusDeleted, 11621 ReceivedStatusDisabled, 11622 } 11623} 11624 11625const ( 11626 // RenewTypeNone is a RenewType enum value 11627 RenewTypeNone = "None" 11628 11629 // RenewTypeWeekly is a RenewType enum value 11630 RenewTypeWeekly = "Weekly" 11631 11632 // RenewTypeMonthly is a RenewType enum value 11633 RenewTypeMonthly = "Monthly" 11634) 11635 11636// RenewType_Values returns all elements of the RenewType enum 11637func RenewType_Values() []string { 11638 return []string{ 11639 RenewTypeNone, 11640 RenewTypeWeekly, 11641 RenewTypeMonthly, 11642 } 11643} 11644 11645const ( 11646 // ResourceTypeEc2Instance is a ResourceType enum value 11647 ResourceTypeEc2Instance = "EC2_INSTANCE" 11648 11649 // ResourceTypeEc2Host is a ResourceType enum value 11650 ResourceTypeEc2Host = "EC2_HOST" 11651 11652 // ResourceTypeEc2Ami is a ResourceType enum value 11653 ResourceTypeEc2Ami = "EC2_AMI" 11654 11655 // ResourceTypeRds is a ResourceType enum value 11656 ResourceTypeRds = "RDS" 11657 11658 // ResourceTypeSystemsManagerManagedInstance is a ResourceType enum value 11659 ResourceTypeSystemsManagerManagedInstance = "SYSTEMS_MANAGER_MANAGED_INSTANCE" 11660) 11661 11662// ResourceType_Values returns all elements of the ResourceType enum 11663func ResourceType_Values() []string { 11664 return []string{ 11665 ResourceTypeEc2Instance, 11666 ResourceTypeEc2Host, 11667 ResourceTypeEc2Ami, 11668 ResourceTypeRds, 11669 ResourceTypeSystemsManagerManagedInstance, 11670 } 11671} 11672 11673const ( 11674 // TokenTypeRefreshToken is a TokenType enum value 11675 TokenTypeRefreshToken = "REFRESH_TOKEN" 11676) 11677 11678// TokenType_Values returns all elements of the TokenType enum 11679func TokenType_Values() []string { 11680 return []string{ 11681 TokenTypeRefreshToken, 11682 } 11683} 11684