1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package quicksight 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) 14 15const opCancelIngestion = "CancelIngestion" 16 17// CancelIngestionRequest generates a "aws/request.Request" representing the 18// client's request for the CancelIngestion operation. The "output" return 19// value will be populated with the request's response once the request completes 20// successfully. 21// 22// Use "Send" method on the returned Request to send the API call to the service. 23// the "output" return value is not valid until after Send returns without error. 24// 25// See CancelIngestion for more information on using the CancelIngestion 26// API call, and error handling. 27// 28// This method is useful when you want to inject custom logic or configuration 29// into the SDK's request lifecycle. Such as custom headers, or retry logic. 30// 31// 32// // Example sending a request using the CancelIngestionRequest method. 33// req, resp := client.CancelIngestionRequest(params) 34// 35// err := req.Send() 36// if err == nil { // resp is now filled 37// fmt.Println(resp) 38// } 39// 40// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CancelIngestion 41func (c *QuickSight) CancelIngestionRequest(input *CancelIngestionInput) (req *request.Request, output *CancelIngestionOutput) { 42 op := &request.Operation{ 43 Name: opCancelIngestion, 44 HTTPMethod: "DELETE", 45 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}", 46 } 47 48 if input == nil { 49 input = &CancelIngestionInput{} 50 } 51 52 output = &CancelIngestionOutput{} 53 req = c.newRequest(op, input, output) 54 return 55} 56 57// CancelIngestion API operation for Amazon QuickSight. 58// 59// Cancels an ongoing ingestion of data into SPICE. 60// 61// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 62// with awserr.Error's Code and Message methods to get detailed information about 63// the error. 64// 65// See the AWS API reference guide for Amazon QuickSight's 66// API operation CancelIngestion for usage and error information. 67// 68// Returned Error Types: 69// * AccessDeniedException 70// You don't have access to this item. The provided credentials couldn't be 71// validated. You might not be authorized to carry out the request. Make sure 72// that your account is authorized to use the Amazon QuickSight service, that 73// your policies have the correct permissions, and that you are using the correct 74// access keys. 75// 76// * InvalidParameterValueException 77// One or more parameters has a value that isn't valid. 78// 79// * ResourceNotFoundException 80// One or more resources can't be found. 81// 82// * ThrottlingException 83// Access is throttled. 84// 85// * ResourceExistsException 86// The resource specified already exists. 87// 88// * InternalFailureException 89// An internal failure occurred. 90// 91// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CancelIngestion 92func (c *QuickSight) CancelIngestion(input *CancelIngestionInput) (*CancelIngestionOutput, error) { 93 req, out := c.CancelIngestionRequest(input) 94 return out, req.Send() 95} 96 97// CancelIngestionWithContext is the same as CancelIngestion with the addition of 98// the ability to pass a context and additional request options. 99// 100// See CancelIngestion for details on how to use this API operation. 101// 102// The context must be non-nil and will be used for request cancellation. If 103// the context is nil a panic will occur. In the future the SDK may create 104// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 105// for more information on using Contexts. 106func (c *QuickSight) CancelIngestionWithContext(ctx aws.Context, input *CancelIngestionInput, opts ...request.Option) (*CancelIngestionOutput, error) { 107 req, out := c.CancelIngestionRequest(input) 108 req.SetContext(ctx) 109 req.ApplyOptions(opts...) 110 return out, req.Send() 111} 112 113const opCreateDashboard = "CreateDashboard" 114 115// CreateDashboardRequest generates a "aws/request.Request" representing the 116// client's request for the CreateDashboard operation. The "output" return 117// value will be populated with the request's response once the request completes 118// successfully. 119// 120// Use "Send" method on the returned Request to send the API call to the service. 121// the "output" return value is not valid until after Send returns without error. 122// 123// See CreateDashboard for more information on using the CreateDashboard 124// API call, and error handling. 125// 126// This method is useful when you want to inject custom logic or configuration 127// into the SDK's request lifecycle. Such as custom headers, or retry logic. 128// 129// 130// // Example sending a request using the CreateDashboardRequest method. 131// req, resp := client.CreateDashboardRequest(params) 132// 133// err := req.Send() 134// if err == nil { // resp is now filled 135// fmt.Println(resp) 136// } 137// 138// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDashboard 139func (c *QuickSight) CreateDashboardRequest(input *CreateDashboardInput) (req *request.Request, output *CreateDashboardOutput) { 140 op := &request.Operation{ 141 Name: opCreateDashboard, 142 HTTPMethod: "POST", 143 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}", 144 } 145 146 if input == nil { 147 input = &CreateDashboardInput{} 148 } 149 150 output = &CreateDashboardOutput{} 151 req = c.newRequest(op, input, output) 152 return 153} 154 155// CreateDashboard API operation for Amazon QuickSight. 156// 157// Creates a dashboard from a template. To first create a template, see the 158// CreateTemplate API operation. 159// 160// A dashboard is an entity in QuickSight that identifies QuickSight reports, 161// created from analyses. You can share QuickSight dashboards. With the right 162// permissions, you can create scheduled email reports from them. The CreateDashboard, 163// DescribeDashboard, and ListDashboardsByUser API operations act on the dashboard 164// entity. If you have the correct permissions, you can create a dashboard from 165// a template that exists in a different AWS account. 166// 167// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 168// with awserr.Error's Code and Message methods to get detailed information about 169// the error. 170// 171// See the AWS API reference guide for Amazon QuickSight's 172// API operation CreateDashboard for usage and error information. 173// 174// Returned Error Types: 175// * ResourceNotFoundException 176// One or more resources can't be found. 177// 178// * InvalidParameterValueException 179// One or more parameters has a value that isn't valid. 180// 181// * ThrottlingException 182// Access is throttled. 183// 184// * ResourceExistsException 185// The resource specified already exists. 186// 187// * ConflictException 188// Updating or deleting a resource can cause an inconsistent state. 189// 190// * UnsupportedUserEditionException 191// This error indicates that you are calling an operation on an Amazon QuickSight 192// subscription where the edition doesn't include support for that operation. 193// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 194// Not every operation and capability is available in every edition. 195// 196// * InternalFailureException 197// An internal failure occurred. 198// 199// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDashboard 200func (c *QuickSight) CreateDashboard(input *CreateDashboardInput) (*CreateDashboardOutput, error) { 201 req, out := c.CreateDashboardRequest(input) 202 return out, req.Send() 203} 204 205// CreateDashboardWithContext is the same as CreateDashboard with the addition of 206// the ability to pass a context and additional request options. 207// 208// See CreateDashboard for details on how to use this API operation. 209// 210// The context must be non-nil and will be used for request cancellation. If 211// the context is nil a panic will occur. In the future the SDK may create 212// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 213// for more information on using Contexts. 214func (c *QuickSight) CreateDashboardWithContext(ctx aws.Context, input *CreateDashboardInput, opts ...request.Option) (*CreateDashboardOutput, error) { 215 req, out := c.CreateDashboardRequest(input) 216 req.SetContext(ctx) 217 req.ApplyOptions(opts...) 218 return out, req.Send() 219} 220 221const opCreateDataSet = "CreateDataSet" 222 223// CreateDataSetRequest generates a "aws/request.Request" representing the 224// client's request for the CreateDataSet operation. The "output" return 225// value will be populated with the request's response once the request completes 226// successfully. 227// 228// Use "Send" method on the returned Request to send the API call to the service. 229// the "output" return value is not valid until after Send returns without error. 230// 231// See CreateDataSet for more information on using the CreateDataSet 232// API call, and error handling. 233// 234// This method is useful when you want to inject custom logic or configuration 235// into the SDK's request lifecycle. Such as custom headers, or retry logic. 236// 237// 238// // Example sending a request using the CreateDataSetRequest method. 239// req, resp := client.CreateDataSetRequest(params) 240// 241// err := req.Send() 242// if err == nil { // resp is now filled 243// fmt.Println(resp) 244// } 245// 246// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDataSet 247func (c *QuickSight) CreateDataSetRequest(input *CreateDataSetInput) (req *request.Request, output *CreateDataSetOutput) { 248 op := &request.Operation{ 249 Name: opCreateDataSet, 250 HTTPMethod: "POST", 251 HTTPPath: "/accounts/{AwsAccountId}/data-sets", 252 } 253 254 if input == nil { 255 input = &CreateDataSetInput{} 256 } 257 258 output = &CreateDataSetOutput{} 259 req = c.newRequest(op, input, output) 260 return 261} 262 263// CreateDataSet API operation for Amazon QuickSight. 264// 265// Creates a dataset. 266// 267// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 268// with awserr.Error's Code and Message methods to get detailed information about 269// the error. 270// 271// See the AWS API reference guide for Amazon QuickSight's 272// API operation CreateDataSet for usage and error information. 273// 274// Returned Error Types: 275// * AccessDeniedException 276// You don't have access to this item. The provided credentials couldn't be 277// validated. You might not be authorized to carry out the request. Make sure 278// that your account is authorized to use the Amazon QuickSight service, that 279// your policies have the correct permissions, and that you are using the correct 280// access keys. 281// 282// * ConflictException 283// Updating or deleting a resource can cause an inconsistent state. 284// 285// * InvalidParameterValueException 286// One or more parameters has a value that isn't valid. 287// 288// * LimitExceededException 289// A limit is exceeded. 290// 291// * ResourceExistsException 292// The resource specified already exists. 293// 294// * ResourceNotFoundException 295// One or more resources can't be found. 296// 297// * ThrottlingException 298// Access is throttled. 299// 300// * UnsupportedUserEditionException 301// This error indicates that you are calling an operation on an Amazon QuickSight 302// subscription where the edition doesn't include support for that operation. 303// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 304// Not every operation and capability is available in every edition. 305// 306// * InternalFailureException 307// An internal failure occurred. 308// 309// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDataSet 310func (c *QuickSight) CreateDataSet(input *CreateDataSetInput) (*CreateDataSetOutput, error) { 311 req, out := c.CreateDataSetRequest(input) 312 return out, req.Send() 313} 314 315// CreateDataSetWithContext is the same as CreateDataSet with the addition of 316// the ability to pass a context and additional request options. 317// 318// See CreateDataSet for details on how to use this API operation. 319// 320// The context must be non-nil and will be used for request cancellation. If 321// the context is nil a panic will occur. In the future the SDK may create 322// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 323// for more information on using Contexts. 324func (c *QuickSight) CreateDataSetWithContext(ctx aws.Context, input *CreateDataSetInput, opts ...request.Option) (*CreateDataSetOutput, error) { 325 req, out := c.CreateDataSetRequest(input) 326 req.SetContext(ctx) 327 req.ApplyOptions(opts...) 328 return out, req.Send() 329} 330 331const opCreateDataSource = "CreateDataSource" 332 333// CreateDataSourceRequest generates a "aws/request.Request" representing the 334// client's request for the CreateDataSource operation. The "output" return 335// value will be populated with the request's response once the request completes 336// successfully. 337// 338// Use "Send" method on the returned Request to send the API call to the service. 339// the "output" return value is not valid until after Send returns without error. 340// 341// See CreateDataSource for more information on using the CreateDataSource 342// API call, and error handling. 343// 344// This method is useful when you want to inject custom logic or configuration 345// into the SDK's request lifecycle. Such as custom headers, or retry logic. 346// 347// 348// // Example sending a request using the CreateDataSourceRequest method. 349// req, resp := client.CreateDataSourceRequest(params) 350// 351// err := req.Send() 352// if err == nil { // resp is now filled 353// fmt.Println(resp) 354// } 355// 356// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDataSource 357func (c *QuickSight) CreateDataSourceRequest(input *CreateDataSourceInput) (req *request.Request, output *CreateDataSourceOutput) { 358 op := &request.Operation{ 359 Name: opCreateDataSource, 360 HTTPMethod: "POST", 361 HTTPPath: "/accounts/{AwsAccountId}/data-sources", 362 } 363 364 if input == nil { 365 input = &CreateDataSourceInput{} 366 } 367 368 output = &CreateDataSourceOutput{} 369 req = c.newRequest(op, input, output) 370 return 371} 372 373// CreateDataSource API operation for Amazon QuickSight. 374// 375// Creates a data source. 376// 377// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 378// with awserr.Error's Code and Message methods to get detailed information about 379// the error. 380// 381// See the AWS API reference guide for Amazon QuickSight's 382// API operation CreateDataSource for usage and error information. 383// 384// Returned Error Types: 385// * AccessDeniedException 386// You don't have access to this item. The provided credentials couldn't be 387// validated. You might not be authorized to carry out the request. Make sure 388// that your account is authorized to use the Amazon QuickSight service, that 389// your policies have the correct permissions, and that you are using the correct 390// access keys. 391// 392// * ConflictException 393// Updating or deleting a resource can cause an inconsistent state. 394// 395// * InvalidParameterValueException 396// One or more parameters has a value that isn't valid. 397// 398// * LimitExceededException 399// A limit is exceeded. 400// 401// * ResourceNotFoundException 402// One or more resources can't be found. 403// 404// * ResourceExistsException 405// The resource specified already exists. 406// 407// * ThrottlingException 408// Access is throttled. 409// 410// * InternalFailureException 411// An internal failure occurred. 412// 413// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDataSource 414func (c *QuickSight) CreateDataSource(input *CreateDataSourceInput) (*CreateDataSourceOutput, error) { 415 req, out := c.CreateDataSourceRequest(input) 416 return out, req.Send() 417} 418 419// CreateDataSourceWithContext is the same as CreateDataSource with the addition of 420// the ability to pass a context and additional request options. 421// 422// See CreateDataSource for details on how to use this API operation. 423// 424// The context must be non-nil and will be used for request cancellation. If 425// the context is nil a panic will occur. In the future the SDK may create 426// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 427// for more information on using Contexts. 428func (c *QuickSight) CreateDataSourceWithContext(ctx aws.Context, input *CreateDataSourceInput, opts ...request.Option) (*CreateDataSourceOutput, error) { 429 req, out := c.CreateDataSourceRequest(input) 430 req.SetContext(ctx) 431 req.ApplyOptions(opts...) 432 return out, req.Send() 433} 434 435const opCreateGroup = "CreateGroup" 436 437// CreateGroupRequest generates a "aws/request.Request" representing the 438// client's request for the CreateGroup operation. The "output" return 439// value will be populated with the request's response once the request completes 440// successfully. 441// 442// Use "Send" method on the returned Request to send the API call to the service. 443// the "output" return value is not valid until after Send returns without error. 444// 445// See CreateGroup for more information on using the CreateGroup 446// API call, and error handling. 447// 448// This method is useful when you want to inject custom logic or configuration 449// into the SDK's request lifecycle. Such as custom headers, or retry logic. 450// 451// 452// // Example sending a request using the CreateGroupRequest method. 453// req, resp := client.CreateGroupRequest(params) 454// 455// err := req.Send() 456// if err == nil { // resp is now filled 457// fmt.Println(resp) 458// } 459// 460// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroup 461func (c *QuickSight) CreateGroupRequest(input *CreateGroupInput) (req *request.Request, output *CreateGroupOutput) { 462 op := &request.Operation{ 463 Name: opCreateGroup, 464 HTTPMethod: "POST", 465 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups", 466 } 467 468 if input == nil { 469 input = &CreateGroupInput{} 470 } 471 472 output = &CreateGroupOutput{} 473 req = c.newRequest(op, input, output) 474 return 475} 476 477// CreateGroup API operation for Amazon QuickSight. 478// 479// Creates an Amazon QuickSight group. 480// 481// The permissions resource is arn:aws:quicksight:us-east-1:<relevant-aws-account-id>:group/default/<group-name> . 482// 483// The response is a group object. 484// 485// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 486// with awserr.Error's Code and Message methods to get detailed information about 487// the error. 488// 489// See the AWS API reference guide for Amazon QuickSight's 490// API operation CreateGroup for usage and error information. 491// 492// Returned Error Types: 493// * AccessDeniedException 494// You don't have access to this item. The provided credentials couldn't be 495// validated. You might not be authorized to carry out the request. Make sure 496// that your account is authorized to use the Amazon QuickSight service, that 497// your policies have the correct permissions, and that you are using the correct 498// access keys. 499// 500// * InvalidParameterValueException 501// One or more parameters has a value that isn't valid. 502// 503// * ResourceExistsException 504// The resource specified already exists. 505// 506// * ResourceNotFoundException 507// One or more resources can't be found. 508// 509// * ThrottlingException 510// Access is throttled. 511// 512// * PreconditionNotMetException 513// One or more preconditions aren't met. 514// 515// * LimitExceededException 516// A limit is exceeded. 517// 518// * InternalFailureException 519// An internal failure occurred. 520// 521// * ResourceUnavailableException 522// This resource is currently unavailable. 523// 524// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroup 525func (c *QuickSight) CreateGroup(input *CreateGroupInput) (*CreateGroupOutput, error) { 526 req, out := c.CreateGroupRequest(input) 527 return out, req.Send() 528} 529 530// CreateGroupWithContext is the same as CreateGroup with the addition of 531// the ability to pass a context and additional request options. 532// 533// See CreateGroup for details on how to use this API operation. 534// 535// The context must be non-nil and will be used for request cancellation. If 536// the context is nil a panic will occur. In the future the SDK may create 537// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 538// for more information on using Contexts. 539func (c *QuickSight) CreateGroupWithContext(ctx aws.Context, input *CreateGroupInput, opts ...request.Option) (*CreateGroupOutput, error) { 540 req, out := c.CreateGroupRequest(input) 541 req.SetContext(ctx) 542 req.ApplyOptions(opts...) 543 return out, req.Send() 544} 545 546const opCreateGroupMembership = "CreateGroupMembership" 547 548// CreateGroupMembershipRequest generates a "aws/request.Request" representing the 549// client's request for the CreateGroupMembership operation. The "output" return 550// value will be populated with the request's response once the request completes 551// successfully. 552// 553// Use "Send" method on the returned Request to send the API call to the service. 554// the "output" return value is not valid until after Send returns without error. 555// 556// See CreateGroupMembership for more information on using the CreateGroupMembership 557// API call, and error handling. 558// 559// This method is useful when you want to inject custom logic or configuration 560// into the SDK's request lifecycle. Such as custom headers, or retry logic. 561// 562// 563// // Example sending a request using the CreateGroupMembershipRequest method. 564// req, resp := client.CreateGroupMembershipRequest(params) 565// 566// err := req.Send() 567// if err == nil { // resp is now filled 568// fmt.Println(resp) 569// } 570// 571// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroupMembership 572func (c *QuickSight) CreateGroupMembershipRequest(input *CreateGroupMembershipInput) (req *request.Request, output *CreateGroupMembershipOutput) { 573 op := &request.Operation{ 574 Name: opCreateGroupMembership, 575 HTTPMethod: "PUT", 576 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", 577 } 578 579 if input == nil { 580 input = &CreateGroupMembershipInput{} 581 } 582 583 output = &CreateGroupMembershipOutput{} 584 req = c.newRequest(op, input, output) 585 return 586} 587 588// CreateGroupMembership API operation for Amazon QuickSight. 589// 590// Adds an Amazon QuickSight user to an Amazon QuickSight group. 591// 592// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 593// with awserr.Error's Code and Message methods to get detailed information about 594// the error. 595// 596// See the AWS API reference guide for Amazon QuickSight's 597// API operation CreateGroupMembership for usage and error information. 598// 599// Returned Error Types: 600// * AccessDeniedException 601// You don't have access to this item. The provided credentials couldn't be 602// validated. You might not be authorized to carry out the request. Make sure 603// that your account is authorized to use the Amazon QuickSight service, that 604// your policies have the correct permissions, and that you are using the correct 605// access keys. 606// 607// * InvalidParameterValueException 608// One or more parameters has a value that isn't valid. 609// 610// * ResourceNotFoundException 611// One or more resources can't be found. 612// 613// * ThrottlingException 614// Access is throttled. 615// 616// * PreconditionNotMetException 617// One or more preconditions aren't met. 618// 619// * InternalFailureException 620// An internal failure occurred. 621// 622// * ResourceUnavailableException 623// This resource is currently unavailable. 624// 625// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroupMembership 626func (c *QuickSight) CreateGroupMembership(input *CreateGroupMembershipInput) (*CreateGroupMembershipOutput, error) { 627 req, out := c.CreateGroupMembershipRequest(input) 628 return out, req.Send() 629} 630 631// CreateGroupMembershipWithContext is the same as CreateGroupMembership with the addition of 632// the ability to pass a context and additional request options. 633// 634// See CreateGroupMembership for details on how to use this API operation. 635// 636// The context must be non-nil and will be used for request cancellation. If 637// the context is nil a panic will occur. In the future the SDK may create 638// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 639// for more information on using Contexts. 640func (c *QuickSight) CreateGroupMembershipWithContext(ctx aws.Context, input *CreateGroupMembershipInput, opts ...request.Option) (*CreateGroupMembershipOutput, error) { 641 req, out := c.CreateGroupMembershipRequest(input) 642 req.SetContext(ctx) 643 req.ApplyOptions(opts...) 644 return out, req.Send() 645} 646 647const opCreateIAMPolicyAssignment = "CreateIAMPolicyAssignment" 648 649// CreateIAMPolicyAssignmentRequest generates a "aws/request.Request" representing the 650// client's request for the CreateIAMPolicyAssignment operation. The "output" return 651// value will be populated with the request's response once the request completes 652// successfully. 653// 654// Use "Send" method on the returned Request to send the API call to the service. 655// the "output" return value is not valid until after Send returns without error. 656// 657// See CreateIAMPolicyAssignment for more information on using the CreateIAMPolicyAssignment 658// API call, and error handling. 659// 660// This method is useful when you want to inject custom logic or configuration 661// into the SDK's request lifecycle. Such as custom headers, or retry logic. 662// 663// 664// // Example sending a request using the CreateIAMPolicyAssignmentRequest method. 665// req, resp := client.CreateIAMPolicyAssignmentRequest(params) 666// 667// err := req.Send() 668// if err == nil { // resp is now filled 669// fmt.Println(resp) 670// } 671// 672// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateIAMPolicyAssignment 673func (c *QuickSight) CreateIAMPolicyAssignmentRequest(input *CreateIAMPolicyAssignmentInput) (req *request.Request, output *CreateIAMPolicyAssignmentOutput) { 674 op := &request.Operation{ 675 Name: opCreateIAMPolicyAssignment, 676 HTTPMethod: "POST", 677 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/", 678 } 679 680 if input == nil { 681 input = &CreateIAMPolicyAssignmentInput{} 682 } 683 684 output = &CreateIAMPolicyAssignmentOutput{} 685 req = c.newRequest(op, input, output) 686 return 687} 688 689// CreateIAMPolicyAssignment API operation for Amazon QuickSight. 690// 691// Creates an assignment with one specified IAM policy, identified by its Amazon 692// Resource Name (ARN). This policy will be assigned to specified groups or 693// users of Amazon QuickSight. The users and groups need to be in the same namespace. 694// 695// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 696// with awserr.Error's Code and Message methods to get detailed information about 697// the error. 698// 699// See the AWS API reference guide for Amazon QuickSight's 700// API operation CreateIAMPolicyAssignment for usage and error information. 701// 702// Returned Error Types: 703// * AccessDeniedException 704// You don't have access to this item. The provided credentials couldn't be 705// validated. You might not be authorized to carry out the request. Make sure 706// that your account is authorized to use the Amazon QuickSight service, that 707// your policies have the correct permissions, and that you are using the correct 708// access keys. 709// 710// * InvalidParameterValueException 711// One or more parameters has a value that isn't valid. 712// 713// * ResourceExistsException 714// The resource specified already exists. 715// 716// * ResourceNotFoundException 717// One or more resources can't be found. 718// 719// * ThrottlingException 720// Access is throttled. 721// 722// * ConcurrentUpdatingException 723// A resource is already in a state that indicates an action is happening that 724// must complete before a new update can be applied. 725// 726// * InternalFailureException 727// An internal failure occurred. 728// 729// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateIAMPolicyAssignment 730func (c *QuickSight) CreateIAMPolicyAssignment(input *CreateIAMPolicyAssignmentInput) (*CreateIAMPolicyAssignmentOutput, error) { 731 req, out := c.CreateIAMPolicyAssignmentRequest(input) 732 return out, req.Send() 733} 734 735// CreateIAMPolicyAssignmentWithContext is the same as CreateIAMPolicyAssignment with the addition of 736// the ability to pass a context and additional request options. 737// 738// See CreateIAMPolicyAssignment for details on how to use this API operation. 739// 740// The context must be non-nil and will be used for request cancellation. If 741// the context is nil a panic will occur. In the future the SDK may create 742// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 743// for more information on using Contexts. 744func (c *QuickSight) CreateIAMPolicyAssignmentWithContext(ctx aws.Context, input *CreateIAMPolicyAssignmentInput, opts ...request.Option) (*CreateIAMPolicyAssignmentOutput, error) { 745 req, out := c.CreateIAMPolicyAssignmentRequest(input) 746 req.SetContext(ctx) 747 req.ApplyOptions(opts...) 748 return out, req.Send() 749} 750 751const opCreateIngestion = "CreateIngestion" 752 753// CreateIngestionRequest generates a "aws/request.Request" representing the 754// client's request for the CreateIngestion operation. The "output" return 755// value will be populated with the request's response once the request completes 756// successfully. 757// 758// Use "Send" method on the returned Request to send the API call to the service. 759// the "output" return value is not valid until after Send returns without error. 760// 761// See CreateIngestion for more information on using the CreateIngestion 762// API call, and error handling. 763// 764// This method is useful when you want to inject custom logic or configuration 765// into the SDK's request lifecycle. Such as custom headers, or retry logic. 766// 767// 768// // Example sending a request using the CreateIngestionRequest method. 769// req, resp := client.CreateIngestionRequest(params) 770// 771// err := req.Send() 772// if err == nil { // resp is now filled 773// fmt.Println(resp) 774// } 775// 776// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateIngestion 777func (c *QuickSight) CreateIngestionRequest(input *CreateIngestionInput) (req *request.Request, output *CreateIngestionOutput) { 778 op := &request.Operation{ 779 Name: opCreateIngestion, 780 HTTPMethod: "PUT", 781 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}", 782 } 783 784 if input == nil { 785 input = &CreateIngestionInput{} 786 } 787 788 output = &CreateIngestionOutput{} 789 req = c.newRequest(op, input, output) 790 return 791} 792 793// CreateIngestion API operation for Amazon QuickSight. 794// 795// Creates and starts a new SPICE ingestion on a dataset 796// 797// Any ingestions operating on tagged datasets inherit the same tags automatically 798// for use in access control. For an example, see How do I create an IAM policy 799// to control access to Amazon EC2 resources using tags? (https://aws.example.com/premiumsupport/knowledge-center/iam-ec2-resource-tags/) 800// in the AWS Knowledge Center. Tags are visible on the tagged dataset, but 801// not on the ingestion resource. 802// 803// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 804// with awserr.Error's Code and Message methods to get detailed information about 805// the error. 806// 807// See the AWS API reference guide for Amazon QuickSight's 808// API operation CreateIngestion for usage and error information. 809// 810// Returned Error Types: 811// * AccessDeniedException 812// You don't have access to this item. The provided credentials couldn't be 813// validated. You might not be authorized to carry out the request. Make sure 814// that your account is authorized to use the Amazon QuickSight service, that 815// your policies have the correct permissions, and that you are using the correct 816// access keys. 817// 818// * InvalidParameterValueException 819// One or more parameters has a value that isn't valid. 820// 821// * ResourceNotFoundException 822// One or more resources can't be found. 823// 824// * ThrottlingException 825// Access is throttled. 826// 827// * LimitExceededException 828// A limit is exceeded. 829// 830// * ResourceExistsException 831// The resource specified already exists. 832// 833// * InternalFailureException 834// An internal failure occurred. 835// 836// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateIngestion 837func (c *QuickSight) CreateIngestion(input *CreateIngestionInput) (*CreateIngestionOutput, error) { 838 req, out := c.CreateIngestionRequest(input) 839 return out, req.Send() 840} 841 842// CreateIngestionWithContext is the same as CreateIngestion with the addition of 843// the ability to pass a context and additional request options. 844// 845// See CreateIngestion for details on how to use this API operation. 846// 847// The context must be non-nil and will be used for request cancellation. If 848// the context is nil a panic will occur. In the future the SDK may create 849// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 850// for more information on using Contexts. 851func (c *QuickSight) CreateIngestionWithContext(ctx aws.Context, input *CreateIngestionInput, opts ...request.Option) (*CreateIngestionOutput, error) { 852 req, out := c.CreateIngestionRequest(input) 853 req.SetContext(ctx) 854 req.ApplyOptions(opts...) 855 return out, req.Send() 856} 857 858const opCreateTemplate = "CreateTemplate" 859 860// CreateTemplateRequest generates a "aws/request.Request" representing the 861// client's request for the CreateTemplate operation. The "output" return 862// value will be populated with the request's response once the request completes 863// successfully. 864// 865// Use "Send" method on the returned Request to send the API call to the service. 866// the "output" return value is not valid until after Send returns without error. 867// 868// See CreateTemplate for more information on using the CreateTemplate 869// API call, and error handling. 870// 871// This method is useful when you want to inject custom logic or configuration 872// into the SDK's request lifecycle. Such as custom headers, or retry logic. 873// 874// 875// // Example sending a request using the CreateTemplateRequest method. 876// req, resp := client.CreateTemplateRequest(params) 877// 878// err := req.Send() 879// if err == nil { // resp is now filled 880// fmt.Println(resp) 881// } 882// 883// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateTemplate 884func (c *QuickSight) CreateTemplateRequest(input *CreateTemplateInput) (req *request.Request, output *CreateTemplateOutput) { 885 op := &request.Operation{ 886 Name: opCreateTemplate, 887 HTTPMethod: "POST", 888 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}", 889 } 890 891 if input == nil { 892 input = &CreateTemplateInput{} 893 } 894 895 output = &CreateTemplateOutput{} 896 req = c.newRequest(op, input, output) 897 return 898} 899 900// CreateTemplate API operation for Amazon QuickSight. 901// 902// Creates a template from an existing QuickSight analysis or template. You 903// can use the resulting template to create a dashboard. 904// 905// A template is an entity in QuickSight that encapsulates the metadata required 906// to create an analysis and that you can use to create s dashboard. A template 907// adds a layer of abstraction by using placeholders to replace the dataset 908// associated with the analysis. You can use templates to create dashboards 909// by replacing dataset placeholders with datasets that follow the same schema 910// that was used to create the source analysis and template. 911// 912// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 913// with awserr.Error's Code and Message methods to get detailed information about 914// the error. 915// 916// See the AWS API reference guide for Amazon QuickSight's 917// API operation CreateTemplate for usage and error information. 918// 919// Returned Error Types: 920// * InvalidParameterValueException 921// One or more parameters has a value that isn't valid. 922// 923// * AccessDeniedException 924// You don't have access to this item. The provided credentials couldn't be 925// validated. You might not be authorized to carry out the request. Make sure 926// that your account is authorized to use the Amazon QuickSight service, that 927// your policies have the correct permissions, and that you are using the correct 928// access keys. 929// 930// * ResourceExistsException 931// The resource specified already exists. 932// 933// * ResourceNotFoundException 934// One or more resources can't be found. 935// 936// * ThrottlingException 937// Access is throttled. 938// 939// * LimitExceededException 940// A limit is exceeded. 941// 942// * UnsupportedUserEditionException 943// This error indicates that you are calling an operation on an Amazon QuickSight 944// subscription where the edition doesn't include support for that operation. 945// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 946// Not every operation and capability is available in every edition. 947// 948// * InternalFailureException 949// An internal failure occurred. 950// 951// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateTemplate 952func (c *QuickSight) CreateTemplate(input *CreateTemplateInput) (*CreateTemplateOutput, error) { 953 req, out := c.CreateTemplateRequest(input) 954 return out, req.Send() 955} 956 957// CreateTemplateWithContext is the same as CreateTemplate with the addition of 958// the ability to pass a context and additional request options. 959// 960// See CreateTemplate for details on how to use this API operation. 961// 962// The context must be non-nil and will be used for request cancellation. If 963// the context is nil a panic will occur. In the future the SDK may create 964// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 965// for more information on using Contexts. 966func (c *QuickSight) CreateTemplateWithContext(ctx aws.Context, input *CreateTemplateInput, opts ...request.Option) (*CreateTemplateOutput, error) { 967 req, out := c.CreateTemplateRequest(input) 968 req.SetContext(ctx) 969 req.ApplyOptions(opts...) 970 return out, req.Send() 971} 972 973const opCreateTemplateAlias = "CreateTemplateAlias" 974 975// CreateTemplateAliasRequest generates a "aws/request.Request" representing the 976// client's request for the CreateTemplateAlias operation. The "output" return 977// value will be populated with the request's response once the request completes 978// successfully. 979// 980// Use "Send" method on the returned Request to send the API call to the service. 981// the "output" return value is not valid until after Send returns without error. 982// 983// See CreateTemplateAlias for more information on using the CreateTemplateAlias 984// API call, and error handling. 985// 986// This method is useful when you want to inject custom logic or configuration 987// into the SDK's request lifecycle. Such as custom headers, or retry logic. 988// 989// 990// // Example sending a request using the CreateTemplateAliasRequest method. 991// req, resp := client.CreateTemplateAliasRequest(params) 992// 993// err := req.Send() 994// if err == nil { // resp is now filled 995// fmt.Println(resp) 996// } 997// 998// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateTemplateAlias 999func (c *QuickSight) CreateTemplateAliasRequest(input *CreateTemplateAliasInput) (req *request.Request, output *CreateTemplateAliasOutput) { 1000 op := &request.Operation{ 1001 Name: opCreateTemplateAlias, 1002 HTTPMethod: "POST", 1003 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", 1004 } 1005 1006 if input == nil { 1007 input = &CreateTemplateAliasInput{} 1008 } 1009 1010 output = &CreateTemplateAliasOutput{} 1011 req = c.newRequest(op, input, output) 1012 return 1013} 1014 1015// CreateTemplateAlias API operation for Amazon QuickSight. 1016// 1017// Creates a template alias for a template. 1018// 1019// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1020// with awserr.Error's Code and Message methods to get detailed information about 1021// the error. 1022// 1023// See the AWS API reference guide for Amazon QuickSight's 1024// API operation CreateTemplateAlias for usage and error information. 1025// 1026// Returned Error Types: 1027// * ThrottlingException 1028// Access is throttled. 1029// 1030// * ResourceNotFoundException 1031// One or more resources can't be found. 1032// 1033// * ConflictException 1034// Updating or deleting a resource can cause an inconsistent state. 1035// 1036// * ResourceExistsException 1037// The resource specified already exists. 1038// 1039// * LimitExceededException 1040// A limit is exceeded. 1041// 1042// * UnsupportedUserEditionException 1043// This error indicates that you are calling an operation on an Amazon QuickSight 1044// subscription where the edition doesn't include support for that operation. 1045// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 1046// Not every operation and capability is available in every edition. 1047// 1048// * InternalFailureException 1049// An internal failure occurred. 1050// 1051// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateTemplateAlias 1052func (c *QuickSight) CreateTemplateAlias(input *CreateTemplateAliasInput) (*CreateTemplateAliasOutput, error) { 1053 req, out := c.CreateTemplateAliasRequest(input) 1054 return out, req.Send() 1055} 1056 1057// CreateTemplateAliasWithContext is the same as CreateTemplateAlias with the addition of 1058// the ability to pass a context and additional request options. 1059// 1060// See CreateTemplateAlias for details on how to use this API operation. 1061// 1062// The context must be non-nil and will be used for request cancellation. If 1063// the context is nil a panic will occur. In the future the SDK may create 1064// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1065// for more information on using Contexts. 1066func (c *QuickSight) CreateTemplateAliasWithContext(ctx aws.Context, input *CreateTemplateAliasInput, opts ...request.Option) (*CreateTemplateAliasOutput, error) { 1067 req, out := c.CreateTemplateAliasRequest(input) 1068 req.SetContext(ctx) 1069 req.ApplyOptions(opts...) 1070 return out, req.Send() 1071} 1072 1073const opDeleteDashboard = "DeleteDashboard" 1074 1075// DeleteDashboardRequest generates a "aws/request.Request" representing the 1076// client's request for the DeleteDashboard operation. The "output" return 1077// value will be populated with the request's response once the request completes 1078// successfully. 1079// 1080// Use "Send" method on the returned Request to send the API call to the service. 1081// the "output" return value is not valid until after Send returns without error. 1082// 1083// See DeleteDashboard for more information on using the DeleteDashboard 1084// API call, and error handling. 1085// 1086// This method is useful when you want to inject custom logic or configuration 1087// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1088// 1089// 1090// // Example sending a request using the DeleteDashboardRequest method. 1091// req, resp := client.DeleteDashboardRequest(params) 1092// 1093// err := req.Send() 1094// if err == nil { // resp is now filled 1095// fmt.Println(resp) 1096// } 1097// 1098// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDashboard 1099func (c *QuickSight) DeleteDashboardRequest(input *DeleteDashboardInput) (req *request.Request, output *DeleteDashboardOutput) { 1100 op := &request.Operation{ 1101 Name: opDeleteDashboard, 1102 HTTPMethod: "DELETE", 1103 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}", 1104 } 1105 1106 if input == nil { 1107 input = &DeleteDashboardInput{} 1108 } 1109 1110 output = &DeleteDashboardOutput{} 1111 req = c.newRequest(op, input, output) 1112 return 1113} 1114 1115// DeleteDashboard API operation for Amazon QuickSight. 1116// 1117// Deletes a dashboard. 1118// 1119// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1120// with awserr.Error's Code and Message methods to get detailed information about 1121// the error. 1122// 1123// See the AWS API reference guide for Amazon QuickSight's 1124// API operation DeleteDashboard for usage and error information. 1125// 1126// Returned Error Types: 1127// * ThrottlingException 1128// Access is throttled. 1129// 1130// * InvalidParameterValueException 1131// One or more parameters has a value that isn't valid. 1132// 1133// * ConflictException 1134// Updating or deleting a resource can cause an inconsistent state. 1135// 1136// * ResourceNotFoundException 1137// One or more resources can't be found. 1138// 1139// * UnsupportedUserEditionException 1140// This error indicates that you are calling an operation on an Amazon QuickSight 1141// subscription where the edition doesn't include support for that operation. 1142// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 1143// Not every operation and capability is available in every edition. 1144// 1145// * InternalFailureException 1146// An internal failure occurred. 1147// 1148// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDashboard 1149func (c *QuickSight) DeleteDashboard(input *DeleteDashboardInput) (*DeleteDashboardOutput, error) { 1150 req, out := c.DeleteDashboardRequest(input) 1151 return out, req.Send() 1152} 1153 1154// DeleteDashboardWithContext is the same as DeleteDashboard with the addition of 1155// the ability to pass a context and additional request options. 1156// 1157// See DeleteDashboard for details on how to use this API operation. 1158// 1159// The context must be non-nil and will be used for request cancellation. If 1160// the context is nil a panic will occur. In the future the SDK may create 1161// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1162// for more information on using Contexts. 1163func (c *QuickSight) DeleteDashboardWithContext(ctx aws.Context, input *DeleteDashboardInput, opts ...request.Option) (*DeleteDashboardOutput, error) { 1164 req, out := c.DeleteDashboardRequest(input) 1165 req.SetContext(ctx) 1166 req.ApplyOptions(opts...) 1167 return out, req.Send() 1168} 1169 1170const opDeleteDataSet = "DeleteDataSet" 1171 1172// DeleteDataSetRequest generates a "aws/request.Request" representing the 1173// client's request for the DeleteDataSet operation. The "output" return 1174// value will be populated with the request's response once the request completes 1175// successfully. 1176// 1177// Use "Send" method on the returned Request to send the API call to the service. 1178// the "output" return value is not valid until after Send returns without error. 1179// 1180// See DeleteDataSet for more information on using the DeleteDataSet 1181// API call, and error handling. 1182// 1183// This method is useful when you want to inject custom logic or configuration 1184// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1185// 1186// 1187// // Example sending a request using the DeleteDataSetRequest method. 1188// req, resp := client.DeleteDataSetRequest(params) 1189// 1190// err := req.Send() 1191// if err == nil { // resp is now filled 1192// fmt.Println(resp) 1193// } 1194// 1195// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDataSet 1196func (c *QuickSight) DeleteDataSetRequest(input *DeleteDataSetInput) (req *request.Request, output *DeleteDataSetOutput) { 1197 op := &request.Operation{ 1198 Name: opDeleteDataSet, 1199 HTTPMethod: "DELETE", 1200 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}", 1201 } 1202 1203 if input == nil { 1204 input = &DeleteDataSetInput{} 1205 } 1206 1207 output = &DeleteDataSetOutput{} 1208 req = c.newRequest(op, input, output) 1209 return 1210} 1211 1212// DeleteDataSet API operation for Amazon QuickSight. 1213// 1214// Deletes a dataset. 1215// 1216// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1217// with awserr.Error's Code and Message methods to get detailed information about 1218// the error. 1219// 1220// See the AWS API reference guide for Amazon QuickSight's 1221// API operation DeleteDataSet for usage and error information. 1222// 1223// Returned Error Types: 1224// * AccessDeniedException 1225// You don't have access to this item. The provided credentials couldn't be 1226// validated. You might not be authorized to carry out the request. Make sure 1227// that your account is authorized to use the Amazon QuickSight service, that 1228// your policies have the correct permissions, and that you are using the correct 1229// access keys. 1230// 1231// * InvalidParameterValueException 1232// One or more parameters has a value that isn't valid. 1233// 1234// * ThrottlingException 1235// Access is throttled. 1236// 1237// * ResourceNotFoundException 1238// One or more resources can't be found. 1239// 1240// * InternalFailureException 1241// An internal failure occurred. 1242// 1243// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDataSet 1244func (c *QuickSight) DeleteDataSet(input *DeleteDataSetInput) (*DeleteDataSetOutput, error) { 1245 req, out := c.DeleteDataSetRequest(input) 1246 return out, req.Send() 1247} 1248 1249// DeleteDataSetWithContext is the same as DeleteDataSet with the addition of 1250// the ability to pass a context and additional request options. 1251// 1252// See DeleteDataSet for details on how to use this API operation. 1253// 1254// The context must be non-nil and will be used for request cancellation. If 1255// the context is nil a panic will occur. In the future the SDK may create 1256// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1257// for more information on using Contexts. 1258func (c *QuickSight) DeleteDataSetWithContext(ctx aws.Context, input *DeleteDataSetInput, opts ...request.Option) (*DeleteDataSetOutput, error) { 1259 req, out := c.DeleteDataSetRequest(input) 1260 req.SetContext(ctx) 1261 req.ApplyOptions(opts...) 1262 return out, req.Send() 1263} 1264 1265const opDeleteDataSource = "DeleteDataSource" 1266 1267// DeleteDataSourceRequest generates a "aws/request.Request" representing the 1268// client's request for the DeleteDataSource operation. The "output" return 1269// value will be populated with the request's response once the request completes 1270// successfully. 1271// 1272// Use "Send" method on the returned Request to send the API call to the service. 1273// the "output" return value is not valid until after Send returns without error. 1274// 1275// See DeleteDataSource for more information on using the DeleteDataSource 1276// API call, and error handling. 1277// 1278// This method is useful when you want to inject custom logic or configuration 1279// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1280// 1281// 1282// // Example sending a request using the DeleteDataSourceRequest method. 1283// req, resp := client.DeleteDataSourceRequest(params) 1284// 1285// err := req.Send() 1286// if err == nil { // resp is now filled 1287// fmt.Println(resp) 1288// } 1289// 1290// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDataSource 1291func (c *QuickSight) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *request.Request, output *DeleteDataSourceOutput) { 1292 op := &request.Operation{ 1293 Name: opDeleteDataSource, 1294 HTTPMethod: "DELETE", 1295 HTTPPath: "/accounts/{AwsAccountId}/data-sources/{DataSourceId}", 1296 } 1297 1298 if input == nil { 1299 input = &DeleteDataSourceInput{} 1300 } 1301 1302 output = &DeleteDataSourceOutput{} 1303 req = c.newRequest(op, input, output) 1304 return 1305} 1306 1307// DeleteDataSource API operation for Amazon QuickSight. 1308// 1309// Deletes the data source permanently. This action breaks all the datasets 1310// that reference the deleted data source. 1311// 1312// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1313// with awserr.Error's Code and Message methods to get detailed information about 1314// the error. 1315// 1316// See the AWS API reference guide for Amazon QuickSight's 1317// API operation DeleteDataSource for usage and error information. 1318// 1319// Returned Error Types: 1320// * AccessDeniedException 1321// You don't have access to this item. The provided credentials couldn't be 1322// validated. You might not be authorized to carry out the request. Make sure 1323// that your account is authorized to use the Amazon QuickSight service, that 1324// your policies have the correct permissions, and that you are using the correct 1325// access keys. 1326// 1327// * InvalidParameterValueException 1328// One or more parameters has a value that isn't valid. 1329// 1330// * ThrottlingException 1331// Access is throttled. 1332// 1333// * ResourceNotFoundException 1334// One or more resources can't be found. 1335// 1336// * InternalFailureException 1337// An internal failure occurred. 1338// 1339// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDataSource 1340func (c *QuickSight) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { 1341 req, out := c.DeleteDataSourceRequest(input) 1342 return out, req.Send() 1343} 1344 1345// DeleteDataSourceWithContext is the same as DeleteDataSource with the addition of 1346// the ability to pass a context and additional request options. 1347// 1348// See DeleteDataSource for details on how to use this API operation. 1349// 1350// The context must be non-nil and will be used for request cancellation. If 1351// the context is nil a panic will occur. In the future the SDK may create 1352// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1353// for more information on using Contexts. 1354func (c *QuickSight) DeleteDataSourceWithContext(ctx aws.Context, input *DeleteDataSourceInput, opts ...request.Option) (*DeleteDataSourceOutput, error) { 1355 req, out := c.DeleteDataSourceRequest(input) 1356 req.SetContext(ctx) 1357 req.ApplyOptions(opts...) 1358 return out, req.Send() 1359} 1360 1361const opDeleteGroup = "DeleteGroup" 1362 1363// DeleteGroupRequest generates a "aws/request.Request" representing the 1364// client's request for the DeleteGroup operation. The "output" return 1365// value will be populated with the request's response once the request completes 1366// successfully. 1367// 1368// Use "Send" method on the returned Request to send the API call to the service. 1369// the "output" return value is not valid until after Send returns without error. 1370// 1371// See DeleteGroup for more information on using the DeleteGroup 1372// API call, and error handling. 1373// 1374// This method is useful when you want to inject custom logic or configuration 1375// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1376// 1377// 1378// // Example sending a request using the DeleteGroupRequest method. 1379// req, resp := client.DeleteGroupRequest(params) 1380// 1381// err := req.Send() 1382// if err == nil { // resp is now filled 1383// fmt.Println(resp) 1384// } 1385// 1386// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroup 1387func (c *QuickSight) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request, output *DeleteGroupOutput) { 1388 op := &request.Operation{ 1389 Name: opDeleteGroup, 1390 HTTPMethod: "DELETE", 1391 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}", 1392 } 1393 1394 if input == nil { 1395 input = &DeleteGroupInput{} 1396 } 1397 1398 output = &DeleteGroupOutput{} 1399 req = c.newRequest(op, input, output) 1400 return 1401} 1402 1403// DeleteGroup API operation for Amazon QuickSight. 1404// 1405// Removes a user group from Amazon QuickSight. 1406// 1407// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1408// with awserr.Error's Code and Message methods to get detailed information about 1409// the error. 1410// 1411// See the AWS API reference guide for Amazon QuickSight's 1412// API operation DeleteGroup for usage and error information. 1413// 1414// Returned Error Types: 1415// * AccessDeniedException 1416// You don't have access to this item. The provided credentials couldn't be 1417// validated. You might not be authorized to carry out the request. Make sure 1418// that your account is authorized to use the Amazon QuickSight service, that 1419// your policies have the correct permissions, and that you are using the correct 1420// access keys. 1421// 1422// * InvalidParameterValueException 1423// One or more parameters has a value that isn't valid. 1424// 1425// * ResourceNotFoundException 1426// One or more resources can't be found. 1427// 1428// * ThrottlingException 1429// Access is throttled. 1430// 1431// * PreconditionNotMetException 1432// One or more preconditions aren't met. 1433// 1434// * InternalFailureException 1435// An internal failure occurred. 1436// 1437// * ResourceUnavailableException 1438// This resource is currently unavailable. 1439// 1440// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroup 1441func (c *QuickSight) DeleteGroup(input *DeleteGroupInput) (*DeleteGroupOutput, error) { 1442 req, out := c.DeleteGroupRequest(input) 1443 return out, req.Send() 1444} 1445 1446// DeleteGroupWithContext is the same as DeleteGroup with the addition of 1447// the ability to pass a context and additional request options. 1448// 1449// See DeleteGroup for details on how to use this API operation. 1450// 1451// The context must be non-nil and will be used for request cancellation. If 1452// the context is nil a panic will occur. In the future the SDK may create 1453// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1454// for more information on using Contexts. 1455func (c *QuickSight) DeleteGroupWithContext(ctx aws.Context, input *DeleteGroupInput, opts ...request.Option) (*DeleteGroupOutput, error) { 1456 req, out := c.DeleteGroupRequest(input) 1457 req.SetContext(ctx) 1458 req.ApplyOptions(opts...) 1459 return out, req.Send() 1460} 1461 1462const opDeleteGroupMembership = "DeleteGroupMembership" 1463 1464// DeleteGroupMembershipRequest generates a "aws/request.Request" representing the 1465// client's request for the DeleteGroupMembership operation. The "output" return 1466// value will be populated with the request's response once the request completes 1467// successfully. 1468// 1469// Use "Send" method on the returned Request to send the API call to the service. 1470// the "output" return value is not valid until after Send returns without error. 1471// 1472// See DeleteGroupMembership for more information on using the DeleteGroupMembership 1473// API call, and error handling. 1474// 1475// This method is useful when you want to inject custom logic or configuration 1476// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1477// 1478// 1479// // Example sending a request using the DeleteGroupMembershipRequest method. 1480// req, resp := client.DeleteGroupMembershipRequest(params) 1481// 1482// err := req.Send() 1483// if err == nil { // resp is now filled 1484// fmt.Println(resp) 1485// } 1486// 1487// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroupMembership 1488func (c *QuickSight) DeleteGroupMembershipRequest(input *DeleteGroupMembershipInput) (req *request.Request, output *DeleteGroupMembershipOutput) { 1489 op := &request.Operation{ 1490 Name: opDeleteGroupMembership, 1491 HTTPMethod: "DELETE", 1492 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}", 1493 } 1494 1495 if input == nil { 1496 input = &DeleteGroupMembershipInput{} 1497 } 1498 1499 output = &DeleteGroupMembershipOutput{} 1500 req = c.newRequest(op, input, output) 1501 return 1502} 1503 1504// DeleteGroupMembership API operation for Amazon QuickSight. 1505// 1506// Removes a user from a group so that the user is no longer a member of the 1507// group. 1508// 1509// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1510// with awserr.Error's Code and Message methods to get detailed information about 1511// the error. 1512// 1513// See the AWS API reference guide for Amazon QuickSight's 1514// API operation DeleteGroupMembership for usage and error information. 1515// 1516// Returned Error Types: 1517// * AccessDeniedException 1518// You don't have access to this item. The provided credentials couldn't be 1519// validated. You might not be authorized to carry out the request. Make sure 1520// that your account is authorized to use the Amazon QuickSight service, that 1521// your policies have the correct permissions, and that you are using the correct 1522// access keys. 1523// 1524// * InvalidParameterValueException 1525// One or more parameters has a value that isn't valid. 1526// 1527// * ResourceNotFoundException 1528// One or more resources can't be found. 1529// 1530// * ThrottlingException 1531// Access is throttled. 1532// 1533// * PreconditionNotMetException 1534// One or more preconditions aren't met. 1535// 1536// * InternalFailureException 1537// An internal failure occurred. 1538// 1539// * ResourceUnavailableException 1540// This resource is currently unavailable. 1541// 1542// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroupMembership 1543func (c *QuickSight) DeleteGroupMembership(input *DeleteGroupMembershipInput) (*DeleteGroupMembershipOutput, error) { 1544 req, out := c.DeleteGroupMembershipRequest(input) 1545 return out, req.Send() 1546} 1547 1548// DeleteGroupMembershipWithContext is the same as DeleteGroupMembership with the addition of 1549// the ability to pass a context and additional request options. 1550// 1551// See DeleteGroupMembership for details on how to use this API operation. 1552// 1553// The context must be non-nil and will be used for request cancellation. If 1554// the context is nil a panic will occur. In the future the SDK may create 1555// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1556// for more information on using Contexts. 1557func (c *QuickSight) DeleteGroupMembershipWithContext(ctx aws.Context, input *DeleteGroupMembershipInput, opts ...request.Option) (*DeleteGroupMembershipOutput, error) { 1558 req, out := c.DeleteGroupMembershipRequest(input) 1559 req.SetContext(ctx) 1560 req.ApplyOptions(opts...) 1561 return out, req.Send() 1562} 1563 1564const opDeleteIAMPolicyAssignment = "DeleteIAMPolicyAssignment" 1565 1566// DeleteIAMPolicyAssignmentRequest generates a "aws/request.Request" representing the 1567// client's request for the DeleteIAMPolicyAssignment operation. The "output" return 1568// value will be populated with the request's response once the request completes 1569// successfully. 1570// 1571// Use "Send" method on the returned Request to send the API call to the service. 1572// the "output" return value is not valid until after Send returns without error. 1573// 1574// See DeleteIAMPolicyAssignment for more information on using the DeleteIAMPolicyAssignment 1575// API call, and error handling. 1576// 1577// This method is useful when you want to inject custom logic or configuration 1578// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1579// 1580// 1581// // Example sending a request using the DeleteIAMPolicyAssignmentRequest method. 1582// req, resp := client.DeleteIAMPolicyAssignmentRequest(params) 1583// 1584// err := req.Send() 1585// if err == nil { // resp is now filled 1586// fmt.Println(resp) 1587// } 1588// 1589// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteIAMPolicyAssignment 1590func (c *QuickSight) DeleteIAMPolicyAssignmentRequest(input *DeleteIAMPolicyAssignmentInput) (req *request.Request, output *DeleteIAMPolicyAssignmentOutput) { 1591 op := &request.Operation{ 1592 Name: opDeleteIAMPolicyAssignment, 1593 HTTPMethod: "DELETE", 1594 HTTPPath: "/accounts/{AwsAccountId}/namespace/{Namespace}/iam-policy-assignments/{AssignmentName}", 1595 } 1596 1597 if input == nil { 1598 input = &DeleteIAMPolicyAssignmentInput{} 1599 } 1600 1601 output = &DeleteIAMPolicyAssignmentOutput{} 1602 req = c.newRequest(op, input, output) 1603 return 1604} 1605 1606// DeleteIAMPolicyAssignment API operation for Amazon QuickSight. 1607// 1608// Deletes an existing IAM policy assignment. 1609// 1610// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1611// with awserr.Error's Code and Message methods to get detailed information about 1612// the error. 1613// 1614// See the AWS API reference guide for Amazon QuickSight's 1615// API operation DeleteIAMPolicyAssignment for usage and error information. 1616// 1617// Returned Error Types: 1618// * AccessDeniedException 1619// You don't have access to this item. The provided credentials couldn't be 1620// validated. You might not be authorized to carry out the request. Make sure 1621// that your account is authorized to use the Amazon QuickSight service, that 1622// your policies have the correct permissions, and that you are using the correct 1623// access keys. 1624// 1625// * InvalidParameterValueException 1626// One or more parameters has a value that isn't valid. 1627// 1628// * ResourceExistsException 1629// The resource specified already exists. 1630// 1631// * ResourceNotFoundException 1632// One or more resources can't be found. 1633// 1634// * ThrottlingException 1635// Access is throttled. 1636// 1637// * ConcurrentUpdatingException 1638// A resource is already in a state that indicates an action is happening that 1639// must complete before a new update can be applied. 1640// 1641// * InternalFailureException 1642// An internal failure occurred. 1643// 1644// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteIAMPolicyAssignment 1645func (c *QuickSight) DeleteIAMPolicyAssignment(input *DeleteIAMPolicyAssignmentInput) (*DeleteIAMPolicyAssignmentOutput, error) { 1646 req, out := c.DeleteIAMPolicyAssignmentRequest(input) 1647 return out, req.Send() 1648} 1649 1650// DeleteIAMPolicyAssignmentWithContext is the same as DeleteIAMPolicyAssignment with the addition of 1651// the ability to pass a context and additional request options. 1652// 1653// See DeleteIAMPolicyAssignment for details on how to use this API operation. 1654// 1655// The context must be non-nil and will be used for request cancellation. If 1656// the context is nil a panic will occur. In the future the SDK may create 1657// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1658// for more information on using Contexts. 1659func (c *QuickSight) DeleteIAMPolicyAssignmentWithContext(ctx aws.Context, input *DeleteIAMPolicyAssignmentInput, opts ...request.Option) (*DeleteIAMPolicyAssignmentOutput, error) { 1660 req, out := c.DeleteIAMPolicyAssignmentRequest(input) 1661 req.SetContext(ctx) 1662 req.ApplyOptions(opts...) 1663 return out, req.Send() 1664} 1665 1666const opDeleteTemplate = "DeleteTemplate" 1667 1668// DeleteTemplateRequest generates a "aws/request.Request" representing the 1669// client's request for the DeleteTemplate operation. The "output" return 1670// value will be populated with the request's response once the request completes 1671// successfully. 1672// 1673// Use "Send" method on the returned Request to send the API call to the service. 1674// the "output" return value is not valid until after Send returns without error. 1675// 1676// See DeleteTemplate for more information on using the DeleteTemplate 1677// API call, and error handling. 1678// 1679// This method is useful when you want to inject custom logic or configuration 1680// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1681// 1682// 1683// // Example sending a request using the DeleteTemplateRequest method. 1684// req, resp := client.DeleteTemplateRequest(params) 1685// 1686// err := req.Send() 1687// if err == nil { // resp is now filled 1688// fmt.Println(resp) 1689// } 1690// 1691// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteTemplate 1692func (c *QuickSight) DeleteTemplateRequest(input *DeleteTemplateInput) (req *request.Request, output *DeleteTemplateOutput) { 1693 op := &request.Operation{ 1694 Name: opDeleteTemplate, 1695 HTTPMethod: "DELETE", 1696 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}", 1697 } 1698 1699 if input == nil { 1700 input = &DeleteTemplateInput{} 1701 } 1702 1703 output = &DeleteTemplateOutput{} 1704 req = c.newRequest(op, input, output) 1705 return 1706} 1707 1708// DeleteTemplate API operation for Amazon QuickSight. 1709// 1710// Deletes a template. 1711// 1712// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1713// with awserr.Error's Code and Message methods to get detailed information about 1714// the error. 1715// 1716// See the AWS API reference guide for Amazon QuickSight's 1717// API operation DeleteTemplate for usage and error information. 1718// 1719// Returned Error Types: 1720// * InvalidParameterValueException 1721// One or more parameters has a value that isn't valid. 1722// 1723// * ResourceNotFoundException 1724// One or more resources can't be found. 1725// 1726// * ThrottlingException 1727// Access is throttled. 1728// 1729// * ConflictException 1730// Updating or deleting a resource can cause an inconsistent state. 1731// 1732// * LimitExceededException 1733// A limit is exceeded. 1734// 1735// * UnsupportedUserEditionException 1736// This error indicates that you are calling an operation on an Amazon QuickSight 1737// subscription where the edition doesn't include support for that operation. 1738// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 1739// Not every operation and capability is available in every edition. 1740// 1741// * InternalFailureException 1742// An internal failure occurred. 1743// 1744// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteTemplate 1745func (c *QuickSight) DeleteTemplate(input *DeleteTemplateInput) (*DeleteTemplateOutput, error) { 1746 req, out := c.DeleteTemplateRequest(input) 1747 return out, req.Send() 1748} 1749 1750// DeleteTemplateWithContext is the same as DeleteTemplate with the addition of 1751// the ability to pass a context and additional request options. 1752// 1753// See DeleteTemplate for details on how to use this API operation. 1754// 1755// The context must be non-nil and will be used for request cancellation. If 1756// the context is nil a panic will occur. In the future the SDK may create 1757// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1758// for more information on using Contexts. 1759func (c *QuickSight) DeleteTemplateWithContext(ctx aws.Context, input *DeleteTemplateInput, opts ...request.Option) (*DeleteTemplateOutput, error) { 1760 req, out := c.DeleteTemplateRequest(input) 1761 req.SetContext(ctx) 1762 req.ApplyOptions(opts...) 1763 return out, req.Send() 1764} 1765 1766const opDeleteTemplateAlias = "DeleteTemplateAlias" 1767 1768// DeleteTemplateAliasRequest generates a "aws/request.Request" representing the 1769// client's request for the DeleteTemplateAlias operation. The "output" return 1770// value will be populated with the request's response once the request completes 1771// successfully. 1772// 1773// Use "Send" method on the returned Request to send the API call to the service. 1774// the "output" return value is not valid until after Send returns without error. 1775// 1776// See DeleteTemplateAlias for more information on using the DeleteTemplateAlias 1777// API call, and error handling. 1778// 1779// This method is useful when you want to inject custom logic or configuration 1780// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1781// 1782// 1783// // Example sending a request using the DeleteTemplateAliasRequest method. 1784// req, resp := client.DeleteTemplateAliasRequest(params) 1785// 1786// err := req.Send() 1787// if err == nil { // resp is now filled 1788// fmt.Println(resp) 1789// } 1790// 1791// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteTemplateAlias 1792func (c *QuickSight) DeleteTemplateAliasRequest(input *DeleteTemplateAliasInput) (req *request.Request, output *DeleteTemplateAliasOutput) { 1793 op := &request.Operation{ 1794 Name: opDeleteTemplateAlias, 1795 HTTPMethod: "DELETE", 1796 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", 1797 } 1798 1799 if input == nil { 1800 input = &DeleteTemplateAliasInput{} 1801 } 1802 1803 output = &DeleteTemplateAliasOutput{} 1804 req = c.newRequest(op, input, output) 1805 return 1806} 1807 1808// DeleteTemplateAlias API operation for Amazon QuickSight. 1809// 1810// Deletes the item that the specified template alias points to. If you provide 1811// a specific alias, you delete the version of the template that the alias points 1812// to. 1813// 1814// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1815// with awserr.Error's Code and Message methods to get detailed information about 1816// the error. 1817// 1818// See the AWS API reference guide for Amazon QuickSight's 1819// API operation DeleteTemplateAlias for usage and error information. 1820// 1821// Returned Error Types: 1822// * ThrottlingException 1823// Access is throttled. 1824// 1825// * ResourceNotFoundException 1826// One or more resources can't be found. 1827// 1828// * UnsupportedUserEditionException 1829// This error indicates that you are calling an operation on an Amazon QuickSight 1830// subscription where the edition doesn't include support for that operation. 1831// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 1832// Not every operation and capability is available in every edition. 1833// 1834// * InternalFailureException 1835// An internal failure occurred. 1836// 1837// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteTemplateAlias 1838func (c *QuickSight) DeleteTemplateAlias(input *DeleteTemplateAliasInput) (*DeleteTemplateAliasOutput, error) { 1839 req, out := c.DeleteTemplateAliasRequest(input) 1840 return out, req.Send() 1841} 1842 1843// DeleteTemplateAliasWithContext is the same as DeleteTemplateAlias with the addition of 1844// the ability to pass a context and additional request options. 1845// 1846// See DeleteTemplateAlias for details on how to use this API operation. 1847// 1848// The context must be non-nil and will be used for request cancellation. If 1849// the context is nil a panic will occur. In the future the SDK may create 1850// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1851// for more information on using Contexts. 1852func (c *QuickSight) DeleteTemplateAliasWithContext(ctx aws.Context, input *DeleteTemplateAliasInput, opts ...request.Option) (*DeleteTemplateAliasOutput, error) { 1853 req, out := c.DeleteTemplateAliasRequest(input) 1854 req.SetContext(ctx) 1855 req.ApplyOptions(opts...) 1856 return out, req.Send() 1857} 1858 1859const opDeleteUser = "DeleteUser" 1860 1861// DeleteUserRequest generates a "aws/request.Request" representing the 1862// client's request for the DeleteUser operation. The "output" return 1863// value will be populated with the request's response once the request completes 1864// successfully. 1865// 1866// Use "Send" method on the returned Request to send the API call to the service. 1867// the "output" return value is not valid until after Send returns without error. 1868// 1869// See DeleteUser for more information on using the DeleteUser 1870// API call, and error handling. 1871// 1872// This method is useful when you want to inject custom logic or configuration 1873// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1874// 1875// 1876// // Example sending a request using the DeleteUserRequest method. 1877// req, resp := client.DeleteUserRequest(params) 1878// 1879// err := req.Send() 1880// if err == nil { // resp is now filled 1881// fmt.Println(resp) 1882// } 1883// 1884// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUser 1885func (c *QuickSight) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { 1886 op := &request.Operation{ 1887 Name: opDeleteUser, 1888 HTTPMethod: "DELETE", 1889 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", 1890 } 1891 1892 if input == nil { 1893 input = &DeleteUserInput{} 1894 } 1895 1896 output = &DeleteUserOutput{} 1897 req = c.newRequest(op, input, output) 1898 return 1899} 1900 1901// DeleteUser API operation for Amazon QuickSight. 1902// 1903// Deletes the Amazon QuickSight user that is associated with the identity of 1904// the AWS Identity and Access Management (IAM) user or role that's making the 1905// call. The IAM user isn't deleted as a result of this call. 1906// 1907// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1908// with awserr.Error's Code and Message methods to get detailed information about 1909// the error. 1910// 1911// See the AWS API reference guide for Amazon QuickSight's 1912// API operation DeleteUser for usage and error information. 1913// 1914// Returned Error Types: 1915// * AccessDeniedException 1916// You don't have access to this item. The provided credentials couldn't be 1917// validated. You might not be authorized to carry out the request. Make sure 1918// that your account is authorized to use the Amazon QuickSight service, that 1919// your policies have the correct permissions, and that you are using the correct 1920// access keys. 1921// 1922// * InvalidParameterValueException 1923// One or more parameters has a value that isn't valid. 1924// 1925// * ResourceNotFoundException 1926// One or more resources can't be found. 1927// 1928// * ThrottlingException 1929// Access is throttled. 1930// 1931// * InternalFailureException 1932// An internal failure occurred. 1933// 1934// * ResourceUnavailableException 1935// This resource is currently unavailable. 1936// 1937// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUser 1938func (c *QuickSight) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { 1939 req, out := c.DeleteUserRequest(input) 1940 return out, req.Send() 1941} 1942 1943// DeleteUserWithContext is the same as DeleteUser with the addition of 1944// the ability to pass a context and additional request options. 1945// 1946// See DeleteUser for details on how to use this API operation. 1947// 1948// The context must be non-nil and will be used for request cancellation. If 1949// the context is nil a panic will occur. In the future the SDK may create 1950// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1951// for more information on using Contexts. 1952func (c *QuickSight) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { 1953 req, out := c.DeleteUserRequest(input) 1954 req.SetContext(ctx) 1955 req.ApplyOptions(opts...) 1956 return out, req.Send() 1957} 1958 1959const opDeleteUserByPrincipalId = "DeleteUserByPrincipalId" 1960 1961// DeleteUserByPrincipalIdRequest generates a "aws/request.Request" representing the 1962// client's request for the DeleteUserByPrincipalId operation. The "output" return 1963// value will be populated with the request's response once the request completes 1964// successfully. 1965// 1966// Use "Send" method on the returned Request to send the API call to the service. 1967// the "output" return value is not valid until after Send returns without error. 1968// 1969// See DeleteUserByPrincipalId for more information on using the DeleteUserByPrincipalId 1970// API call, and error handling. 1971// 1972// This method is useful when you want to inject custom logic or configuration 1973// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1974// 1975// 1976// // Example sending a request using the DeleteUserByPrincipalIdRequest method. 1977// req, resp := client.DeleteUserByPrincipalIdRequest(params) 1978// 1979// err := req.Send() 1980// if err == nil { // resp is now filled 1981// fmt.Println(resp) 1982// } 1983// 1984// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUserByPrincipalId 1985func (c *QuickSight) DeleteUserByPrincipalIdRequest(input *DeleteUserByPrincipalIdInput) (req *request.Request, output *DeleteUserByPrincipalIdOutput) { 1986 op := &request.Operation{ 1987 Name: opDeleteUserByPrincipalId, 1988 HTTPMethod: "DELETE", 1989 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}", 1990 } 1991 1992 if input == nil { 1993 input = &DeleteUserByPrincipalIdInput{} 1994 } 1995 1996 output = &DeleteUserByPrincipalIdOutput{} 1997 req = c.newRequest(op, input, output) 1998 return 1999} 2000 2001// DeleteUserByPrincipalId API operation for Amazon QuickSight. 2002// 2003// Deletes a user identified by its principal ID. 2004// 2005// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2006// with awserr.Error's Code and Message methods to get detailed information about 2007// the error. 2008// 2009// See the AWS API reference guide for Amazon QuickSight's 2010// API operation DeleteUserByPrincipalId for usage and error information. 2011// 2012// Returned Error Types: 2013// * AccessDeniedException 2014// You don't have access to this item. The provided credentials couldn't be 2015// validated. You might not be authorized to carry out the request. Make sure 2016// that your account is authorized to use the Amazon QuickSight service, that 2017// your policies have the correct permissions, and that you are using the correct 2018// access keys. 2019// 2020// * InvalidParameterValueException 2021// One or more parameters has a value that isn't valid. 2022// 2023// * ResourceNotFoundException 2024// One or more resources can't be found. 2025// 2026// * ThrottlingException 2027// Access is throttled. 2028// 2029// * InternalFailureException 2030// An internal failure occurred. 2031// 2032// * ResourceUnavailableException 2033// This resource is currently unavailable. 2034// 2035// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUserByPrincipalId 2036func (c *QuickSight) DeleteUserByPrincipalId(input *DeleteUserByPrincipalIdInput) (*DeleteUserByPrincipalIdOutput, error) { 2037 req, out := c.DeleteUserByPrincipalIdRequest(input) 2038 return out, req.Send() 2039} 2040 2041// DeleteUserByPrincipalIdWithContext is the same as DeleteUserByPrincipalId with the addition of 2042// the ability to pass a context and additional request options. 2043// 2044// See DeleteUserByPrincipalId for details on how to use this API operation. 2045// 2046// The context must be non-nil and will be used for request cancellation. If 2047// the context is nil a panic will occur. In the future the SDK may create 2048// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2049// for more information on using Contexts. 2050func (c *QuickSight) DeleteUserByPrincipalIdWithContext(ctx aws.Context, input *DeleteUserByPrincipalIdInput, opts ...request.Option) (*DeleteUserByPrincipalIdOutput, error) { 2051 req, out := c.DeleteUserByPrincipalIdRequest(input) 2052 req.SetContext(ctx) 2053 req.ApplyOptions(opts...) 2054 return out, req.Send() 2055} 2056 2057const opDescribeDashboard = "DescribeDashboard" 2058 2059// DescribeDashboardRequest generates a "aws/request.Request" representing the 2060// client's request for the DescribeDashboard operation. The "output" return 2061// value will be populated with the request's response once the request completes 2062// successfully. 2063// 2064// Use "Send" method on the returned Request to send the API call to the service. 2065// the "output" return value is not valid until after Send returns without error. 2066// 2067// See DescribeDashboard for more information on using the DescribeDashboard 2068// API call, and error handling. 2069// 2070// This method is useful when you want to inject custom logic or configuration 2071// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2072// 2073// 2074// // Example sending a request using the DescribeDashboardRequest method. 2075// req, resp := client.DescribeDashboardRequest(params) 2076// 2077// err := req.Send() 2078// if err == nil { // resp is now filled 2079// fmt.Println(resp) 2080// } 2081// 2082// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDashboard 2083func (c *QuickSight) DescribeDashboardRequest(input *DescribeDashboardInput) (req *request.Request, output *DescribeDashboardOutput) { 2084 op := &request.Operation{ 2085 Name: opDescribeDashboard, 2086 HTTPMethod: "GET", 2087 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}", 2088 } 2089 2090 if input == nil { 2091 input = &DescribeDashboardInput{} 2092 } 2093 2094 output = &DescribeDashboardOutput{} 2095 req = c.newRequest(op, input, output) 2096 return 2097} 2098 2099// DescribeDashboard API operation for Amazon QuickSight. 2100// 2101// Provides a summary for a dashboard. 2102// 2103// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2104// with awserr.Error's Code and Message methods to get detailed information about 2105// the error. 2106// 2107// See the AWS API reference guide for Amazon QuickSight's 2108// API operation DescribeDashboard for usage and error information. 2109// 2110// Returned Error Types: 2111// * InvalidParameterValueException 2112// One or more parameters has a value that isn't valid. 2113// 2114// * ResourceNotFoundException 2115// One or more resources can't be found. 2116// 2117// * AccessDeniedException 2118// You don't have access to this item. The provided credentials couldn't be 2119// validated. You might not be authorized to carry out the request. Make sure 2120// that your account is authorized to use the Amazon QuickSight service, that 2121// your policies have the correct permissions, and that you are using the correct 2122// access keys. 2123// 2124// * ThrottlingException 2125// Access is throttled. 2126// 2127// * UnsupportedUserEditionException 2128// This error indicates that you are calling an operation on an Amazon QuickSight 2129// subscription where the edition doesn't include support for that operation. 2130// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 2131// Not every operation and capability is available in every edition. 2132// 2133// * InternalFailureException 2134// An internal failure occurred. 2135// 2136// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDashboard 2137func (c *QuickSight) DescribeDashboard(input *DescribeDashboardInput) (*DescribeDashboardOutput, error) { 2138 req, out := c.DescribeDashboardRequest(input) 2139 return out, req.Send() 2140} 2141 2142// DescribeDashboardWithContext is the same as DescribeDashboard with the addition of 2143// the ability to pass a context and additional request options. 2144// 2145// See DescribeDashboard for details on how to use this API operation. 2146// 2147// The context must be non-nil and will be used for request cancellation. If 2148// the context is nil a panic will occur. In the future the SDK may create 2149// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2150// for more information on using Contexts. 2151func (c *QuickSight) DescribeDashboardWithContext(ctx aws.Context, input *DescribeDashboardInput, opts ...request.Option) (*DescribeDashboardOutput, error) { 2152 req, out := c.DescribeDashboardRequest(input) 2153 req.SetContext(ctx) 2154 req.ApplyOptions(opts...) 2155 return out, req.Send() 2156} 2157 2158const opDescribeDashboardPermissions = "DescribeDashboardPermissions" 2159 2160// DescribeDashboardPermissionsRequest generates a "aws/request.Request" representing the 2161// client's request for the DescribeDashboardPermissions operation. The "output" return 2162// value will be populated with the request's response once the request completes 2163// successfully. 2164// 2165// Use "Send" method on the returned Request to send the API call to the service. 2166// the "output" return value is not valid until after Send returns without error. 2167// 2168// See DescribeDashboardPermissions for more information on using the DescribeDashboardPermissions 2169// API call, and error handling. 2170// 2171// This method is useful when you want to inject custom logic or configuration 2172// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2173// 2174// 2175// // Example sending a request using the DescribeDashboardPermissionsRequest method. 2176// req, resp := client.DescribeDashboardPermissionsRequest(params) 2177// 2178// err := req.Send() 2179// if err == nil { // resp is now filled 2180// fmt.Println(resp) 2181// } 2182// 2183// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDashboardPermissions 2184func (c *QuickSight) DescribeDashboardPermissionsRequest(input *DescribeDashboardPermissionsInput) (req *request.Request, output *DescribeDashboardPermissionsOutput) { 2185 op := &request.Operation{ 2186 Name: opDescribeDashboardPermissions, 2187 HTTPMethod: "GET", 2188 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions", 2189 } 2190 2191 if input == nil { 2192 input = &DescribeDashboardPermissionsInput{} 2193 } 2194 2195 output = &DescribeDashboardPermissionsOutput{} 2196 req = c.newRequest(op, input, output) 2197 return 2198} 2199 2200// DescribeDashboardPermissions API operation for Amazon QuickSight. 2201// 2202// Describes read and write permissions for a dashboard. 2203// 2204// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2205// with awserr.Error's Code and Message methods to get detailed information about 2206// the error. 2207// 2208// See the AWS API reference guide for Amazon QuickSight's 2209// API operation DescribeDashboardPermissions for usage and error information. 2210// 2211// Returned Error Types: 2212// * InvalidParameterValueException 2213// One or more parameters has a value that isn't valid. 2214// 2215// * ResourceNotFoundException 2216// One or more resources can't be found. 2217// 2218// * ThrottlingException 2219// Access is throttled. 2220// 2221// * UnsupportedUserEditionException 2222// This error indicates that you are calling an operation on an Amazon QuickSight 2223// subscription where the edition doesn't include support for that operation. 2224// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 2225// Not every operation and capability is available in every edition. 2226// 2227// * InternalFailureException 2228// An internal failure occurred. 2229// 2230// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDashboardPermissions 2231func (c *QuickSight) DescribeDashboardPermissions(input *DescribeDashboardPermissionsInput) (*DescribeDashboardPermissionsOutput, error) { 2232 req, out := c.DescribeDashboardPermissionsRequest(input) 2233 return out, req.Send() 2234} 2235 2236// DescribeDashboardPermissionsWithContext is the same as DescribeDashboardPermissions with the addition of 2237// the ability to pass a context and additional request options. 2238// 2239// See DescribeDashboardPermissions for details on how to use this API operation. 2240// 2241// The context must be non-nil and will be used for request cancellation. If 2242// the context is nil a panic will occur. In the future the SDK may create 2243// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2244// for more information on using Contexts. 2245func (c *QuickSight) DescribeDashboardPermissionsWithContext(ctx aws.Context, input *DescribeDashboardPermissionsInput, opts ...request.Option) (*DescribeDashboardPermissionsOutput, error) { 2246 req, out := c.DescribeDashboardPermissionsRequest(input) 2247 req.SetContext(ctx) 2248 req.ApplyOptions(opts...) 2249 return out, req.Send() 2250} 2251 2252const opDescribeDataSet = "DescribeDataSet" 2253 2254// DescribeDataSetRequest generates a "aws/request.Request" representing the 2255// client's request for the DescribeDataSet operation. The "output" return 2256// value will be populated with the request's response once the request completes 2257// successfully. 2258// 2259// Use "Send" method on the returned Request to send the API call to the service. 2260// the "output" return value is not valid until after Send returns without error. 2261// 2262// See DescribeDataSet for more information on using the DescribeDataSet 2263// API call, and error handling. 2264// 2265// This method is useful when you want to inject custom logic or configuration 2266// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2267// 2268// 2269// // Example sending a request using the DescribeDataSetRequest method. 2270// req, resp := client.DescribeDataSetRequest(params) 2271// 2272// err := req.Send() 2273// if err == nil { // resp is now filled 2274// fmt.Println(resp) 2275// } 2276// 2277// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSet 2278func (c *QuickSight) DescribeDataSetRequest(input *DescribeDataSetInput) (req *request.Request, output *DescribeDataSetOutput) { 2279 op := &request.Operation{ 2280 Name: opDescribeDataSet, 2281 HTTPMethod: "GET", 2282 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}", 2283 } 2284 2285 if input == nil { 2286 input = &DescribeDataSetInput{} 2287 } 2288 2289 output = &DescribeDataSetOutput{} 2290 req = c.newRequest(op, input, output) 2291 return 2292} 2293 2294// DescribeDataSet API operation for Amazon QuickSight. 2295// 2296// Describes a dataset. 2297// 2298// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2299// with awserr.Error's Code and Message methods to get detailed information about 2300// the error. 2301// 2302// See the AWS API reference guide for Amazon QuickSight's 2303// API operation DescribeDataSet for usage and error information. 2304// 2305// Returned Error Types: 2306// * AccessDeniedException 2307// You don't have access to this item. The provided credentials couldn't be 2308// validated. You might not be authorized to carry out the request. Make sure 2309// that your account is authorized to use the Amazon QuickSight service, that 2310// your policies have the correct permissions, and that you are using the correct 2311// access keys. 2312// 2313// * InvalidParameterValueException 2314// One or more parameters has a value that isn't valid. 2315// 2316// * ThrottlingException 2317// Access is throttled. 2318// 2319// * ResourceNotFoundException 2320// One or more resources can't be found. 2321// 2322// * InternalFailureException 2323// An internal failure occurred. 2324// 2325// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSet 2326func (c *QuickSight) DescribeDataSet(input *DescribeDataSetInput) (*DescribeDataSetOutput, error) { 2327 req, out := c.DescribeDataSetRequest(input) 2328 return out, req.Send() 2329} 2330 2331// DescribeDataSetWithContext is the same as DescribeDataSet with the addition of 2332// the ability to pass a context and additional request options. 2333// 2334// See DescribeDataSet for details on how to use this API operation. 2335// 2336// The context must be non-nil and will be used for request cancellation. If 2337// the context is nil a panic will occur. In the future the SDK may create 2338// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2339// for more information on using Contexts. 2340func (c *QuickSight) DescribeDataSetWithContext(ctx aws.Context, input *DescribeDataSetInput, opts ...request.Option) (*DescribeDataSetOutput, error) { 2341 req, out := c.DescribeDataSetRequest(input) 2342 req.SetContext(ctx) 2343 req.ApplyOptions(opts...) 2344 return out, req.Send() 2345} 2346 2347const opDescribeDataSetPermissions = "DescribeDataSetPermissions" 2348 2349// DescribeDataSetPermissionsRequest generates a "aws/request.Request" representing the 2350// client's request for the DescribeDataSetPermissions operation. The "output" return 2351// value will be populated with the request's response once the request completes 2352// successfully. 2353// 2354// Use "Send" method on the returned Request to send the API call to the service. 2355// the "output" return value is not valid until after Send returns without error. 2356// 2357// See DescribeDataSetPermissions for more information on using the DescribeDataSetPermissions 2358// API call, and error handling. 2359// 2360// This method is useful when you want to inject custom logic or configuration 2361// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2362// 2363// 2364// // Example sending a request using the DescribeDataSetPermissionsRequest method. 2365// req, resp := client.DescribeDataSetPermissionsRequest(params) 2366// 2367// err := req.Send() 2368// if err == nil { // resp is now filled 2369// fmt.Println(resp) 2370// } 2371// 2372// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSetPermissions 2373func (c *QuickSight) DescribeDataSetPermissionsRequest(input *DescribeDataSetPermissionsInput) (req *request.Request, output *DescribeDataSetPermissionsOutput) { 2374 op := &request.Operation{ 2375 Name: opDescribeDataSetPermissions, 2376 HTTPMethod: "GET", 2377 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions", 2378 } 2379 2380 if input == nil { 2381 input = &DescribeDataSetPermissionsInput{} 2382 } 2383 2384 output = &DescribeDataSetPermissionsOutput{} 2385 req = c.newRequest(op, input, output) 2386 return 2387} 2388 2389// DescribeDataSetPermissions API operation for Amazon QuickSight. 2390// 2391// Describes the permissions on a dataset. 2392// 2393// The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/data-set-id. 2394// 2395// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2396// with awserr.Error's Code and Message methods to get detailed information about 2397// the error. 2398// 2399// See the AWS API reference guide for Amazon QuickSight's 2400// API operation DescribeDataSetPermissions for usage and error information. 2401// 2402// Returned Error Types: 2403// * AccessDeniedException 2404// You don't have access to this item. The provided credentials couldn't be 2405// validated. You might not be authorized to carry out the request. Make sure 2406// that your account is authorized to use the Amazon QuickSight service, that 2407// your policies have the correct permissions, and that you are using the correct 2408// access keys. 2409// 2410// * InvalidParameterValueException 2411// One or more parameters has a value that isn't valid. 2412// 2413// * ThrottlingException 2414// Access is throttled. 2415// 2416// * ResourceNotFoundException 2417// One or more resources can't be found. 2418// 2419// * InternalFailureException 2420// An internal failure occurred. 2421// 2422// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSetPermissions 2423func (c *QuickSight) DescribeDataSetPermissions(input *DescribeDataSetPermissionsInput) (*DescribeDataSetPermissionsOutput, error) { 2424 req, out := c.DescribeDataSetPermissionsRequest(input) 2425 return out, req.Send() 2426} 2427 2428// DescribeDataSetPermissionsWithContext is the same as DescribeDataSetPermissions with the addition of 2429// the ability to pass a context and additional request options. 2430// 2431// See DescribeDataSetPermissions for details on how to use this API operation. 2432// 2433// The context must be non-nil and will be used for request cancellation. If 2434// the context is nil a panic will occur. In the future the SDK may create 2435// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2436// for more information on using Contexts. 2437func (c *QuickSight) DescribeDataSetPermissionsWithContext(ctx aws.Context, input *DescribeDataSetPermissionsInput, opts ...request.Option) (*DescribeDataSetPermissionsOutput, error) { 2438 req, out := c.DescribeDataSetPermissionsRequest(input) 2439 req.SetContext(ctx) 2440 req.ApplyOptions(opts...) 2441 return out, req.Send() 2442} 2443 2444const opDescribeDataSource = "DescribeDataSource" 2445 2446// DescribeDataSourceRequest generates a "aws/request.Request" representing the 2447// client's request for the DescribeDataSource operation. The "output" return 2448// value will be populated with the request's response once the request completes 2449// successfully. 2450// 2451// Use "Send" method on the returned Request to send the API call to the service. 2452// the "output" return value is not valid until after Send returns without error. 2453// 2454// See DescribeDataSource for more information on using the DescribeDataSource 2455// API call, and error handling. 2456// 2457// This method is useful when you want to inject custom logic or configuration 2458// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2459// 2460// 2461// // Example sending a request using the DescribeDataSourceRequest method. 2462// req, resp := client.DescribeDataSourceRequest(params) 2463// 2464// err := req.Send() 2465// if err == nil { // resp is now filled 2466// fmt.Println(resp) 2467// } 2468// 2469// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSource 2470func (c *QuickSight) DescribeDataSourceRequest(input *DescribeDataSourceInput) (req *request.Request, output *DescribeDataSourceOutput) { 2471 op := &request.Operation{ 2472 Name: opDescribeDataSource, 2473 HTTPMethod: "GET", 2474 HTTPPath: "/accounts/{AwsAccountId}/data-sources/{DataSourceId}", 2475 } 2476 2477 if input == nil { 2478 input = &DescribeDataSourceInput{} 2479 } 2480 2481 output = &DescribeDataSourceOutput{} 2482 req = c.newRequest(op, input, output) 2483 return 2484} 2485 2486// DescribeDataSource API operation for Amazon QuickSight. 2487// 2488// Describes a data source. 2489// 2490// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2491// with awserr.Error's Code and Message methods to get detailed information about 2492// the error. 2493// 2494// See the AWS API reference guide for Amazon QuickSight's 2495// API operation DescribeDataSource for usage and error information. 2496// 2497// Returned Error Types: 2498// * AccessDeniedException 2499// You don't have access to this item. The provided credentials couldn't be 2500// validated. You might not be authorized to carry out the request. Make sure 2501// that your account is authorized to use the Amazon QuickSight service, that 2502// your policies have the correct permissions, and that you are using the correct 2503// access keys. 2504// 2505// * InvalidParameterValueException 2506// One or more parameters has a value that isn't valid. 2507// 2508// * ThrottlingException 2509// Access is throttled. 2510// 2511// * ResourceNotFoundException 2512// One or more resources can't be found. 2513// 2514// * InternalFailureException 2515// An internal failure occurred. 2516// 2517// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSource 2518func (c *QuickSight) DescribeDataSource(input *DescribeDataSourceInput) (*DescribeDataSourceOutput, error) { 2519 req, out := c.DescribeDataSourceRequest(input) 2520 return out, req.Send() 2521} 2522 2523// DescribeDataSourceWithContext is the same as DescribeDataSource with the addition of 2524// the ability to pass a context and additional request options. 2525// 2526// See DescribeDataSource for details on how to use this API operation. 2527// 2528// The context must be non-nil and will be used for request cancellation. If 2529// the context is nil a panic will occur. In the future the SDK may create 2530// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2531// for more information on using Contexts. 2532func (c *QuickSight) DescribeDataSourceWithContext(ctx aws.Context, input *DescribeDataSourceInput, opts ...request.Option) (*DescribeDataSourceOutput, error) { 2533 req, out := c.DescribeDataSourceRequest(input) 2534 req.SetContext(ctx) 2535 req.ApplyOptions(opts...) 2536 return out, req.Send() 2537} 2538 2539const opDescribeDataSourcePermissions = "DescribeDataSourcePermissions" 2540 2541// DescribeDataSourcePermissionsRequest generates a "aws/request.Request" representing the 2542// client's request for the DescribeDataSourcePermissions operation. The "output" return 2543// value will be populated with the request's response once the request completes 2544// successfully. 2545// 2546// Use "Send" method on the returned Request to send the API call to the service. 2547// the "output" return value is not valid until after Send returns without error. 2548// 2549// See DescribeDataSourcePermissions for more information on using the DescribeDataSourcePermissions 2550// API call, and error handling. 2551// 2552// This method is useful when you want to inject custom logic or configuration 2553// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2554// 2555// 2556// // Example sending a request using the DescribeDataSourcePermissionsRequest method. 2557// req, resp := client.DescribeDataSourcePermissionsRequest(params) 2558// 2559// err := req.Send() 2560// if err == nil { // resp is now filled 2561// fmt.Println(resp) 2562// } 2563// 2564// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSourcePermissions 2565func (c *QuickSight) DescribeDataSourcePermissionsRequest(input *DescribeDataSourcePermissionsInput) (req *request.Request, output *DescribeDataSourcePermissionsOutput) { 2566 op := &request.Operation{ 2567 Name: opDescribeDataSourcePermissions, 2568 HTTPMethod: "GET", 2569 HTTPPath: "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions", 2570 } 2571 2572 if input == nil { 2573 input = &DescribeDataSourcePermissionsInput{} 2574 } 2575 2576 output = &DescribeDataSourcePermissionsOutput{} 2577 req = c.newRequest(op, input, output) 2578 return 2579} 2580 2581// DescribeDataSourcePermissions API operation for Amazon QuickSight. 2582// 2583// Describes the resource permissions for a data source. 2584// 2585// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2586// with awserr.Error's Code and Message methods to get detailed information about 2587// the error. 2588// 2589// See the AWS API reference guide for Amazon QuickSight's 2590// API operation DescribeDataSourcePermissions for usage and error information. 2591// 2592// Returned Error Types: 2593// * AccessDeniedException 2594// You don't have access to this item. The provided credentials couldn't be 2595// validated. You might not be authorized to carry out the request. Make sure 2596// that your account is authorized to use the Amazon QuickSight service, that 2597// your policies have the correct permissions, and that you are using the correct 2598// access keys. 2599// 2600// * InvalidParameterValueException 2601// One or more parameters has a value that isn't valid. 2602// 2603// * ThrottlingException 2604// Access is throttled. 2605// 2606// * ResourceNotFoundException 2607// One or more resources can't be found. 2608// 2609// * InternalFailureException 2610// An internal failure occurred. 2611// 2612// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSourcePermissions 2613func (c *QuickSight) DescribeDataSourcePermissions(input *DescribeDataSourcePermissionsInput) (*DescribeDataSourcePermissionsOutput, error) { 2614 req, out := c.DescribeDataSourcePermissionsRequest(input) 2615 return out, req.Send() 2616} 2617 2618// DescribeDataSourcePermissionsWithContext is the same as DescribeDataSourcePermissions with the addition of 2619// the ability to pass a context and additional request options. 2620// 2621// See DescribeDataSourcePermissions for details on how to use this API operation. 2622// 2623// The context must be non-nil and will be used for request cancellation. If 2624// the context is nil a panic will occur. In the future the SDK may create 2625// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2626// for more information on using Contexts. 2627func (c *QuickSight) DescribeDataSourcePermissionsWithContext(ctx aws.Context, input *DescribeDataSourcePermissionsInput, opts ...request.Option) (*DescribeDataSourcePermissionsOutput, error) { 2628 req, out := c.DescribeDataSourcePermissionsRequest(input) 2629 req.SetContext(ctx) 2630 req.ApplyOptions(opts...) 2631 return out, req.Send() 2632} 2633 2634const opDescribeGroup = "DescribeGroup" 2635 2636// DescribeGroupRequest generates a "aws/request.Request" representing the 2637// client's request for the DescribeGroup operation. The "output" return 2638// value will be populated with the request's response once the request completes 2639// successfully. 2640// 2641// Use "Send" method on the returned Request to send the API call to the service. 2642// the "output" return value is not valid until after Send returns without error. 2643// 2644// See DescribeGroup for more information on using the DescribeGroup 2645// API call, and error handling. 2646// 2647// This method is useful when you want to inject custom logic or configuration 2648// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2649// 2650// 2651// // Example sending a request using the DescribeGroupRequest method. 2652// req, resp := client.DescribeGroupRequest(params) 2653// 2654// err := req.Send() 2655// if err == nil { // resp is now filled 2656// fmt.Println(resp) 2657// } 2658// 2659// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeGroup 2660func (c *QuickSight) DescribeGroupRequest(input *DescribeGroupInput) (req *request.Request, output *DescribeGroupOutput) { 2661 op := &request.Operation{ 2662 Name: opDescribeGroup, 2663 HTTPMethod: "GET", 2664 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}", 2665 } 2666 2667 if input == nil { 2668 input = &DescribeGroupInput{} 2669 } 2670 2671 output = &DescribeGroupOutput{} 2672 req = c.newRequest(op, input, output) 2673 return 2674} 2675 2676// DescribeGroup API operation for Amazon QuickSight. 2677// 2678// Returns an Amazon QuickSight group's description and Amazon Resource Name 2679// (ARN). 2680// 2681// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2682// with awserr.Error's Code and Message methods to get detailed information about 2683// the error. 2684// 2685// See the AWS API reference guide for Amazon QuickSight's 2686// API operation DescribeGroup for usage and error information. 2687// 2688// Returned Error Types: 2689// * AccessDeniedException 2690// You don't have access to this item. The provided credentials couldn't be 2691// validated. You might not be authorized to carry out the request. Make sure 2692// that your account is authorized to use the Amazon QuickSight service, that 2693// your policies have the correct permissions, and that you are using the correct 2694// access keys. 2695// 2696// * InvalidParameterValueException 2697// One or more parameters has a value that isn't valid. 2698// 2699// * ResourceNotFoundException 2700// One or more resources can't be found. 2701// 2702// * ThrottlingException 2703// Access is throttled. 2704// 2705// * PreconditionNotMetException 2706// One or more preconditions aren't met. 2707// 2708// * InternalFailureException 2709// An internal failure occurred. 2710// 2711// * ResourceUnavailableException 2712// This resource is currently unavailable. 2713// 2714// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeGroup 2715func (c *QuickSight) DescribeGroup(input *DescribeGroupInput) (*DescribeGroupOutput, error) { 2716 req, out := c.DescribeGroupRequest(input) 2717 return out, req.Send() 2718} 2719 2720// DescribeGroupWithContext is the same as DescribeGroup with the addition of 2721// the ability to pass a context and additional request options. 2722// 2723// See DescribeGroup for details on how to use this API operation. 2724// 2725// The context must be non-nil and will be used for request cancellation. If 2726// the context is nil a panic will occur. In the future the SDK may create 2727// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2728// for more information on using Contexts. 2729func (c *QuickSight) DescribeGroupWithContext(ctx aws.Context, input *DescribeGroupInput, opts ...request.Option) (*DescribeGroupOutput, error) { 2730 req, out := c.DescribeGroupRequest(input) 2731 req.SetContext(ctx) 2732 req.ApplyOptions(opts...) 2733 return out, req.Send() 2734} 2735 2736const opDescribeIAMPolicyAssignment = "DescribeIAMPolicyAssignment" 2737 2738// DescribeIAMPolicyAssignmentRequest generates a "aws/request.Request" representing the 2739// client's request for the DescribeIAMPolicyAssignment operation. The "output" return 2740// value will be populated with the request's response once the request completes 2741// successfully. 2742// 2743// Use "Send" method on the returned Request to send the API call to the service. 2744// the "output" return value is not valid until after Send returns without error. 2745// 2746// See DescribeIAMPolicyAssignment for more information on using the DescribeIAMPolicyAssignment 2747// API call, and error handling. 2748// 2749// This method is useful when you want to inject custom logic or configuration 2750// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2751// 2752// 2753// // Example sending a request using the DescribeIAMPolicyAssignmentRequest method. 2754// req, resp := client.DescribeIAMPolicyAssignmentRequest(params) 2755// 2756// err := req.Send() 2757// if err == nil { // resp is now filled 2758// fmt.Println(resp) 2759// } 2760// 2761// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeIAMPolicyAssignment 2762func (c *QuickSight) DescribeIAMPolicyAssignmentRequest(input *DescribeIAMPolicyAssignmentInput) (req *request.Request, output *DescribeIAMPolicyAssignmentOutput) { 2763 op := &request.Operation{ 2764 Name: opDescribeIAMPolicyAssignment, 2765 HTTPMethod: "GET", 2766 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}", 2767 } 2768 2769 if input == nil { 2770 input = &DescribeIAMPolicyAssignmentInput{} 2771 } 2772 2773 output = &DescribeIAMPolicyAssignmentOutput{} 2774 req = c.newRequest(op, input, output) 2775 return 2776} 2777 2778// DescribeIAMPolicyAssignment API operation for Amazon QuickSight. 2779// 2780// Describes an existing IAM policy assignment, as specified by the assignment 2781// name. 2782// 2783// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2784// with awserr.Error's Code and Message methods to get detailed information about 2785// the error. 2786// 2787// See the AWS API reference guide for Amazon QuickSight's 2788// API operation DescribeIAMPolicyAssignment for usage and error information. 2789// 2790// Returned Error Types: 2791// * AccessDeniedException 2792// You don't have access to this item. The provided credentials couldn't be 2793// validated. You might not be authorized to carry out the request. Make sure 2794// that your account is authorized to use the Amazon QuickSight service, that 2795// your policies have the correct permissions, and that you are using the correct 2796// access keys. 2797// 2798// * InvalidParameterValueException 2799// One or more parameters has a value that isn't valid. 2800// 2801// * ResourceNotFoundException 2802// One or more resources can't be found. 2803// 2804// * ThrottlingException 2805// Access is throttled. 2806// 2807// * InvalidNextTokenException 2808// The NextToken value isn't valid. 2809// 2810// * InternalFailureException 2811// An internal failure occurred. 2812// 2813// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeIAMPolicyAssignment 2814func (c *QuickSight) DescribeIAMPolicyAssignment(input *DescribeIAMPolicyAssignmentInput) (*DescribeIAMPolicyAssignmentOutput, error) { 2815 req, out := c.DescribeIAMPolicyAssignmentRequest(input) 2816 return out, req.Send() 2817} 2818 2819// DescribeIAMPolicyAssignmentWithContext is the same as DescribeIAMPolicyAssignment with the addition of 2820// the ability to pass a context and additional request options. 2821// 2822// See DescribeIAMPolicyAssignment for details on how to use this API operation. 2823// 2824// The context must be non-nil and will be used for request cancellation. If 2825// the context is nil a panic will occur. In the future the SDK may create 2826// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2827// for more information on using Contexts. 2828func (c *QuickSight) DescribeIAMPolicyAssignmentWithContext(ctx aws.Context, input *DescribeIAMPolicyAssignmentInput, opts ...request.Option) (*DescribeIAMPolicyAssignmentOutput, error) { 2829 req, out := c.DescribeIAMPolicyAssignmentRequest(input) 2830 req.SetContext(ctx) 2831 req.ApplyOptions(opts...) 2832 return out, req.Send() 2833} 2834 2835const opDescribeIngestion = "DescribeIngestion" 2836 2837// DescribeIngestionRequest generates a "aws/request.Request" representing the 2838// client's request for the DescribeIngestion operation. The "output" return 2839// value will be populated with the request's response once the request completes 2840// successfully. 2841// 2842// Use "Send" method on the returned Request to send the API call to the service. 2843// the "output" return value is not valid until after Send returns without error. 2844// 2845// See DescribeIngestion for more information on using the DescribeIngestion 2846// API call, and error handling. 2847// 2848// This method is useful when you want to inject custom logic or configuration 2849// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2850// 2851// 2852// // Example sending a request using the DescribeIngestionRequest method. 2853// req, resp := client.DescribeIngestionRequest(params) 2854// 2855// err := req.Send() 2856// if err == nil { // resp is now filled 2857// fmt.Println(resp) 2858// } 2859// 2860// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeIngestion 2861func (c *QuickSight) DescribeIngestionRequest(input *DescribeIngestionInput) (req *request.Request, output *DescribeIngestionOutput) { 2862 op := &request.Operation{ 2863 Name: opDescribeIngestion, 2864 HTTPMethod: "GET", 2865 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}", 2866 } 2867 2868 if input == nil { 2869 input = &DescribeIngestionInput{} 2870 } 2871 2872 output = &DescribeIngestionOutput{} 2873 req = c.newRequest(op, input, output) 2874 return 2875} 2876 2877// DescribeIngestion API operation for Amazon QuickSight. 2878// 2879// Describes a SPICE ingestion. 2880// 2881// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2882// with awserr.Error's Code and Message methods to get detailed information about 2883// the error. 2884// 2885// See the AWS API reference guide for Amazon QuickSight's 2886// API operation DescribeIngestion for usage and error information. 2887// 2888// Returned Error Types: 2889// * AccessDeniedException 2890// You don't have access to this item. The provided credentials couldn't be 2891// validated. You might not be authorized to carry out the request. Make sure 2892// that your account is authorized to use the Amazon QuickSight service, that 2893// your policies have the correct permissions, and that you are using the correct 2894// access keys. 2895// 2896// * InvalidParameterValueException 2897// One or more parameters has a value that isn't valid. 2898// 2899// * ResourceNotFoundException 2900// One or more resources can't be found. 2901// 2902// * ThrottlingException 2903// Access is throttled. 2904// 2905// * ResourceExistsException 2906// The resource specified already exists. 2907// 2908// * InternalFailureException 2909// An internal failure occurred. 2910// 2911// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeIngestion 2912func (c *QuickSight) DescribeIngestion(input *DescribeIngestionInput) (*DescribeIngestionOutput, error) { 2913 req, out := c.DescribeIngestionRequest(input) 2914 return out, req.Send() 2915} 2916 2917// DescribeIngestionWithContext is the same as DescribeIngestion with the addition of 2918// the ability to pass a context and additional request options. 2919// 2920// See DescribeIngestion for details on how to use this API operation. 2921// 2922// The context must be non-nil and will be used for request cancellation. If 2923// the context is nil a panic will occur. In the future the SDK may create 2924// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2925// for more information on using Contexts. 2926func (c *QuickSight) DescribeIngestionWithContext(ctx aws.Context, input *DescribeIngestionInput, opts ...request.Option) (*DescribeIngestionOutput, error) { 2927 req, out := c.DescribeIngestionRequest(input) 2928 req.SetContext(ctx) 2929 req.ApplyOptions(opts...) 2930 return out, req.Send() 2931} 2932 2933const opDescribeTemplate = "DescribeTemplate" 2934 2935// DescribeTemplateRequest generates a "aws/request.Request" representing the 2936// client's request for the DescribeTemplate operation. The "output" return 2937// value will be populated with the request's response once the request completes 2938// successfully. 2939// 2940// Use "Send" method on the returned Request to send the API call to the service. 2941// the "output" return value is not valid until after Send returns without error. 2942// 2943// See DescribeTemplate for more information on using the DescribeTemplate 2944// API call, and error handling. 2945// 2946// This method is useful when you want to inject custom logic or configuration 2947// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2948// 2949// 2950// // Example sending a request using the DescribeTemplateRequest method. 2951// req, resp := client.DescribeTemplateRequest(params) 2952// 2953// err := req.Send() 2954// if err == nil { // resp is now filled 2955// fmt.Println(resp) 2956// } 2957// 2958// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplate 2959func (c *QuickSight) DescribeTemplateRequest(input *DescribeTemplateInput) (req *request.Request, output *DescribeTemplateOutput) { 2960 op := &request.Operation{ 2961 Name: opDescribeTemplate, 2962 HTTPMethod: "GET", 2963 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}", 2964 } 2965 2966 if input == nil { 2967 input = &DescribeTemplateInput{} 2968 } 2969 2970 output = &DescribeTemplateOutput{} 2971 req = c.newRequest(op, input, output) 2972 return 2973} 2974 2975// DescribeTemplate API operation for Amazon QuickSight. 2976// 2977// Describes a template's metadata. 2978// 2979// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2980// with awserr.Error's Code and Message methods to get detailed information about 2981// the error. 2982// 2983// See the AWS API reference guide for Amazon QuickSight's 2984// API operation DescribeTemplate for usage and error information. 2985// 2986// Returned Error Types: 2987// * InvalidParameterValueException 2988// One or more parameters has a value that isn't valid. 2989// 2990// * AccessDeniedException 2991// You don't have access to this item. The provided credentials couldn't be 2992// validated. You might not be authorized to carry out the request. Make sure 2993// that your account is authorized to use the Amazon QuickSight service, that 2994// your policies have the correct permissions, and that you are using the correct 2995// access keys. 2996// 2997// * ResourceExistsException 2998// The resource specified already exists. 2999// 3000// * ResourceNotFoundException 3001// One or more resources can't be found. 3002// 3003// * ThrottlingException 3004// Access is throttled. 3005// 3006// * ConflictException 3007// Updating or deleting a resource can cause an inconsistent state. 3008// 3009// * UnsupportedUserEditionException 3010// This error indicates that you are calling an operation on an Amazon QuickSight 3011// subscription where the edition doesn't include support for that operation. 3012// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 3013// Not every operation and capability is available in every edition. 3014// 3015// * InternalFailureException 3016// An internal failure occurred. 3017// 3018// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplate 3019func (c *QuickSight) DescribeTemplate(input *DescribeTemplateInput) (*DescribeTemplateOutput, error) { 3020 req, out := c.DescribeTemplateRequest(input) 3021 return out, req.Send() 3022} 3023 3024// DescribeTemplateWithContext is the same as DescribeTemplate with the addition of 3025// the ability to pass a context and additional request options. 3026// 3027// See DescribeTemplate 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 *QuickSight) DescribeTemplateWithContext(ctx aws.Context, input *DescribeTemplateInput, opts ...request.Option) (*DescribeTemplateOutput, error) { 3034 req, out := c.DescribeTemplateRequest(input) 3035 req.SetContext(ctx) 3036 req.ApplyOptions(opts...) 3037 return out, req.Send() 3038} 3039 3040const opDescribeTemplateAlias = "DescribeTemplateAlias" 3041 3042// DescribeTemplateAliasRequest generates a "aws/request.Request" representing the 3043// client's request for the DescribeTemplateAlias 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 DescribeTemplateAlias for more information on using the DescribeTemplateAlias 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 DescribeTemplateAliasRequest method. 3058// req, resp := client.DescribeTemplateAliasRequest(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/quicksight-2018-04-01/DescribeTemplateAlias 3066func (c *QuickSight) DescribeTemplateAliasRequest(input *DescribeTemplateAliasInput) (req *request.Request, output *DescribeTemplateAliasOutput) { 3067 op := &request.Operation{ 3068 Name: opDescribeTemplateAlias, 3069 HTTPMethod: "GET", 3070 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", 3071 } 3072 3073 if input == nil { 3074 input = &DescribeTemplateAliasInput{} 3075 } 3076 3077 output = &DescribeTemplateAliasOutput{} 3078 req = c.newRequest(op, input, output) 3079 return 3080} 3081 3082// DescribeTemplateAlias API operation for Amazon QuickSight. 3083// 3084// Describes the template alias for a template. 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 Amazon QuickSight's 3091// API operation DescribeTemplateAlias for usage and error information. 3092// 3093// Returned Error Types: 3094// * ThrottlingException 3095// Access is throttled. 3096// 3097// * ResourceNotFoundException 3098// One or more resources can't be found. 3099// 3100// * UnsupportedUserEditionException 3101// This error indicates that you are calling an operation on an Amazon QuickSight 3102// subscription where the edition doesn't include support for that operation. 3103// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 3104// Not every operation and capability is available in every edition. 3105// 3106// * InternalFailureException 3107// An internal failure occurred. 3108// 3109// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplateAlias 3110func (c *QuickSight) DescribeTemplateAlias(input *DescribeTemplateAliasInput) (*DescribeTemplateAliasOutput, error) { 3111 req, out := c.DescribeTemplateAliasRequest(input) 3112 return out, req.Send() 3113} 3114 3115// DescribeTemplateAliasWithContext is the same as DescribeTemplateAlias with the addition of 3116// the ability to pass a context and additional request options. 3117// 3118// See DescribeTemplateAlias for details on how to use this API operation. 3119// 3120// The context must be non-nil and will be used for request cancellation. If 3121// the context is nil a panic will occur. In the future the SDK may create 3122// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3123// for more information on using Contexts. 3124func (c *QuickSight) DescribeTemplateAliasWithContext(ctx aws.Context, input *DescribeTemplateAliasInput, opts ...request.Option) (*DescribeTemplateAliasOutput, error) { 3125 req, out := c.DescribeTemplateAliasRequest(input) 3126 req.SetContext(ctx) 3127 req.ApplyOptions(opts...) 3128 return out, req.Send() 3129} 3130 3131const opDescribeTemplatePermissions = "DescribeTemplatePermissions" 3132 3133// DescribeTemplatePermissionsRequest generates a "aws/request.Request" representing the 3134// client's request for the DescribeTemplatePermissions operation. The "output" return 3135// value will be populated with the request's response once the request completes 3136// successfully. 3137// 3138// Use "Send" method on the returned Request to send the API call to the service. 3139// the "output" return value is not valid until after Send returns without error. 3140// 3141// See DescribeTemplatePermissions for more information on using the DescribeTemplatePermissions 3142// API call, and error handling. 3143// 3144// This method is useful when you want to inject custom logic or configuration 3145// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3146// 3147// 3148// // Example sending a request using the DescribeTemplatePermissionsRequest method. 3149// req, resp := client.DescribeTemplatePermissionsRequest(params) 3150// 3151// err := req.Send() 3152// if err == nil { // resp is now filled 3153// fmt.Println(resp) 3154// } 3155// 3156// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplatePermissions 3157func (c *QuickSight) DescribeTemplatePermissionsRequest(input *DescribeTemplatePermissionsInput) (req *request.Request, output *DescribeTemplatePermissionsOutput) { 3158 op := &request.Operation{ 3159 Name: opDescribeTemplatePermissions, 3160 HTTPMethod: "GET", 3161 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions", 3162 } 3163 3164 if input == nil { 3165 input = &DescribeTemplatePermissionsInput{} 3166 } 3167 3168 output = &DescribeTemplatePermissionsOutput{} 3169 req = c.newRequest(op, input, output) 3170 return 3171} 3172 3173// DescribeTemplatePermissions API operation for Amazon QuickSight. 3174// 3175// Describes read and write permissions on a template. 3176// 3177// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3178// with awserr.Error's Code and Message methods to get detailed information about 3179// the error. 3180// 3181// See the AWS API reference guide for Amazon QuickSight's 3182// API operation DescribeTemplatePermissions for usage and error information. 3183// 3184// Returned Error Types: 3185// * ThrottlingException 3186// Access is throttled. 3187// 3188// * InvalidParameterValueException 3189// One or more parameters has a value that isn't valid. 3190// 3191// * ConflictException 3192// Updating or deleting a resource can cause an inconsistent state. 3193// 3194// * ResourceNotFoundException 3195// One or more resources can't be found. 3196// 3197// * UnsupportedUserEditionException 3198// This error indicates that you are calling an operation on an Amazon QuickSight 3199// subscription where the edition doesn't include support for that operation. 3200// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 3201// Not every operation and capability is available in every edition. 3202// 3203// * InternalFailureException 3204// An internal failure occurred. 3205// 3206// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplatePermissions 3207func (c *QuickSight) DescribeTemplatePermissions(input *DescribeTemplatePermissionsInput) (*DescribeTemplatePermissionsOutput, error) { 3208 req, out := c.DescribeTemplatePermissionsRequest(input) 3209 return out, req.Send() 3210} 3211 3212// DescribeTemplatePermissionsWithContext is the same as DescribeTemplatePermissions with the addition of 3213// the ability to pass a context and additional request options. 3214// 3215// See DescribeTemplatePermissions for details on how to use this API operation. 3216// 3217// The context must be non-nil and will be used for request cancellation. If 3218// the context is nil a panic will occur. In the future the SDK may create 3219// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3220// for more information on using Contexts. 3221func (c *QuickSight) DescribeTemplatePermissionsWithContext(ctx aws.Context, input *DescribeTemplatePermissionsInput, opts ...request.Option) (*DescribeTemplatePermissionsOutput, error) { 3222 req, out := c.DescribeTemplatePermissionsRequest(input) 3223 req.SetContext(ctx) 3224 req.ApplyOptions(opts...) 3225 return out, req.Send() 3226} 3227 3228const opDescribeUser = "DescribeUser" 3229 3230// DescribeUserRequest generates a "aws/request.Request" representing the 3231// client's request for the DescribeUser operation. The "output" return 3232// value will be populated with the request's response once the request completes 3233// successfully. 3234// 3235// Use "Send" method on the returned Request to send the API call to the service. 3236// the "output" return value is not valid until after Send returns without error. 3237// 3238// See DescribeUser for more information on using the DescribeUser 3239// API call, and error handling. 3240// 3241// This method is useful when you want to inject custom logic or configuration 3242// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3243// 3244// 3245// // Example sending a request using the DescribeUserRequest method. 3246// req, resp := client.DescribeUserRequest(params) 3247// 3248// err := req.Send() 3249// if err == nil { // resp is now filled 3250// fmt.Println(resp) 3251// } 3252// 3253// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeUser 3254func (c *QuickSight) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { 3255 op := &request.Operation{ 3256 Name: opDescribeUser, 3257 HTTPMethod: "GET", 3258 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", 3259 } 3260 3261 if input == nil { 3262 input = &DescribeUserInput{} 3263 } 3264 3265 output = &DescribeUserOutput{} 3266 req = c.newRequest(op, input, output) 3267 return 3268} 3269 3270// DescribeUser API operation for Amazon QuickSight. 3271// 3272// Returns information about a user, given the user name. 3273// 3274// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3275// with awserr.Error's Code and Message methods to get detailed information about 3276// the error. 3277// 3278// See the AWS API reference guide for Amazon QuickSight's 3279// API operation DescribeUser for usage and error information. 3280// 3281// Returned Error Types: 3282// * AccessDeniedException 3283// You don't have access to this item. The provided credentials couldn't be 3284// validated. You might not be authorized to carry out the request. Make sure 3285// that your account is authorized to use the Amazon QuickSight service, that 3286// your policies have the correct permissions, and that you are using the correct 3287// access keys. 3288// 3289// * InvalidParameterValueException 3290// One or more parameters has a value that isn't valid. 3291// 3292// * ResourceNotFoundException 3293// One or more resources can't be found. 3294// 3295// * ThrottlingException 3296// Access is throttled. 3297// 3298// * InternalFailureException 3299// An internal failure occurred. 3300// 3301// * ResourceUnavailableException 3302// This resource is currently unavailable. 3303// 3304// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeUser 3305func (c *QuickSight) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { 3306 req, out := c.DescribeUserRequest(input) 3307 return out, req.Send() 3308} 3309 3310// DescribeUserWithContext is the same as DescribeUser with the addition of 3311// the ability to pass a context and additional request options. 3312// 3313// See DescribeUser for details on how to use this API operation. 3314// 3315// The context must be non-nil and will be used for request cancellation. If 3316// the context is nil a panic will occur. In the future the SDK may create 3317// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3318// for more information on using Contexts. 3319func (c *QuickSight) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { 3320 req, out := c.DescribeUserRequest(input) 3321 req.SetContext(ctx) 3322 req.ApplyOptions(opts...) 3323 return out, req.Send() 3324} 3325 3326const opGetDashboardEmbedUrl = "GetDashboardEmbedUrl" 3327 3328// GetDashboardEmbedUrlRequest generates a "aws/request.Request" representing the 3329// client's request for the GetDashboardEmbedUrl operation. The "output" return 3330// value will be populated with the request's response once the request completes 3331// successfully. 3332// 3333// Use "Send" method on the returned Request to send the API call to the service. 3334// the "output" return value is not valid until after Send returns without error. 3335// 3336// See GetDashboardEmbedUrl for more information on using the GetDashboardEmbedUrl 3337// API call, and error handling. 3338// 3339// This method is useful when you want to inject custom logic or configuration 3340// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3341// 3342// 3343// // Example sending a request using the GetDashboardEmbedUrlRequest method. 3344// req, resp := client.GetDashboardEmbedUrlRequest(params) 3345// 3346// err := req.Send() 3347// if err == nil { // resp is now filled 3348// fmt.Println(resp) 3349// } 3350// 3351// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/GetDashboardEmbedUrl 3352func (c *QuickSight) GetDashboardEmbedUrlRequest(input *GetDashboardEmbedUrlInput) (req *request.Request, output *GetDashboardEmbedUrlOutput) { 3353 op := &request.Operation{ 3354 Name: opGetDashboardEmbedUrl, 3355 HTTPMethod: "GET", 3356 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url", 3357 } 3358 3359 if input == nil { 3360 input = &GetDashboardEmbedUrlInput{} 3361 } 3362 3363 output = &GetDashboardEmbedUrlOutput{} 3364 req = c.newRequest(op, input, output) 3365 return 3366} 3367 3368// GetDashboardEmbedUrl API operation for Amazon QuickSight. 3369// 3370// Generates a server-side embeddable URL and authorization code. For this process 3371// to work properly, first configure the dashboards and user permissions. For 3372// more information, see Embedding Amazon QuickSight Dashboards (https://docs.aws.amazon.com/quicksight/latest/user/embedding-dashboards.html) 3373// in the Amazon QuickSight User Guide or Embedding Amazon QuickSight Dashboards 3374// (https://docs.aws.amazon.com/quicksight/latest/APIReference/qs-dev-embedded-dashboards.html) 3375// in the Amazon QuickSight API Reference. 3376// 3377// Currently, you can use GetDashboardEmbedURL only from the server, not from 3378// the user’s browser. 3379// 3380// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3381// with awserr.Error's Code and Message methods to get detailed information about 3382// the error. 3383// 3384// See the AWS API reference guide for Amazon QuickSight's 3385// API operation GetDashboardEmbedUrl for usage and error information. 3386// 3387// Returned Error Types: 3388// * AccessDeniedException 3389// You don't have access to this item. The provided credentials couldn't be 3390// validated. You might not be authorized to carry out the request. Make sure 3391// that your account is authorized to use the Amazon QuickSight service, that 3392// your policies have the correct permissions, and that you are using the correct 3393// access keys. 3394// 3395// * InvalidParameterValueException 3396// One or more parameters has a value that isn't valid. 3397// 3398// * ResourceExistsException 3399// The resource specified already exists. 3400// 3401// * ResourceNotFoundException 3402// One or more resources can't be found. 3403// 3404// * ThrottlingException 3405// Access is throttled. 3406// 3407// * DomainNotWhitelistedException 3408// The domain specified isn't on the allow list. All domains for embedded dashboards 3409// must be added to the approved list by an Amazon QuickSight admin. 3410// 3411// * UserNotFoundException 3412// The user with the provided name isn't found. This error can happen in any 3413// operation that requires finding a user based on a provided user name, such 3414// as DeleteUser, DescribeUser, and so on. 3415// 3416// * IdentityTypeNotSupportedException 3417// The identity type specified isn't supported. Supported identity types include 3418// IAM and QUICKSIGHT. 3419// 3420// * SessionLifetimeInMinutesInvalidException 3421// The number of minutes specified for the lifetime of a session isn't valid. 3422// The session lifetime must be 15-600 minutes. 3423// 3424// * UnsupportedUserEditionException 3425// This error indicates that you are calling an operation on an Amazon QuickSight 3426// subscription where the edition doesn't include support for that operation. 3427// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 3428// Not every operation and capability is available in every edition. 3429// 3430// * InternalFailureException 3431// An internal failure occurred. 3432// 3433// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/GetDashboardEmbedUrl 3434func (c *QuickSight) GetDashboardEmbedUrl(input *GetDashboardEmbedUrlInput) (*GetDashboardEmbedUrlOutput, error) { 3435 req, out := c.GetDashboardEmbedUrlRequest(input) 3436 return out, req.Send() 3437} 3438 3439// GetDashboardEmbedUrlWithContext is the same as GetDashboardEmbedUrl with the addition of 3440// the ability to pass a context and additional request options. 3441// 3442// See GetDashboardEmbedUrl for details on how to use this API operation. 3443// 3444// The context must be non-nil and will be used for request cancellation. If 3445// the context is nil a panic will occur. In the future the SDK may create 3446// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3447// for more information on using Contexts. 3448func (c *QuickSight) GetDashboardEmbedUrlWithContext(ctx aws.Context, input *GetDashboardEmbedUrlInput, opts ...request.Option) (*GetDashboardEmbedUrlOutput, error) { 3449 req, out := c.GetDashboardEmbedUrlRequest(input) 3450 req.SetContext(ctx) 3451 req.ApplyOptions(opts...) 3452 return out, req.Send() 3453} 3454 3455const opListDashboardVersions = "ListDashboardVersions" 3456 3457// ListDashboardVersionsRequest generates a "aws/request.Request" representing the 3458// client's request for the ListDashboardVersions operation. The "output" return 3459// value will be populated with the request's response once the request completes 3460// successfully. 3461// 3462// Use "Send" method on the returned Request to send the API call to the service. 3463// the "output" return value is not valid until after Send returns without error. 3464// 3465// See ListDashboardVersions for more information on using the ListDashboardVersions 3466// API call, and error handling. 3467// 3468// This method is useful when you want to inject custom logic or configuration 3469// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3470// 3471// 3472// // Example sending a request using the ListDashboardVersionsRequest method. 3473// req, resp := client.ListDashboardVersionsRequest(params) 3474// 3475// err := req.Send() 3476// if err == nil { // resp is now filled 3477// fmt.Println(resp) 3478// } 3479// 3480// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDashboardVersions 3481func (c *QuickSight) ListDashboardVersionsRequest(input *ListDashboardVersionsInput) (req *request.Request, output *ListDashboardVersionsOutput) { 3482 op := &request.Operation{ 3483 Name: opListDashboardVersions, 3484 HTTPMethod: "GET", 3485 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions", 3486 Paginator: &request.Paginator{ 3487 InputTokens: []string{"NextToken"}, 3488 OutputTokens: []string{"NextToken"}, 3489 LimitToken: "MaxResults", 3490 TruncationToken: "", 3491 }, 3492 } 3493 3494 if input == nil { 3495 input = &ListDashboardVersionsInput{} 3496 } 3497 3498 output = &ListDashboardVersionsOutput{} 3499 req = c.newRequest(op, input, output) 3500 return 3501} 3502 3503// ListDashboardVersions API operation for Amazon QuickSight. 3504// 3505// Lists all the versions of the dashboards in the QuickSight subscription. 3506// 3507// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3508// with awserr.Error's Code and Message methods to get detailed information about 3509// the error. 3510// 3511// See the AWS API reference guide for Amazon QuickSight's 3512// API operation ListDashboardVersions for usage and error information. 3513// 3514// Returned Error Types: 3515// * InvalidParameterValueException 3516// One or more parameters has a value that isn't valid. 3517// 3518// * ResourceNotFoundException 3519// One or more resources can't be found. 3520// 3521// * ThrottlingException 3522// Access is throttled. 3523// 3524// * InvalidNextTokenException 3525// The NextToken value isn't valid. 3526// 3527// * UnsupportedUserEditionException 3528// This error indicates that you are calling an operation on an Amazon QuickSight 3529// subscription where the edition doesn't include support for that operation. 3530// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 3531// Not every operation and capability is available in every edition. 3532// 3533// * InternalFailureException 3534// An internal failure occurred. 3535// 3536// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDashboardVersions 3537func (c *QuickSight) ListDashboardVersions(input *ListDashboardVersionsInput) (*ListDashboardVersionsOutput, error) { 3538 req, out := c.ListDashboardVersionsRequest(input) 3539 return out, req.Send() 3540} 3541 3542// ListDashboardVersionsWithContext is the same as ListDashboardVersions with the addition of 3543// the ability to pass a context and additional request options. 3544// 3545// See ListDashboardVersions for details on how to use this API operation. 3546// 3547// The context must be non-nil and will be used for request cancellation. If 3548// the context is nil a panic will occur. In the future the SDK may create 3549// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3550// for more information on using Contexts. 3551func (c *QuickSight) ListDashboardVersionsWithContext(ctx aws.Context, input *ListDashboardVersionsInput, opts ...request.Option) (*ListDashboardVersionsOutput, error) { 3552 req, out := c.ListDashboardVersionsRequest(input) 3553 req.SetContext(ctx) 3554 req.ApplyOptions(opts...) 3555 return out, req.Send() 3556} 3557 3558// ListDashboardVersionsPages iterates over the pages of a ListDashboardVersions operation, 3559// calling the "fn" function with the response data for each page. To stop 3560// iterating, return false from the fn function. 3561// 3562// See ListDashboardVersions method for more information on how to use this operation. 3563// 3564// Note: This operation can generate multiple requests to a service. 3565// 3566// // Example iterating over at most 3 pages of a ListDashboardVersions operation. 3567// pageNum := 0 3568// err := client.ListDashboardVersionsPages(params, 3569// func(page *quicksight.ListDashboardVersionsOutput, lastPage bool) bool { 3570// pageNum++ 3571// fmt.Println(page) 3572// return pageNum <= 3 3573// }) 3574// 3575func (c *QuickSight) ListDashboardVersionsPages(input *ListDashboardVersionsInput, fn func(*ListDashboardVersionsOutput, bool) bool) error { 3576 return c.ListDashboardVersionsPagesWithContext(aws.BackgroundContext(), input, fn) 3577} 3578 3579// ListDashboardVersionsPagesWithContext same as ListDashboardVersionsPages except 3580// it takes a Context and allows setting request options on the pages. 3581// 3582// The context must be non-nil and will be used for request cancellation. If 3583// the context is nil a panic will occur. In the future the SDK may create 3584// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3585// for more information on using Contexts. 3586func (c *QuickSight) ListDashboardVersionsPagesWithContext(ctx aws.Context, input *ListDashboardVersionsInput, fn func(*ListDashboardVersionsOutput, bool) bool, opts ...request.Option) error { 3587 p := request.Pagination{ 3588 NewRequest: func() (*request.Request, error) { 3589 var inCpy *ListDashboardVersionsInput 3590 if input != nil { 3591 tmp := *input 3592 inCpy = &tmp 3593 } 3594 req, _ := c.ListDashboardVersionsRequest(inCpy) 3595 req.SetContext(ctx) 3596 req.ApplyOptions(opts...) 3597 return req, nil 3598 }, 3599 } 3600 3601 for p.Next() { 3602 if !fn(p.Page().(*ListDashboardVersionsOutput), !p.HasNextPage()) { 3603 break 3604 } 3605 } 3606 3607 return p.Err() 3608} 3609 3610const opListDashboards = "ListDashboards" 3611 3612// ListDashboardsRequest generates a "aws/request.Request" representing the 3613// client's request for the ListDashboards operation. The "output" return 3614// value will be populated with the request's response once the request completes 3615// successfully. 3616// 3617// Use "Send" method on the returned Request to send the API call to the service. 3618// the "output" return value is not valid until after Send returns without error. 3619// 3620// See ListDashboards for more information on using the ListDashboards 3621// API call, and error handling. 3622// 3623// This method is useful when you want to inject custom logic or configuration 3624// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3625// 3626// 3627// // Example sending a request using the ListDashboardsRequest method. 3628// req, resp := client.ListDashboardsRequest(params) 3629// 3630// err := req.Send() 3631// if err == nil { // resp is now filled 3632// fmt.Println(resp) 3633// } 3634// 3635// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDashboards 3636func (c *QuickSight) ListDashboardsRequest(input *ListDashboardsInput) (req *request.Request, output *ListDashboardsOutput) { 3637 op := &request.Operation{ 3638 Name: opListDashboards, 3639 HTTPMethod: "GET", 3640 HTTPPath: "/accounts/{AwsAccountId}/dashboards", 3641 Paginator: &request.Paginator{ 3642 InputTokens: []string{"NextToken"}, 3643 OutputTokens: []string{"NextToken"}, 3644 LimitToken: "MaxResults", 3645 TruncationToken: "", 3646 }, 3647 } 3648 3649 if input == nil { 3650 input = &ListDashboardsInput{} 3651 } 3652 3653 output = &ListDashboardsOutput{} 3654 req = c.newRequest(op, input, output) 3655 return 3656} 3657 3658// ListDashboards API operation for Amazon QuickSight. 3659// 3660// Lists dashboards in an AWS account. 3661// 3662// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3663// with awserr.Error's Code and Message methods to get detailed information about 3664// the error. 3665// 3666// See the AWS API reference guide for Amazon QuickSight's 3667// API operation ListDashboards for usage and error information. 3668// 3669// Returned Error Types: 3670// * ThrottlingException 3671// Access is throttled. 3672// 3673// * InvalidNextTokenException 3674// The NextToken value isn't valid. 3675// 3676// * UnsupportedUserEditionException 3677// This error indicates that you are calling an operation on an Amazon QuickSight 3678// subscription where the edition doesn't include support for that operation. 3679// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 3680// Not every operation and capability is available in every edition. 3681// 3682// * InternalFailureException 3683// An internal failure occurred. 3684// 3685// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDashboards 3686func (c *QuickSight) ListDashboards(input *ListDashboardsInput) (*ListDashboardsOutput, error) { 3687 req, out := c.ListDashboardsRequest(input) 3688 return out, req.Send() 3689} 3690 3691// ListDashboardsWithContext is the same as ListDashboards with the addition of 3692// the ability to pass a context and additional request options. 3693// 3694// See ListDashboards for details on how to use this API operation. 3695// 3696// The context must be non-nil and will be used for request cancellation. If 3697// the context is nil a panic will occur. In the future the SDK may create 3698// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3699// for more information on using Contexts. 3700func (c *QuickSight) ListDashboardsWithContext(ctx aws.Context, input *ListDashboardsInput, opts ...request.Option) (*ListDashboardsOutput, error) { 3701 req, out := c.ListDashboardsRequest(input) 3702 req.SetContext(ctx) 3703 req.ApplyOptions(opts...) 3704 return out, req.Send() 3705} 3706 3707// ListDashboardsPages iterates over the pages of a ListDashboards operation, 3708// calling the "fn" function with the response data for each page. To stop 3709// iterating, return false from the fn function. 3710// 3711// See ListDashboards method for more information on how to use this operation. 3712// 3713// Note: This operation can generate multiple requests to a service. 3714// 3715// // Example iterating over at most 3 pages of a ListDashboards operation. 3716// pageNum := 0 3717// err := client.ListDashboardsPages(params, 3718// func(page *quicksight.ListDashboardsOutput, lastPage bool) bool { 3719// pageNum++ 3720// fmt.Println(page) 3721// return pageNum <= 3 3722// }) 3723// 3724func (c *QuickSight) ListDashboardsPages(input *ListDashboardsInput, fn func(*ListDashboardsOutput, bool) bool) error { 3725 return c.ListDashboardsPagesWithContext(aws.BackgroundContext(), input, fn) 3726} 3727 3728// ListDashboardsPagesWithContext same as ListDashboardsPages except 3729// it takes a Context and allows setting request options on the pages. 3730// 3731// The context must be non-nil and will be used for request cancellation. If 3732// the context is nil a panic will occur. In the future the SDK may create 3733// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3734// for more information on using Contexts. 3735func (c *QuickSight) ListDashboardsPagesWithContext(ctx aws.Context, input *ListDashboardsInput, fn func(*ListDashboardsOutput, bool) bool, opts ...request.Option) error { 3736 p := request.Pagination{ 3737 NewRequest: func() (*request.Request, error) { 3738 var inCpy *ListDashboardsInput 3739 if input != nil { 3740 tmp := *input 3741 inCpy = &tmp 3742 } 3743 req, _ := c.ListDashboardsRequest(inCpy) 3744 req.SetContext(ctx) 3745 req.ApplyOptions(opts...) 3746 return req, nil 3747 }, 3748 } 3749 3750 for p.Next() { 3751 if !fn(p.Page().(*ListDashboardsOutput), !p.HasNextPage()) { 3752 break 3753 } 3754 } 3755 3756 return p.Err() 3757} 3758 3759const opListDataSets = "ListDataSets" 3760 3761// ListDataSetsRequest generates a "aws/request.Request" representing the 3762// client's request for the ListDataSets operation. The "output" return 3763// value will be populated with the request's response once the request completes 3764// successfully. 3765// 3766// Use "Send" method on the returned Request to send the API call to the service. 3767// the "output" return value is not valid until after Send returns without error. 3768// 3769// See ListDataSets for more information on using the ListDataSets 3770// API call, and error handling. 3771// 3772// This method is useful when you want to inject custom logic or configuration 3773// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3774// 3775// 3776// // Example sending a request using the ListDataSetsRequest method. 3777// req, resp := client.ListDataSetsRequest(params) 3778// 3779// err := req.Send() 3780// if err == nil { // resp is now filled 3781// fmt.Println(resp) 3782// } 3783// 3784// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDataSets 3785func (c *QuickSight) ListDataSetsRequest(input *ListDataSetsInput) (req *request.Request, output *ListDataSetsOutput) { 3786 op := &request.Operation{ 3787 Name: opListDataSets, 3788 HTTPMethod: "GET", 3789 HTTPPath: "/accounts/{AwsAccountId}/data-sets", 3790 Paginator: &request.Paginator{ 3791 InputTokens: []string{"NextToken"}, 3792 OutputTokens: []string{"NextToken"}, 3793 LimitToken: "MaxResults", 3794 TruncationToken: "", 3795 }, 3796 } 3797 3798 if input == nil { 3799 input = &ListDataSetsInput{} 3800 } 3801 3802 output = &ListDataSetsOutput{} 3803 req = c.newRequest(op, input, output) 3804 return 3805} 3806 3807// ListDataSets API operation for Amazon QuickSight. 3808// 3809// Lists all of the datasets belonging to the current AWS account in an AWS 3810// Region. 3811// 3812// The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/*. 3813// 3814// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3815// with awserr.Error's Code and Message methods to get detailed information about 3816// the error. 3817// 3818// See the AWS API reference guide for Amazon QuickSight's 3819// API operation ListDataSets for usage and error information. 3820// 3821// Returned Error Types: 3822// * AccessDeniedException 3823// You don't have access to this item. The provided credentials couldn't be 3824// validated. You might not be authorized to carry out the request. Make sure 3825// that your account is authorized to use the Amazon QuickSight service, that 3826// your policies have the correct permissions, and that you are using the correct 3827// access keys. 3828// 3829// * InvalidParameterValueException 3830// One or more parameters has a value that isn't valid. 3831// 3832// * ThrottlingException 3833// Access is throttled. 3834// 3835// * InvalidNextTokenException 3836// The NextToken value isn't valid. 3837// 3838// * InternalFailureException 3839// An internal failure occurred. 3840// 3841// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDataSets 3842func (c *QuickSight) ListDataSets(input *ListDataSetsInput) (*ListDataSetsOutput, error) { 3843 req, out := c.ListDataSetsRequest(input) 3844 return out, req.Send() 3845} 3846 3847// ListDataSetsWithContext is the same as ListDataSets with the addition of 3848// the ability to pass a context and additional request options. 3849// 3850// See ListDataSets for details on how to use this API operation. 3851// 3852// The context must be non-nil and will be used for request cancellation. If 3853// the context is nil a panic will occur. In the future the SDK may create 3854// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3855// for more information on using Contexts. 3856func (c *QuickSight) ListDataSetsWithContext(ctx aws.Context, input *ListDataSetsInput, opts ...request.Option) (*ListDataSetsOutput, error) { 3857 req, out := c.ListDataSetsRequest(input) 3858 req.SetContext(ctx) 3859 req.ApplyOptions(opts...) 3860 return out, req.Send() 3861} 3862 3863// ListDataSetsPages iterates over the pages of a ListDataSets operation, 3864// calling the "fn" function with the response data for each page. To stop 3865// iterating, return false from the fn function. 3866// 3867// See ListDataSets method for more information on how to use this operation. 3868// 3869// Note: This operation can generate multiple requests to a service. 3870// 3871// // Example iterating over at most 3 pages of a ListDataSets operation. 3872// pageNum := 0 3873// err := client.ListDataSetsPages(params, 3874// func(page *quicksight.ListDataSetsOutput, lastPage bool) bool { 3875// pageNum++ 3876// fmt.Println(page) 3877// return pageNum <= 3 3878// }) 3879// 3880func (c *QuickSight) ListDataSetsPages(input *ListDataSetsInput, fn func(*ListDataSetsOutput, bool) bool) error { 3881 return c.ListDataSetsPagesWithContext(aws.BackgroundContext(), input, fn) 3882} 3883 3884// ListDataSetsPagesWithContext same as ListDataSetsPages except 3885// it takes a Context and allows setting request options on the pages. 3886// 3887// The context must be non-nil and will be used for request cancellation. If 3888// the context is nil a panic will occur. In the future the SDK may create 3889// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3890// for more information on using Contexts. 3891func (c *QuickSight) ListDataSetsPagesWithContext(ctx aws.Context, input *ListDataSetsInput, fn func(*ListDataSetsOutput, bool) bool, opts ...request.Option) error { 3892 p := request.Pagination{ 3893 NewRequest: func() (*request.Request, error) { 3894 var inCpy *ListDataSetsInput 3895 if input != nil { 3896 tmp := *input 3897 inCpy = &tmp 3898 } 3899 req, _ := c.ListDataSetsRequest(inCpy) 3900 req.SetContext(ctx) 3901 req.ApplyOptions(opts...) 3902 return req, nil 3903 }, 3904 } 3905 3906 for p.Next() { 3907 if !fn(p.Page().(*ListDataSetsOutput), !p.HasNextPage()) { 3908 break 3909 } 3910 } 3911 3912 return p.Err() 3913} 3914 3915const opListDataSources = "ListDataSources" 3916 3917// ListDataSourcesRequest generates a "aws/request.Request" representing the 3918// client's request for the ListDataSources operation. The "output" return 3919// value will be populated with the request's response once the request completes 3920// successfully. 3921// 3922// Use "Send" method on the returned Request to send the API call to the service. 3923// the "output" return value is not valid until after Send returns without error. 3924// 3925// See ListDataSources for more information on using the ListDataSources 3926// API call, and error handling. 3927// 3928// This method is useful when you want to inject custom logic or configuration 3929// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3930// 3931// 3932// // Example sending a request using the ListDataSourcesRequest method. 3933// req, resp := client.ListDataSourcesRequest(params) 3934// 3935// err := req.Send() 3936// if err == nil { // resp is now filled 3937// fmt.Println(resp) 3938// } 3939// 3940// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDataSources 3941func (c *QuickSight) ListDataSourcesRequest(input *ListDataSourcesInput) (req *request.Request, output *ListDataSourcesOutput) { 3942 op := &request.Operation{ 3943 Name: opListDataSources, 3944 HTTPMethod: "GET", 3945 HTTPPath: "/accounts/{AwsAccountId}/data-sources", 3946 Paginator: &request.Paginator{ 3947 InputTokens: []string{"NextToken"}, 3948 OutputTokens: []string{"NextToken"}, 3949 LimitToken: "MaxResults", 3950 TruncationToken: "", 3951 }, 3952 } 3953 3954 if input == nil { 3955 input = &ListDataSourcesInput{} 3956 } 3957 3958 output = &ListDataSourcesOutput{} 3959 req = c.newRequest(op, input, output) 3960 return 3961} 3962 3963// ListDataSources API operation for Amazon QuickSight. 3964// 3965// Lists data sources in current AWS Region that belong to this AWS account. 3966// 3967// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3968// with awserr.Error's Code and Message methods to get detailed information about 3969// the error. 3970// 3971// See the AWS API reference guide for Amazon QuickSight's 3972// API operation ListDataSources for usage and error information. 3973// 3974// Returned Error Types: 3975// * AccessDeniedException 3976// You don't have access to this item. The provided credentials couldn't be 3977// validated. You might not be authorized to carry out the request. Make sure 3978// that your account is authorized to use the Amazon QuickSight service, that 3979// your policies have the correct permissions, and that you are using the correct 3980// access keys. 3981// 3982// * InvalidParameterValueException 3983// One or more parameters has a value that isn't valid. 3984// 3985// * ThrottlingException 3986// Access is throttled. 3987// 3988// * InvalidNextTokenException 3989// The NextToken value isn't valid. 3990// 3991// * InternalFailureException 3992// An internal failure occurred. 3993// 3994// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDataSources 3995func (c *QuickSight) ListDataSources(input *ListDataSourcesInput) (*ListDataSourcesOutput, error) { 3996 req, out := c.ListDataSourcesRequest(input) 3997 return out, req.Send() 3998} 3999 4000// ListDataSourcesWithContext is the same as ListDataSources with the addition of 4001// the ability to pass a context and additional request options. 4002// 4003// See ListDataSources for details on how to use this API operation. 4004// 4005// The context must be non-nil and will be used for request cancellation. If 4006// the context is nil a panic will occur. In the future the SDK may create 4007// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4008// for more information on using Contexts. 4009func (c *QuickSight) ListDataSourcesWithContext(ctx aws.Context, input *ListDataSourcesInput, opts ...request.Option) (*ListDataSourcesOutput, error) { 4010 req, out := c.ListDataSourcesRequest(input) 4011 req.SetContext(ctx) 4012 req.ApplyOptions(opts...) 4013 return out, req.Send() 4014} 4015 4016// ListDataSourcesPages iterates over the pages of a ListDataSources operation, 4017// calling the "fn" function with the response data for each page. To stop 4018// iterating, return false from the fn function. 4019// 4020// See ListDataSources method for more information on how to use this operation. 4021// 4022// Note: This operation can generate multiple requests to a service. 4023// 4024// // Example iterating over at most 3 pages of a ListDataSources operation. 4025// pageNum := 0 4026// err := client.ListDataSourcesPages(params, 4027// func(page *quicksight.ListDataSourcesOutput, lastPage bool) bool { 4028// pageNum++ 4029// fmt.Println(page) 4030// return pageNum <= 3 4031// }) 4032// 4033func (c *QuickSight) ListDataSourcesPages(input *ListDataSourcesInput, fn func(*ListDataSourcesOutput, bool) bool) error { 4034 return c.ListDataSourcesPagesWithContext(aws.BackgroundContext(), input, fn) 4035} 4036 4037// ListDataSourcesPagesWithContext same as ListDataSourcesPages except 4038// it takes a Context and allows setting request options on the pages. 4039// 4040// The context must be non-nil and will be used for request cancellation. If 4041// the context is nil a panic will occur. In the future the SDK may create 4042// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4043// for more information on using Contexts. 4044func (c *QuickSight) ListDataSourcesPagesWithContext(ctx aws.Context, input *ListDataSourcesInput, fn func(*ListDataSourcesOutput, bool) bool, opts ...request.Option) error { 4045 p := request.Pagination{ 4046 NewRequest: func() (*request.Request, error) { 4047 var inCpy *ListDataSourcesInput 4048 if input != nil { 4049 tmp := *input 4050 inCpy = &tmp 4051 } 4052 req, _ := c.ListDataSourcesRequest(inCpy) 4053 req.SetContext(ctx) 4054 req.ApplyOptions(opts...) 4055 return req, nil 4056 }, 4057 } 4058 4059 for p.Next() { 4060 if !fn(p.Page().(*ListDataSourcesOutput), !p.HasNextPage()) { 4061 break 4062 } 4063 } 4064 4065 return p.Err() 4066} 4067 4068const opListGroupMemberships = "ListGroupMemberships" 4069 4070// ListGroupMembershipsRequest generates a "aws/request.Request" representing the 4071// client's request for the ListGroupMemberships operation. The "output" return 4072// value will be populated with the request's response once the request completes 4073// successfully. 4074// 4075// Use "Send" method on the returned Request to send the API call to the service. 4076// the "output" return value is not valid until after Send returns without error. 4077// 4078// See ListGroupMemberships for more information on using the ListGroupMemberships 4079// API call, and error handling. 4080// 4081// This method is useful when you want to inject custom logic or configuration 4082// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4083// 4084// 4085// // Example sending a request using the ListGroupMembershipsRequest method. 4086// req, resp := client.ListGroupMembershipsRequest(params) 4087// 4088// err := req.Send() 4089// if err == nil { // resp is now filled 4090// fmt.Println(resp) 4091// } 4092// 4093// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroupMemberships 4094func (c *QuickSight) ListGroupMembershipsRequest(input *ListGroupMembershipsInput) (req *request.Request, output *ListGroupMembershipsOutput) { 4095 op := &request.Operation{ 4096 Name: opListGroupMemberships, 4097 HTTPMethod: "GET", 4098 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members", 4099 } 4100 4101 if input == nil { 4102 input = &ListGroupMembershipsInput{} 4103 } 4104 4105 output = &ListGroupMembershipsOutput{} 4106 req = c.newRequest(op, input, output) 4107 return 4108} 4109 4110// ListGroupMemberships API operation for Amazon QuickSight. 4111// 4112// Lists member users in a group. 4113// 4114// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4115// with awserr.Error's Code and Message methods to get detailed information about 4116// the error. 4117// 4118// See the AWS API reference guide for Amazon QuickSight's 4119// API operation ListGroupMemberships for usage and error information. 4120// 4121// Returned Error Types: 4122// * AccessDeniedException 4123// You don't have access to this item. The provided credentials couldn't be 4124// validated. You might not be authorized to carry out the request. Make sure 4125// that your account is authorized to use the Amazon QuickSight service, that 4126// your policies have the correct permissions, and that you are using the correct 4127// access keys. 4128// 4129// * InvalidParameterValueException 4130// One or more parameters has a value that isn't valid. 4131// 4132// * ResourceNotFoundException 4133// One or more resources can't be found. 4134// 4135// * ThrottlingException 4136// Access is throttled. 4137// 4138// * InvalidNextTokenException 4139// The NextToken value isn't valid. 4140// 4141// * PreconditionNotMetException 4142// One or more preconditions aren't met. 4143// 4144// * InternalFailureException 4145// An internal failure occurred. 4146// 4147// * ResourceUnavailableException 4148// This resource is currently unavailable. 4149// 4150// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroupMemberships 4151func (c *QuickSight) ListGroupMemberships(input *ListGroupMembershipsInput) (*ListGroupMembershipsOutput, error) { 4152 req, out := c.ListGroupMembershipsRequest(input) 4153 return out, req.Send() 4154} 4155 4156// ListGroupMembershipsWithContext is the same as ListGroupMemberships with the addition of 4157// the ability to pass a context and additional request options. 4158// 4159// See ListGroupMemberships for details on how to use this API operation. 4160// 4161// The context must be non-nil and will be used for request cancellation. If 4162// the context is nil a panic will occur. In the future the SDK may create 4163// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4164// for more information on using Contexts. 4165func (c *QuickSight) ListGroupMembershipsWithContext(ctx aws.Context, input *ListGroupMembershipsInput, opts ...request.Option) (*ListGroupMembershipsOutput, error) { 4166 req, out := c.ListGroupMembershipsRequest(input) 4167 req.SetContext(ctx) 4168 req.ApplyOptions(opts...) 4169 return out, req.Send() 4170} 4171 4172const opListGroups = "ListGroups" 4173 4174// ListGroupsRequest generates a "aws/request.Request" representing the 4175// client's request for the ListGroups operation. The "output" return 4176// value will be populated with the request's response once the request completes 4177// successfully. 4178// 4179// Use "Send" method on the returned Request to send the API call to the service. 4180// the "output" return value is not valid until after Send returns without error. 4181// 4182// See ListGroups for more information on using the ListGroups 4183// API call, and error handling. 4184// 4185// This method is useful when you want to inject custom logic or configuration 4186// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4187// 4188// 4189// // Example sending a request using the ListGroupsRequest method. 4190// req, resp := client.ListGroupsRequest(params) 4191// 4192// err := req.Send() 4193// if err == nil { // resp is now filled 4194// fmt.Println(resp) 4195// } 4196// 4197// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroups 4198func (c *QuickSight) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { 4199 op := &request.Operation{ 4200 Name: opListGroups, 4201 HTTPMethod: "GET", 4202 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups", 4203 } 4204 4205 if input == nil { 4206 input = &ListGroupsInput{} 4207 } 4208 4209 output = &ListGroupsOutput{} 4210 req = c.newRequest(op, input, output) 4211 return 4212} 4213 4214// ListGroups API operation for Amazon QuickSight. 4215// 4216// Lists all user groups in Amazon QuickSight. 4217// 4218// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4219// with awserr.Error's Code and Message methods to get detailed information about 4220// the error. 4221// 4222// See the AWS API reference guide for Amazon QuickSight's 4223// API operation ListGroups for usage and error information. 4224// 4225// Returned Error Types: 4226// * AccessDeniedException 4227// You don't have access to this item. The provided credentials couldn't be 4228// validated. You might not be authorized to carry out the request. Make sure 4229// that your account is authorized to use the Amazon QuickSight service, that 4230// your policies have the correct permissions, and that you are using the correct 4231// access keys. 4232// 4233// * InvalidParameterValueException 4234// One or more parameters has a value that isn't valid. 4235// 4236// * ResourceNotFoundException 4237// One or more resources can't be found. 4238// 4239// * ThrottlingException 4240// Access is throttled. 4241// 4242// * InvalidNextTokenException 4243// The NextToken value isn't valid. 4244// 4245// * PreconditionNotMetException 4246// One or more preconditions aren't met. 4247// 4248// * InternalFailureException 4249// An internal failure occurred. 4250// 4251// * ResourceUnavailableException 4252// This resource is currently unavailable. 4253// 4254// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroups 4255func (c *QuickSight) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { 4256 req, out := c.ListGroupsRequest(input) 4257 return out, req.Send() 4258} 4259 4260// ListGroupsWithContext is the same as ListGroups with the addition of 4261// the ability to pass a context and additional request options. 4262// 4263// See ListGroups for details on how to use this API operation. 4264// 4265// The context must be non-nil and will be used for request cancellation. If 4266// the context is nil a panic will occur. In the future the SDK may create 4267// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4268// for more information on using Contexts. 4269func (c *QuickSight) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error) { 4270 req, out := c.ListGroupsRequest(input) 4271 req.SetContext(ctx) 4272 req.ApplyOptions(opts...) 4273 return out, req.Send() 4274} 4275 4276const opListIAMPolicyAssignments = "ListIAMPolicyAssignments" 4277 4278// ListIAMPolicyAssignmentsRequest generates a "aws/request.Request" representing the 4279// client's request for the ListIAMPolicyAssignments operation. The "output" return 4280// value will be populated with the request's response once the request completes 4281// successfully. 4282// 4283// Use "Send" method on the returned Request to send the API call to the service. 4284// the "output" return value is not valid until after Send returns without error. 4285// 4286// See ListIAMPolicyAssignments for more information on using the ListIAMPolicyAssignments 4287// API call, and error handling. 4288// 4289// This method is useful when you want to inject custom logic or configuration 4290// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4291// 4292// 4293// // Example sending a request using the ListIAMPolicyAssignmentsRequest method. 4294// req, resp := client.ListIAMPolicyAssignmentsRequest(params) 4295// 4296// err := req.Send() 4297// if err == nil { // resp is now filled 4298// fmt.Println(resp) 4299// } 4300// 4301// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIAMPolicyAssignments 4302func (c *QuickSight) ListIAMPolicyAssignmentsRequest(input *ListIAMPolicyAssignmentsInput) (req *request.Request, output *ListIAMPolicyAssignmentsOutput) { 4303 op := &request.Operation{ 4304 Name: opListIAMPolicyAssignments, 4305 HTTPMethod: "GET", 4306 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments", 4307 } 4308 4309 if input == nil { 4310 input = &ListIAMPolicyAssignmentsInput{} 4311 } 4312 4313 output = &ListIAMPolicyAssignmentsOutput{} 4314 req = c.newRequest(op, input, output) 4315 return 4316} 4317 4318// ListIAMPolicyAssignments API operation for Amazon QuickSight. 4319// 4320// Lists IAM policy assignments in the current Amazon QuickSight account. 4321// 4322// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4323// with awserr.Error's Code and Message methods to get detailed information about 4324// the error. 4325// 4326// See the AWS API reference guide for Amazon QuickSight's 4327// API operation ListIAMPolicyAssignments for usage and error information. 4328// 4329// Returned Error Types: 4330// * AccessDeniedException 4331// You don't have access to this item. The provided credentials couldn't be 4332// validated. You might not be authorized to carry out the request. Make sure 4333// that your account is authorized to use the Amazon QuickSight service, that 4334// your policies have the correct permissions, and that you are using the correct 4335// access keys. 4336// 4337// * InvalidParameterValueException 4338// One or more parameters has a value that isn't valid. 4339// 4340// * ResourceNotFoundException 4341// One or more resources can't be found. 4342// 4343// * ThrottlingException 4344// Access is throttled. 4345// 4346// * InvalidNextTokenException 4347// The NextToken value isn't valid. 4348// 4349// * InternalFailureException 4350// An internal failure occurred. 4351// 4352// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIAMPolicyAssignments 4353func (c *QuickSight) ListIAMPolicyAssignments(input *ListIAMPolicyAssignmentsInput) (*ListIAMPolicyAssignmentsOutput, error) { 4354 req, out := c.ListIAMPolicyAssignmentsRequest(input) 4355 return out, req.Send() 4356} 4357 4358// ListIAMPolicyAssignmentsWithContext is the same as ListIAMPolicyAssignments with the addition of 4359// the ability to pass a context and additional request options. 4360// 4361// See ListIAMPolicyAssignments for details on how to use this API operation. 4362// 4363// The context must be non-nil and will be used for request cancellation. If 4364// the context is nil a panic will occur. In the future the SDK may create 4365// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4366// for more information on using Contexts. 4367func (c *QuickSight) ListIAMPolicyAssignmentsWithContext(ctx aws.Context, input *ListIAMPolicyAssignmentsInput, opts ...request.Option) (*ListIAMPolicyAssignmentsOutput, error) { 4368 req, out := c.ListIAMPolicyAssignmentsRequest(input) 4369 req.SetContext(ctx) 4370 req.ApplyOptions(opts...) 4371 return out, req.Send() 4372} 4373 4374const opListIAMPolicyAssignmentsForUser = "ListIAMPolicyAssignmentsForUser" 4375 4376// ListIAMPolicyAssignmentsForUserRequest generates a "aws/request.Request" representing the 4377// client's request for the ListIAMPolicyAssignmentsForUser operation. The "output" return 4378// value will be populated with the request's response once the request completes 4379// successfully. 4380// 4381// Use "Send" method on the returned Request to send the API call to the service. 4382// the "output" return value is not valid until after Send returns without error. 4383// 4384// See ListIAMPolicyAssignmentsForUser for more information on using the ListIAMPolicyAssignmentsForUser 4385// API call, and error handling. 4386// 4387// This method is useful when you want to inject custom logic or configuration 4388// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4389// 4390// 4391// // Example sending a request using the ListIAMPolicyAssignmentsForUserRequest method. 4392// req, resp := client.ListIAMPolicyAssignmentsForUserRequest(params) 4393// 4394// err := req.Send() 4395// if err == nil { // resp is now filled 4396// fmt.Println(resp) 4397// } 4398// 4399// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIAMPolicyAssignmentsForUser 4400func (c *QuickSight) ListIAMPolicyAssignmentsForUserRequest(input *ListIAMPolicyAssignmentsForUserInput) (req *request.Request, output *ListIAMPolicyAssignmentsForUserOutput) { 4401 op := &request.Operation{ 4402 Name: opListIAMPolicyAssignmentsForUser, 4403 HTTPMethod: "GET", 4404 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/iam-policy-assignments", 4405 } 4406 4407 if input == nil { 4408 input = &ListIAMPolicyAssignmentsForUserInput{} 4409 } 4410 4411 output = &ListIAMPolicyAssignmentsForUserOutput{} 4412 req = c.newRequest(op, input, output) 4413 return 4414} 4415 4416// ListIAMPolicyAssignmentsForUser API operation for Amazon QuickSight. 4417// 4418// Lists all the IAM policy assignments, including the Amazon Resource Names 4419// (ARNs) for the IAM policies assigned to the specified user and group or groups 4420// that the user belongs to. 4421// 4422// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4423// with awserr.Error's Code and Message methods to get detailed information about 4424// the error. 4425// 4426// See the AWS API reference guide for Amazon QuickSight's 4427// API operation ListIAMPolicyAssignmentsForUser for usage and error information. 4428// 4429// Returned Error Types: 4430// * AccessDeniedException 4431// You don't have access to this item. The provided credentials couldn't be 4432// validated. You might not be authorized to carry out the request. Make sure 4433// that your account is authorized to use the Amazon QuickSight service, that 4434// your policies have the correct permissions, and that you are using the correct 4435// access keys. 4436// 4437// * InvalidParameterValueException 4438// One or more parameters has a value that isn't valid. 4439// 4440// * ResourceExistsException 4441// The resource specified already exists. 4442// 4443// * ResourceNotFoundException 4444// One or more resources can't be found. 4445// 4446// * ThrottlingException 4447// Access is throttled. 4448// 4449// * ConcurrentUpdatingException 4450// A resource is already in a state that indicates an action is happening that 4451// must complete before a new update can be applied. 4452// 4453// * InternalFailureException 4454// An internal failure occurred. 4455// 4456// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIAMPolicyAssignmentsForUser 4457func (c *QuickSight) ListIAMPolicyAssignmentsForUser(input *ListIAMPolicyAssignmentsForUserInput) (*ListIAMPolicyAssignmentsForUserOutput, error) { 4458 req, out := c.ListIAMPolicyAssignmentsForUserRequest(input) 4459 return out, req.Send() 4460} 4461 4462// ListIAMPolicyAssignmentsForUserWithContext is the same as ListIAMPolicyAssignmentsForUser with the addition of 4463// the ability to pass a context and additional request options. 4464// 4465// See ListIAMPolicyAssignmentsForUser for details on how to use this API operation. 4466// 4467// The context must be non-nil and will be used for request cancellation. If 4468// the context is nil a panic will occur. In the future the SDK may create 4469// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4470// for more information on using Contexts. 4471func (c *QuickSight) ListIAMPolicyAssignmentsForUserWithContext(ctx aws.Context, input *ListIAMPolicyAssignmentsForUserInput, opts ...request.Option) (*ListIAMPolicyAssignmentsForUserOutput, error) { 4472 req, out := c.ListIAMPolicyAssignmentsForUserRequest(input) 4473 req.SetContext(ctx) 4474 req.ApplyOptions(opts...) 4475 return out, req.Send() 4476} 4477 4478const opListIngestions = "ListIngestions" 4479 4480// ListIngestionsRequest generates a "aws/request.Request" representing the 4481// client's request for the ListIngestions operation. The "output" return 4482// value will be populated with the request's response once the request completes 4483// successfully. 4484// 4485// Use "Send" method on the returned Request to send the API call to the service. 4486// the "output" return value is not valid until after Send returns without error. 4487// 4488// See ListIngestions for more information on using the ListIngestions 4489// API call, and error handling. 4490// 4491// This method is useful when you want to inject custom logic or configuration 4492// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4493// 4494// 4495// // Example sending a request using the ListIngestionsRequest method. 4496// req, resp := client.ListIngestionsRequest(params) 4497// 4498// err := req.Send() 4499// if err == nil { // resp is now filled 4500// fmt.Println(resp) 4501// } 4502// 4503// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIngestions 4504func (c *QuickSight) ListIngestionsRequest(input *ListIngestionsInput) (req *request.Request, output *ListIngestionsOutput) { 4505 op := &request.Operation{ 4506 Name: opListIngestions, 4507 HTTPMethod: "GET", 4508 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions", 4509 Paginator: &request.Paginator{ 4510 InputTokens: []string{"NextToken"}, 4511 OutputTokens: []string{"NextToken"}, 4512 LimitToken: "MaxResults", 4513 TruncationToken: "", 4514 }, 4515 } 4516 4517 if input == nil { 4518 input = &ListIngestionsInput{} 4519 } 4520 4521 output = &ListIngestionsOutput{} 4522 req = c.newRequest(op, input, output) 4523 return 4524} 4525 4526// ListIngestions API operation for Amazon QuickSight. 4527// 4528// Lists the history of SPICE ingestions for a dataset. 4529// 4530// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4531// with awserr.Error's Code and Message methods to get detailed information about 4532// the error. 4533// 4534// See the AWS API reference guide for Amazon QuickSight's 4535// API operation ListIngestions for usage and error information. 4536// 4537// Returned Error Types: 4538// * AccessDeniedException 4539// You don't have access to this item. The provided credentials couldn't be 4540// validated. You might not be authorized to carry out the request. Make sure 4541// that your account is authorized to use the Amazon QuickSight service, that 4542// your policies have the correct permissions, and that you are using the correct 4543// access keys. 4544// 4545// * InvalidParameterValueException 4546// One or more parameters has a value that isn't valid. 4547// 4548// * ResourceNotFoundException 4549// One or more resources can't be found. 4550// 4551// * ThrottlingException 4552// Access is throttled. 4553// 4554// * ResourceExistsException 4555// The resource specified already exists. 4556// 4557// * InvalidNextTokenException 4558// The NextToken value isn't valid. 4559// 4560// * InternalFailureException 4561// An internal failure occurred. 4562// 4563// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIngestions 4564func (c *QuickSight) ListIngestions(input *ListIngestionsInput) (*ListIngestionsOutput, error) { 4565 req, out := c.ListIngestionsRequest(input) 4566 return out, req.Send() 4567} 4568 4569// ListIngestionsWithContext is the same as ListIngestions with the addition of 4570// the ability to pass a context and additional request options. 4571// 4572// See ListIngestions for details on how to use this API operation. 4573// 4574// The context must be non-nil and will be used for request cancellation. If 4575// the context is nil a panic will occur. In the future the SDK may create 4576// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4577// for more information on using Contexts. 4578func (c *QuickSight) ListIngestionsWithContext(ctx aws.Context, input *ListIngestionsInput, opts ...request.Option) (*ListIngestionsOutput, error) { 4579 req, out := c.ListIngestionsRequest(input) 4580 req.SetContext(ctx) 4581 req.ApplyOptions(opts...) 4582 return out, req.Send() 4583} 4584 4585// ListIngestionsPages iterates over the pages of a ListIngestions operation, 4586// calling the "fn" function with the response data for each page. To stop 4587// iterating, return false from the fn function. 4588// 4589// See ListIngestions method for more information on how to use this operation. 4590// 4591// Note: This operation can generate multiple requests to a service. 4592// 4593// // Example iterating over at most 3 pages of a ListIngestions operation. 4594// pageNum := 0 4595// err := client.ListIngestionsPages(params, 4596// func(page *quicksight.ListIngestionsOutput, lastPage bool) bool { 4597// pageNum++ 4598// fmt.Println(page) 4599// return pageNum <= 3 4600// }) 4601// 4602func (c *QuickSight) ListIngestionsPages(input *ListIngestionsInput, fn func(*ListIngestionsOutput, bool) bool) error { 4603 return c.ListIngestionsPagesWithContext(aws.BackgroundContext(), input, fn) 4604} 4605 4606// ListIngestionsPagesWithContext same as ListIngestionsPages except 4607// it takes a Context and allows setting request options on the pages. 4608// 4609// The context must be non-nil and will be used for request cancellation. If 4610// the context is nil a panic will occur. In the future the SDK may create 4611// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4612// for more information on using Contexts. 4613func (c *QuickSight) ListIngestionsPagesWithContext(ctx aws.Context, input *ListIngestionsInput, fn func(*ListIngestionsOutput, bool) bool, opts ...request.Option) error { 4614 p := request.Pagination{ 4615 NewRequest: func() (*request.Request, error) { 4616 var inCpy *ListIngestionsInput 4617 if input != nil { 4618 tmp := *input 4619 inCpy = &tmp 4620 } 4621 req, _ := c.ListIngestionsRequest(inCpy) 4622 req.SetContext(ctx) 4623 req.ApplyOptions(opts...) 4624 return req, nil 4625 }, 4626 } 4627 4628 for p.Next() { 4629 if !fn(p.Page().(*ListIngestionsOutput), !p.HasNextPage()) { 4630 break 4631 } 4632 } 4633 4634 return p.Err() 4635} 4636 4637const opListTagsForResource = "ListTagsForResource" 4638 4639// ListTagsForResourceRequest generates a "aws/request.Request" representing the 4640// client's request for the ListTagsForResource operation. The "output" return 4641// value will be populated with the request's response once the request completes 4642// successfully. 4643// 4644// Use "Send" method on the returned Request to send the API call to the service. 4645// the "output" return value is not valid until after Send returns without error. 4646// 4647// See ListTagsForResource for more information on using the ListTagsForResource 4648// API call, and error handling. 4649// 4650// This method is useful when you want to inject custom logic or configuration 4651// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4652// 4653// 4654// // Example sending a request using the ListTagsForResourceRequest method. 4655// req, resp := client.ListTagsForResourceRequest(params) 4656// 4657// err := req.Send() 4658// if err == nil { // resp is now filled 4659// fmt.Println(resp) 4660// } 4661// 4662// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTagsForResource 4663func (c *QuickSight) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 4664 op := &request.Operation{ 4665 Name: opListTagsForResource, 4666 HTTPMethod: "GET", 4667 HTTPPath: "/resources/{ResourceArn}/tags", 4668 } 4669 4670 if input == nil { 4671 input = &ListTagsForResourceInput{} 4672 } 4673 4674 output = &ListTagsForResourceOutput{} 4675 req = c.newRequest(op, input, output) 4676 return 4677} 4678 4679// ListTagsForResource API operation for Amazon QuickSight. 4680// 4681// Lists the tags assigned to a resource. 4682// 4683// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4684// with awserr.Error's Code and Message methods to get detailed information about 4685// the error. 4686// 4687// See the AWS API reference guide for Amazon QuickSight's 4688// API operation ListTagsForResource for usage and error information. 4689// 4690// Returned Error Types: 4691// * AccessDeniedException 4692// You don't have access to this item. The provided credentials couldn't be 4693// validated. You might not be authorized to carry out the request. Make sure 4694// that your account is authorized to use the Amazon QuickSight service, that 4695// your policies have the correct permissions, and that you are using the correct 4696// access keys. 4697// 4698// * InvalidParameterValueException 4699// One or more parameters has a value that isn't valid. 4700// 4701// * ResourceNotFoundException 4702// One or more resources can't be found. 4703// 4704// * ThrottlingException 4705// Access is throttled. 4706// 4707// * InternalFailureException 4708// An internal failure occurred. 4709// 4710// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTagsForResource 4711func (c *QuickSight) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 4712 req, out := c.ListTagsForResourceRequest(input) 4713 return out, req.Send() 4714} 4715 4716// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 4717// the ability to pass a context and additional request options. 4718// 4719// See ListTagsForResource for details on how to use this API operation. 4720// 4721// The context must be non-nil and will be used for request cancellation. If 4722// the context is nil a panic will occur. In the future the SDK may create 4723// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4724// for more information on using Contexts. 4725func (c *QuickSight) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 4726 req, out := c.ListTagsForResourceRequest(input) 4727 req.SetContext(ctx) 4728 req.ApplyOptions(opts...) 4729 return out, req.Send() 4730} 4731 4732const opListTemplateAliases = "ListTemplateAliases" 4733 4734// ListTemplateAliasesRequest generates a "aws/request.Request" representing the 4735// client's request for the ListTemplateAliases operation. The "output" return 4736// value will be populated with the request's response once the request completes 4737// successfully. 4738// 4739// Use "Send" method on the returned Request to send the API call to the service. 4740// the "output" return value is not valid until after Send returns without error. 4741// 4742// See ListTemplateAliases for more information on using the ListTemplateAliases 4743// API call, and error handling. 4744// 4745// This method is useful when you want to inject custom logic or configuration 4746// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4747// 4748// 4749// // Example sending a request using the ListTemplateAliasesRequest method. 4750// req, resp := client.ListTemplateAliasesRequest(params) 4751// 4752// err := req.Send() 4753// if err == nil { // resp is now filled 4754// fmt.Println(resp) 4755// } 4756// 4757// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplateAliases 4758func (c *QuickSight) ListTemplateAliasesRequest(input *ListTemplateAliasesInput) (req *request.Request, output *ListTemplateAliasesOutput) { 4759 op := &request.Operation{ 4760 Name: opListTemplateAliases, 4761 HTTPMethod: "GET", 4762 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases", 4763 Paginator: &request.Paginator{ 4764 InputTokens: []string{"NextToken"}, 4765 OutputTokens: []string{"NextToken"}, 4766 LimitToken: "MaxResults", 4767 TruncationToken: "", 4768 }, 4769 } 4770 4771 if input == nil { 4772 input = &ListTemplateAliasesInput{} 4773 } 4774 4775 output = &ListTemplateAliasesOutput{} 4776 req = c.newRequest(op, input, output) 4777 return 4778} 4779 4780// ListTemplateAliases API operation for Amazon QuickSight. 4781// 4782// Lists all the aliases of a template. 4783// 4784// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4785// with awserr.Error's Code and Message methods to get detailed information about 4786// the error. 4787// 4788// See the AWS API reference guide for Amazon QuickSight's 4789// API operation ListTemplateAliases for usage and error information. 4790// 4791// Returned Error Types: 4792// * ThrottlingException 4793// Access is throttled. 4794// 4795// * ResourceNotFoundException 4796// One or more resources can't be found. 4797// 4798// * UnsupportedUserEditionException 4799// This error indicates that you are calling an operation on an Amazon QuickSight 4800// subscription where the edition doesn't include support for that operation. 4801// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 4802// Not every operation and capability is available in every edition. 4803// 4804// * InternalFailureException 4805// An internal failure occurred. 4806// 4807// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplateAliases 4808func (c *QuickSight) ListTemplateAliases(input *ListTemplateAliasesInput) (*ListTemplateAliasesOutput, error) { 4809 req, out := c.ListTemplateAliasesRequest(input) 4810 return out, req.Send() 4811} 4812 4813// ListTemplateAliasesWithContext is the same as ListTemplateAliases with the addition of 4814// the ability to pass a context and additional request options. 4815// 4816// See ListTemplateAliases for details on how to use this API operation. 4817// 4818// The context must be non-nil and will be used for request cancellation. If 4819// the context is nil a panic will occur. In the future the SDK may create 4820// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4821// for more information on using Contexts. 4822func (c *QuickSight) ListTemplateAliasesWithContext(ctx aws.Context, input *ListTemplateAliasesInput, opts ...request.Option) (*ListTemplateAliasesOutput, error) { 4823 req, out := c.ListTemplateAliasesRequest(input) 4824 req.SetContext(ctx) 4825 req.ApplyOptions(opts...) 4826 return out, req.Send() 4827} 4828 4829// ListTemplateAliasesPages iterates over the pages of a ListTemplateAliases operation, 4830// calling the "fn" function with the response data for each page. To stop 4831// iterating, return false from the fn function. 4832// 4833// See ListTemplateAliases method for more information on how to use this operation. 4834// 4835// Note: This operation can generate multiple requests to a service. 4836// 4837// // Example iterating over at most 3 pages of a ListTemplateAliases operation. 4838// pageNum := 0 4839// err := client.ListTemplateAliasesPages(params, 4840// func(page *quicksight.ListTemplateAliasesOutput, lastPage bool) bool { 4841// pageNum++ 4842// fmt.Println(page) 4843// return pageNum <= 3 4844// }) 4845// 4846func (c *QuickSight) ListTemplateAliasesPages(input *ListTemplateAliasesInput, fn func(*ListTemplateAliasesOutput, bool) bool) error { 4847 return c.ListTemplateAliasesPagesWithContext(aws.BackgroundContext(), input, fn) 4848} 4849 4850// ListTemplateAliasesPagesWithContext same as ListTemplateAliasesPages except 4851// it takes a Context and allows setting request options on the pages. 4852// 4853// The context must be non-nil and will be used for request cancellation. If 4854// the context is nil a panic will occur. In the future the SDK may create 4855// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4856// for more information on using Contexts. 4857func (c *QuickSight) ListTemplateAliasesPagesWithContext(ctx aws.Context, input *ListTemplateAliasesInput, fn func(*ListTemplateAliasesOutput, bool) bool, opts ...request.Option) error { 4858 p := request.Pagination{ 4859 NewRequest: func() (*request.Request, error) { 4860 var inCpy *ListTemplateAliasesInput 4861 if input != nil { 4862 tmp := *input 4863 inCpy = &tmp 4864 } 4865 req, _ := c.ListTemplateAliasesRequest(inCpy) 4866 req.SetContext(ctx) 4867 req.ApplyOptions(opts...) 4868 return req, nil 4869 }, 4870 } 4871 4872 for p.Next() { 4873 if !fn(p.Page().(*ListTemplateAliasesOutput), !p.HasNextPage()) { 4874 break 4875 } 4876 } 4877 4878 return p.Err() 4879} 4880 4881const opListTemplateVersions = "ListTemplateVersions" 4882 4883// ListTemplateVersionsRequest generates a "aws/request.Request" representing the 4884// client's request for the ListTemplateVersions operation. The "output" return 4885// value will be populated with the request's response once the request completes 4886// successfully. 4887// 4888// Use "Send" method on the returned Request to send the API call to the service. 4889// the "output" return value is not valid until after Send returns without error. 4890// 4891// See ListTemplateVersions for more information on using the ListTemplateVersions 4892// API call, and error handling. 4893// 4894// This method is useful when you want to inject custom logic or configuration 4895// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4896// 4897// 4898// // Example sending a request using the ListTemplateVersionsRequest method. 4899// req, resp := client.ListTemplateVersionsRequest(params) 4900// 4901// err := req.Send() 4902// if err == nil { // resp is now filled 4903// fmt.Println(resp) 4904// } 4905// 4906// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplateVersions 4907func (c *QuickSight) ListTemplateVersionsRequest(input *ListTemplateVersionsInput) (req *request.Request, output *ListTemplateVersionsOutput) { 4908 op := &request.Operation{ 4909 Name: opListTemplateVersions, 4910 HTTPMethod: "GET", 4911 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/versions", 4912 Paginator: &request.Paginator{ 4913 InputTokens: []string{"NextToken"}, 4914 OutputTokens: []string{"NextToken"}, 4915 LimitToken: "MaxResults", 4916 TruncationToken: "", 4917 }, 4918 } 4919 4920 if input == nil { 4921 input = &ListTemplateVersionsInput{} 4922 } 4923 4924 output = &ListTemplateVersionsOutput{} 4925 req = c.newRequest(op, input, output) 4926 return 4927} 4928 4929// ListTemplateVersions API operation for Amazon QuickSight. 4930// 4931// Lists all the versions of the templates in the current Amazon QuickSight 4932// account. 4933// 4934// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4935// with awserr.Error's Code and Message methods to get detailed information about 4936// the error. 4937// 4938// See the AWS API reference guide for Amazon QuickSight's 4939// API operation ListTemplateVersions for usage and error information. 4940// 4941// Returned Error Types: 4942// * ThrottlingException 4943// Access is throttled. 4944// 4945// * InvalidParameterValueException 4946// One or more parameters has a value that isn't valid. 4947// 4948// * ResourceNotFoundException 4949// One or more resources can't be found. 4950// 4951// * InvalidNextTokenException 4952// The NextToken value isn't valid. 4953// 4954// * UnsupportedUserEditionException 4955// This error indicates that you are calling an operation on an Amazon QuickSight 4956// subscription where the edition doesn't include support for that operation. 4957// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 4958// Not every operation and capability is available in every edition. 4959// 4960// * InternalFailureException 4961// An internal failure occurred. 4962// 4963// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplateVersions 4964func (c *QuickSight) ListTemplateVersions(input *ListTemplateVersionsInput) (*ListTemplateVersionsOutput, error) { 4965 req, out := c.ListTemplateVersionsRequest(input) 4966 return out, req.Send() 4967} 4968 4969// ListTemplateVersionsWithContext is the same as ListTemplateVersions with the addition of 4970// the ability to pass a context and additional request options. 4971// 4972// See ListTemplateVersions for details on how to use this API operation. 4973// 4974// The context must be non-nil and will be used for request cancellation. If 4975// the context is nil a panic will occur. In the future the SDK may create 4976// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4977// for more information on using Contexts. 4978func (c *QuickSight) ListTemplateVersionsWithContext(ctx aws.Context, input *ListTemplateVersionsInput, opts ...request.Option) (*ListTemplateVersionsOutput, error) { 4979 req, out := c.ListTemplateVersionsRequest(input) 4980 req.SetContext(ctx) 4981 req.ApplyOptions(opts...) 4982 return out, req.Send() 4983} 4984 4985// ListTemplateVersionsPages iterates over the pages of a ListTemplateVersions operation, 4986// calling the "fn" function with the response data for each page. To stop 4987// iterating, return false from the fn function. 4988// 4989// See ListTemplateVersions method for more information on how to use this operation. 4990// 4991// Note: This operation can generate multiple requests to a service. 4992// 4993// // Example iterating over at most 3 pages of a ListTemplateVersions operation. 4994// pageNum := 0 4995// err := client.ListTemplateVersionsPages(params, 4996// func(page *quicksight.ListTemplateVersionsOutput, lastPage bool) bool { 4997// pageNum++ 4998// fmt.Println(page) 4999// return pageNum <= 3 5000// }) 5001// 5002func (c *QuickSight) ListTemplateVersionsPages(input *ListTemplateVersionsInput, fn func(*ListTemplateVersionsOutput, bool) bool) error { 5003 return c.ListTemplateVersionsPagesWithContext(aws.BackgroundContext(), input, fn) 5004} 5005 5006// ListTemplateVersionsPagesWithContext same as ListTemplateVersionsPages except 5007// it takes a Context and allows setting request options on the pages. 5008// 5009// The context must be non-nil and will be used for request cancellation. If 5010// the context is nil a panic will occur. In the future the SDK may create 5011// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5012// for more information on using Contexts. 5013func (c *QuickSight) ListTemplateVersionsPagesWithContext(ctx aws.Context, input *ListTemplateVersionsInput, fn func(*ListTemplateVersionsOutput, bool) bool, opts ...request.Option) error { 5014 p := request.Pagination{ 5015 NewRequest: func() (*request.Request, error) { 5016 var inCpy *ListTemplateVersionsInput 5017 if input != nil { 5018 tmp := *input 5019 inCpy = &tmp 5020 } 5021 req, _ := c.ListTemplateVersionsRequest(inCpy) 5022 req.SetContext(ctx) 5023 req.ApplyOptions(opts...) 5024 return req, nil 5025 }, 5026 } 5027 5028 for p.Next() { 5029 if !fn(p.Page().(*ListTemplateVersionsOutput), !p.HasNextPage()) { 5030 break 5031 } 5032 } 5033 5034 return p.Err() 5035} 5036 5037const opListTemplates = "ListTemplates" 5038 5039// ListTemplatesRequest generates a "aws/request.Request" representing the 5040// client's request for the ListTemplates operation. The "output" return 5041// value will be populated with the request's response once the request completes 5042// successfully. 5043// 5044// Use "Send" method on the returned Request to send the API call to the service. 5045// the "output" return value is not valid until after Send returns without error. 5046// 5047// See ListTemplates for more information on using the ListTemplates 5048// API call, and error handling. 5049// 5050// This method is useful when you want to inject custom logic or configuration 5051// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5052// 5053// 5054// // Example sending a request using the ListTemplatesRequest method. 5055// req, resp := client.ListTemplatesRequest(params) 5056// 5057// err := req.Send() 5058// if err == nil { // resp is now filled 5059// fmt.Println(resp) 5060// } 5061// 5062// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplates 5063func (c *QuickSight) ListTemplatesRequest(input *ListTemplatesInput) (req *request.Request, output *ListTemplatesOutput) { 5064 op := &request.Operation{ 5065 Name: opListTemplates, 5066 HTTPMethod: "GET", 5067 HTTPPath: "/accounts/{AwsAccountId}/templates", 5068 Paginator: &request.Paginator{ 5069 InputTokens: []string{"NextToken"}, 5070 OutputTokens: []string{"NextToken"}, 5071 LimitToken: "MaxResults", 5072 TruncationToken: "", 5073 }, 5074 } 5075 5076 if input == nil { 5077 input = &ListTemplatesInput{} 5078 } 5079 5080 output = &ListTemplatesOutput{} 5081 req = c.newRequest(op, input, output) 5082 return 5083} 5084 5085// ListTemplates API operation for Amazon QuickSight. 5086// 5087// Lists all the templates in the current Amazon QuickSight account. 5088// 5089// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5090// with awserr.Error's Code and Message methods to get detailed information about 5091// the error. 5092// 5093// See the AWS API reference guide for Amazon QuickSight's 5094// API operation ListTemplates for usage and error information. 5095// 5096// Returned Error Types: 5097// * ThrottlingException 5098// Access is throttled. 5099// 5100// * InvalidParameterValueException 5101// One or more parameters has a value that isn't valid. 5102// 5103// * ResourceNotFoundException 5104// One or more resources can't be found. 5105// 5106// * InvalidNextTokenException 5107// The NextToken value isn't valid. 5108// 5109// * UnsupportedUserEditionException 5110// This error indicates that you are calling an operation on an Amazon QuickSight 5111// subscription where the edition doesn't include support for that operation. 5112// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 5113// Not every operation and capability is available in every edition. 5114// 5115// * InternalFailureException 5116// An internal failure occurred. 5117// 5118// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplates 5119func (c *QuickSight) ListTemplates(input *ListTemplatesInput) (*ListTemplatesOutput, error) { 5120 req, out := c.ListTemplatesRequest(input) 5121 return out, req.Send() 5122} 5123 5124// ListTemplatesWithContext is the same as ListTemplates with the addition of 5125// the ability to pass a context and additional request options. 5126// 5127// See ListTemplates for details on how to use this API operation. 5128// 5129// The context must be non-nil and will be used for request cancellation. If 5130// the context is nil a panic will occur. In the future the SDK may create 5131// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5132// for more information on using Contexts. 5133func (c *QuickSight) ListTemplatesWithContext(ctx aws.Context, input *ListTemplatesInput, opts ...request.Option) (*ListTemplatesOutput, error) { 5134 req, out := c.ListTemplatesRequest(input) 5135 req.SetContext(ctx) 5136 req.ApplyOptions(opts...) 5137 return out, req.Send() 5138} 5139 5140// ListTemplatesPages iterates over the pages of a ListTemplates operation, 5141// calling the "fn" function with the response data for each page. To stop 5142// iterating, return false from the fn function. 5143// 5144// See ListTemplates method for more information on how to use this operation. 5145// 5146// Note: This operation can generate multiple requests to a service. 5147// 5148// // Example iterating over at most 3 pages of a ListTemplates operation. 5149// pageNum := 0 5150// err := client.ListTemplatesPages(params, 5151// func(page *quicksight.ListTemplatesOutput, lastPage bool) bool { 5152// pageNum++ 5153// fmt.Println(page) 5154// return pageNum <= 3 5155// }) 5156// 5157func (c *QuickSight) ListTemplatesPages(input *ListTemplatesInput, fn func(*ListTemplatesOutput, bool) bool) error { 5158 return c.ListTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) 5159} 5160 5161// ListTemplatesPagesWithContext same as ListTemplatesPages except 5162// it takes a Context and allows setting request options on the pages. 5163// 5164// The context must be non-nil and will be used for request cancellation. If 5165// the context is nil a panic will occur. In the future the SDK may create 5166// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5167// for more information on using Contexts. 5168func (c *QuickSight) ListTemplatesPagesWithContext(ctx aws.Context, input *ListTemplatesInput, fn func(*ListTemplatesOutput, bool) bool, opts ...request.Option) error { 5169 p := request.Pagination{ 5170 NewRequest: func() (*request.Request, error) { 5171 var inCpy *ListTemplatesInput 5172 if input != nil { 5173 tmp := *input 5174 inCpy = &tmp 5175 } 5176 req, _ := c.ListTemplatesRequest(inCpy) 5177 req.SetContext(ctx) 5178 req.ApplyOptions(opts...) 5179 return req, nil 5180 }, 5181 } 5182 5183 for p.Next() { 5184 if !fn(p.Page().(*ListTemplatesOutput), !p.HasNextPage()) { 5185 break 5186 } 5187 } 5188 5189 return p.Err() 5190} 5191 5192const opListUserGroups = "ListUserGroups" 5193 5194// ListUserGroupsRequest generates a "aws/request.Request" representing the 5195// client's request for the ListUserGroups operation. The "output" return 5196// value will be populated with the request's response once the request completes 5197// successfully. 5198// 5199// Use "Send" method on the returned Request to send the API call to the service. 5200// the "output" return value is not valid until after Send returns without error. 5201// 5202// See ListUserGroups for more information on using the ListUserGroups 5203// API call, and error handling. 5204// 5205// This method is useful when you want to inject custom logic or configuration 5206// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5207// 5208// 5209// // Example sending a request using the ListUserGroupsRequest method. 5210// req, resp := client.ListUserGroupsRequest(params) 5211// 5212// err := req.Send() 5213// if err == nil { // resp is now filled 5214// fmt.Println(resp) 5215// } 5216// 5217// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUserGroups 5218func (c *QuickSight) ListUserGroupsRequest(input *ListUserGroupsInput) (req *request.Request, output *ListUserGroupsOutput) { 5219 op := &request.Operation{ 5220 Name: opListUserGroups, 5221 HTTPMethod: "GET", 5222 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups", 5223 } 5224 5225 if input == nil { 5226 input = &ListUserGroupsInput{} 5227 } 5228 5229 output = &ListUserGroupsOutput{} 5230 req = c.newRequest(op, input, output) 5231 return 5232} 5233 5234// ListUserGroups API operation for Amazon QuickSight. 5235// 5236// Lists the Amazon QuickSight groups that an Amazon QuickSight user is a member 5237// of. 5238// 5239// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5240// with awserr.Error's Code and Message methods to get detailed information about 5241// the error. 5242// 5243// See the AWS API reference guide for Amazon QuickSight's 5244// API operation ListUserGroups for usage and error information. 5245// 5246// Returned Error Types: 5247// * AccessDeniedException 5248// You don't have access to this item. The provided credentials couldn't be 5249// validated. You might not be authorized to carry out the request. Make sure 5250// that your account is authorized to use the Amazon QuickSight service, that 5251// your policies have the correct permissions, and that you are using the correct 5252// access keys. 5253// 5254// * InvalidParameterValueException 5255// One or more parameters has a value that isn't valid. 5256// 5257// * ResourceNotFoundException 5258// One or more resources can't be found. 5259// 5260// * ThrottlingException 5261// Access is throttled. 5262// 5263// * InternalFailureException 5264// An internal failure occurred. 5265// 5266// * ResourceUnavailableException 5267// This resource is currently unavailable. 5268// 5269// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUserGroups 5270func (c *QuickSight) ListUserGroups(input *ListUserGroupsInput) (*ListUserGroupsOutput, error) { 5271 req, out := c.ListUserGroupsRequest(input) 5272 return out, req.Send() 5273} 5274 5275// ListUserGroupsWithContext is the same as ListUserGroups with the addition of 5276// the ability to pass a context and additional request options. 5277// 5278// See ListUserGroups for details on how to use this API operation. 5279// 5280// The context must be non-nil and will be used for request cancellation. If 5281// the context is nil a panic will occur. In the future the SDK may create 5282// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5283// for more information on using Contexts. 5284func (c *QuickSight) ListUserGroupsWithContext(ctx aws.Context, input *ListUserGroupsInput, opts ...request.Option) (*ListUserGroupsOutput, error) { 5285 req, out := c.ListUserGroupsRequest(input) 5286 req.SetContext(ctx) 5287 req.ApplyOptions(opts...) 5288 return out, req.Send() 5289} 5290 5291const opListUsers = "ListUsers" 5292 5293// ListUsersRequest generates a "aws/request.Request" representing the 5294// client's request for the ListUsers operation. The "output" return 5295// value will be populated with the request's response once the request completes 5296// successfully. 5297// 5298// Use "Send" method on the returned Request to send the API call to the service. 5299// the "output" return value is not valid until after Send returns without error. 5300// 5301// See ListUsers for more information on using the ListUsers 5302// API call, and error handling. 5303// 5304// This method is useful when you want to inject custom logic or configuration 5305// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5306// 5307// 5308// // Example sending a request using the ListUsersRequest method. 5309// req, resp := client.ListUsersRequest(params) 5310// 5311// err := req.Send() 5312// if err == nil { // resp is now filled 5313// fmt.Println(resp) 5314// } 5315// 5316// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUsers 5317func (c *QuickSight) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { 5318 op := &request.Operation{ 5319 Name: opListUsers, 5320 HTTPMethod: "GET", 5321 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users", 5322 } 5323 5324 if input == nil { 5325 input = &ListUsersInput{} 5326 } 5327 5328 output = &ListUsersOutput{} 5329 req = c.newRequest(op, input, output) 5330 return 5331} 5332 5333// ListUsers API operation for Amazon QuickSight. 5334// 5335// Returns a list of all of the Amazon QuickSight users belonging to this account. 5336// 5337// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5338// with awserr.Error's Code and Message methods to get detailed information about 5339// the error. 5340// 5341// See the AWS API reference guide for Amazon QuickSight's 5342// API operation ListUsers for usage and error information. 5343// 5344// Returned Error Types: 5345// * AccessDeniedException 5346// You don't have access to this item. The provided credentials couldn't be 5347// validated. You might not be authorized to carry out the request. Make sure 5348// that your account is authorized to use the Amazon QuickSight service, that 5349// your policies have the correct permissions, and that you are using the correct 5350// access keys. 5351// 5352// * InvalidParameterValueException 5353// One or more parameters has a value that isn't valid. 5354// 5355// * ResourceNotFoundException 5356// One or more resources can't be found. 5357// 5358// * ThrottlingException 5359// Access is throttled. 5360// 5361// * InvalidNextTokenException 5362// The NextToken value isn't valid. 5363// 5364// * InternalFailureException 5365// An internal failure occurred. 5366// 5367// * ResourceUnavailableException 5368// This resource is currently unavailable. 5369// 5370// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUsers 5371func (c *QuickSight) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { 5372 req, out := c.ListUsersRequest(input) 5373 return out, req.Send() 5374} 5375 5376// ListUsersWithContext is the same as ListUsers with the addition of 5377// the ability to pass a context and additional request options. 5378// 5379// See ListUsers for details on how to use this API operation. 5380// 5381// The context must be non-nil and will be used for request cancellation. If 5382// the context is nil a panic will occur. In the future the SDK may create 5383// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5384// for more information on using Contexts. 5385func (c *QuickSight) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { 5386 req, out := c.ListUsersRequest(input) 5387 req.SetContext(ctx) 5388 req.ApplyOptions(opts...) 5389 return out, req.Send() 5390} 5391 5392const opRegisterUser = "RegisterUser" 5393 5394// RegisterUserRequest generates a "aws/request.Request" representing the 5395// client's request for the RegisterUser operation. The "output" return 5396// value will be populated with the request's response once the request completes 5397// successfully. 5398// 5399// Use "Send" method on the returned Request to send the API call to the service. 5400// the "output" return value is not valid until after Send returns without error. 5401// 5402// See RegisterUser for more information on using the RegisterUser 5403// API call, and error handling. 5404// 5405// This method is useful when you want to inject custom logic or configuration 5406// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5407// 5408// 5409// // Example sending a request using the RegisterUserRequest method. 5410// req, resp := client.RegisterUserRequest(params) 5411// 5412// err := req.Send() 5413// if err == nil { // resp is now filled 5414// fmt.Println(resp) 5415// } 5416// 5417// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/RegisterUser 5418func (c *QuickSight) RegisterUserRequest(input *RegisterUserInput) (req *request.Request, output *RegisterUserOutput) { 5419 op := &request.Operation{ 5420 Name: opRegisterUser, 5421 HTTPMethod: "POST", 5422 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users", 5423 } 5424 5425 if input == nil { 5426 input = &RegisterUserInput{} 5427 } 5428 5429 output = &RegisterUserOutput{} 5430 req = c.newRequest(op, input, output) 5431 return 5432} 5433 5434// RegisterUser API operation for Amazon QuickSight. 5435// 5436// Creates an Amazon QuickSight user, whose identity is associated with the 5437// AWS Identity and Access Management (IAM) identity or role specified in the 5438// request. 5439// 5440// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5441// with awserr.Error's Code and Message methods to get detailed information about 5442// the error. 5443// 5444// See the AWS API reference guide for Amazon QuickSight's 5445// API operation RegisterUser for usage and error information. 5446// 5447// Returned Error Types: 5448// * AccessDeniedException 5449// You don't have access to this item. The provided credentials couldn't be 5450// validated. You might not be authorized to carry out the request. Make sure 5451// that your account is authorized to use the Amazon QuickSight service, that 5452// your policies have the correct permissions, and that you are using the correct 5453// access keys. 5454// 5455// * InvalidParameterValueException 5456// One or more parameters has a value that isn't valid. 5457// 5458// * ResourceNotFoundException 5459// One or more resources can't be found. 5460// 5461// * ThrottlingException 5462// Access is throttled. 5463// 5464// * LimitExceededException 5465// A limit is exceeded. 5466// 5467// * ResourceExistsException 5468// The resource specified already exists. 5469// 5470// * PreconditionNotMetException 5471// One or more preconditions aren't met. 5472// 5473// * InternalFailureException 5474// An internal failure occurred. 5475// 5476// * ResourceUnavailableException 5477// This resource is currently unavailable. 5478// 5479// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/RegisterUser 5480func (c *QuickSight) RegisterUser(input *RegisterUserInput) (*RegisterUserOutput, error) { 5481 req, out := c.RegisterUserRequest(input) 5482 return out, req.Send() 5483} 5484 5485// RegisterUserWithContext is the same as RegisterUser with the addition of 5486// the ability to pass a context and additional request options. 5487// 5488// See RegisterUser for details on how to use this API operation. 5489// 5490// The context must be non-nil and will be used for request cancellation. If 5491// the context is nil a panic will occur. In the future the SDK may create 5492// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5493// for more information on using Contexts. 5494func (c *QuickSight) RegisterUserWithContext(ctx aws.Context, input *RegisterUserInput, opts ...request.Option) (*RegisterUserOutput, error) { 5495 req, out := c.RegisterUserRequest(input) 5496 req.SetContext(ctx) 5497 req.ApplyOptions(opts...) 5498 return out, req.Send() 5499} 5500 5501const opSearchDashboards = "SearchDashboards" 5502 5503// SearchDashboardsRequest generates a "aws/request.Request" representing the 5504// client's request for the SearchDashboards operation. The "output" return 5505// value will be populated with the request's response once the request completes 5506// successfully. 5507// 5508// Use "Send" method on the returned Request to send the API call to the service. 5509// the "output" return value is not valid until after Send returns without error. 5510// 5511// See SearchDashboards for more information on using the SearchDashboards 5512// API call, and error handling. 5513// 5514// This method is useful when you want to inject custom logic or configuration 5515// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5516// 5517// 5518// // Example sending a request using the SearchDashboardsRequest method. 5519// req, resp := client.SearchDashboardsRequest(params) 5520// 5521// err := req.Send() 5522// if err == nil { // resp is now filled 5523// fmt.Println(resp) 5524// } 5525// 5526// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/SearchDashboards 5527func (c *QuickSight) SearchDashboardsRequest(input *SearchDashboardsInput) (req *request.Request, output *SearchDashboardsOutput) { 5528 op := &request.Operation{ 5529 Name: opSearchDashboards, 5530 HTTPMethod: "POST", 5531 HTTPPath: "/accounts/{AwsAccountId}/search/dashboards", 5532 Paginator: &request.Paginator{ 5533 InputTokens: []string{"NextToken"}, 5534 OutputTokens: []string{"NextToken"}, 5535 LimitToken: "MaxResults", 5536 TruncationToken: "", 5537 }, 5538 } 5539 5540 if input == nil { 5541 input = &SearchDashboardsInput{} 5542 } 5543 5544 output = &SearchDashboardsOutput{} 5545 req = c.newRequest(op, input, output) 5546 return 5547} 5548 5549// SearchDashboards API operation for Amazon QuickSight. 5550// 5551// Searchs for dashboards that belong to a user. 5552// 5553// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5554// with awserr.Error's Code and Message methods to get detailed information about 5555// the error. 5556// 5557// See the AWS API reference guide for Amazon QuickSight's 5558// API operation SearchDashboards for usage and error information. 5559// 5560// Returned Error Types: 5561// * ThrottlingException 5562// Access is throttled. 5563// 5564// * ResourceNotFoundException 5565// One or more resources can't be found. 5566// 5567// * InvalidParameterValueException 5568// One or more parameters has a value that isn't valid. 5569// 5570// * UnsupportedUserEditionException 5571// This error indicates that you are calling an operation on an Amazon QuickSight 5572// subscription where the edition doesn't include support for that operation. 5573// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 5574// Not every operation and capability is available in every edition. 5575// 5576// * InvalidNextTokenException 5577// The NextToken value isn't valid. 5578// 5579// * InternalFailureException 5580// An internal failure occurred. 5581// 5582// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/SearchDashboards 5583func (c *QuickSight) SearchDashboards(input *SearchDashboardsInput) (*SearchDashboardsOutput, error) { 5584 req, out := c.SearchDashboardsRequest(input) 5585 return out, req.Send() 5586} 5587 5588// SearchDashboardsWithContext is the same as SearchDashboards with the addition of 5589// the ability to pass a context and additional request options. 5590// 5591// See SearchDashboards for details on how to use this API operation. 5592// 5593// The context must be non-nil and will be used for request cancellation. If 5594// the context is nil a panic will occur. In the future the SDK may create 5595// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5596// for more information on using Contexts. 5597func (c *QuickSight) SearchDashboardsWithContext(ctx aws.Context, input *SearchDashboardsInput, opts ...request.Option) (*SearchDashboardsOutput, error) { 5598 req, out := c.SearchDashboardsRequest(input) 5599 req.SetContext(ctx) 5600 req.ApplyOptions(opts...) 5601 return out, req.Send() 5602} 5603 5604// SearchDashboardsPages iterates over the pages of a SearchDashboards operation, 5605// calling the "fn" function with the response data for each page. To stop 5606// iterating, return false from the fn function. 5607// 5608// See SearchDashboards method for more information on how to use this operation. 5609// 5610// Note: This operation can generate multiple requests to a service. 5611// 5612// // Example iterating over at most 3 pages of a SearchDashboards operation. 5613// pageNum := 0 5614// err := client.SearchDashboardsPages(params, 5615// func(page *quicksight.SearchDashboardsOutput, lastPage bool) bool { 5616// pageNum++ 5617// fmt.Println(page) 5618// return pageNum <= 3 5619// }) 5620// 5621func (c *QuickSight) SearchDashboardsPages(input *SearchDashboardsInput, fn func(*SearchDashboardsOutput, bool) bool) error { 5622 return c.SearchDashboardsPagesWithContext(aws.BackgroundContext(), input, fn) 5623} 5624 5625// SearchDashboardsPagesWithContext same as SearchDashboardsPages except 5626// it takes a Context and allows setting request options on the pages. 5627// 5628// The context must be non-nil and will be used for request cancellation. If 5629// the context is nil a panic will occur. In the future the SDK may create 5630// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5631// for more information on using Contexts. 5632func (c *QuickSight) SearchDashboardsPagesWithContext(ctx aws.Context, input *SearchDashboardsInput, fn func(*SearchDashboardsOutput, bool) bool, opts ...request.Option) error { 5633 p := request.Pagination{ 5634 NewRequest: func() (*request.Request, error) { 5635 var inCpy *SearchDashboardsInput 5636 if input != nil { 5637 tmp := *input 5638 inCpy = &tmp 5639 } 5640 req, _ := c.SearchDashboardsRequest(inCpy) 5641 req.SetContext(ctx) 5642 req.ApplyOptions(opts...) 5643 return req, nil 5644 }, 5645 } 5646 5647 for p.Next() { 5648 if !fn(p.Page().(*SearchDashboardsOutput), !p.HasNextPage()) { 5649 break 5650 } 5651 } 5652 5653 return p.Err() 5654} 5655 5656const opTagResource = "TagResource" 5657 5658// TagResourceRequest generates a "aws/request.Request" representing the 5659// client's request for the TagResource operation. The "output" return 5660// value will be populated with the request's response once the request completes 5661// successfully. 5662// 5663// Use "Send" method on the returned Request to send the API call to the service. 5664// the "output" return value is not valid until after Send returns without error. 5665// 5666// See TagResource for more information on using the TagResource 5667// API call, and error handling. 5668// 5669// This method is useful when you want to inject custom logic or configuration 5670// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5671// 5672// 5673// // Example sending a request using the TagResourceRequest method. 5674// req, resp := client.TagResourceRequest(params) 5675// 5676// err := req.Send() 5677// if err == nil { // resp is now filled 5678// fmt.Println(resp) 5679// } 5680// 5681// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/TagResource 5682func (c *QuickSight) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 5683 op := &request.Operation{ 5684 Name: opTagResource, 5685 HTTPMethod: "POST", 5686 HTTPPath: "/resources/{ResourceArn}/tags", 5687 } 5688 5689 if input == nil { 5690 input = &TagResourceInput{} 5691 } 5692 5693 output = &TagResourceOutput{} 5694 req = c.newRequest(op, input, output) 5695 return 5696} 5697 5698// TagResource API operation for Amazon QuickSight. 5699// 5700// Assigns one or more tags (key-value pairs) to the specified QuickSight resource. 5701// 5702// Tags can help you organize and categorize your resources. You can also use 5703// them to scope user permissions, by granting a user permission to access or 5704// change only resources with certain tag values. You can use the TagResource 5705// operation with a resource that already has tags. If you specify a new tag 5706// key for the resource, this tag is appended to the list of tags associated 5707// with the resource. If you specify a tag key that is already associated with 5708// the resource, the new tag value that you specify replaces the previous value 5709// for that tag. 5710// 5711// You can associate as many as 50 tags with a resource. QuickSight supports 5712// tagging on data set, data source, dashboard, and template. 5713// 5714// Tagging for QuickSight works in a similar way to tagging for other AWS services, 5715// except for the following: 5716// 5717// * You can't use tags to track AWS costs for QuickSight. This restriction 5718// is because QuickSight costs are based on users and SPICE capacity, which 5719// aren't taggable resources. 5720// 5721// * QuickSight doesn't currently support the Tag Editor for AWS Resource 5722// Groups. 5723// 5724// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5725// with awserr.Error's Code and Message methods to get detailed information about 5726// the error. 5727// 5728// See the AWS API reference guide for Amazon QuickSight's 5729// API operation TagResource for usage and error information. 5730// 5731// Returned Error Types: 5732// * LimitExceededException 5733// A limit is exceeded. 5734// 5735// * AccessDeniedException 5736// You don't have access to this item. The provided credentials couldn't be 5737// validated. You might not be authorized to carry out the request. Make sure 5738// that your account is authorized to use the Amazon QuickSight service, that 5739// your policies have the correct permissions, and that you are using the correct 5740// access keys. 5741// 5742// * InvalidParameterValueException 5743// One or more parameters has a value that isn't valid. 5744// 5745// * ResourceNotFoundException 5746// One or more resources can't be found. 5747// 5748// * ThrottlingException 5749// Access is throttled. 5750// 5751// * InternalFailureException 5752// An internal failure occurred. 5753// 5754// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/TagResource 5755func (c *QuickSight) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 5756 req, out := c.TagResourceRequest(input) 5757 return out, req.Send() 5758} 5759 5760// TagResourceWithContext is the same as TagResource with the addition of 5761// the ability to pass a context and additional request options. 5762// 5763// See TagResource for details on how to use this API operation. 5764// 5765// The context must be non-nil and will be used for request cancellation. If 5766// the context is nil a panic will occur. In the future the SDK may create 5767// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5768// for more information on using Contexts. 5769func (c *QuickSight) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 5770 req, out := c.TagResourceRequest(input) 5771 req.SetContext(ctx) 5772 req.ApplyOptions(opts...) 5773 return out, req.Send() 5774} 5775 5776const opUntagResource = "UntagResource" 5777 5778// UntagResourceRequest generates a "aws/request.Request" representing the 5779// client's request for the UntagResource operation. The "output" return 5780// value will be populated with the request's response once the request completes 5781// successfully. 5782// 5783// Use "Send" method on the returned Request to send the API call to the service. 5784// the "output" return value is not valid until after Send returns without error. 5785// 5786// See UntagResource for more information on using the UntagResource 5787// API call, and error handling. 5788// 5789// This method is useful when you want to inject custom logic or configuration 5790// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5791// 5792// 5793// // Example sending a request using the UntagResourceRequest method. 5794// req, resp := client.UntagResourceRequest(params) 5795// 5796// err := req.Send() 5797// if err == nil { // resp is now filled 5798// fmt.Println(resp) 5799// } 5800// 5801// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UntagResource 5802func (c *QuickSight) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 5803 op := &request.Operation{ 5804 Name: opUntagResource, 5805 HTTPMethod: "DELETE", 5806 HTTPPath: "/resources/{ResourceArn}/tags", 5807 } 5808 5809 if input == nil { 5810 input = &UntagResourceInput{} 5811 } 5812 5813 output = &UntagResourceOutput{} 5814 req = c.newRequest(op, input, output) 5815 return 5816} 5817 5818// UntagResource API operation for Amazon QuickSight. 5819// 5820// Removes a tag or tags from a resource. 5821// 5822// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5823// with awserr.Error's Code and Message methods to get detailed information about 5824// the error. 5825// 5826// See the AWS API reference guide for Amazon QuickSight's 5827// API operation UntagResource for usage and error information. 5828// 5829// Returned Error Types: 5830// * AccessDeniedException 5831// You don't have access to this item. The provided credentials couldn't be 5832// validated. You might not be authorized to carry out the request. Make sure 5833// that your account is authorized to use the Amazon QuickSight service, that 5834// your policies have the correct permissions, and that you are using the correct 5835// access keys. 5836// 5837// * InvalidParameterValueException 5838// One or more parameters has a value that isn't valid. 5839// 5840// * ResourceNotFoundException 5841// One or more resources can't be found. 5842// 5843// * ThrottlingException 5844// Access is throttled. 5845// 5846// * InternalFailureException 5847// An internal failure occurred. 5848// 5849// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UntagResource 5850func (c *QuickSight) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 5851 req, out := c.UntagResourceRequest(input) 5852 return out, req.Send() 5853} 5854 5855// UntagResourceWithContext is the same as UntagResource with the addition of 5856// the ability to pass a context and additional request options. 5857// 5858// See UntagResource for details on how to use this API operation. 5859// 5860// The context must be non-nil and will be used for request cancellation. If 5861// the context is nil a panic will occur. In the future the SDK may create 5862// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5863// for more information on using Contexts. 5864func (c *QuickSight) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 5865 req, out := c.UntagResourceRequest(input) 5866 req.SetContext(ctx) 5867 req.ApplyOptions(opts...) 5868 return out, req.Send() 5869} 5870 5871const opUpdateDashboard = "UpdateDashboard" 5872 5873// UpdateDashboardRequest generates a "aws/request.Request" representing the 5874// client's request for the UpdateDashboard operation. The "output" return 5875// value will be populated with the request's response once the request completes 5876// successfully. 5877// 5878// Use "Send" method on the returned Request to send the API call to the service. 5879// the "output" return value is not valid until after Send returns without error. 5880// 5881// See UpdateDashboard for more information on using the UpdateDashboard 5882// API call, and error handling. 5883// 5884// This method is useful when you want to inject custom logic or configuration 5885// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5886// 5887// 5888// // Example sending a request using the UpdateDashboardRequest method. 5889// req, resp := client.UpdateDashboardRequest(params) 5890// 5891// err := req.Send() 5892// if err == nil { // resp is now filled 5893// fmt.Println(resp) 5894// } 5895// 5896// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboard 5897func (c *QuickSight) UpdateDashboardRequest(input *UpdateDashboardInput) (req *request.Request, output *UpdateDashboardOutput) { 5898 op := &request.Operation{ 5899 Name: opUpdateDashboard, 5900 HTTPMethod: "PUT", 5901 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}", 5902 } 5903 5904 if input == nil { 5905 input = &UpdateDashboardInput{} 5906 } 5907 5908 output = &UpdateDashboardOutput{} 5909 req = c.newRequest(op, input, output) 5910 return 5911} 5912 5913// UpdateDashboard API operation for Amazon QuickSight. 5914// 5915// Updates a dashboard in an AWS account. 5916// 5917// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5918// with awserr.Error's Code and Message methods to get detailed information about 5919// the error. 5920// 5921// See the AWS API reference guide for Amazon QuickSight's 5922// API operation UpdateDashboard for usage and error information. 5923// 5924// Returned Error Types: 5925// * ThrottlingException 5926// Access is throttled. 5927// 5928// * InvalidParameterValueException 5929// One or more parameters has a value that isn't valid. 5930// 5931// * ResourceNotFoundException 5932// One or more resources can't be found. 5933// 5934// * ConflictException 5935// Updating or deleting a resource can cause an inconsistent state. 5936// 5937// * LimitExceededException 5938// A limit is exceeded. 5939// 5940// * UnsupportedUserEditionException 5941// This error indicates that you are calling an operation on an Amazon QuickSight 5942// subscription where the edition doesn't include support for that operation. 5943// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 5944// Not every operation and capability is available in every edition. 5945// 5946// * InternalFailureException 5947// An internal failure occurred. 5948// 5949// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboard 5950func (c *QuickSight) UpdateDashboard(input *UpdateDashboardInput) (*UpdateDashboardOutput, error) { 5951 req, out := c.UpdateDashboardRequest(input) 5952 return out, req.Send() 5953} 5954 5955// UpdateDashboardWithContext is the same as UpdateDashboard with the addition of 5956// the ability to pass a context and additional request options. 5957// 5958// See UpdateDashboard for details on how to use this API operation. 5959// 5960// The context must be non-nil and will be used for request cancellation. If 5961// the context is nil a panic will occur. In the future the SDK may create 5962// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5963// for more information on using Contexts. 5964func (c *QuickSight) UpdateDashboardWithContext(ctx aws.Context, input *UpdateDashboardInput, opts ...request.Option) (*UpdateDashboardOutput, error) { 5965 req, out := c.UpdateDashboardRequest(input) 5966 req.SetContext(ctx) 5967 req.ApplyOptions(opts...) 5968 return out, req.Send() 5969} 5970 5971const opUpdateDashboardPermissions = "UpdateDashboardPermissions" 5972 5973// UpdateDashboardPermissionsRequest generates a "aws/request.Request" representing the 5974// client's request for the UpdateDashboardPermissions operation. The "output" return 5975// value will be populated with the request's response once the request completes 5976// successfully. 5977// 5978// Use "Send" method on the returned Request to send the API call to the service. 5979// the "output" return value is not valid until after Send returns without error. 5980// 5981// See UpdateDashboardPermissions for more information on using the UpdateDashboardPermissions 5982// API call, and error handling. 5983// 5984// This method is useful when you want to inject custom logic or configuration 5985// into the SDK's request lifecycle. Such as custom headers, or retry logic. 5986// 5987// 5988// // Example sending a request using the UpdateDashboardPermissionsRequest method. 5989// req, resp := client.UpdateDashboardPermissionsRequest(params) 5990// 5991// err := req.Send() 5992// if err == nil { // resp is now filled 5993// fmt.Println(resp) 5994// } 5995// 5996// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboardPermissions 5997func (c *QuickSight) UpdateDashboardPermissionsRequest(input *UpdateDashboardPermissionsInput) (req *request.Request, output *UpdateDashboardPermissionsOutput) { 5998 op := &request.Operation{ 5999 Name: opUpdateDashboardPermissions, 6000 HTTPMethod: "PUT", 6001 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions", 6002 } 6003 6004 if input == nil { 6005 input = &UpdateDashboardPermissionsInput{} 6006 } 6007 6008 output = &UpdateDashboardPermissionsOutput{} 6009 req = c.newRequest(op, input, output) 6010 return 6011} 6012 6013// UpdateDashboardPermissions API operation for Amazon QuickSight. 6014// 6015// Updates read and write permissions on a dashboard. 6016// 6017// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6018// with awserr.Error's Code and Message methods to get detailed information about 6019// the error. 6020// 6021// See the AWS API reference guide for Amazon QuickSight's 6022// API operation UpdateDashboardPermissions for usage and error information. 6023// 6024// Returned Error Types: 6025// * ThrottlingException 6026// Access is throttled. 6027// 6028// * InvalidParameterValueException 6029// One or more parameters has a value that isn't valid. 6030// 6031// * ResourceNotFoundException 6032// One or more resources can't be found. 6033// 6034// * UnsupportedUserEditionException 6035// This error indicates that you are calling an operation on an Amazon QuickSight 6036// subscription where the edition doesn't include support for that operation. 6037// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 6038// Not every operation and capability is available in every edition. 6039// 6040// * ConflictException 6041// Updating or deleting a resource can cause an inconsistent state. 6042// 6043// * InternalFailureException 6044// An internal failure occurred. 6045// 6046// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboardPermissions 6047func (c *QuickSight) UpdateDashboardPermissions(input *UpdateDashboardPermissionsInput) (*UpdateDashboardPermissionsOutput, error) { 6048 req, out := c.UpdateDashboardPermissionsRequest(input) 6049 return out, req.Send() 6050} 6051 6052// UpdateDashboardPermissionsWithContext is the same as UpdateDashboardPermissions with the addition of 6053// the ability to pass a context and additional request options. 6054// 6055// See UpdateDashboardPermissions for details on how to use this API operation. 6056// 6057// The context must be non-nil and will be used for request cancellation. If 6058// the context is nil a panic will occur. In the future the SDK may create 6059// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6060// for more information on using Contexts. 6061func (c *QuickSight) UpdateDashboardPermissionsWithContext(ctx aws.Context, input *UpdateDashboardPermissionsInput, opts ...request.Option) (*UpdateDashboardPermissionsOutput, error) { 6062 req, out := c.UpdateDashboardPermissionsRequest(input) 6063 req.SetContext(ctx) 6064 req.ApplyOptions(opts...) 6065 return out, req.Send() 6066} 6067 6068const opUpdateDashboardPublishedVersion = "UpdateDashboardPublishedVersion" 6069 6070// UpdateDashboardPublishedVersionRequest generates a "aws/request.Request" representing the 6071// client's request for the UpdateDashboardPublishedVersion operation. The "output" return 6072// value will be populated with the request's response once the request completes 6073// successfully. 6074// 6075// Use "Send" method on the returned Request to send the API call to the service. 6076// the "output" return value is not valid until after Send returns without error. 6077// 6078// See UpdateDashboardPublishedVersion for more information on using the UpdateDashboardPublishedVersion 6079// API call, and error handling. 6080// 6081// This method is useful when you want to inject custom logic or configuration 6082// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6083// 6084// 6085// // Example sending a request using the UpdateDashboardPublishedVersionRequest method. 6086// req, resp := client.UpdateDashboardPublishedVersionRequest(params) 6087// 6088// err := req.Send() 6089// if err == nil { // resp is now filled 6090// fmt.Println(resp) 6091// } 6092// 6093// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboardPublishedVersion 6094func (c *QuickSight) UpdateDashboardPublishedVersionRequest(input *UpdateDashboardPublishedVersionInput) (req *request.Request, output *UpdateDashboardPublishedVersionOutput) { 6095 op := &request.Operation{ 6096 Name: opUpdateDashboardPublishedVersion, 6097 HTTPMethod: "PUT", 6098 HTTPPath: "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions/{VersionNumber}", 6099 } 6100 6101 if input == nil { 6102 input = &UpdateDashboardPublishedVersionInput{} 6103 } 6104 6105 output = &UpdateDashboardPublishedVersionOutput{} 6106 req = c.newRequest(op, input, output) 6107 return 6108} 6109 6110// UpdateDashboardPublishedVersion API operation for Amazon QuickSight. 6111// 6112// Updates the published version of a dashboard. 6113// 6114// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6115// with awserr.Error's Code and Message methods to get detailed information about 6116// the error. 6117// 6118// See the AWS API reference guide for Amazon QuickSight's 6119// API operation UpdateDashboardPublishedVersion for usage and error information. 6120// 6121// Returned Error Types: 6122// * InvalidParameterValueException 6123// One or more parameters has a value that isn't valid. 6124// 6125// * ThrottlingException 6126// Access is throttled. 6127// 6128// * ConflictException 6129// Updating or deleting a resource can cause an inconsistent state. 6130// 6131// * ResourceNotFoundException 6132// One or more resources can't be found. 6133// 6134// * UnsupportedUserEditionException 6135// This error indicates that you are calling an operation on an Amazon QuickSight 6136// subscription where the edition doesn't include support for that operation. 6137// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 6138// Not every operation and capability is available in every edition. 6139// 6140// * InternalFailureException 6141// An internal failure occurred. 6142// 6143// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboardPublishedVersion 6144func (c *QuickSight) UpdateDashboardPublishedVersion(input *UpdateDashboardPublishedVersionInput) (*UpdateDashboardPublishedVersionOutput, error) { 6145 req, out := c.UpdateDashboardPublishedVersionRequest(input) 6146 return out, req.Send() 6147} 6148 6149// UpdateDashboardPublishedVersionWithContext is the same as UpdateDashboardPublishedVersion with the addition of 6150// the ability to pass a context and additional request options. 6151// 6152// See UpdateDashboardPublishedVersion for details on how to use this API operation. 6153// 6154// The context must be non-nil and will be used for request cancellation. If 6155// the context is nil a panic will occur. In the future the SDK may create 6156// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6157// for more information on using Contexts. 6158func (c *QuickSight) UpdateDashboardPublishedVersionWithContext(ctx aws.Context, input *UpdateDashboardPublishedVersionInput, opts ...request.Option) (*UpdateDashboardPublishedVersionOutput, error) { 6159 req, out := c.UpdateDashboardPublishedVersionRequest(input) 6160 req.SetContext(ctx) 6161 req.ApplyOptions(opts...) 6162 return out, req.Send() 6163} 6164 6165const opUpdateDataSet = "UpdateDataSet" 6166 6167// UpdateDataSetRequest generates a "aws/request.Request" representing the 6168// client's request for the UpdateDataSet operation. The "output" return 6169// value will be populated with the request's response once the request completes 6170// successfully. 6171// 6172// Use "Send" method on the returned Request to send the API call to the service. 6173// the "output" return value is not valid until after Send returns without error. 6174// 6175// See UpdateDataSet for more information on using the UpdateDataSet 6176// API call, and error handling. 6177// 6178// This method is useful when you want to inject custom logic or configuration 6179// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6180// 6181// 6182// // Example sending a request using the UpdateDataSetRequest method. 6183// req, resp := client.UpdateDataSetRequest(params) 6184// 6185// err := req.Send() 6186// if err == nil { // resp is now filled 6187// fmt.Println(resp) 6188// } 6189// 6190// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSet 6191func (c *QuickSight) UpdateDataSetRequest(input *UpdateDataSetInput) (req *request.Request, output *UpdateDataSetOutput) { 6192 op := &request.Operation{ 6193 Name: opUpdateDataSet, 6194 HTTPMethod: "PUT", 6195 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}", 6196 } 6197 6198 if input == nil { 6199 input = &UpdateDataSetInput{} 6200 } 6201 6202 output = &UpdateDataSetOutput{} 6203 req = c.newRequest(op, input, output) 6204 return 6205} 6206 6207// UpdateDataSet API operation for Amazon QuickSight. 6208// 6209// Updates a dataset. 6210// 6211// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6212// with awserr.Error's Code and Message methods to get detailed information about 6213// the error. 6214// 6215// See the AWS API reference guide for Amazon QuickSight's 6216// API operation UpdateDataSet for usage and error information. 6217// 6218// Returned Error Types: 6219// * AccessDeniedException 6220// You don't have access to this item. The provided credentials couldn't be 6221// validated. You might not be authorized to carry out the request. Make sure 6222// that your account is authorized to use the Amazon QuickSight service, that 6223// your policies have the correct permissions, and that you are using the correct 6224// access keys. 6225// 6226// * ConflictException 6227// Updating or deleting a resource can cause an inconsistent state. 6228// 6229// * InvalidParameterValueException 6230// One or more parameters has a value that isn't valid. 6231// 6232// * LimitExceededException 6233// A limit is exceeded. 6234// 6235// * ThrottlingException 6236// Access is throttled. 6237// 6238// * ResourceNotFoundException 6239// One or more resources can't be found. 6240// 6241// * UnsupportedUserEditionException 6242// This error indicates that you are calling an operation on an Amazon QuickSight 6243// subscription where the edition doesn't include support for that operation. 6244// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 6245// Not every operation and capability is available in every edition. 6246// 6247// * InternalFailureException 6248// An internal failure occurred. 6249// 6250// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSet 6251func (c *QuickSight) UpdateDataSet(input *UpdateDataSetInput) (*UpdateDataSetOutput, error) { 6252 req, out := c.UpdateDataSetRequest(input) 6253 return out, req.Send() 6254} 6255 6256// UpdateDataSetWithContext is the same as UpdateDataSet with the addition of 6257// the ability to pass a context and additional request options. 6258// 6259// See UpdateDataSet for details on how to use this API operation. 6260// 6261// The context must be non-nil and will be used for request cancellation. If 6262// the context is nil a panic will occur. In the future the SDK may create 6263// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6264// for more information on using Contexts. 6265func (c *QuickSight) UpdateDataSetWithContext(ctx aws.Context, input *UpdateDataSetInput, opts ...request.Option) (*UpdateDataSetOutput, error) { 6266 req, out := c.UpdateDataSetRequest(input) 6267 req.SetContext(ctx) 6268 req.ApplyOptions(opts...) 6269 return out, req.Send() 6270} 6271 6272const opUpdateDataSetPermissions = "UpdateDataSetPermissions" 6273 6274// UpdateDataSetPermissionsRequest generates a "aws/request.Request" representing the 6275// client's request for the UpdateDataSetPermissions operation. The "output" return 6276// value will be populated with the request's response once the request completes 6277// successfully. 6278// 6279// Use "Send" method on the returned Request to send the API call to the service. 6280// the "output" return value is not valid until after Send returns without error. 6281// 6282// See UpdateDataSetPermissions for more information on using the UpdateDataSetPermissions 6283// API call, and error handling. 6284// 6285// This method is useful when you want to inject custom logic or configuration 6286// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6287// 6288// 6289// // Example sending a request using the UpdateDataSetPermissionsRequest method. 6290// req, resp := client.UpdateDataSetPermissionsRequest(params) 6291// 6292// err := req.Send() 6293// if err == nil { // resp is now filled 6294// fmt.Println(resp) 6295// } 6296// 6297// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSetPermissions 6298func (c *QuickSight) UpdateDataSetPermissionsRequest(input *UpdateDataSetPermissionsInput) (req *request.Request, output *UpdateDataSetPermissionsOutput) { 6299 op := &request.Operation{ 6300 Name: opUpdateDataSetPermissions, 6301 HTTPMethod: "POST", 6302 HTTPPath: "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions", 6303 } 6304 6305 if input == nil { 6306 input = &UpdateDataSetPermissionsInput{} 6307 } 6308 6309 output = &UpdateDataSetPermissionsOutput{} 6310 req = c.newRequest(op, input, output) 6311 return 6312} 6313 6314// UpdateDataSetPermissions API operation for Amazon QuickSight. 6315// 6316// Updates the permissions on a dataset. 6317// 6318// The permissions resource is arn:aws:quicksight:region:aws-account-id:dataset/data-set-id. 6319// 6320// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6321// with awserr.Error's Code and Message methods to get detailed information about 6322// the error. 6323// 6324// See the AWS API reference guide for Amazon QuickSight's 6325// API operation UpdateDataSetPermissions for usage and error information. 6326// 6327// Returned Error Types: 6328// * AccessDeniedException 6329// You don't have access to this item. The provided credentials couldn't be 6330// validated. You might not be authorized to carry out the request. Make sure 6331// that your account is authorized to use the Amazon QuickSight service, that 6332// your policies have the correct permissions, and that you are using the correct 6333// access keys. 6334// 6335// * ConflictException 6336// Updating or deleting a resource can cause an inconsistent state. 6337// 6338// * InvalidParameterValueException 6339// One or more parameters has a value that isn't valid. 6340// 6341// * ResourceNotFoundException 6342// One or more resources can't be found. 6343// 6344// * ThrottlingException 6345// Access is throttled. 6346// 6347// * InternalFailureException 6348// An internal failure occurred. 6349// 6350// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSetPermissions 6351func (c *QuickSight) UpdateDataSetPermissions(input *UpdateDataSetPermissionsInput) (*UpdateDataSetPermissionsOutput, error) { 6352 req, out := c.UpdateDataSetPermissionsRequest(input) 6353 return out, req.Send() 6354} 6355 6356// UpdateDataSetPermissionsWithContext is the same as UpdateDataSetPermissions with the addition of 6357// the ability to pass a context and additional request options. 6358// 6359// See UpdateDataSetPermissions for details on how to use this API operation. 6360// 6361// The context must be non-nil and will be used for request cancellation. If 6362// the context is nil a panic will occur. In the future the SDK may create 6363// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6364// for more information on using Contexts. 6365func (c *QuickSight) UpdateDataSetPermissionsWithContext(ctx aws.Context, input *UpdateDataSetPermissionsInput, opts ...request.Option) (*UpdateDataSetPermissionsOutput, error) { 6366 req, out := c.UpdateDataSetPermissionsRequest(input) 6367 req.SetContext(ctx) 6368 req.ApplyOptions(opts...) 6369 return out, req.Send() 6370} 6371 6372const opUpdateDataSource = "UpdateDataSource" 6373 6374// UpdateDataSourceRequest generates a "aws/request.Request" representing the 6375// client's request for the UpdateDataSource operation. The "output" return 6376// value will be populated with the request's response once the request completes 6377// successfully. 6378// 6379// Use "Send" method on the returned Request to send the API call to the service. 6380// the "output" return value is not valid until after Send returns without error. 6381// 6382// See UpdateDataSource for more information on using the UpdateDataSource 6383// API call, and error handling. 6384// 6385// This method is useful when you want to inject custom logic or configuration 6386// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6387// 6388// 6389// // Example sending a request using the UpdateDataSourceRequest method. 6390// req, resp := client.UpdateDataSourceRequest(params) 6391// 6392// err := req.Send() 6393// if err == nil { // resp is now filled 6394// fmt.Println(resp) 6395// } 6396// 6397// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSource 6398func (c *QuickSight) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *request.Request, output *UpdateDataSourceOutput) { 6399 op := &request.Operation{ 6400 Name: opUpdateDataSource, 6401 HTTPMethod: "PUT", 6402 HTTPPath: "/accounts/{AwsAccountId}/data-sources/{DataSourceId}", 6403 } 6404 6405 if input == nil { 6406 input = &UpdateDataSourceInput{} 6407 } 6408 6409 output = &UpdateDataSourceOutput{} 6410 req = c.newRequest(op, input, output) 6411 return 6412} 6413 6414// UpdateDataSource API operation for Amazon QuickSight. 6415// 6416// Updates a data source. 6417// 6418// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6419// with awserr.Error's Code and Message methods to get detailed information about 6420// the error. 6421// 6422// See the AWS API reference guide for Amazon QuickSight's 6423// API operation UpdateDataSource for usage and error information. 6424// 6425// Returned Error Types: 6426// * AccessDeniedException 6427// You don't have access to this item. The provided credentials couldn't be 6428// validated. You might not be authorized to carry out the request. Make sure 6429// that your account is authorized to use the Amazon QuickSight service, that 6430// your policies have the correct permissions, and that you are using the correct 6431// access keys. 6432// 6433// * ConflictException 6434// Updating or deleting a resource can cause an inconsistent state. 6435// 6436// * InvalidParameterValueException 6437// One or more parameters has a value that isn't valid. 6438// 6439// * ThrottlingException 6440// Access is throttled. 6441// 6442// * ResourceNotFoundException 6443// One or more resources can't be found. 6444// 6445// * InternalFailureException 6446// An internal failure occurred. 6447// 6448// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSource 6449func (c *QuickSight) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { 6450 req, out := c.UpdateDataSourceRequest(input) 6451 return out, req.Send() 6452} 6453 6454// UpdateDataSourceWithContext is the same as UpdateDataSource with the addition of 6455// the ability to pass a context and additional request options. 6456// 6457// See UpdateDataSource for details on how to use this API operation. 6458// 6459// The context must be non-nil and will be used for request cancellation. If 6460// the context is nil a panic will occur. In the future the SDK may create 6461// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6462// for more information on using Contexts. 6463func (c *QuickSight) UpdateDataSourceWithContext(ctx aws.Context, input *UpdateDataSourceInput, opts ...request.Option) (*UpdateDataSourceOutput, error) { 6464 req, out := c.UpdateDataSourceRequest(input) 6465 req.SetContext(ctx) 6466 req.ApplyOptions(opts...) 6467 return out, req.Send() 6468} 6469 6470const opUpdateDataSourcePermissions = "UpdateDataSourcePermissions" 6471 6472// UpdateDataSourcePermissionsRequest generates a "aws/request.Request" representing the 6473// client's request for the UpdateDataSourcePermissions operation. The "output" return 6474// value will be populated with the request's response once the request completes 6475// successfully. 6476// 6477// Use "Send" method on the returned Request to send the API call to the service. 6478// the "output" return value is not valid until after Send returns without error. 6479// 6480// See UpdateDataSourcePermissions for more information on using the UpdateDataSourcePermissions 6481// API call, and error handling. 6482// 6483// This method is useful when you want to inject custom logic or configuration 6484// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6485// 6486// 6487// // Example sending a request using the UpdateDataSourcePermissionsRequest method. 6488// req, resp := client.UpdateDataSourcePermissionsRequest(params) 6489// 6490// err := req.Send() 6491// if err == nil { // resp is now filled 6492// fmt.Println(resp) 6493// } 6494// 6495// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSourcePermissions 6496func (c *QuickSight) UpdateDataSourcePermissionsRequest(input *UpdateDataSourcePermissionsInput) (req *request.Request, output *UpdateDataSourcePermissionsOutput) { 6497 op := &request.Operation{ 6498 Name: opUpdateDataSourcePermissions, 6499 HTTPMethod: "POST", 6500 HTTPPath: "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions", 6501 } 6502 6503 if input == nil { 6504 input = &UpdateDataSourcePermissionsInput{} 6505 } 6506 6507 output = &UpdateDataSourcePermissionsOutput{} 6508 req = c.newRequest(op, input, output) 6509 return 6510} 6511 6512// UpdateDataSourcePermissions API operation for Amazon QuickSight. 6513// 6514// Updates the permissions to a data source. 6515// 6516// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6517// with awserr.Error's Code and Message methods to get detailed information about 6518// the error. 6519// 6520// See the AWS API reference guide for Amazon QuickSight's 6521// API operation UpdateDataSourcePermissions for usage and error information. 6522// 6523// Returned Error Types: 6524// * AccessDeniedException 6525// You don't have access to this item. The provided credentials couldn't be 6526// validated. You might not be authorized to carry out the request. Make sure 6527// that your account is authorized to use the Amazon QuickSight service, that 6528// your policies have the correct permissions, and that you are using the correct 6529// access keys. 6530// 6531// * ConflictException 6532// Updating or deleting a resource can cause an inconsistent state. 6533// 6534// * InvalidParameterValueException 6535// One or more parameters has a value that isn't valid. 6536// 6537// * ResourceNotFoundException 6538// One or more resources can't be found. 6539// 6540// * ThrottlingException 6541// Access is throttled. 6542// 6543// * InternalFailureException 6544// An internal failure occurred. 6545// 6546// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSourcePermissions 6547func (c *QuickSight) UpdateDataSourcePermissions(input *UpdateDataSourcePermissionsInput) (*UpdateDataSourcePermissionsOutput, error) { 6548 req, out := c.UpdateDataSourcePermissionsRequest(input) 6549 return out, req.Send() 6550} 6551 6552// UpdateDataSourcePermissionsWithContext is the same as UpdateDataSourcePermissions with the addition of 6553// the ability to pass a context and additional request options. 6554// 6555// See UpdateDataSourcePermissions for details on how to use this API operation. 6556// 6557// The context must be non-nil and will be used for request cancellation. If 6558// the context is nil a panic will occur. In the future the SDK may create 6559// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6560// for more information on using Contexts. 6561func (c *QuickSight) UpdateDataSourcePermissionsWithContext(ctx aws.Context, input *UpdateDataSourcePermissionsInput, opts ...request.Option) (*UpdateDataSourcePermissionsOutput, error) { 6562 req, out := c.UpdateDataSourcePermissionsRequest(input) 6563 req.SetContext(ctx) 6564 req.ApplyOptions(opts...) 6565 return out, req.Send() 6566} 6567 6568const opUpdateGroup = "UpdateGroup" 6569 6570// UpdateGroupRequest generates a "aws/request.Request" representing the 6571// client's request for the UpdateGroup operation. The "output" return 6572// value will be populated with the request's response once the request completes 6573// successfully. 6574// 6575// Use "Send" method on the returned Request to send the API call to the service. 6576// the "output" return value is not valid until after Send returns without error. 6577// 6578// See UpdateGroup for more information on using the UpdateGroup 6579// API call, and error handling. 6580// 6581// This method is useful when you want to inject custom logic or configuration 6582// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6583// 6584// 6585// // Example sending a request using the UpdateGroupRequest method. 6586// req, resp := client.UpdateGroupRequest(params) 6587// 6588// err := req.Send() 6589// if err == nil { // resp is now filled 6590// fmt.Println(resp) 6591// } 6592// 6593// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateGroup 6594func (c *QuickSight) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request, output *UpdateGroupOutput) { 6595 op := &request.Operation{ 6596 Name: opUpdateGroup, 6597 HTTPMethod: "PUT", 6598 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}", 6599 } 6600 6601 if input == nil { 6602 input = &UpdateGroupInput{} 6603 } 6604 6605 output = &UpdateGroupOutput{} 6606 req = c.newRequest(op, input, output) 6607 return 6608} 6609 6610// UpdateGroup API operation for Amazon QuickSight. 6611// 6612// Changes a group description. 6613// 6614// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6615// with awserr.Error's Code and Message methods to get detailed information about 6616// the error. 6617// 6618// See the AWS API reference guide for Amazon QuickSight's 6619// API operation UpdateGroup for usage and error information. 6620// 6621// Returned Error Types: 6622// * AccessDeniedException 6623// You don't have access to this item. The provided credentials couldn't be 6624// validated. You might not be authorized to carry out the request. Make sure 6625// that your account is authorized to use the Amazon QuickSight service, that 6626// your policies have the correct permissions, and that you are using the correct 6627// access keys. 6628// 6629// * InvalidParameterValueException 6630// One or more parameters has a value that isn't valid. 6631// 6632// * ResourceNotFoundException 6633// One or more resources can't be found. 6634// 6635// * ThrottlingException 6636// Access is throttled. 6637// 6638// * PreconditionNotMetException 6639// One or more preconditions aren't met. 6640// 6641// * InternalFailureException 6642// An internal failure occurred. 6643// 6644// * ResourceUnavailableException 6645// This resource is currently unavailable. 6646// 6647// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateGroup 6648func (c *QuickSight) UpdateGroup(input *UpdateGroupInput) (*UpdateGroupOutput, error) { 6649 req, out := c.UpdateGroupRequest(input) 6650 return out, req.Send() 6651} 6652 6653// UpdateGroupWithContext is the same as UpdateGroup with the addition of 6654// the ability to pass a context and additional request options. 6655// 6656// See UpdateGroup for details on how to use this API operation. 6657// 6658// The context must be non-nil and will be used for request cancellation. If 6659// the context is nil a panic will occur. In the future the SDK may create 6660// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6661// for more information on using Contexts. 6662func (c *QuickSight) UpdateGroupWithContext(ctx aws.Context, input *UpdateGroupInput, opts ...request.Option) (*UpdateGroupOutput, error) { 6663 req, out := c.UpdateGroupRequest(input) 6664 req.SetContext(ctx) 6665 req.ApplyOptions(opts...) 6666 return out, req.Send() 6667} 6668 6669const opUpdateIAMPolicyAssignment = "UpdateIAMPolicyAssignment" 6670 6671// UpdateIAMPolicyAssignmentRequest generates a "aws/request.Request" representing the 6672// client's request for the UpdateIAMPolicyAssignment operation. The "output" return 6673// value will be populated with the request's response once the request completes 6674// successfully. 6675// 6676// Use "Send" method on the returned Request to send the API call to the service. 6677// the "output" return value is not valid until after Send returns without error. 6678// 6679// See UpdateIAMPolicyAssignment for more information on using the UpdateIAMPolicyAssignment 6680// API call, and error handling. 6681// 6682// This method is useful when you want to inject custom logic or configuration 6683// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6684// 6685// 6686// // Example sending a request using the UpdateIAMPolicyAssignmentRequest method. 6687// req, resp := client.UpdateIAMPolicyAssignmentRequest(params) 6688// 6689// err := req.Send() 6690// if err == nil { // resp is now filled 6691// fmt.Println(resp) 6692// } 6693// 6694// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateIAMPolicyAssignment 6695func (c *QuickSight) UpdateIAMPolicyAssignmentRequest(input *UpdateIAMPolicyAssignmentInput) (req *request.Request, output *UpdateIAMPolicyAssignmentOutput) { 6696 op := &request.Operation{ 6697 Name: opUpdateIAMPolicyAssignment, 6698 HTTPMethod: "PUT", 6699 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}", 6700 } 6701 6702 if input == nil { 6703 input = &UpdateIAMPolicyAssignmentInput{} 6704 } 6705 6706 output = &UpdateIAMPolicyAssignmentOutput{} 6707 req = c.newRequest(op, input, output) 6708 return 6709} 6710 6711// UpdateIAMPolicyAssignment API operation for Amazon QuickSight. 6712// 6713// Updates an existing IAM policy assignment. This operation updates only the 6714// optional parameter or parameters that are specified in the request. 6715// 6716// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6717// with awserr.Error's Code and Message methods to get detailed information about 6718// the error. 6719// 6720// See the AWS API reference guide for Amazon QuickSight's 6721// API operation UpdateIAMPolicyAssignment for usage and error information. 6722// 6723// Returned Error Types: 6724// * AccessDeniedException 6725// You don't have access to this item. The provided credentials couldn't be 6726// validated. You might not be authorized to carry out the request. Make sure 6727// that your account is authorized to use the Amazon QuickSight service, that 6728// your policies have the correct permissions, and that you are using the correct 6729// access keys. 6730// 6731// * InvalidParameterValueException 6732// One or more parameters has a value that isn't valid. 6733// 6734// * ResourceExistsException 6735// The resource specified already exists. 6736// 6737// * ResourceNotFoundException 6738// One or more resources can't be found. 6739// 6740// * ThrottlingException 6741// Access is throttled. 6742// 6743// * ConcurrentUpdatingException 6744// A resource is already in a state that indicates an action is happening that 6745// must complete before a new update can be applied. 6746// 6747// * InternalFailureException 6748// An internal failure occurred. 6749// 6750// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateIAMPolicyAssignment 6751func (c *QuickSight) UpdateIAMPolicyAssignment(input *UpdateIAMPolicyAssignmentInput) (*UpdateIAMPolicyAssignmentOutput, error) { 6752 req, out := c.UpdateIAMPolicyAssignmentRequest(input) 6753 return out, req.Send() 6754} 6755 6756// UpdateIAMPolicyAssignmentWithContext is the same as UpdateIAMPolicyAssignment with the addition of 6757// the ability to pass a context and additional request options. 6758// 6759// See UpdateIAMPolicyAssignment for details on how to use this API operation. 6760// 6761// The context must be non-nil and will be used for request cancellation. If 6762// the context is nil a panic will occur. In the future the SDK may create 6763// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6764// for more information on using Contexts. 6765func (c *QuickSight) UpdateIAMPolicyAssignmentWithContext(ctx aws.Context, input *UpdateIAMPolicyAssignmentInput, opts ...request.Option) (*UpdateIAMPolicyAssignmentOutput, error) { 6766 req, out := c.UpdateIAMPolicyAssignmentRequest(input) 6767 req.SetContext(ctx) 6768 req.ApplyOptions(opts...) 6769 return out, req.Send() 6770} 6771 6772const opUpdateTemplate = "UpdateTemplate" 6773 6774// UpdateTemplateRequest generates a "aws/request.Request" representing the 6775// client's request for the UpdateTemplate operation. The "output" return 6776// value will be populated with the request's response once the request completes 6777// successfully. 6778// 6779// Use "Send" method on the returned Request to send the API call to the service. 6780// the "output" return value is not valid until after Send returns without error. 6781// 6782// See UpdateTemplate for more information on using the UpdateTemplate 6783// API call, and error handling. 6784// 6785// This method is useful when you want to inject custom logic or configuration 6786// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6787// 6788// 6789// // Example sending a request using the UpdateTemplateRequest method. 6790// req, resp := client.UpdateTemplateRequest(params) 6791// 6792// err := req.Send() 6793// if err == nil { // resp is now filled 6794// fmt.Println(resp) 6795// } 6796// 6797// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplate 6798func (c *QuickSight) UpdateTemplateRequest(input *UpdateTemplateInput) (req *request.Request, output *UpdateTemplateOutput) { 6799 op := &request.Operation{ 6800 Name: opUpdateTemplate, 6801 HTTPMethod: "PUT", 6802 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}", 6803 } 6804 6805 if input == nil { 6806 input = &UpdateTemplateInput{} 6807 } 6808 6809 output = &UpdateTemplateOutput{} 6810 req = c.newRequest(op, input, output) 6811 return 6812} 6813 6814// UpdateTemplate API operation for Amazon QuickSight. 6815// 6816// Updates a template from an existing Amazon QuickSight analysis or another 6817// template. 6818// 6819// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6820// with awserr.Error's Code and Message methods to get detailed information about 6821// the error. 6822// 6823// See the AWS API reference guide for Amazon QuickSight's 6824// API operation UpdateTemplate for usage and error information. 6825// 6826// Returned Error Types: 6827// * InvalidParameterValueException 6828// One or more parameters has a value that isn't valid. 6829// 6830// * ResourceExistsException 6831// The resource specified already exists. 6832// 6833// * ResourceNotFoundException 6834// One or more resources can't be found. 6835// 6836// * ThrottlingException 6837// Access is throttled. 6838// 6839// * ConflictException 6840// Updating or deleting a resource can cause an inconsistent state. 6841// 6842// * LimitExceededException 6843// A limit is exceeded. 6844// 6845// * UnsupportedUserEditionException 6846// This error indicates that you are calling an operation on an Amazon QuickSight 6847// subscription where the edition doesn't include support for that operation. 6848// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 6849// Not every operation and capability is available in every edition. 6850// 6851// * InternalFailureException 6852// An internal failure occurred. 6853// 6854// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplate 6855func (c *QuickSight) UpdateTemplate(input *UpdateTemplateInput) (*UpdateTemplateOutput, error) { 6856 req, out := c.UpdateTemplateRequest(input) 6857 return out, req.Send() 6858} 6859 6860// UpdateTemplateWithContext is the same as UpdateTemplate with the addition of 6861// the ability to pass a context and additional request options. 6862// 6863// See UpdateTemplate for details on how to use this API operation. 6864// 6865// The context must be non-nil and will be used for request cancellation. If 6866// the context is nil a panic will occur. In the future the SDK may create 6867// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6868// for more information on using Contexts. 6869func (c *QuickSight) UpdateTemplateWithContext(ctx aws.Context, input *UpdateTemplateInput, opts ...request.Option) (*UpdateTemplateOutput, error) { 6870 req, out := c.UpdateTemplateRequest(input) 6871 req.SetContext(ctx) 6872 req.ApplyOptions(opts...) 6873 return out, req.Send() 6874} 6875 6876const opUpdateTemplateAlias = "UpdateTemplateAlias" 6877 6878// UpdateTemplateAliasRequest generates a "aws/request.Request" representing the 6879// client's request for the UpdateTemplateAlias operation. The "output" return 6880// value will be populated with the request's response once the request completes 6881// successfully. 6882// 6883// Use "Send" method on the returned Request to send the API call to the service. 6884// the "output" return value is not valid until after Send returns without error. 6885// 6886// See UpdateTemplateAlias for more information on using the UpdateTemplateAlias 6887// API call, and error handling. 6888// 6889// This method is useful when you want to inject custom logic or configuration 6890// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6891// 6892// 6893// // Example sending a request using the UpdateTemplateAliasRequest method. 6894// req, resp := client.UpdateTemplateAliasRequest(params) 6895// 6896// err := req.Send() 6897// if err == nil { // resp is now filled 6898// fmt.Println(resp) 6899// } 6900// 6901// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplateAlias 6902func (c *QuickSight) UpdateTemplateAliasRequest(input *UpdateTemplateAliasInput) (req *request.Request, output *UpdateTemplateAliasOutput) { 6903 op := &request.Operation{ 6904 Name: opUpdateTemplateAlias, 6905 HTTPMethod: "PUT", 6906 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}", 6907 } 6908 6909 if input == nil { 6910 input = &UpdateTemplateAliasInput{} 6911 } 6912 6913 output = &UpdateTemplateAliasOutput{} 6914 req = c.newRequest(op, input, output) 6915 return 6916} 6917 6918// UpdateTemplateAlias API operation for Amazon QuickSight. 6919// 6920// Updates the template alias of a template. 6921// 6922// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 6923// with awserr.Error's Code and Message methods to get detailed information about 6924// the error. 6925// 6926// See the AWS API reference guide for Amazon QuickSight's 6927// API operation UpdateTemplateAlias for usage and error information. 6928// 6929// Returned Error Types: 6930// * ThrottlingException 6931// Access is throttled. 6932// 6933// * ResourceNotFoundException 6934// One or more resources can't be found. 6935// 6936// * ConflictException 6937// Updating or deleting a resource can cause an inconsistent state. 6938// 6939// * UnsupportedUserEditionException 6940// This error indicates that you are calling an operation on an Amazon QuickSight 6941// subscription where the edition doesn't include support for that operation. 6942// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 6943// Not every operation and capability is available in every edition. 6944// 6945// * InternalFailureException 6946// An internal failure occurred. 6947// 6948// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplateAlias 6949func (c *QuickSight) UpdateTemplateAlias(input *UpdateTemplateAliasInput) (*UpdateTemplateAliasOutput, error) { 6950 req, out := c.UpdateTemplateAliasRequest(input) 6951 return out, req.Send() 6952} 6953 6954// UpdateTemplateAliasWithContext is the same as UpdateTemplateAlias with the addition of 6955// the ability to pass a context and additional request options. 6956// 6957// See UpdateTemplateAlias for details on how to use this API operation. 6958// 6959// The context must be non-nil and will be used for request cancellation. If 6960// the context is nil a panic will occur. In the future the SDK may create 6961// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 6962// for more information on using Contexts. 6963func (c *QuickSight) UpdateTemplateAliasWithContext(ctx aws.Context, input *UpdateTemplateAliasInput, opts ...request.Option) (*UpdateTemplateAliasOutput, error) { 6964 req, out := c.UpdateTemplateAliasRequest(input) 6965 req.SetContext(ctx) 6966 req.ApplyOptions(opts...) 6967 return out, req.Send() 6968} 6969 6970const opUpdateTemplatePermissions = "UpdateTemplatePermissions" 6971 6972// UpdateTemplatePermissionsRequest generates a "aws/request.Request" representing the 6973// client's request for the UpdateTemplatePermissions operation. The "output" return 6974// value will be populated with the request's response once the request completes 6975// successfully. 6976// 6977// Use "Send" method on the returned Request to send the API call to the service. 6978// the "output" return value is not valid until after Send returns without error. 6979// 6980// See UpdateTemplatePermissions for more information on using the UpdateTemplatePermissions 6981// API call, and error handling. 6982// 6983// This method is useful when you want to inject custom logic or configuration 6984// into the SDK's request lifecycle. Such as custom headers, or retry logic. 6985// 6986// 6987// // Example sending a request using the UpdateTemplatePermissionsRequest method. 6988// req, resp := client.UpdateTemplatePermissionsRequest(params) 6989// 6990// err := req.Send() 6991// if err == nil { // resp is now filled 6992// fmt.Println(resp) 6993// } 6994// 6995// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplatePermissions 6996func (c *QuickSight) UpdateTemplatePermissionsRequest(input *UpdateTemplatePermissionsInput) (req *request.Request, output *UpdateTemplatePermissionsOutput) { 6997 op := &request.Operation{ 6998 Name: opUpdateTemplatePermissions, 6999 HTTPMethod: "PUT", 7000 HTTPPath: "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions", 7001 } 7002 7003 if input == nil { 7004 input = &UpdateTemplatePermissionsInput{} 7005 } 7006 7007 output = &UpdateTemplatePermissionsOutput{} 7008 req = c.newRequest(op, input, output) 7009 return 7010} 7011 7012// UpdateTemplatePermissions API operation for Amazon QuickSight. 7013// 7014// Updates the resource permissions for a template. 7015// 7016// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 7017// with awserr.Error's Code and Message methods to get detailed information about 7018// the error. 7019// 7020// See the AWS API reference guide for Amazon QuickSight's 7021// API operation UpdateTemplatePermissions for usage and error information. 7022// 7023// Returned Error Types: 7024// * ThrottlingException 7025// Access is throttled. 7026// 7027// * InvalidParameterValueException 7028// One or more parameters has a value that isn't valid. 7029// 7030// * ConflictException 7031// Updating or deleting a resource can cause an inconsistent state. 7032// 7033// * ResourceNotFoundException 7034// One or more resources can't be found. 7035// 7036// * UnsupportedUserEditionException 7037// This error indicates that you are calling an operation on an Amazon QuickSight 7038// subscription where the edition doesn't include support for that operation. 7039// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 7040// Not every operation and capability is available in every edition. 7041// 7042// * InternalFailureException 7043// An internal failure occurred. 7044// 7045// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplatePermissions 7046func (c *QuickSight) UpdateTemplatePermissions(input *UpdateTemplatePermissionsInput) (*UpdateTemplatePermissionsOutput, error) { 7047 req, out := c.UpdateTemplatePermissionsRequest(input) 7048 return out, req.Send() 7049} 7050 7051// UpdateTemplatePermissionsWithContext is the same as UpdateTemplatePermissions with the addition of 7052// the ability to pass a context and additional request options. 7053// 7054// See UpdateTemplatePermissions for details on how to use this API operation. 7055// 7056// The context must be non-nil and will be used for request cancellation. If 7057// the context is nil a panic will occur. In the future the SDK may create 7058// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 7059// for more information on using Contexts. 7060func (c *QuickSight) UpdateTemplatePermissionsWithContext(ctx aws.Context, input *UpdateTemplatePermissionsInput, opts ...request.Option) (*UpdateTemplatePermissionsOutput, error) { 7061 req, out := c.UpdateTemplatePermissionsRequest(input) 7062 req.SetContext(ctx) 7063 req.ApplyOptions(opts...) 7064 return out, req.Send() 7065} 7066 7067const opUpdateUser = "UpdateUser" 7068 7069// UpdateUserRequest generates a "aws/request.Request" representing the 7070// client's request for the UpdateUser operation. The "output" return 7071// value will be populated with the request's response once the request completes 7072// successfully. 7073// 7074// Use "Send" method on the returned Request to send the API call to the service. 7075// the "output" return value is not valid until after Send returns without error. 7076// 7077// See UpdateUser for more information on using the UpdateUser 7078// API call, and error handling. 7079// 7080// This method is useful when you want to inject custom logic or configuration 7081// into the SDK's request lifecycle. Such as custom headers, or retry logic. 7082// 7083// 7084// // Example sending a request using the UpdateUserRequest method. 7085// req, resp := client.UpdateUserRequest(params) 7086// 7087// err := req.Send() 7088// if err == nil { // resp is now filled 7089// fmt.Println(resp) 7090// } 7091// 7092// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateUser 7093func (c *QuickSight) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { 7094 op := &request.Operation{ 7095 Name: opUpdateUser, 7096 HTTPMethod: "PUT", 7097 HTTPPath: "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}", 7098 } 7099 7100 if input == nil { 7101 input = &UpdateUserInput{} 7102 } 7103 7104 output = &UpdateUserOutput{} 7105 req = c.newRequest(op, input, output) 7106 return 7107} 7108 7109// UpdateUser API operation for Amazon QuickSight. 7110// 7111// Updates an Amazon QuickSight user. 7112// 7113// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 7114// with awserr.Error's Code and Message methods to get detailed information about 7115// the error. 7116// 7117// See the AWS API reference guide for Amazon QuickSight's 7118// API operation UpdateUser for usage and error information. 7119// 7120// Returned Error Types: 7121// * AccessDeniedException 7122// You don't have access to this item. The provided credentials couldn't be 7123// validated. You might not be authorized to carry out the request. Make sure 7124// that your account is authorized to use the Amazon QuickSight service, that 7125// your policies have the correct permissions, and that you are using the correct 7126// access keys. 7127// 7128// * InvalidParameterValueException 7129// One or more parameters has a value that isn't valid. 7130// 7131// * ResourceNotFoundException 7132// One or more resources can't be found. 7133// 7134// * ThrottlingException 7135// Access is throttled. 7136// 7137// * InternalFailureException 7138// An internal failure occurred. 7139// 7140// * ResourceUnavailableException 7141// This resource is currently unavailable. 7142// 7143// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateUser 7144func (c *QuickSight) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { 7145 req, out := c.UpdateUserRequest(input) 7146 return out, req.Send() 7147} 7148 7149// UpdateUserWithContext is the same as UpdateUser with the addition of 7150// the ability to pass a context and additional request options. 7151// 7152// See UpdateUser for details on how to use this API operation. 7153// 7154// The context must be non-nil and will be used for request cancellation. If 7155// the context is nil a panic will occur. In the future the SDK may create 7156// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 7157// for more information on using Contexts. 7158func (c *QuickSight) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) { 7159 req, out := c.UpdateUserRequest(input) 7160 req.SetContext(ctx) 7161 req.ApplyOptions(opts...) 7162 return out, req.Send() 7163} 7164 7165// You don't have access to this item. The provided credentials couldn't be 7166// validated. You might not be authorized to carry out the request. Make sure 7167// that your account is authorized to use the Amazon QuickSight service, that 7168// your policies have the correct permissions, and that you are using the correct 7169// access keys. 7170type AccessDeniedException struct { 7171 _ struct{} `type:"structure"` 7172 respMetadata protocol.ResponseMetadata 7173 7174 Message_ *string `locationName:"Message" type:"string"` 7175 7176 // The AWS request ID for this request. 7177 RequestId *string `type:"string"` 7178} 7179 7180// String returns the string representation 7181func (s AccessDeniedException) String() string { 7182 return awsutil.Prettify(s) 7183} 7184 7185// GoString returns the string representation 7186func (s AccessDeniedException) GoString() string { 7187 return s.String() 7188} 7189 7190func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { 7191 return &AccessDeniedException{ 7192 respMetadata: v, 7193 } 7194} 7195 7196// Code returns the exception type name. 7197func (s AccessDeniedException) Code() string { 7198 return "AccessDeniedException" 7199} 7200 7201// Message returns the exception's message. 7202func (s AccessDeniedException) Message() string { 7203 if s.Message_ != nil { 7204 return *s.Message_ 7205 } 7206 return "" 7207} 7208 7209// OrigErr always returns nil, satisfies awserr.Error interface. 7210func (s AccessDeniedException) OrigErr() error { 7211 return nil 7212} 7213 7214func (s AccessDeniedException) Error() string { 7215 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 7216} 7217 7218// Status code returns the HTTP status code for the request's response error. 7219func (s AccessDeniedException) StatusCode() int { 7220 return s.respMetadata.StatusCode 7221} 7222 7223// RequestID returns the service's response RequestID for request. 7224func (s AccessDeniedException) RequestID() string { 7225 return s.respMetadata.RequestID 7226} 7227 7228// The active AWS Identity and Access Management (IAM) policy assignment. 7229type ActiveIAMPolicyAssignment struct { 7230 _ struct{} `type:"structure"` 7231 7232 // A name for the IAM policy assignment. 7233 AssignmentName *string `min:"1" type:"string"` 7234 7235 // The Amazon Resource Name (ARN) of the resource. 7236 PolicyArn *string `type:"string"` 7237} 7238 7239// String returns the string representation 7240func (s ActiveIAMPolicyAssignment) String() string { 7241 return awsutil.Prettify(s) 7242} 7243 7244// GoString returns the string representation 7245func (s ActiveIAMPolicyAssignment) GoString() string { 7246 return s.String() 7247} 7248 7249// SetAssignmentName sets the AssignmentName field's value. 7250func (s *ActiveIAMPolicyAssignment) SetAssignmentName(v string) *ActiveIAMPolicyAssignment { 7251 s.AssignmentName = &v 7252 return s 7253} 7254 7255// SetPolicyArn sets the PolicyArn field's value. 7256func (s *ActiveIAMPolicyAssignment) SetPolicyArn(v string) *ActiveIAMPolicyAssignment { 7257 s.PolicyArn = &v 7258 return s 7259} 7260 7261// Ad hoc (one-time) filtering option. 7262type AdHocFilteringOption struct { 7263 _ struct{} `type:"structure"` 7264 7265 // Availability status. 7266 AvailabilityStatus *string `type:"string" enum:"DashboardBehavior"` 7267} 7268 7269// String returns the string representation 7270func (s AdHocFilteringOption) String() string { 7271 return awsutil.Prettify(s) 7272} 7273 7274// GoString returns the string representation 7275func (s AdHocFilteringOption) GoString() string { 7276 return s.String() 7277} 7278 7279// SetAvailabilityStatus sets the AvailabilityStatus field's value. 7280func (s *AdHocFilteringOption) SetAvailabilityStatus(v string) *AdHocFilteringOption { 7281 s.AvailabilityStatus = &v 7282 return s 7283} 7284 7285// Amazon Elasticsearch Service parameters. 7286type AmazonElasticsearchParameters struct { 7287 _ struct{} `type:"structure"` 7288 7289 // The Amazon Elasticsearch Service domain. 7290 // 7291 // Domain is a required field 7292 Domain *string `min:"1" type:"string" required:"true"` 7293} 7294 7295// String returns the string representation 7296func (s AmazonElasticsearchParameters) String() string { 7297 return awsutil.Prettify(s) 7298} 7299 7300// GoString returns the string representation 7301func (s AmazonElasticsearchParameters) GoString() string { 7302 return s.String() 7303} 7304 7305// Validate inspects the fields of the type to determine if they are valid. 7306func (s *AmazonElasticsearchParameters) Validate() error { 7307 invalidParams := request.ErrInvalidParams{Context: "AmazonElasticsearchParameters"} 7308 if s.Domain == nil { 7309 invalidParams.Add(request.NewErrParamRequired("Domain")) 7310 } 7311 if s.Domain != nil && len(*s.Domain) < 1 { 7312 invalidParams.Add(request.NewErrParamMinLen("Domain", 1)) 7313 } 7314 7315 if invalidParams.Len() > 0 { 7316 return invalidParams 7317 } 7318 return nil 7319} 7320 7321// SetDomain sets the Domain field's value. 7322func (s *AmazonElasticsearchParameters) SetDomain(v string) *AmazonElasticsearchParameters { 7323 s.Domain = &v 7324 return s 7325} 7326 7327// Amazon Athena parameters. 7328type AthenaParameters struct { 7329 _ struct{} `type:"structure"` 7330 7331 // The workgroup that Amazon Athena uses. 7332 WorkGroup *string `min:"1" type:"string"` 7333} 7334 7335// String returns the string representation 7336func (s AthenaParameters) String() string { 7337 return awsutil.Prettify(s) 7338} 7339 7340// GoString returns the string representation 7341func (s AthenaParameters) GoString() string { 7342 return s.String() 7343} 7344 7345// Validate inspects the fields of the type to determine if they are valid. 7346func (s *AthenaParameters) Validate() error { 7347 invalidParams := request.ErrInvalidParams{Context: "AthenaParameters"} 7348 if s.WorkGroup != nil && len(*s.WorkGroup) < 1 { 7349 invalidParams.Add(request.NewErrParamMinLen("WorkGroup", 1)) 7350 } 7351 7352 if invalidParams.Len() > 0 { 7353 return invalidParams 7354 } 7355 return nil 7356} 7357 7358// SetWorkGroup sets the WorkGroup field's value. 7359func (s *AthenaParameters) SetWorkGroup(v string) *AthenaParameters { 7360 s.WorkGroup = &v 7361 return s 7362} 7363 7364// Amazon Aurora parameters. 7365type AuroraParameters struct { 7366 _ struct{} `type:"structure"` 7367 7368 // Database. 7369 // 7370 // Database is a required field 7371 Database *string `min:"1" type:"string" required:"true"` 7372 7373 // Host. 7374 // 7375 // Host is a required field 7376 Host *string `min:"1" type:"string" required:"true"` 7377 7378 // Port. 7379 // 7380 // Port is a required field 7381 Port *int64 `min:"1" type:"integer" required:"true"` 7382} 7383 7384// String returns the string representation 7385func (s AuroraParameters) String() string { 7386 return awsutil.Prettify(s) 7387} 7388 7389// GoString returns the string representation 7390func (s AuroraParameters) GoString() string { 7391 return s.String() 7392} 7393 7394// Validate inspects the fields of the type to determine if they are valid. 7395func (s *AuroraParameters) Validate() error { 7396 invalidParams := request.ErrInvalidParams{Context: "AuroraParameters"} 7397 if s.Database == nil { 7398 invalidParams.Add(request.NewErrParamRequired("Database")) 7399 } 7400 if s.Database != nil && len(*s.Database) < 1 { 7401 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 7402 } 7403 if s.Host == nil { 7404 invalidParams.Add(request.NewErrParamRequired("Host")) 7405 } 7406 if s.Host != nil && len(*s.Host) < 1 { 7407 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 7408 } 7409 if s.Port == nil { 7410 invalidParams.Add(request.NewErrParamRequired("Port")) 7411 } 7412 if s.Port != nil && *s.Port < 1 { 7413 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 7414 } 7415 7416 if invalidParams.Len() > 0 { 7417 return invalidParams 7418 } 7419 return nil 7420} 7421 7422// SetDatabase sets the Database field's value. 7423func (s *AuroraParameters) SetDatabase(v string) *AuroraParameters { 7424 s.Database = &v 7425 return s 7426} 7427 7428// SetHost sets the Host field's value. 7429func (s *AuroraParameters) SetHost(v string) *AuroraParameters { 7430 s.Host = &v 7431 return s 7432} 7433 7434// SetPort sets the Port field's value. 7435func (s *AuroraParameters) SetPort(v int64) *AuroraParameters { 7436 s.Port = &v 7437 return s 7438} 7439 7440// Amazon Aurora with PostgreSQL compatibility parameters. 7441type AuroraPostgreSqlParameters struct { 7442 _ struct{} `type:"structure"` 7443 7444 // Database. 7445 // 7446 // Database is a required field 7447 Database *string `min:"1" type:"string" required:"true"` 7448 7449 // Host. 7450 // 7451 // Host is a required field 7452 Host *string `min:"1" type:"string" required:"true"` 7453 7454 // Port. 7455 // 7456 // Port is a required field 7457 Port *int64 `min:"1" type:"integer" required:"true"` 7458} 7459 7460// String returns the string representation 7461func (s AuroraPostgreSqlParameters) String() string { 7462 return awsutil.Prettify(s) 7463} 7464 7465// GoString returns the string representation 7466func (s AuroraPostgreSqlParameters) GoString() string { 7467 return s.String() 7468} 7469 7470// Validate inspects the fields of the type to determine if they are valid. 7471func (s *AuroraPostgreSqlParameters) Validate() error { 7472 invalidParams := request.ErrInvalidParams{Context: "AuroraPostgreSqlParameters"} 7473 if s.Database == nil { 7474 invalidParams.Add(request.NewErrParamRequired("Database")) 7475 } 7476 if s.Database != nil && len(*s.Database) < 1 { 7477 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 7478 } 7479 if s.Host == nil { 7480 invalidParams.Add(request.NewErrParamRequired("Host")) 7481 } 7482 if s.Host != nil && len(*s.Host) < 1 { 7483 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 7484 } 7485 if s.Port == nil { 7486 invalidParams.Add(request.NewErrParamRequired("Port")) 7487 } 7488 if s.Port != nil && *s.Port < 1 { 7489 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 7490 } 7491 7492 if invalidParams.Len() > 0 { 7493 return invalidParams 7494 } 7495 return nil 7496} 7497 7498// SetDatabase sets the Database field's value. 7499func (s *AuroraPostgreSqlParameters) SetDatabase(v string) *AuroraPostgreSqlParameters { 7500 s.Database = &v 7501 return s 7502} 7503 7504// SetHost sets the Host field's value. 7505func (s *AuroraPostgreSqlParameters) SetHost(v string) *AuroraPostgreSqlParameters { 7506 s.Host = &v 7507 return s 7508} 7509 7510// SetPort sets the Port field's value. 7511func (s *AuroraPostgreSqlParameters) SetPort(v int64) *AuroraPostgreSqlParameters { 7512 s.Port = &v 7513 return s 7514} 7515 7516// AWS IoT Analytics parameters. 7517type AwsIotAnalyticsParameters struct { 7518 _ struct{} `type:"structure"` 7519 7520 // Dataset name. 7521 // 7522 // DataSetName is a required field 7523 DataSetName *string `min:"1" type:"string" required:"true"` 7524} 7525 7526// String returns the string representation 7527func (s AwsIotAnalyticsParameters) String() string { 7528 return awsutil.Prettify(s) 7529} 7530 7531// GoString returns the string representation 7532func (s AwsIotAnalyticsParameters) GoString() string { 7533 return s.String() 7534} 7535 7536// Validate inspects the fields of the type to determine if they are valid. 7537func (s *AwsIotAnalyticsParameters) Validate() error { 7538 invalidParams := request.ErrInvalidParams{Context: "AwsIotAnalyticsParameters"} 7539 if s.DataSetName == nil { 7540 invalidParams.Add(request.NewErrParamRequired("DataSetName")) 7541 } 7542 if s.DataSetName != nil && len(*s.DataSetName) < 1 { 7543 invalidParams.Add(request.NewErrParamMinLen("DataSetName", 1)) 7544 } 7545 7546 if invalidParams.Len() > 0 { 7547 return invalidParams 7548 } 7549 return nil 7550} 7551 7552// SetDataSetName sets the DataSetName field's value. 7553func (s *AwsIotAnalyticsParameters) SetDataSetName(v string) *AwsIotAnalyticsParameters { 7554 s.DataSetName = &v 7555 return s 7556} 7557 7558// A calculated column for a dataset. 7559type CalculatedColumn struct { 7560 _ struct{} `type:"structure"` 7561 7562 // A unique ID to identify a calculated column. During a dataset update, if 7563 // the column ID of a calculated column matches that of an existing calculated 7564 // column, Amazon QuickSight preserves the existing calculated column. 7565 // 7566 // ColumnId is a required field 7567 ColumnId *string `min:"1" type:"string" required:"true"` 7568 7569 // Column name. 7570 // 7571 // ColumnName is a required field 7572 ColumnName *string `min:"1" type:"string" required:"true"` 7573 7574 // An expression that defines the calculated column. 7575 // 7576 // Expression is a required field 7577 Expression *string `min:"1" type:"string" required:"true"` 7578} 7579 7580// String returns the string representation 7581func (s CalculatedColumn) String() string { 7582 return awsutil.Prettify(s) 7583} 7584 7585// GoString returns the string representation 7586func (s CalculatedColumn) GoString() string { 7587 return s.String() 7588} 7589 7590// Validate inspects the fields of the type to determine if they are valid. 7591func (s *CalculatedColumn) Validate() error { 7592 invalidParams := request.ErrInvalidParams{Context: "CalculatedColumn"} 7593 if s.ColumnId == nil { 7594 invalidParams.Add(request.NewErrParamRequired("ColumnId")) 7595 } 7596 if s.ColumnId != nil && len(*s.ColumnId) < 1 { 7597 invalidParams.Add(request.NewErrParamMinLen("ColumnId", 1)) 7598 } 7599 if s.ColumnName == nil { 7600 invalidParams.Add(request.NewErrParamRequired("ColumnName")) 7601 } 7602 if s.ColumnName != nil && len(*s.ColumnName) < 1 { 7603 invalidParams.Add(request.NewErrParamMinLen("ColumnName", 1)) 7604 } 7605 if s.Expression == nil { 7606 invalidParams.Add(request.NewErrParamRequired("Expression")) 7607 } 7608 if s.Expression != nil && len(*s.Expression) < 1 { 7609 invalidParams.Add(request.NewErrParamMinLen("Expression", 1)) 7610 } 7611 7612 if invalidParams.Len() > 0 { 7613 return invalidParams 7614 } 7615 return nil 7616} 7617 7618// SetColumnId sets the ColumnId field's value. 7619func (s *CalculatedColumn) SetColumnId(v string) *CalculatedColumn { 7620 s.ColumnId = &v 7621 return s 7622} 7623 7624// SetColumnName sets the ColumnName field's value. 7625func (s *CalculatedColumn) SetColumnName(v string) *CalculatedColumn { 7626 s.ColumnName = &v 7627 return s 7628} 7629 7630// SetExpression sets the Expression field's value. 7631func (s *CalculatedColumn) SetExpression(v string) *CalculatedColumn { 7632 s.Expression = &v 7633 return s 7634} 7635 7636type CancelIngestionInput struct { 7637 _ struct{} `type:"structure"` 7638 7639 // The AWS account ID. 7640 // 7641 // AwsAccountId is a required field 7642 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 7643 7644 // The ID of the dataset used in the ingestion. 7645 // 7646 // DataSetId is a required field 7647 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 7648 7649 // An ID for the ingestion. 7650 // 7651 // IngestionId is a required field 7652 IngestionId *string `location:"uri" locationName:"IngestionId" min:"1" type:"string" required:"true"` 7653} 7654 7655// String returns the string representation 7656func (s CancelIngestionInput) String() string { 7657 return awsutil.Prettify(s) 7658} 7659 7660// GoString returns the string representation 7661func (s CancelIngestionInput) GoString() string { 7662 return s.String() 7663} 7664 7665// Validate inspects the fields of the type to determine if they are valid. 7666func (s *CancelIngestionInput) Validate() error { 7667 invalidParams := request.ErrInvalidParams{Context: "CancelIngestionInput"} 7668 if s.AwsAccountId == nil { 7669 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 7670 } 7671 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 7672 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 7673 } 7674 if s.DataSetId == nil { 7675 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 7676 } 7677 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 7678 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 7679 } 7680 if s.IngestionId == nil { 7681 invalidParams.Add(request.NewErrParamRequired("IngestionId")) 7682 } 7683 if s.IngestionId != nil && len(*s.IngestionId) < 1 { 7684 invalidParams.Add(request.NewErrParamMinLen("IngestionId", 1)) 7685 } 7686 7687 if invalidParams.Len() > 0 { 7688 return invalidParams 7689 } 7690 return nil 7691} 7692 7693// SetAwsAccountId sets the AwsAccountId field's value. 7694func (s *CancelIngestionInput) SetAwsAccountId(v string) *CancelIngestionInput { 7695 s.AwsAccountId = &v 7696 return s 7697} 7698 7699// SetDataSetId sets the DataSetId field's value. 7700func (s *CancelIngestionInput) SetDataSetId(v string) *CancelIngestionInput { 7701 s.DataSetId = &v 7702 return s 7703} 7704 7705// SetIngestionId sets the IngestionId field's value. 7706func (s *CancelIngestionInput) SetIngestionId(v string) *CancelIngestionInput { 7707 s.IngestionId = &v 7708 return s 7709} 7710 7711type CancelIngestionOutput struct { 7712 _ struct{} `type:"structure"` 7713 7714 // The Amazon Resource Name (ARN) for the data ingestion. 7715 Arn *string `type:"string"` 7716 7717 // An ID for the ingestion. 7718 IngestionId *string `min:"1" type:"string"` 7719 7720 // The AWS request ID for this operation. 7721 RequestId *string `type:"string"` 7722 7723 // The HTTP status of the request. 7724 Status *int64 `location:"statusCode" type:"integer"` 7725} 7726 7727// String returns the string representation 7728func (s CancelIngestionOutput) String() string { 7729 return awsutil.Prettify(s) 7730} 7731 7732// GoString returns the string representation 7733func (s CancelIngestionOutput) GoString() string { 7734 return s.String() 7735} 7736 7737// SetArn sets the Arn field's value. 7738func (s *CancelIngestionOutput) SetArn(v string) *CancelIngestionOutput { 7739 s.Arn = &v 7740 return s 7741} 7742 7743// SetIngestionId sets the IngestionId field's value. 7744func (s *CancelIngestionOutput) SetIngestionId(v string) *CancelIngestionOutput { 7745 s.IngestionId = &v 7746 return s 7747} 7748 7749// SetRequestId sets the RequestId field's value. 7750func (s *CancelIngestionOutput) SetRequestId(v string) *CancelIngestionOutput { 7751 s.RequestId = &v 7752 return s 7753} 7754 7755// SetStatus sets the Status field's value. 7756func (s *CancelIngestionOutput) SetStatus(v int64) *CancelIngestionOutput { 7757 s.Status = &v 7758 return s 7759} 7760 7761// A transform operation that casts a column to a different type. 7762type CastColumnTypeOperation struct { 7763 _ struct{} `type:"structure"` 7764 7765 // Column name. 7766 // 7767 // ColumnName is a required field 7768 ColumnName *string `min:"1" type:"string" required:"true"` 7769 7770 // When casting a column from string to datetime type, you can supply a string 7771 // in a format supported by Amazon QuickSight to denote the source data format. 7772 Format *string `type:"string"` 7773 7774 // New column data type. 7775 // 7776 // NewColumnType is a required field 7777 NewColumnType *string `type:"string" required:"true" enum:"ColumnDataType"` 7778} 7779 7780// String returns the string representation 7781func (s CastColumnTypeOperation) String() string { 7782 return awsutil.Prettify(s) 7783} 7784 7785// GoString returns the string representation 7786func (s CastColumnTypeOperation) GoString() string { 7787 return s.String() 7788} 7789 7790// Validate inspects the fields of the type to determine if they are valid. 7791func (s *CastColumnTypeOperation) Validate() error { 7792 invalidParams := request.ErrInvalidParams{Context: "CastColumnTypeOperation"} 7793 if s.ColumnName == nil { 7794 invalidParams.Add(request.NewErrParamRequired("ColumnName")) 7795 } 7796 if s.ColumnName != nil && len(*s.ColumnName) < 1 { 7797 invalidParams.Add(request.NewErrParamMinLen("ColumnName", 1)) 7798 } 7799 if s.NewColumnType == nil { 7800 invalidParams.Add(request.NewErrParamRequired("NewColumnType")) 7801 } 7802 7803 if invalidParams.Len() > 0 { 7804 return invalidParams 7805 } 7806 return nil 7807} 7808 7809// SetColumnName sets the ColumnName field's value. 7810func (s *CastColumnTypeOperation) SetColumnName(v string) *CastColumnTypeOperation { 7811 s.ColumnName = &v 7812 return s 7813} 7814 7815// SetFormat sets the Format field's value. 7816func (s *CastColumnTypeOperation) SetFormat(v string) *CastColumnTypeOperation { 7817 s.Format = &v 7818 return s 7819} 7820 7821// SetNewColumnType sets the NewColumnType field's value. 7822func (s *CastColumnTypeOperation) SetNewColumnType(v string) *CastColumnTypeOperation { 7823 s.NewColumnType = &v 7824 return s 7825} 7826 7827// Groupings of columns that work together in certain Amazon QuickSight features. 7828// This is a variant type structure. For this structure to be valid, only one 7829// of the attributes can be non-null. 7830type ColumnGroup struct { 7831 _ struct{} `type:"structure"` 7832 7833 // Geospatial column group that denotes a hierarchy. 7834 GeoSpatialColumnGroup *GeoSpatialColumnGroup `type:"structure"` 7835} 7836 7837// String returns the string representation 7838func (s ColumnGroup) String() string { 7839 return awsutil.Prettify(s) 7840} 7841 7842// GoString returns the string representation 7843func (s ColumnGroup) GoString() string { 7844 return s.String() 7845} 7846 7847// Validate inspects the fields of the type to determine if they are valid. 7848func (s *ColumnGroup) Validate() error { 7849 invalidParams := request.ErrInvalidParams{Context: "ColumnGroup"} 7850 if s.GeoSpatialColumnGroup != nil { 7851 if err := s.GeoSpatialColumnGroup.Validate(); err != nil { 7852 invalidParams.AddNested("GeoSpatialColumnGroup", err.(request.ErrInvalidParams)) 7853 } 7854 } 7855 7856 if invalidParams.Len() > 0 { 7857 return invalidParams 7858 } 7859 return nil 7860} 7861 7862// SetGeoSpatialColumnGroup sets the GeoSpatialColumnGroup field's value. 7863func (s *ColumnGroup) SetGeoSpatialColumnGroup(v *GeoSpatialColumnGroup) *ColumnGroup { 7864 s.GeoSpatialColumnGroup = v 7865 return s 7866} 7867 7868// A structure describing the name, data type, and geographic role of the columns. 7869type ColumnGroupColumnSchema struct { 7870 _ struct{} `type:"structure"` 7871 7872 // The name of the column group's column schema. 7873 Name *string `type:"string"` 7874} 7875 7876// String returns the string representation 7877func (s ColumnGroupColumnSchema) String() string { 7878 return awsutil.Prettify(s) 7879} 7880 7881// GoString returns the string representation 7882func (s ColumnGroupColumnSchema) GoString() string { 7883 return s.String() 7884} 7885 7886// SetName sets the Name field's value. 7887func (s *ColumnGroupColumnSchema) SetName(v string) *ColumnGroupColumnSchema { 7888 s.Name = &v 7889 return s 7890} 7891 7892// The column group schema. 7893type ColumnGroupSchema struct { 7894 _ struct{} `type:"structure"` 7895 7896 // A structure containing the list of schemas for column group columns. 7897 ColumnGroupColumnSchemaList []*ColumnGroupColumnSchema `type:"list"` 7898 7899 // The name of the column group schema. 7900 Name *string `type:"string"` 7901} 7902 7903// String returns the string representation 7904func (s ColumnGroupSchema) String() string { 7905 return awsutil.Prettify(s) 7906} 7907 7908// GoString returns the string representation 7909func (s ColumnGroupSchema) GoString() string { 7910 return s.String() 7911} 7912 7913// SetColumnGroupColumnSchemaList sets the ColumnGroupColumnSchemaList field's value. 7914func (s *ColumnGroupSchema) SetColumnGroupColumnSchemaList(v []*ColumnGroupColumnSchema) *ColumnGroupSchema { 7915 s.ColumnGroupColumnSchemaList = v 7916 return s 7917} 7918 7919// SetName sets the Name field's value. 7920func (s *ColumnGroupSchema) SetName(v string) *ColumnGroupSchema { 7921 s.Name = &v 7922 return s 7923} 7924 7925// The column schema. 7926type ColumnSchema struct { 7927 _ struct{} `type:"structure"` 7928 7929 // The data type of the column schema. 7930 DataType *string `type:"string"` 7931 7932 // The geographic role of the column schema. 7933 GeographicRole *string `type:"string"` 7934 7935 // The name of the column schema. 7936 Name *string `type:"string"` 7937} 7938 7939// String returns the string representation 7940func (s ColumnSchema) String() string { 7941 return awsutil.Prettify(s) 7942} 7943 7944// GoString returns the string representation 7945func (s ColumnSchema) GoString() string { 7946 return s.String() 7947} 7948 7949// SetDataType sets the DataType field's value. 7950func (s *ColumnSchema) SetDataType(v string) *ColumnSchema { 7951 s.DataType = &v 7952 return s 7953} 7954 7955// SetGeographicRole sets the GeographicRole field's value. 7956func (s *ColumnSchema) SetGeographicRole(v string) *ColumnSchema { 7957 s.GeographicRole = &v 7958 return s 7959} 7960 7961// SetName sets the Name field's value. 7962func (s *ColumnSchema) SetName(v string) *ColumnSchema { 7963 s.Name = &v 7964 return s 7965} 7966 7967// A tag for a column in a TagColumnOperation structure. This is a variant type 7968// structure. For this structure to be valid, only one of the attributes can 7969// be non-null. 7970type ColumnTag struct { 7971 _ struct{} `type:"structure"` 7972 7973 // A geospatial role for a column. 7974 ColumnGeographicRole *string `type:"string" enum:"GeoSpatialDataRole"` 7975} 7976 7977// String returns the string representation 7978func (s ColumnTag) String() string { 7979 return awsutil.Prettify(s) 7980} 7981 7982// GoString returns the string representation 7983func (s ColumnTag) GoString() string { 7984 return s.String() 7985} 7986 7987// SetColumnGeographicRole sets the ColumnGeographicRole field's value. 7988func (s *ColumnTag) SetColumnGeographicRole(v string) *ColumnTag { 7989 s.ColumnGeographicRole = &v 7990 return s 7991} 7992 7993// A resource is already in a state that indicates an action is happening that 7994// must complete before a new update can be applied. 7995type ConcurrentUpdatingException struct { 7996 _ struct{} `type:"structure"` 7997 respMetadata protocol.ResponseMetadata 7998 7999 Message_ *string `locationName:"Message" type:"string"` 8000 8001 RequestId *string `type:"string"` 8002} 8003 8004// String returns the string representation 8005func (s ConcurrentUpdatingException) String() string { 8006 return awsutil.Prettify(s) 8007} 8008 8009// GoString returns the string representation 8010func (s ConcurrentUpdatingException) GoString() string { 8011 return s.String() 8012} 8013 8014func newErrorConcurrentUpdatingException(v protocol.ResponseMetadata) error { 8015 return &ConcurrentUpdatingException{ 8016 respMetadata: v, 8017 } 8018} 8019 8020// Code returns the exception type name. 8021func (s ConcurrentUpdatingException) Code() string { 8022 return "ConcurrentUpdatingException" 8023} 8024 8025// Message returns the exception's message. 8026func (s ConcurrentUpdatingException) Message() string { 8027 if s.Message_ != nil { 8028 return *s.Message_ 8029 } 8030 return "" 8031} 8032 8033// OrigErr always returns nil, satisfies awserr.Error interface. 8034func (s ConcurrentUpdatingException) OrigErr() error { 8035 return nil 8036} 8037 8038func (s ConcurrentUpdatingException) Error() string { 8039 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 8040} 8041 8042// Status code returns the HTTP status code for the request's response error. 8043func (s ConcurrentUpdatingException) StatusCode() int { 8044 return s.respMetadata.StatusCode 8045} 8046 8047// RequestID returns the service's response RequestID for request. 8048func (s ConcurrentUpdatingException) RequestID() string { 8049 return s.respMetadata.RequestID 8050} 8051 8052// Updating or deleting a resource can cause an inconsistent state. 8053type ConflictException struct { 8054 _ struct{} `type:"structure"` 8055 respMetadata protocol.ResponseMetadata 8056 8057 Message_ *string `locationName:"Message" type:"string"` 8058 8059 // The AWS request ID for this request. 8060 RequestId *string `type:"string"` 8061} 8062 8063// String returns the string representation 8064func (s ConflictException) String() string { 8065 return awsutil.Prettify(s) 8066} 8067 8068// GoString returns the string representation 8069func (s ConflictException) GoString() string { 8070 return s.String() 8071} 8072 8073func newErrorConflictException(v protocol.ResponseMetadata) error { 8074 return &ConflictException{ 8075 respMetadata: v, 8076 } 8077} 8078 8079// Code returns the exception type name. 8080func (s ConflictException) Code() string { 8081 return "ConflictException" 8082} 8083 8084// Message returns the exception's message. 8085func (s ConflictException) Message() string { 8086 if s.Message_ != nil { 8087 return *s.Message_ 8088 } 8089 return "" 8090} 8091 8092// OrigErr always returns nil, satisfies awserr.Error interface. 8093func (s ConflictException) OrigErr() error { 8094 return nil 8095} 8096 8097func (s ConflictException) Error() string { 8098 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 8099} 8100 8101// Status code returns the HTTP status code for the request's response error. 8102func (s ConflictException) StatusCode() int { 8103 return s.respMetadata.StatusCode 8104} 8105 8106// RequestID returns the service's response RequestID for request. 8107func (s ConflictException) RequestID() string { 8108 return s.respMetadata.RequestID 8109} 8110 8111// A transform operation that creates calculated columns. Columns created in 8112// one such operation form a lexical closure. 8113type CreateColumnsOperation struct { 8114 _ struct{} `type:"structure"` 8115 8116 // Calculated columns to create. 8117 // 8118 // Columns is a required field 8119 Columns []*CalculatedColumn `min:"1" type:"list" required:"true"` 8120} 8121 8122// String returns the string representation 8123func (s CreateColumnsOperation) String() string { 8124 return awsutil.Prettify(s) 8125} 8126 8127// GoString returns the string representation 8128func (s CreateColumnsOperation) GoString() string { 8129 return s.String() 8130} 8131 8132// Validate inspects the fields of the type to determine if they are valid. 8133func (s *CreateColumnsOperation) Validate() error { 8134 invalidParams := request.ErrInvalidParams{Context: "CreateColumnsOperation"} 8135 if s.Columns == nil { 8136 invalidParams.Add(request.NewErrParamRequired("Columns")) 8137 } 8138 if s.Columns != nil && len(s.Columns) < 1 { 8139 invalidParams.Add(request.NewErrParamMinLen("Columns", 1)) 8140 } 8141 if s.Columns != nil { 8142 for i, v := range s.Columns { 8143 if v == nil { 8144 continue 8145 } 8146 if err := v.Validate(); err != nil { 8147 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Columns", i), err.(request.ErrInvalidParams)) 8148 } 8149 } 8150 } 8151 8152 if invalidParams.Len() > 0 { 8153 return invalidParams 8154 } 8155 return nil 8156} 8157 8158// SetColumns sets the Columns field's value. 8159func (s *CreateColumnsOperation) SetColumns(v []*CalculatedColumn) *CreateColumnsOperation { 8160 s.Columns = v 8161 return s 8162} 8163 8164type CreateDashboardInput struct { 8165 _ struct{} `type:"structure"` 8166 8167 // The ID of the AWS account where you want to create the dashboard. 8168 // 8169 // AwsAccountId is a required field 8170 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 8171 8172 // The ID for the dashboard, also added to the IAM policy. 8173 // 8174 // DashboardId is a required field 8175 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 8176 8177 // Options for publishing the dashboard when you create it: 8178 // 8179 // * AvailabilityStatus for AdHocFilteringOption - This status can be either 8180 // ENABLED or DISABLED. When this is set to DISABLED, QuickSight disables 8181 // the left filter pane on the published dashboard, which can be used for 8182 // ad hoc (one-time) filtering. This option is ENABLED by default. 8183 // 8184 // * AvailabilityStatus for ExportToCSVOption - This status can be either 8185 // ENABLED or DISABLED. The visual option to export data to .csv format isn't 8186 // enabled when this is set to DISABLED. This option is ENABLED by default. 8187 // 8188 // * VisibilityState for SheetControlsOption - This visibility state can 8189 // be either COLLAPSED or EXPANDED. The sheet controls pane is collapsed 8190 // by default when set to true. This option is COLLAPSED by default. 8191 DashboardPublishOptions *DashboardPublishOptions `type:"structure"` 8192 8193 // The display name of the dashboard. 8194 // 8195 // Name is a required field 8196 Name *string `min:"1" type:"string" required:"true"` 8197 8198 // A structure that contains the parameters of the dashboard. These are parameter 8199 // overrides for a dashboard. A dashboard can have any type of parameters, and 8200 // some parameters might accept multiple values. You can use the dashboard permissions 8201 // structure described following to override two string parameters that accept 8202 // multiple values. 8203 Parameters *Parameters `type:"structure"` 8204 8205 // A structure that contains the permissions of the dashboard. You can use this 8206 // structure for granting permissions with principal and action information. 8207 Permissions []*ResourcePermission `min:"1" type:"list"` 8208 8209 // The source entity from which the dashboard is created. The source entity 8210 // accepts the Amazon Resource Name (ARN) of the source template or analysis 8211 // and also references the replacement datasets for the placeholders set when 8212 // creating the template. The replacement datasets need to follow the same schema 8213 // as the datasets for which placeholders were created when creating the template. 8214 // 8215 // If you are creating a dashboard from a source entity in a different AWS account, 8216 // use the ARN of the source template. 8217 // 8218 // SourceEntity is a required field 8219 SourceEntity *DashboardSourceEntity `type:"structure" required:"true"` 8220 8221 // Contains a map of the key-value pairs for the resource tag or tags assigned 8222 // to the dashboard. 8223 Tags []*Tag `min:"1" type:"list"` 8224 8225 // A description for the first version of the dashboard being created. 8226 VersionDescription *string `min:"1" type:"string"` 8227} 8228 8229// String returns the string representation 8230func (s CreateDashboardInput) String() string { 8231 return awsutil.Prettify(s) 8232} 8233 8234// GoString returns the string representation 8235func (s CreateDashboardInput) GoString() string { 8236 return s.String() 8237} 8238 8239// Validate inspects the fields of the type to determine if they are valid. 8240func (s *CreateDashboardInput) Validate() error { 8241 invalidParams := request.ErrInvalidParams{Context: "CreateDashboardInput"} 8242 if s.AwsAccountId == nil { 8243 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 8244 } 8245 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 8246 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 8247 } 8248 if s.DashboardId == nil { 8249 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 8250 } 8251 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 8252 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 8253 } 8254 if s.Name == nil { 8255 invalidParams.Add(request.NewErrParamRequired("Name")) 8256 } 8257 if s.Name != nil && len(*s.Name) < 1 { 8258 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 8259 } 8260 if s.Permissions != nil && len(s.Permissions) < 1 { 8261 invalidParams.Add(request.NewErrParamMinLen("Permissions", 1)) 8262 } 8263 if s.SourceEntity == nil { 8264 invalidParams.Add(request.NewErrParamRequired("SourceEntity")) 8265 } 8266 if s.Tags != nil && len(s.Tags) < 1 { 8267 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 8268 } 8269 if s.VersionDescription != nil && len(*s.VersionDescription) < 1 { 8270 invalidParams.Add(request.NewErrParamMinLen("VersionDescription", 1)) 8271 } 8272 if s.Parameters != nil { 8273 if err := s.Parameters.Validate(); err != nil { 8274 invalidParams.AddNested("Parameters", err.(request.ErrInvalidParams)) 8275 } 8276 } 8277 if s.Permissions != nil { 8278 for i, v := range s.Permissions { 8279 if v == nil { 8280 continue 8281 } 8282 if err := v.Validate(); err != nil { 8283 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Permissions", i), err.(request.ErrInvalidParams)) 8284 } 8285 } 8286 } 8287 if s.SourceEntity != nil { 8288 if err := s.SourceEntity.Validate(); err != nil { 8289 invalidParams.AddNested("SourceEntity", err.(request.ErrInvalidParams)) 8290 } 8291 } 8292 if s.Tags != nil { 8293 for i, v := range s.Tags { 8294 if v == nil { 8295 continue 8296 } 8297 if err := v.Validate(); err != nil { 8298 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8299 } 8300 } 8301 } 8302 8303 if invalidParams.Len() > 0 { 8304 return invalidParams 8305 } 8306 return nil 8307} 8308 8309// SetAwsAccountId sets the AwsAccountId field's value. 8310func (s *CreateDashboardInput) SetAwsAccountId(v string) *CreateDashboardInput { 8311 s.AwsAccountId = &v 8312 return s 8313} 8314 8315// SetDashboardId sets the DashboardId field's value. 8316func (s *CreateDashboardInput) SetDashboardId(v string) *CreateDashboardInput { 8317 s.DashboardId = &v 8318 return s 8319} 8320 8321// SetDashboardPublishOptions sets the DashboardPublishOptions field's value. 8322func (s *CreateDashboardInput) SetDashboardPublishOptions(v *DashboardPublishOptions) *CreateDashboardInput { 8323 s.DashboardPublishOptions = v 8324 return s 8325} 8326 8327// SetName sets the Name field's value. 8328func (s *CreateDashboardInput) SetName(v string) *CreateDashboardInput { 8329 s.Name = &v 8330 return s 8331} 8332 8333// SetParameters sets the Parameters field's value. 8334func (s *CreateDashboardInput) SetParameters(v *Parameters) *CreateDashboardInput { 8335 s.Parameters = v 8336 return s 8337} 8338 8339// SetPermissions sets the Permissions field's value. 8340func (s *CreateDashboardInput) SetPermissions(v []*ResourcePermission) *CreateDashboardInput { 8341 s.Permissions = v 8342 return s 8343} 8344 8345// SetSourceEntity sets the SourceEntity field's value. 8346func (s *CreateDashboardInput) SetSourceEntity(v *DashboardSourceEntity) *CreateDashboardInput { 8347 s.SourceEntity = v 8348 return s 8349} 8350 8351// SetTags sets the Tags field's value. 8352func (s *CreateDashboardInput) SetTags(v []*Tag) *CreateDashboardInput { 8353 s.Tags = v 8354 return s 8355} 8356 8357// SetVersionDescription sets the VersionDescription field's value. 8358func (s *CreateDashboardInput) SetVersionDescription(v string) *CreateDashboardInput { 8359 s.VersionDescription = &v 8360 return s 8361} 8362 8363type CreateDashboardOutput struct { 8364 _ struct{} `type:"structure"` 8365 8366 // The Amazon Resource Name (ARN) of the dashboard. 8367 Arn *string `type:"string"` 8368 8369 // The status of the dashboard creation request. 8370 CreationStatus *string `type:"string" enum:"ResourceStatus"` 8371 8372 // The ID for the dashboard. 8373 DashboardId *string `min:"1" type:"string"` 8374 8375 // The AWS request ID for this operation. 8376 RequestId *string `type:"string"` 8377 8378 // The HTTP status of the request. 8379 Status *int64 `location:"statusCode" type:"integer"` 8380 8381 // The ARN of the dashboard, including the version number of the first version 8382 // that is created. 8383 VersionArn *string `type:"string"` 8384} 8385 8386// String returns the string representation 8387func (s CreateDashboardOutput) String() string { 8388 return awsutil.Prettify(s) 8389} 8390 8391// GoString returns the string representation 8392func (s CreateDashboardOutput) GoString() string { 8393 return s.String() 8394} 8395 8396// SetArn sets the Arn field's value. 8397func (s *CreateDashboardOutput) SetArn(v string) *CreateDashboardOutput { 8398 s.Arn = &v 8399 return s 8400} 8401 8402// SetCreationStatus sets the CreationStatus field's value. 8403func (s *CreateDashboardOutput) SetCreationStatus(v string) *CreateDashboardOutput { 8404 s.CreationStatus = &v 8405 return s 8406} 8407 8408// SetDashboardId sets the DashboardId field's value. 8409func (s *CreateDashboardOutput) SetDashboardId(v string) *CreateDashboardOutput { 8410 s.DashboardId = &v 8411 return s 8412} 8413 8414// SetRequestId sets the RequestId field's value. 8415func (s *CreateDashboardOutput) SetRequestId(v string) *CreateDashboardOutput { 8416 s.RequestId = &v 8417 return s 8418} 8419 8420// SetStatus sets the Status field's value. 8421func (s *CreateDashboardOutput) SetStatus(v int64) *CreateDashboardOutput { 8422 s.Status = &v 8423 return s 8424} 8425 8426// SetVersionArn sets the VersionArn field's value. 8427func (s *CreateDashboardOutput) SetVersionArn(v string) *CreateDashboardOutput { 8428 s.VersionArn = &v 8429 return s 8430} 8431 8432type CreateDataSetInput struct { 8433 _ struct{} `type:"structure"` 8434 8435 // The AWS account ID. 8436 // 8437 // AwsAccountId is a required field 8438 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 8439 8440 // Groupings of columns that work together in certain QuickSight features. Currently, 8441 // only geospatial hierarchy is supported. 8442 ColumnGroups []*ColumnGroup `min:"1" type:"list"` 8443 8444 // An ID for the dataset that you want to create. This ID is unique per AWS 8445 // Region for each AWS account. 8446 // 8447 // DataSetId is a required field 8448 DataSetId *string `type:"string" required:"true"` 8449 8450 // Indicates whether you want to import the data into SPICE. 8451 // 8452 // ImportMode is a required field 8453 ImportMode *string `type:"string" required:"true" enum:"DataSetImportMode"` 8454 8455 // Configures the combination and transformation of the data from the physical 8456 // tables. 8457 LogicalTableMap map[string]*LogicalTable `min:"1" type:"map"` 8458 8459 // The display name for the dataset. 8460 // 8461 // Name is a required field 8462 Name *string `min:"1" type:"string" required:"true"` 8463 8464 // A list of resource permissions on the dataset. 8465 Permissions []*ResourcePermission `min:"1" type:"list"` 8466 8467 // Declares the physical tables that are available in the underlying data sources. 8468 // 8469 // PhysicalTableMap is a required field 8470 PhysicalTableMap map[string]*PhysicalTable `min:"1" type:"map" required:"true"` 8471 8472 // The row-level security configuration for the data that you want to create. 8473 RowLevelPermissionDataSet *RowLevelPermissionDataSet `type:"structure"` 8474 8475 // Contains a map of the key-value pairs for the resource tag or tags assigned 8476 // to the dataset. 8477 Tags []*Tag `min:"1" type:"list"` 8478} 8479 8480// String returns the string representation 8481func (s CreateDataSetInput) String() string { 8482 return awsutil.Prettify(s) 8483} 8484 8485// GoString returns the string representation 8486func (s CreateDataSetInput) GoString() string { 8487 return s.String() 8488} 8489 8490// Validate inspects the fields of the type to determine if they are valid. 8491func (s *CreateDataSetInput) Validate() error { 8492 invalidParams := request.ErrInvalidParams{Context: "CreateDataSetInput"} 8493 if s.AwsAccountId == nil { 8494 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 8495 } 8496 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 8497 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 8498 } 8499 if s.ColumnGroups != nil && len(s.ColumnGroups) < 1 { 8500 invalidParams.Add(request.NewErrParamMinLen("ColumnGroups", 1)) 8501 } 8502 if s.DataSetId == nil { 8503 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 8504 } 8505 if s.ImportMode == nil { 8506 invalidParams.Add(request.NewErrParamRequired("ImportMode")) 8507 } 8508 if s.LogicalTableMap != nil && len(s.LogicalTableMap) < 1 { 8509 invalidParams.Add(request.NewErrParamMinLen("LogicalTableMap", 1)) 8510 } 8511 if s.Name == nil { 8512 invalidParams.Add(request.NewErrParamRequired("Name")) 8513 } 8514 if s.Name != nil && len(*s.Name) < 1 { 8515 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 8516 } 8517 if s.Permissions != nil && len(s.Permissions) < 1 { 8518 invalidParams.Add(request.NewErrParamMinLen("Permissions", 1)) 8519 } 8520 if s.PhysicalTableMap == nil { 8521 invalidParams.Add(request.NewErrParamRequired("PhysicalTableMap")) 8522 } 8523 if s.PhysicalTableMap != nil && len(s.PhysicalTableMap) < 1 { 8524 invalidParams.Add(request.NewErrParamMinLen("PhysicalTableMap", 1)) 8525 } 8526 if s.Tags != nil && len(s.Tags) < 1 { 8527 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 8528 } 8529 if s.ColumnGroups != nil { 8530 for i, v := range s.ColumnGroups { 8531 if v == nil { 8532 continue 8533 } 8534 if err := v.Validate(); err != nil { 8535 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ColumnGroups", i), err.(request.ErrInvalidParams)) 8536 } 8537 } 8538 } 8539 if s.LogicalTableMap != nil { 8540 for i, v := range s.LogicalTableMap { 8541 if v == nil { 8542 continue 8543 } 8544 if err := v.Validate(); err != nil { 8545 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LogicalTableMap", i), err.(request.ErrInvalidParams)) 8546 } 8547 } 8548 } 8549 if s.Permissions != nil { 8550 for i, v := range s.Permissions { 8551 if v == nil { 8552 continue 8553 } 8554 if err := v.Validate(); err != nil { 8555 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Permissions", i), err.(request.ErrInvalidParams)) 8556 } 8557 } 8558 } 8559 if s.PhysicalTableMap != nil { 8560 for i, v := range s.PhysicalTableMap { 8561 if v == nil { 8562 continue 8563 } 8564 if err := v.Validate(); err != nil { 8565 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PhysicalTableMap", i), err.(request.ErrInvalidParams)) 8566 } 8567 } 8568 } 8569 if s.RowLevelPermissionDataSet != nil { 8570 if err := s.RowLevelPermissionDataSet.Validate(); err != nil { 8571 invalidParams.AddNested("RowLevelPermissionDataSet", err.(request.ErrInvalidParams)) 8572 } 8573 } 8574 if s.Tags != nil { 8575 for i, v := range s.Tags { 8576 if v == nil { 8577 continue 8578 } 8579 if err := v.Validate(); err != nil { 8580 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8581 } 8582 } 8583 } 8584 8585 if invalidParams.Len() > 0 { 8586 return invalidParams 8587 } 8588 return nil 8589} 8590 8591// SetAwsAccountId sets the AwsAccountId field's value. 8592func (s *CreateDataSetInput) SetAwsAccountId(v string) *CreateDataSetInput { 8593 s.AwsAccountId = &v 8594 return s 8595} 8596 8597// SetColumnGroups sets the ColumnGroups field's value. 8598func (s *CreateDataSetInput) SetColumnGroups(v []*ColumnGroup) *CreateDataSetInput { 8599 s.ColumnGroups = v 8600 return s 8601} 8602 8603// SetDataSetId sets the DataSetId field's value. 8604func (s *CreateDataSetInput) SetDataSetId(v string) *CreateDataSetInput { 8605 s.DataSetId = &v 8606 return s 8607} 8608 8609// SetImportMode sets the ImportMode field's value. 8610func (s *CreateDataSetInput) SetImportMode(v string) *CreateDataSetInput { 8611 s.ImportMode = &v 8612 return s 8613} 8614 8615// SetLogicalTableMap sets the LogicalTableMap field's value. 8616func (s *CreateDataSetInput) SetLogicalTableMap(v map[string]*LogicalTable) *CreateDataSetInput { 8617 s.LogicalTableMap = v 8618 return s 8619} 8620 8621// SetName sets the Name field's value. 8622func (s *CreateDataSetInput) SetName(v string) *CreateDataSetInput { 8623 s.Name = &v 8624 return s 8625} 8626 8627// SetPermissions sets the Permissions field's value. 8628func (s *CreateDataSetInput) SetPermissions(v []*ResourcePermission) *CreateDataSetInput { 8629 s.Permissions = v 8630 return s 8631} 8632 8633// SetPhysicalTableMap sets the PhysicalTableMap field's value. 8634func (s *CreateDataSetInput) SetPhysicalTableMap(v map[string]*PhysicalTable) *CreateDataSetInput { 8635 s.PhysicalTableMap = v 8636 return s 8637} 8638 8639// SetRowLevelPermissionDataSet sets the RowLevelPermissionDataSet field's value. 8640func (s *CreateDataSetInput) SetRowLevelPermissionDataSet(v *RowLevelPermissionDataSet) *CreateDataSetInput { 8641 s.RowLevelPermissionDataSet = v 8642 return s 8643} 8644 8645// SetTags sets the Tags field's value. 8646func (s *CreateDataSetInput) SetTags(v []*Tag) *CreateDataSetInput { 8647 s.Tags = v 8648 return s 8649} 8650 8651type CreateDataSetOutput struct { 8652 _ struct{} `type:"structure"` 8653 8654 // The Amazon Resource Name (ARN) of the dataset. 8655 Arn *string `type:"string"` 8656 8657 // The ID for the dataset that you want to create. This ID is unique per AWS 8658 // Region for each AWS account. 8659 DataSetId *string `type:"string"` 8660 8661 // The ARN for the ingestion, which is triggered as a result of dataset creation 8662 // if the import mode is SPICE. 8663 IngestionArn *string `type:"string"` 8664 8665 // The ID of the ingestion, which is triggered as a result of dataset creation 8666 // if the import mode is SPICE. 8667 IngestionId *string `type:"string"` 8668 8669 // The AWS request ID for this operation. 8670 RequestId *string `type:"string"` 8671 8672 // The HTTP status of the request. 8673 Status *int64 `location:"statusCode" type:"integer"` 8674} 8675 8676// String returns the string representation 8677func (s CreateDataSetOutput) String() string { 8678 return awsutil.Prettify(s) 8679} 8680 8681// GoString returns the string representation 8682func (s CreateDataSetOutput) GoString() string { 8683 return s.String() 8684} 8685 8686// SetArn sets the Arn field's value. 8687func (s *CreateDataSetOutput) SetArn(v string) *CreateDataSetOutput { 8688 s.Arn = &v 8689 return s 8690} 8691 8692// SetDataSetId sets the DataSetId field's value. 8693func (s *CreateDataSetOutput) SetDataSetId(v string) *CreateDataSetOutput { 8694 s.DataSetId = &v 8695 return s 8696} 8697 8698// SetIngestionArn sets the IngestionArn field's value. 8699func (s *CreateDataSetOutput) SetIngestionArn(v string) *CreateDataSetOutput { 8700 s.IngestionArn = &v 8701 return s 8702} 8703 8704// SetIngestionId sets the IngestionId field's value. 8705func (s *CreateDataSetOutput) SetIngestionId(v string) *CreateDataSetOutput { 8706 s.IngestionId = &v 8707 return s 8708} 8709 8710// SetRequestId sets the RequestId field's value. 8711func (s *CreateDataSetOutput) SetRequestId(v string) *CreateDataSetOutput { 8712 s.RequestId = &v 8713 return s 8714} 8715 8716// SetStatus sets the Status field's value. 8717func (s *CreateDataSetOutput) SetStatus(v int64) *CreateDataSetOutput { 8718 s.Status = &v 8719 return s 8720} 8721 8722type CreateDataSourceInput struct { 8723 _ struct{} `type:"structure"` 8724 8725 // The AWS account ID. 8726 // 8727 // AwsAccountId is a required field 8728 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 8729 8730 // The credentials QuickSight that uses to connect to your underlying source. 8731 // Currently, only credentials based on user name and password are supported. 8732 Credentials *DataSourceCredentials `type:"structure" sensitive:"true"` 8733 8734 // An ID for the data source. This ID is unique per AWS Region for each AWS 8735 // account. 8736 // 8737 // DataSourceId is a required field 8738 DataSourceId *string `type:"string" required:"true"` 8739 8740 // The parameters that QuickSight uses to connect to your underlying source. 8741 DataSourceParameters *DataSourceParameters `type:"structure"` 8742 8743 // A display name for the data source. 8744 // 8745 // Name is a required field 8746 Name *string `min:"1" type:"string" required:"true"` 8747 8748 // A list of resource permissions on the data source. 8749 Permissions []*ResourcePermission `min:"1" type:"list"` 8750 8751 // Secure Socket Layer (SSL) properties that apply when QuickSight connects 8752 // to your underlying source. 8753 SslProperties *SslProperties `type:"structure"` 8754 8755 // Contains a map of the key-value pairs for the resource tag or tags assigned 8756 // to the data source. 8757 Tags []*Tag `min:"1" type:"list"` 8758 8759 // The type of the data source. Currently, the supported types for this operation 8760 // are: ATHENA, AURORA, AURORA_POSTGRESQL, MARIADB, MYSQL, POSTGRESQL, PRESTO, 8761 // REDSHIFT, S3, SNOWFLAKE, SPARK, SQLSERVER, TERADATA. Use ListDataSources 8762 // to return a list of all data sources. 8763 // 8764 // Type is a required field 8765 Type *string `type:"string" required:"true" enum:"DataSourceType"` 8766 8767 // Use this parameter only when you want QuickSight to use a VPC connection 8768 // when connecting to your underlying source. 8769 VpcConnectionProperties *VpcConnectionProperties `type:"structure"` 8770} 8771 8772// String returns the string representation 8773func (s CreateDataSourceInput) String() string { 8774 return awsutil.Prettify(s) 8775} 8776 8777// GoString returns the string representation 8778func (s CreateDataSourceInput) GoString() string { 8779 return s.String() 8780} 8781 8782// Validate inspects the fields of the type to determine if they are valid. 8783func (s *CreateDataSourceInput) Validate() error { 8784 invalidParams := request.ErrInvalidParams{Context: "CreateDataSourceInput"} 8785 if s.AwsAccountId == nil { 8786 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 8787 } 8788 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 8789 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 8790 } 8791 if s.DataSourceId == nil { 8792 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 8793 } 8794 if s.Name == nil { 8795 invalidParams.Add(request.NewErrParamRequired("Name")) 8796 } 8797 if s.Name != nil && len(*s.Name) < 1 { 8798 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 8799 } 8800 if s.Permissions != nil && len(s.Permissions) < 1 { 8801 invalidParams.Add(request.NewErrParamMinLen("Permissions", 1)) 8802 } 8803 if s.Tags != nil && len(s.Tags) < 1 { 8804 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 8805 } 8806 if s.Type == nil { 8807 invalidParams.Add(request.NewErrParamRequired("Type")) 8808 } 8809 if s.Credentials != nil { 8810 if err := s.Credentials.Validate(); err != nil { 8811 invalidParams.AddNested("Credentials", err.(request.ErrInvalidParams)) 8812 } 8813 } 8814 if s.DataSourceParameters != nil { 8815 if err := s.DataSourceParameters.Validate(); err != nil { 8816 invalidParams.AddNested("DataSourceParameters", err.(request.ErrInvalidParams)) 8817 } 8818 } 8819 if s.Permissions != nil { 8820 for i, v := range s.Permissions { 8821 if v == nil { 8822 continue 8823 } 8824 if err := v.Validate(); err != nil { 8825 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Permissions", i), err.(request.ErrInvalidParams)) 8826 } 8827 } 8828 } 8829 if s.Tags != nil { 8830 for i, v := range s.Tags { 8831 if v == nil { 8832 continue 8833 } 8834 if err := v.Validate(); err != nil { 8835 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 8836 } 8837 } 8838 } 8839 if s.VpcConnectionProperties != nil { 8840 if err := s.VpcConnectionProperties.Validate(); err != nil { 8841 invalidParams.AddNested("VpcConnectionProperties", err.(request.ErrInvalidParams)) 8842 } 8843 } 8844 8845 if invalidParams.Len() > 0 { 8846 return invalidParams 8847 } 8848 return nil 8849} 8850 8851// SetAwsAccountId sets the AwsAccountId field's value. 8852func (s *CreateDataSourceInput) SetAwsAccountId(v string) *CreateDataSourceInput { 8853 s.AwsAccountId = &v 8854 return s 8855} 8856 8857// SetCredentials sets the Credentials field's value. 8858func (s *CreateDataSourceInput) SetCredentials(v *DataSourceCredentials) *CreateDataSourceInput { 8859 s.Credentials = v 8860 return s 8861} 8862 8863// SetDataSourceId sets the DataSourceId field's value. 8864func (s *CreateDataSourceInput) SetDataSourceId(v string) *CreateDataSourceInput { 8865 s.DataSourceId = &v 8866 return s 8867} 8868 8869// SetDataSourceParameters sets the DataSourceParameters field's value. 8870func (s *CreateDataSourceInput) SetDataSourceParameters(v *DataSourceParameters) *CreateDataSourceInput { 8871 s.DataSourceParameters = v 8872 return s 8873} 8874 8875// SetName sets the Name field's value. 8876func (s *CreateDataSourceInput) SetName(v string) *CreateDataSourceInput { 8877 s.Name = &v 8878 return s 8879} 8880 8881// SetPermissions sets the Permissions field's value. 8882func (s *CreateDataSourceInput) SetPermissions(v []*ResourcePermission) *CreateDataSourceInput { 8883 s.Permissions = v 8884 return s 8885} 8886 8887// SetSslProperties sets the SslProperties field's value. 8888func (s *CreateDataSourceInput) SetSslProperties(v *SslProperties) *CreateDataSourceInput { 8889 s.SslProperties = v 8890 return s 8891} 8892 8893// SetTags sets the Tags field's value. 8894func (s *CreateDataSourceInput) SetTags(v []*Tag) *CreateDataSourceInput { 8895 s.Tags = v 8896 return s 8897} 8898 8899// SetType sets the Type field's value. 8900func (s *CreateDataSourceInput) SetType(v string) *CreateDataSourceInput { 8901 s.Type = &v 8902 return s 8903} 8904 8905// SetVpcConnectionProperties sets the VpcConnectionProperties field's value. 8906func (s *CreateDataSourceInput) SetVpcConnectionProperties(v *VpcConnectionProperties) *CreateDataSourceInput { 8907 s.VpcConnectionProperties = v 8908 return s 8909} 8910 8911type CreateDataSourceOutput struct { 8912 _ struct{} `type:"structure"` 8913 8914 // The Amazon Resource Name (ARN) of the data source. 8915 Arn *string `type:"string"` 8916 8917 // The status of creating the data source. 8918 CreationStatus *string `type:"string" enum:"ResourceStatus"` 8919 8920 // The ID of the data source. This ID is unique per AWS Region for each AWS 8921 // account. 8922 DataSourceId *string `type:"string"` 8923 8924 // The AWS request ID for this operation. 8925 RequestId *string `type:"string"` 8926 8927 // The HTTP status of the request. 8928 Status *int64 `location:"statusCode" type:"integer"` 8929} 8930 8931// String returns the string representation 8932func (s CreateDataSourceOutput) String() string { 8933 return awsutil.Prettify(s) 8934} 8935 8936// GoString returns the string representation 8937func (s CreateDataSourceOutput) GoString() string { 8938 return s.String() 8939} 8940 8941// SetArn sets the Arn field's value. 8942func (s *CreateDataSourceOutput) SetArn(v string) *CreateDataSourceOutput { 8943 s.Arn = &v 8944 return s 8945} 8946 8947// SetCreationStatus sets the CreationStatus field's value. 8948func (s *CreateDataSourceOutput) SetCreationStatus(v string) *CreateDataSourceOutput { 8949 s.CreationStatus = &v 8950 return s 8951} 8952 8953// SetDataSourceId sets the DataSourceId field's value. 8954func (s *CreateDataSourceOutput) SetDataSourceId(v string) *CreateDataSourceOutput { 8955 s.DataSourceId = &v 8956 return s 8957} 8958 8959// SetRequestId sets the RequestId field's value. 8960func (s *CreateDataSourceOutput) SetRequestId(v string) *CreateDataSourceOutput { 8961 s.RequestId = &v 8962 return s 8963} 8964 8965// SetStatus sets the Status field's value. 8966func (s *CreateDataSourceOutput) SetStatus(v int64) *CreateDataSourceOutput { 8967 s.Status = &v 8968 return s 8969} 8970 8971// The request object for this operation. 8972type CreateGroupInput struct { 8973 _ struct{} `type:"structure"` 8974 8975 // The ID for the AWS account that the group is in. Currently, you use the ID 8976 // for the AWS account that contains your Amazon QuickSight account. 8977 // 8978 // AwsAccountId is a required field 8979 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 8980 8981 // A description for the group that you want to create. 8982 Description *string `min:"1" type:"string"` 8983 8984 // A name for the group that you want to create. 8985 // 8986 // GroupName is a required field 8987 GroupName *string `min:"1" type:"string" required:"true"` 8988 8989 // The namespace. Currently, you should set this to default. 8990 // 8991 // Namespace is a required field 8992 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 8993} 8994 8995// String returns the string representation 8996func (s CreateGroupInput) String() string { 8997 return awsutil.Prettify(s) 8998} 8999 9000// GoString returns the string representation 9001func (s CreateGroupInput) GoString() string { 9002 return s.String() 9003} 9004 9005// Validate inspects the fields of the type to determine if they are valid. 9006func (s *CreateGroupInput) Validate() error { 9007 invalidParams := request.ErrInvalidParams{Context: "CreateGroupInput"} 9008 if s.AwsAccountId == nil { 9009 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 9010 } 9011 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 9012 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 9013 } 9014 if s.Description != nil && len(*s.Description) < 1 { 9015 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 9016 } 9017 if s.GroupName == nil { 9018 invalidParams.Add(request.NewErrParamRequired("GroupName")) 9019 } 9020 if s.GroupName != nil && len(*s.GroupName) < 1 { 9021 invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) 9022 } 9023 if s.Namespace == nil { 9024 invalidParams.Add(request.NewErrParamRequired("Namespace")) 9025 } 9026 if s.Namespace != nil && len(*s.Namespace) < 1 { 9027 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 9028 } 9029 9030 if invalidParams.Len() > 0 { 9031 return invalidParams 9032 } 9033 return nil 9034} 9035 9036// SetAwsAccountId sets the AwsAccountId field's value. 9037func (s *CreateGroupInput) SetAwsAccountId(v string) *CreateGroupInput { 9038 s.AwsAccountId = &v 9039 return s 9040} 9041 9042// SetDescription sets the Description field's value. 9043func (s *CreateGroupInput) SetDescription(v string) *CreateGroupInput { 9044 s.Description = &v 9045 return s 9046} 9047 9048// SetGroupName sets the GroupName field's value. 9049func (s *CreateGroupInput) SetGroupName(v string) *CreateGroupInput { 9050 s.GroupName = &v 9051 return s 9052} 9053 9054// SetNamespace sets the Namespace field's value. 9055func (s *CreateGroupInput) SetNamespace(v string) *CreateGroupInput { 9056 s.Namespace = &v 9057 return s 9058} 9059 9060type CreateGroupMembershipInput struct { 9061 _ struct{} `type:"structure"` 9062 9063 // The ID for the AWS account that the group is in. Currently, you use the ID 9064 // for the AWS account that contains your Amazon QuickSight account. 9065 // 9066 // AwsAccountId is a required field 9067 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 9068 9069 // The name of the group that you want to add the user to. 9070 // 9071 // GroupName is a required field 9072 GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` 9073 9074 // The name of the user that you want to add to the group membership. 9075 // 9076 // MemberName is a required field 9077 MemberName *string `location:"uri" locationName:"MemberName" min:"1" type:"string" required:"true"` 9078 9079 // The namespace. Currently, you should set this to default. 9080 // 9081 // Namespace is a required field 9082 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 9083} 9084 9085// String returns the string representation 9086func (s CreateGroupMembershipInput) String() string { 9087 return awsutil.Prettify(s) 9088} 9089 9090// GoString returns the string representation 9091func (s CreateGroupMembershipInput) GoString() string { 9092 return s.String() 9093} 9094 9095// Validate inspects the fields of the type to determine if they are valid. 9096func (s *CreateGroupMembershipInput) Validate() error { 9097 invalidParams := request.ErrInvalidParams{Context: "CreateGroupMembershipInput"} 9098 if s.AwsAccountId == nil { 9099 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 9100 } 9101 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 9102 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 9103 } 9104 if s.GroupName == nil { 9105 invalidParams.Add(request.NewErrParamRequired("GroupName")) 9106 } 9107 if s.GroupName != nil && len(*s.GroupName) < 1 { 9108 invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) 9109 } 9110 if s.MemberName == nil { 9111 invalidParams.Add(request.NewErrParamRequired("MemberName")) 9112 } 9113 if s.MemberName != nil && len(*s.MemberName) < 1 { 9114 invalidParams.Add(request.NewErrParamMinLen("MemberName", 1)) 9115 } 9116 if s.Namespace == nil { 9117 invalidParams.Add(request.NewErrParamRequired("Namespace")) 9118 } 9119 if s.Namespace != nil && len(*s.Namespace) < 1 { 9120 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 9121 } 9122 9123 if invalidParams.Len() > 0 { 9124 return invalidParams 9125 } 9126 return nil 9127} 9128 9129// SetAwsAccountId sets the AwsAccountId field's value. 9130func (s *CreateGroupMembershipInput) SetAwsAccountId(v string) *CreateGroupMembershipInput { 9131 s.AwsAccountId = &v 9132 return s 9133} 9134 9135// SetGroupName sets the GroupName field's value. 9136func (s *CreateGroupMembershipInput) SetGroupName(v string) *CreateGroupMembershipInput { 9137 s.GroupName = &v 9138 return s 9139} 9140 9141// SetMemberName sets the MemberName field's value. 9142func (s *CreateGroupMembershipInput) SetMemberName(v string) *CreateGroupMembershipInput { 9143 s.MemberName = &v 9144 return s 9145} 9146 9147// SetNamespace sets the Namespace field's value. 9148func (s *CreateGroupMembershipInput) SetNamespace(v string) *CreateGroupMembershipInput { 9149 s.Namespace = &v 9150 return s 9151} 9152 9153type CreateGroupMembershipOutput struct { 9154 _ struct{} `type:"structure"` 9155 9156 // The group member. 9157 GroupMember *GroupMember `type:"structure"` 9158 9159 // The AWS request ID for this operation. 9160 RequestId *string `type:"string"` 9161 9162 // The HTTP status of the request. 9163 Status *int64 `location:"statusCode" type:"integer"` 9164} 9165 9166// String returns the string representation 9167func (s CreateGroupMembershipOutput) String() string { 9168 return awsutil.Prettify(s) 9169} 9170 9171// GoString returns the string representation 9172func (s CreateGroupMembershipOutput) GoString() string { 9173 return s.String() 9174} 9175 9176// SetGroupMember sets the GroupMember field's value. 9177func (s *CreateGroupMembershipOutput) SetGroupMember(v *GroupMember) *CreateGroupMembershipOutput { 9178 s.GroupMember = v 9179 return s 9180} 9181 9182// SetRequestId sets the RequestId field's value. 9183func (s *CreateGroupMembershipOutput) SetRequestId(v string) *CreateGroupMembershipOutput { 9184 s.RequestId = &v 9185 return s 9186} 9187 9188// SetStatus sets the Status field's value. 9189func (s *CreateGroupMembershipOutput) SetStatus(v int64) *CreateGroupMembershipOutput { 9190 s.Status = &v 9191 return s 9192} 9193 9194// The response object for this operation. 9195type CreateGroupOutput struct { 9196 _ struct{} `type:"structure"` 9197 9198 // The name of the group. 9199 Group *Group `type:"structure"` 9200 9201 // The AWS request ID for this operation. 9202 RequestId *string `type:"string"` 9203 9204 // The HTTP status of the request. 9205 Status *int64 `location:"statusCode" type:"integer"` 9206} 9207 9208// String returns the string representation 9209func (s CreateGroupOutput) String() string { 9210 return awsutil.Prettify(s) 9211} 9212 9213// GoString returns the string representation 9214func (s CreateGroupOutput) GoString() string { 9215 return s.String() 9216} 9217 9218// SetGroup sets the Group field's value. 9219func (s *CreateGroupOutput) SetGroup(v *Group) *CreateGroupOutput { 9220 s.Group = v 9221 return s 9222} 9223 9224// SetRequestId sets the RequestId field's value. 9225func (s *CreateGroupOutput) SetRequestId(v string) *CreateGroupOutput { 9226 s.RequestId = &v 9227 return s 9228} 9229 9230// SetStatus sets the Status field's value. 9231func (s *CreateGroupOutput) SetStatus(v int64) *CreateGroupOutput { 9232 s.Status = &v 9233 return s 9234} 9235 9236type CreateIAMPolicyAssignmentInput struct { 9237 _ struct{} `type:"structure"` 9238 9239 // The name of the assignment. It must be unique within an AWS account. 9240 // 9241 // AssignmentName is a required field 9242 AssignmentName *string `min:"1" type:"string" required:"true"` 9243 9244 // The status of the assignment. Possible values are as follows: 9245 // 9246 // * ENABLED - Anything specified in this assignment is used when creating 9247 // the data source. 9248 // 9249 // * DISABLED - This assignment isn't used when creating the data source. 9250 // 9251 // * DRAFT - This assignment is an unfinished draft and isn't used when creating 9252 // the data source. 9253 // 9254 // AssignmentStatus is a required field 9255 AssignmentStatus *string `type:"string" required:"true" enum:"AssignmentStatus"` 9256 9257 // The ID of the AWS account where you want to assign an IAM policy to QuickSight 9258 // users or groups. 9259 // 9260 // AwsAccountId is a required field 9261 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 9262 9263 // The QuickSight users, groups, or both that you want to assign the policy 9264 // to. 9265 Identities map[string][]*string `type:"map"` 9266 9267 // The namespace that contains the assignment. 9268 // 9269 // Namespace is a required field 9270 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 9271 9272 // The ARN for the IAM policy to apply to the QuickSight users and groups specified 9273 // in this assignment. 9274 PolicyArn *string `type:"string"` 9275} 9276 9277// String returns the string representation 9278func (s CreateIAMPolicyAssignmentInput) String() string { 9279 return awsutil.Prettify(s) 9280} 9281 9282// GoString returns the string representation 9283func (s CreateIAMPolicyAssignmentInput) GoString() string { 9284 return s.String() 9285} 9286 9287// Validate inspects the fields of the type to determine if they are valid. 9288func (s *CreateIAMPolicyAssignmentInput) Validate() error { 9289 invalidParams := request.ErrInvalidParams{Context: "CreateIAMPolicyAssignmentInput"} 9290 if s.AssignmentName == nil { 9291 invalidParams.Add(request.NewErrParamRequired("AssignmentName")) 9292 } 9293 if s.AssignmentName != nil && len(*s.AssignmentName) < 1 { 9294 invalidParams.Add(request.NewErrParamMinLen("AssignmentName", 1)) 9295 } 9296 if s.AssignmentStatus == nil { 9297 invalidParams.Add(request.NewErrParamRequired("AssignmentStatus")) 9298 } 9299 if s.AwsAccountId == nil { 9300 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 9301 } 9302 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 9303 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 9304 } 9305 if s.Namespace == nil { 9306 invalidParams.Add(request.NewErrParamRequired("Namespace")) 9307 } 9308 if s.Namespace != nil && len(*s.Namespace) < 1 { 9309 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 9310 } 9311 9312 if invalidParams.Len() > 0 { 9313 return invalidParams 9314 } 9315 return nil 9316} 9317 9318// SetAssignmentName sets the AssignmentName field's value. 9319func (s *CreateIAMPolicyAssignmentInput) SetAssignmentName(v string) *CreateIAMPolicyAssignmentInput { 9320 s.AssignmentName = &v 9321 return s 9322} 9323 9324// SetAssignmentStatus sets the AssignmentStatus field's value. 9325func (s *CreateIAMPolicyAssignmentInput) SetAssignmentStatus(v string) *CreateIAMPolicyAssignmentInput { 9326 s.AssignmentStatus = &v 9327 return s 9328} 9329 9330// SetAwsAccountId sets the AwsAccountId field's value. 9331func (s *CreateIAMPolicyAssignmentInput) SetAwsAccountId(v string) *CreateIAMPolicyAssignmentInput { 9332 s.AwsAccountId = &v 9333 return s 9334} 9335 9336// SetIdentities sets the Identities field's value. 9337func (s *CreateIAMPolicyAssignmentInput) SetIdentities(v map[string][]*string) *CreateIAMPolicyAssignmentInput { 9338 s.Identities = v 9339 return s 9340} 9341 9342// SetNamespace sets the Namespace field's value. 9343func (s *CreateIAMPolicyAssignmentInput) SetNamespace(v string) *CreateIAMPolicyAssignmentInput { 9344 s.Namespace = &v 9345 return s 9346} 9347 9348// SetPolicyArn sets the PolicyArn field's value. 9349func (s *CreateIAMPolicyAssignmentInput) SetPolicyArn(v string) *CreateIAMPolicyAssignmentInput { 9350 s.PolicyArn = &v 9351 return s 9352} 9353 9354type CreateIAMPolicyAssignmentOutput struct { 9355 _ struct{} `type:"structure"` 9356 9357 // The ID for the assignment. 9358 AssignmentId *string `type:"string"` 9359 9360 // The name of the assignment. This name must be unique within the AWS account. 9361 AssignmentName *string `min:"1" type:"string"` 9362 9363 // The status of the assignment. Possible values are as follows: 9364 // 9365 // * ENABLED - Anything specified in this assignment is used when creating 9366 // the data source. 9367 // 9368 // * DISABLED - This assignment isn't used when creating the data source. 9369 // 9370 // * DRAFT - This assignment is an unfinished draft and isn't used when creating 9371 // the data source. 9372 AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` 9373 9374 // The QuickSight users, groups, or both that the IAM policy is assigned to. 9375 Identities map[string][]*string `type:"map"` 9376 9377 // The ARN for the IAM policy that is applied to the QuickSight users and groups 9378 // specified in this assignment. 9379 PolicyArn *string `type:"string"` 9380 9381 // The AWS request ID for this operation. 9382 RequestId *string `type:"string"` 9383 9384 // The HTTP status of the request. 9385 Status *int64 `location:"statusCode" type:"integer"` 9386} 9387 9388// String returns the string representation 9389func (s CreateIAMPolicyAssignmentOutput) String() string { 9390 return awsutil.Prettify(s) 9391} 9392 9393// GoString returns the string representation 9394func (s CreateIAMPolicyAssignmentOutput) GoString() string { 9395 return s.String() 9396} 9397 9398// SetAssignmentId sets the AssignmentId field's value. 9399func (s *CreateIAMPolicyAssignmentOutput) SetAssignmentId(v string) *CreateIAMPolicyAssignmentOutput { 9400 s.AssignmentId = &v 9401 return s 9402} 9403 9404// SetAssignmentName sets the AssignmentName field's value. 9405func (s *CreateIAMPolicyAssignmentOutput) SetAssignmentName(v string) *CreateIAMPolicyAssignmentOutput { 9406 s.AssignmentName = &v 9407 return s 9408} 9409 9410// SetAssignmentStatus sets the AssignmentStatus field's value. 9411func (s *CreateIAMPolicyAssignmentOutput) SetAssignmentStatus(v string) *CreateIAMPolicyAssignmentOutput { 9412 s.AssignmentStatus = &v 9413 return s 9414} 9415 9416// SetIdentities sets the Identities field's value. 9417func (s *CreateIAMPolicyAssignmentOutput) SetIdentities(v map[string][]*string) *CreateIAMPolicyAssignmentOutput { 9418 s.Identities = v 9419 return s 9420} 9421 9422// SetPolicyArn sets the PolicyArn field's value. 9423func (s *CreateIAMPolicyAssignmentOutput) SetPolicyArn(v string) *CreateIAMPolicyAssignmentOutput { 9424 s.PolicyArn = &v 9425 return s 9426} 9427 9428// SetRequestId sets the RequestId field's value. 9429func (s *CreateIAMPolicyAssignmentOutput) SetRequestId(v string) *CreateIAMPolicyAssignmentOutput { 9430 s.RequestId = &v 9431 return s 9432} 9433 9434// SetStatus sets the Status field's value. 9435func (s *CreateIAMPolicyAssignmentOutput) SetStatus(v int64) *CreateIAMPolicyAssignmentOutput { 9436 s.Status = &v 9437 return s 9438} 9439 9440type CreateIngestionInput struct { 9441 _ struct{} `type:"structure"` 9442 9443 // The AWS account ID. 9444 // 9445 // AwsAccountId is a required field 9446 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 9447 9448 // The ID of the dataset used in the ingestion. 9449 // 9450 // DataSetId is a required field 9451 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 9452 9453 // An ID for the ingestion. 9454 // 9455 // IngestionId is a required field 9456 IngestionId *string `location:"uri" locationName:"IngestionId" min:"1" type:"string" required:"true"` 9457} 9458 9459// String returns the string representation 9460func (s CreateIngestionInput) String() string { 9461 return awsutil.Prettify(s) 9462} 9463 9464// GoString returns the string representation 9465func (s CreateIngestionInput) GoString() string { 9466 return s.String() 9467} 9468 9469// Validate inspects the fields of the type to determine if they are valid. 9470func (s *CreateIngestionInput) Validate() error { 9471 invalidParams := request.ErrInvalidParams{Context: "CreateIngestionInput"} 9472 if s.AwsAccountId == nil { 9473 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 9474 } 9475 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 9476 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 9477 } 9478 if s.DataSetId == nil { 9479 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 9480 } 9481 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 9482 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 9483 } 9484 if s.IngestionId == nil { 9485 invalidParams.Add(request.NewErrParamRequired("IngestionId")) 9486 } 9487 if s.IngestionId != nil && len(*s.IngestionId) < 1 { 9488 invalidParams.Add(request.NewErrParamMinLen("IngestionId", 1)) 9489 } 9490 9491 if invalidParams.Len() > 0 { 9492 return invalidParams 9493 } 9494 return nil 9495} 9496 9497// SetAwsAccountId sets the AwsAccountId field's value. 9498func (s *CreateIngestionInput) SetAwsAccountId(v string) *CreateIngestionInput { 9499 s.AwsAccountId = &v 9500 return s 9501} 9502 9503// SetDataSetId sets the DataSetId field's value. 9504func (s *CreateIngestionInput) SetDataSetId(v string) *CreateIngestionInput { 9505 s.DataSetId = &v 9506 return s 9507} 9508 9509// SetIngestionId sets the IngestionId field's value. 9510func (s *CreateIngestionInput) SetIngestionId(v string) *CreateIngestionInput { 9511 s.IngestionId = &v 9512 return s 9513} 9514 9515type CreateIngestionOutput struct { 9516 _ struct{} `type:"structure"` 9517 9518 // The Amazon Resource Name (ARN) for the data ingestion. 9519 Arn *string `type:"string"` 9520 9521 // An ID for the ingestion. 9522 IngestionId *string `min:"1" type:"string"` 9523 9524 // The ingestion status. 9525 IngestionStatus *string `type:"string" enum:"IngestionStatus"` 9526 9527 // The AWS request ID for this operation. 9528 RequestId *string `type:"string"` 9529 9530 // The HTTP status of the request. 9531 Status *int64 `location:"statusCode" type:"integer"` 9532} 9533 9534// String returns the string representation 9535func (s CreateIngestionOutput) String() string { 9536 return awsutil.Prettify(s) 9537} 9538 9539// GoString returns the string representation 9540func (s CreateIngestionOutput) GoString() string { 9541 return s.String() 9542} 9543 9544// SetArn sets the Arn field's value. 9545func (s *CreateIngestionOutput) SetArn(v string) *CreateIngestionOutput { 9546 s.Arn = &v 9547 return s 9548} 9549 9550// SetIngestionId sets the IngestionId field's value. 9551func (s *CreateIngestionOutput) SetIngestionId(v string) *CreateIngestionOutput { 9552 s.IngestionId = &v 9553 return s 9554} 9555 9556// SetIngestionStatus sets the IngestionStatus field's value. 9557func (s *CreateIngestionOutput) SetIngestionStatus(v string) *CreateIngestionOutput { 9558 s.IngestionStatus = &v 9559 return s 9560} 9561 9562// SetRequestId sets the RequestId field's value. 9563func (s *CreateIngestionOutput) SetRequestId(v string) *CreateIngestionOutput { 9564 s.RequestId = &v 9565 return s 9566} 9567 9568// SetStatus sets the Status field's value. 9569func (s *CreateIngestionOutput) SetStatus(v int64) *CreateIngestionOutput { 9570 s.Status = &v 9571 return s 9572} 9573 9574type CreateTemplateAliasInput struct { 9575 _ struct{} `type:"structure"` 9576 9577 // The name that you want to give to the template alias that you're creating. 9578 // Don't start the alias name with the $ character. Alias names that start with 9579 // $ are reserved by QuickSight. 9580 // 9581 // AliasName is a required field 9582 AliasName *string `location:"uri" locationName:"AliasName" min:"1" type:"string" required:"true"` 9583 9584 // The ID of the AWS account that contains the template that you creating an 9585 // alias for. 9586 // 9587 // AwsAccountId is a required field 9588 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 9589 9590 // An ID for the template. 9591 // 9592 // TemplateId is a required field 9593 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 9594 9595 // The version number of the template. 9596 // 9597 // TemplateVersionNumber is a required field 9598 TemplateVersionNumber *int64 `min:"1" type:"long" required:"true"` 9599} 9600 9601// String returns the string representation 9602func (s CreateTemplateAliasInput) String() string { 9603 return awsutil.Prettify(s) 9604} 9605 9606// GoString returns the string representation 9607func (s CreateTemplateAliasInput) GoString() string { 9608 return s.String() 9609} 9610 9611// Validate inspects the fields of the type to determine if they are valid. 9612func (s *CreateTemplateAliasInput) Validate() error { 9613 invalidParams := request.ErrInvalidParams{Context: "CreateTemplateAliasInput"} 9614 if s.AliasName == nil { 9615 invalidParams.Add(request.NewErrParamRequired("AliasName")) 9616 } 9617 if s.AliasName != nil && len(*s.AliasName) < 1 { 9618 invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) 9619 } 9620 if s.AwsAccountId == nil { 9621 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 9622 } 9623 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 9624 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 9625 } 9626 if s.TemplateId == nil { 9627 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 9628 } 9629 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 9630 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 9631 } 9632 if s.TemplateVersionNumber == nil { 9633 invalidParams.Add(request.NewErrParamRequired("TemplateVersionNumber")) 9634 } 9635 if s.TemplateVersionNumber != nil && *s.TemplateVersionNumber < 1 { 9636 invalidParams.Add(request.NewErrParamMinValue("TemplateVersionNumber", 1)) 9637 } 9638 9639 if invalidParams.Len() > 0 { 9640 return invalidParams 9641 } 9642 return nil 9643} 9644 9645// SetAliasName sets the AliasName field's value. 9646func (s *CreateTemplateAliasInput) SetAliasName(v string) *CreateTemplateAliasInput { 9647 s.AliasName = &v 9648 return s 9649} 9650 9651// SetAwsAccountId sets the AwsAccountId field's value. 9652func (s *CreateTemplateAliasInput) SetAwsAccountId(v string) *CreateTemplateAliasInput { 9653 s.AwsAccountId = &v 9654 return s 9655} 9656 9657// SetTemplateId sets the TemplateId field's value. 9658func (s *CreateTemplateAliasInput) SetTemplateId(v string) *CreateTemplateAliasInput { 9659 s.TemplateId = &v 9660 return s 9661} 9662 9663// SetTemplateVersionNumber sets the TemplateVersionNumber field's value. 9664func (s *CreateTemplateAliasInput) SetTemplateVersionNumber(v int64) *CreateTemplateAliasInput { 9665 s.TemplateVersionNumber = &v 9666 return s 9667} 9668 9669type CreateTemplateAliasOutput struct { 9670 _ struct{} `type:"structure"` 9671 9672 // The AWS request ID for this operation. 9673 RequestId *string `type:"string"` 9674 9675 // The HTTP status of the request. 9676 Status *int64 `location:"statusCode" type:"integer"` 9677 9678 // Information about the template alias. 9679 TemplateAlias *TemplateAlias `type:"structure"` 9680} 9681 9682// String returns the string representation 9683func (s CreateTemplateAliasOutput) String() string { 9684 return awsutil.Prettify(s) 9685} 9686 9687// GoString returns the string representation 9688func (s CreateTemplateAliasOutput) GoString() string { 9689 return s.String() 9690} 9691 9692// SetRequestId sets the RequestId field's value. 9693func (s *CreateTemplateAliasOutput) SetRequestId(v string) *CreateTemplateAliasOutput { 9694 s.RequestId = &v 9695 return s 9696} 9697 9698// SetStatus sets the Status field's value. 9699func (s *CreateTemplateAliasOutput) SetStatus(v int64) *CreateTemplateAliasOutput { 9700 s.Status = &v 9701 return s 9702} 9703 9704// SetTemplateAlias sets the TemplateAlias field's value. 9705func (s *CreateTemplateAliasOutput) SetTemplateAlias(v *TemplateAlias) *CreateTemplateAliasOutput { 9706 s.TemplateAlias = v 9707 return s 9708} 9709 9710type CreateTemplateInput struct { 9711 _ struct{} `type:"structure"` 9712 9713 // The ID for the AWS account that the group is in. Currently, you use the ID 9714 // for the AWS account that contains your Amazon QuickSight account. 9715 // 9716 // AwsAccountId is a required field 9717 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 9718 9719 // A display name for the template. 9720 Name *string `min:"1" type:"string"` 9721 9722 // A list of resource permissions to be set on the template. 9723 Permissions []*ResourcePermission `min:"1" type:"list"` 9724 9725 // The Amazon Resource Name (ARN) of the source entity from which this template 9726 // is being created. Currently, you can create a template from an analysis or 9727 // another template. If the ARN is for an analysis, include its dataset references. 9728 // 9729 // SourceEntity is a required field 9730 SourceEntity *TemplateSourceEntity `type:"structure" required:"true"` 9731 9732 // Contains a map of the key-value pairs for the resource tag or tags assigned 9733 // to the resource. 9734 Tags []*Tag `min:"1" type:"list"` 9735 9736 // An ID for the template that you want to create. This template is unique per 9737 // AWS Region in each AWS account. 9738 // 9739 // TemplateId is a required field 9740 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 9741 9742 // A description of the current template version being created. This API operation 9743 // creates the first version of the template. Every time UpdateTemplate is called, 9744 // a new version is created. Each version of the template maintains a description 9745 // of the version in the VersionDescription field. 9746 VersionDescription *string `min:"1" type:"string"` 9747} 9748 9749// String returns the string representation 9750func (s CreateTemplateInput) String() string { 9751 return awsutil.Prettify(s) 9752} 9753 9754// GoString returns the string representation 9755func (s CreateTemplateInput) GoString() string { 9756 return s.String() 9757} 9758 9759// Validate inspects the fields of the type to determine if they are valid. 9760func (s *CreateTemplateInput) Validate() error { 9761 invalidParams := request.ErrInvalidParams{Context: "CreateTemplateInput"} 9762 if s.AwsAccountId == nil { 9763 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 9764 } 9765 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 9766 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 9767 } 9768 if s.Name != nil && len(*s.Name) < 1 { 9769 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 9770 } 9771 if s.Permissions != nil && len(s.Permissions) < 1 { 9772 invalidParams.Add(request.NewErrParamMinLen("Permissions", 1)) 9773 } 9774 if s.SourceEntity == nil { 9775 invalidParams.Add(request.NewErrParamRequired("SourceEntity")) 9776 } 9777 if s.Tags != nil && len(s.Tags) < 1 { 9778 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 9779 } 9780 if s.TemplateId == nil { 9781 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 9782 } 9783 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 9784 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 9785 } 9786 if s.VersionDescription != nil && len(*s.VersionDescription) < 1 { 9787 invalidParams.Add(request.NewErrParamMinLen("VersionDescription", 1)) 9788 } 9789 if s.Permissions != nil { 9790 for i, v := range s.Permissions { 9791 if v == nil { 9792 continue 9793 } 9794 if err := v.Validate(); err != nil { 9795 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Permissions", i), err.(request.ErrInvalidParams)) 9796 } 9797 } 9798 } 9799 if s.SourceEntity != nil { 9800 if err := s.SourceEntity.Validate(); err != nil { 9801 invalidParams.AddNested("SourceEntity", err.(request.ErrInvalidParams)) 9802 } 9803 } 9804 if s.Tags != nil { 9805 for i, v := range s.Tags { 9806 if v == nil { 9807 continue 9808 } 9809 if err := v.Validate(); err != nil { 9810 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 9811 } 9812 } 9813 } 9814 9815 if invalidParams.Len() > 0 { 9816 return invalidParams 9817 } 9818 return nil 9819} 9820 9821// SetAwsAccountId sets the AwsAccountId field's value. 9822func (s *CreateTemplateInput) SetAwsAccountId(v string) *CreateTemplateInput { 9823 s.AwsAccountId = &v 9824 return s 9825} 9826 9827// SetName sets the Name field's value. 9828func (s *CreateTemplateInput) SetName(v string) *CreateTemplateInput { 9829 s.Name = &v 9830 return s 9831} 9832 9833// SetPermissions sets the Permissions field's value. 9834func (s *CreateTemplateInput) SetPermissions(v []*ResourcePermission) *CreateTemplateInput { 9835 s.Permissions = v 9836 return s 9837} 9838 9839// SetSourceEntity sets the SourceEntity field's value. 9840func (s *CreateTemplateInput) SetSourceEntity(v *TemplateSourceEntity) *CreateTemplateInput { 9841 s.SourceEntity = v 9842 return s 9843} 9844 9845// SetTags sets the Tags field's value. 9846func (s *CreateTemplateInput) SetTags(v []*Tag) *CreateTemplateInput { 9847 s.Tags = v 9848 return s 9849} 9850 9851// SetTemplateId sets the TemplateId field's value. 9852func (s *CreateTemplateInput) SetTemplateId(v string) *CreateTemplateInput { 9853 s.TemplateId = &v 9854 return s 9855} 9856 9857// SetVersionDescription sets the VersionDescription field's value. 9858func (s *CreateTemplateInput) SetVersionDescription(v string) *CreateTemplateInput { 9859 s.VersionDescription = &v 9860 return s 9861} 9862 9863type CreateTemplateOutput struct { 9864 _ struct{} `type:"structure"` 9865 9866 // The ARN for the template. 9867 Arn *string `type:"string"` 9868 9869 // The template creation status. 9870 CreationStatus *string `type:"string" enum:"ResourceStatus"` 9871 9872 // The AWS request ID for this operation. 9873 RequestId *string `type:"string"` 9874 9875 // The HTTP status of the request. 9876 Status *int64 `location:"statusCode" type:"integer"` 9877 9878 // The ID of the template. 9879 TemplateId *string `min:"1" type:"string"` 9880 9881 // The ARN for the template, including the version information of the first 9882 // version. 9883 VersionArn *string `type:"string"` 9884} 9885 9886// String returns the string representation 9887func (s CreateTemplateOutput) String() string { 9888 return awsutil.Prettify(s) 9889} 9890 9891// GoString returns the string representation 9892func (s CreateTemplateOutput) GoString() string { 9893 return s.String() 9894} 9895 9896// SetArn sets the Arn field's value. 9897func (s *CreateTemplateOutput) SetArn(v string) *CreateTemplateOutput { 9898 s.Arn = &v 9899 return s 9900} 9901 9902// SetCreationStatus sets the CreationStatus field's value. 9903func (s *CreateTemplateOutput) SetCreationStatus(v string) *CreateTemplateOutput { 9904 s.CreationStatus = &v 9905 return s 9906} 9907 9908// SetRequestId sets the RequestId field's value. 9909func (s *CreateTemplateOutput) SetRequestId(v string) *CreateTemplateOutput { 9910 s.RequestId = &v 9911 return s 9912} 9913 9914// SetStatus sets the Status field's value. 9915func (s *CreateTemplateOutput) SetStatus(v int64) *CreateTemplateOutput { 9916 s.Status = &v 9917 return s 9918} 9919 9920// SetTemplateId sets the TemplateId field's value. 9921func (s *CreateTemplateOutput) SetTemplateId(v string) *CreateTemplateOutput { 9922 s.TemplateId = &v 9923 return s 9924} 9925 9926// SetVersionArn sets the VersionArn field's value. 9927func (s *CreateTemplateOutput) SetVersionArn(v string) *CreateTemplateOutput { 9928 s.VersionArn = &v 9929 return s 9930} 9931 9932// The combination of user name and password that are used as credentials. 9933type CredentialPair struct { 9934 _ struct{} `type:"structure"` 9935 9936 // Password. 9937 // 9938 // Password is a required field 9939 Password *string `min:"1" type:"string" required:"true"` 9940 9941 // User name. 9942 // 9943 // Username is a required field 9944 Username *string `min:"1" type:"string" required:"true"` 9945} 9946 9947// String returns the string representation 9948func (s CredentialPair) String() string { 9949 return awsutil.Prettify(s) 9950} 9951 9952// GoString returns the string representation 9953func (s CredentialPair) GoString() string { 9954 return s.String() 9955} 9956 9957// Validate inspects the fields of the type to determine if they are valid. 9958func (s *CredentialPair) Validate() error { 9959 invalidParams := request.ErrInvalidParams{Context: "CredentialPair"} 9960 if s.Password == nil { 9961 invalidParams.Add(request.NewErrParamRequired("Password")) 9962 } 9963 if s.Password != nil && len(*s.Password) < 1 { 9964 invalidParams.Add(request.NewErrParamMinLen("Password", 1)) 9965 } 9966 if s.Username == nil { 9967 invalidParams.Add(request.NewErrParamRequired("Username")) 9968 } 9969 if s.Username != nil && len(*s.Username) < 1 { 9970 invalidParams.Add(request.NewErrParamMinLen("Username", 1)) 9971 } 9972 9973 if invalidParams.Len() > 0 { 9974 return invalidParams 9975 } 9976 return nil 9977} 9978 9979// SetPassword sets the Password field's value. 9980func (s *CredentialPair) SetPassword(v string) *CredentialPair { 9981 s.Password = &v 9982 return s 9983} 9984 9985// SetUsername sets the Username field's value. 9986func (s *CredentialPair) SetUsername(v string) *CredentialPair { 9987 s.Username = &v 9988 return s 9989} 9990 9991// A physical table type built from the results of the custom SQL query. 9992type CustomSql struct { 9993 _ struct{} `type:"structure"` 9994 9995 // The column schema from the SQL query result set. 9996 Columns []*InputColumn `min:"1" type:"list"` 9997 9998 // The Amazon Resource Name (ARN) of the data source. 9999 // 10000 // DataSourceArn is a required field 10001 DataSourceArn *string `type:"string" required:"true"` 10002 10003 // A display name for the SQL query result. 10004 // 10005 // Name is a required field 10006 Name *string `min:"1" type:"string" required:"true"` 10007 10008 // The SQL query. 10009 // 10010 // SqlQuery is a required field 10011 SqlQuery *string `min:"1" type:"string" required:"true"` 10012} 10013 10014// String returns the string representation 10015func (s CustomSql) String() string { 10016 return awsutil.Prettify(s) 10017} 10018 10019// GoString returns the string representation 10020func (s CustomSql) GoString() string { 10021 return s.String() 10022} 10023 10024// Validate inspects the fields of the type to determine if they are valid. 10025func (s *CustomSql) Validate() error { 10026 invalidParams := request.ErrInvalidParams{Context: "CustomSql"} 10027 if s.Columns != nil && len(s.Columns) < 1 { 10028 invalidParams.Add(request.NewErrParamMinLen("Columns", 1)) 10029 } 10030 if s.DataSourceArn == nil { 10031 invalidParams.Add(request.NewErrParamRequired("DataSourceArn")) 10032 } 10033 if s.Name == nil { 10034 invalidParams.Add(request.NewErrParamRequired("Name")) 10035 } 10036 if s.Name != nil && len(*s.Name) < 1 { 10037 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 10038 } 10039 if s.SqlQuery == nil { 10040 invalidParams.Add(request.NewErrParamRequired("SqlQuery")) 10041 } 10042 if s.SqlQuery != nil && len(*s.SqlQuery) < 1 { 10043 invalidParams.Add(request.NewErrParamMinLen("SqlQuery", 1)) 10044 } 10045 if s.Columns != nil { 10046 for i, v := range s.Columns { 10047 if v == nil { 10048 continue 10049 } 10050 if err := v.Validate(); err != nil { 10051 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Columns", i), err.(request.ErrInvalidParams)) 10052 } 10053 } 10054 } 10055 10056 if invalidParams.Len() > 0 { 10057 return invalidParams 10058 } 10059 return nil 10060} 10061 10062// SetColumns sets the Columns field's value. 10063func (s *CustomSql) SetColumns(v []*InputColumn) *CustomSql { 10064 s.Columns = v 10065 return s 10066} 10067 10068// SetDataSourceArn sets the DataSourceArn field's value. 10069func (s *CustomSql) SetDataSourceArn(v string) *CustomSql { 10070 s.DataSourceArn = &v 10071 return s 10072} 10073 10074// SetName sets the Name field's value. 10075func (s *CustomSql) SetName(v string) *CustomSql { 10076 s.Name = &v 10077 return s 10078} 10079 10080// SetSqlQuery sets the SqlQuery field's value. 10081func (s *CustomSql) SetSqlQuery(v string) *CustomSql { 10082 s.SqlQuery = &v 10083 return s 10084} 10085 10086// Dashboard. 10087type Dashboard struct { 10088 _ struct{} `type:"structure"` 10089 10090 // The Amazon Resource Name (ARN) of the resource. 10091 Arn *string `type:"string"` 10092 10093 // The time that this dataset was created. 10094 CreatedTime *time.Time `type:"timestamp"` 10095 10096 // Dashboard ID. 10097 DashboardId *string `min:"1" type:"string"` 10098 10099 // The last time that this dataset was published. 10100 LastPublishedTime *time.Time `type:"timestamp"` 10101 10102 // The last time that this dataset was updated. 10103 LastUpdatedTime *time.Time `type:"timestamp"` 10104 10105 // A display name for the dataset. 10106 Name *string `min:"1" type:"string"` 10107 10108 // Version. 10109 Version *DashboardVersion `type:"structure"` 10110} 10111 10112// String returns the string representation 10113func (s Dashboard) String() string { 10114 return awsutil.Prettify(s) 10115} 10116 10117// GoString returns the string representation 10118func (s Dashboard) GoString() string { 10119 return s.String() 10120} 10121 10122// SetArn sets the Arn field's value. 10123func (s *Dashboard) SetArn(v string) *Dashboard { 10124 s.Arn = &v 10125 return s 10126} 10127 10128// SetCreatedTime sets the CreatedTime field's value. 10129func (s *Dashboard) SetCreatedTime(v time.Time) *Dashboard { 10130 s.CreatedTime = &v 10131 return s 10132} 10133 10134// SetDashboardId sets the DashboardId field's value. 10135func (s *Dashboard) SetDashboardId(v string) *Dashboard { 10136 s.DashboardId = &v 10137 return s 10138} 10139 10140// SetLastPublishedTime sets the LastPublishedTime field's value. 10141func (s *Dashboard) SetLastPublishedTime(v time.Time) *Dashboard { 10142 s.LastPublishedTime = &v 10143 return s 10144} 10145 10146// SetLastUpdatedTime sets the LastUpdatedTime field's value. 10147func (s *Dashboard) SetLastUpdatedTime(v time.Time) *Dashboard { 10148 s.LastUpdatedTime = &v 10149 return s 10150} 10151 10152// SetName sets the Name field's value. 10153func (s *Dashboard) SetName(v string) *Dashboard { 10154 s.Name = &v 10155 return s 10156} 10157 10158// SetVersion sets the Version field's value. 10159func (s *Dashboard) SetVersion(v *DashboardVersion) *Dashboard { 10160 s.Version = v 10161 return s 10162} 10163 10164// Dashboard error. 10165type DashboardError struct { 10166 _ struct{} `type:"structure"` 10167 10168 // Message. 10169 Message *string `type:"string"` 10170 10171 // Type. 10172 Type *string `type:"string" enum:"DashboardErrorType"` 10173} 10174 10175// String returns the string representation 10176func (s DashboardError) String() string { 10177 return awsutil.Prettify(s) 10178} 10179 10180// GoString returns the string representation 10181func (s DashboardError) GoString() string { 10182 return s.String() 10183} 10184 10185// SetMessage sets the Message field's value. 10186func (s *DashboardError) SetMessage(v string) *DashboardError { 10187 s.Message = &v 10188 return s 10189} 10190 10191// SetType sets the Type field's value. 10192func (s *DashboardError) SetType(v string) *DashboardError { 10193 s.Type = &v 10194 return s 10195} 10196 10197// Dashboard publish options. 10198type DashboardPublishOptions struct { 10199 _ struct{} `type:"structure"` 10200 10201 // Ad hoc (one-time) filtering option. 10202 AdHocFilteringOption *AdHocFilteringOption `type:"structure"` 10203 10204 // Export to .csv option. 10205 ExportToCSVOption *ExportToCSVOption `type:"structure"` 10206 10207 // Sheet controls option. 10208 SheetControlsOption *SheetControlsOption `type:"structure"` 10209} 10210 10211// String returns the string representation 10212func (s DashboardPublishOptions) String() string { 10213 return awsutil.Prettify(s) 10214} 10215 10216// GoString returns the string representation 10217func (s DashboardPublishOptions) GoString() string { 10218 return s.String() 10219} 10220 10221// SetAdHocFilteringOption sets the AdHocFilteringOption field's value. 10222func (s *DashboardPublishOptions) SetAdHocFilteringOption(v *AdHocFilteringOption) *DashboardPublishOptions { 10223 s.AdHocFilteringOption = v 10224 return s 10225} 10226 10227// SetExportToCSVOption sets the ExportToCSVOption field's value. 10228func (s *DashboardPublishOptions) SetExportToCSVOption(v *ExportToCSVOption) *DashboardPublishOptions { 10229 s.ExportToCSVOption = v 10230 return s 10231} 10232 10233// SetSheetControlsOption sets the SheetControlsOption field's value. 10234func (s *DashboardPublishOptions) SetSheetControlsOption(v *SheetControlsOption) *DashboardPublishOptions { 10235 s.SheetControlsOption = v 10236 return s 10237} 10238 10239// A filter that you apply when searching for dashboards. 10240type DashboardSearchFilter struct { 10241 _ struct{} `type:"structure"` 10242 10243 // The name of the value that you want to use as a filter. For example, "Name": 10244 // "QUICKSIGHT_USER". 10245 Name *string `type:"string" enum:"DashboardFilterAttribute"` 10246 10247 // The comparison operator that you want to use as a filter. For example, "Operator": 10248 // "StringEquals". 10249 // 10250 // Operator is a required field 10251 Operator *string `type:"string" required:"true" enum:"FilterOperator"` 10252 10253 // The value of the named item, in this case QUICKSIGHT_USER, that you want 10254 // to use as a filter. For example, "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1". 10255 Value *string `type:"string"` 10256} 10257 10258// String returns the string representation 10259func (s DashboardSearchFilter) String() string { 10260 return awsutil.Prettify(s) 10261} 10262 10263// GoString returns the string representation 10264func (s DashboardSearchFilter) GoString() string { 10265 return s.String() 10266} 10267 10268// Validate inspects the fields of the type to determine if they are valid. 10269func (s *DashboardSearchFilter) Validate() error { 10270 invalidParams := request.ErrInvalidParams{Context: "DashboardSearchFilter"} 10271 if s.Operator == nil { 10272 invalidParams.Add(request.NewErrParamRequired("Operator")) 10273 } 10274 10275 if invalidParams.Len() > 0 { 10276 return invalidParams 10277 } 10278 return nil 10279} 10280 10281// SetName sets the Name field's value. 10282func (s *DashboardSearchFilter) SetName(v string) *DashboardSearchFilter { 10283 s.Name = &v 10284 return s 10285} 10286 10287// SetOperator sets the Operator field's value. 10288func (s *DashboardSearchFilter) SetOperator(v string) *DashboardSearchFilter { 10289 s.Operator = &v 10290 return s 10291} 10292 10293// SetValue sets the Value field's value. 10294func (s *DashboardSearchFilter) SetValue(v string) *DashboardSearchFilter { 10295 s.Value = &v 10296 return s 10297} 10298 10299// Dashboard source entity. 10300type DashboardSourceEntity struct { 10301 _ struct{} `type:"structure"` 10302 10303 // Source template. 10304 SourceTemplate *DashboardSourceTemplate `type:"structure"` 10305} 10306 10307// String returns the string representation 10308func (s DashboardSourceEntity) String() string { 10309 return awsutil.Prettify(s) 10310} 10311 10312// GoString returns the string representation 10313func (s DashboardSourceEntity) GoString() string { 10314 return s.String() 10315} 10316 10317// Validate inspects the fields of the type to determine if they are valid. 10318func (s *DashboardSourceEntity) Validate() error { 10319 invalidParams := request.ErrInvalidParams{Context: "DashboardSourceEntity"} 10320 if s.SourceTemplate != nil { 10321 if err := s.SourceTemplate.Validate(); err != nil { 10322 invalidParams.AddNested("SourceTemplate", err.(request.ErrInvalidParams)) 10323 } 10324 } 10325 10326 if invalidParams.Len() > 0 { 10327 return invalidParams 10328 } 10329 return nil 10330} 10331 10332// SetSourceTemplate sets the SourceTemplate field's value. 10333func (s *DashboardSourceEntity) SetSourceTemplate(v *DashboardSourceTemplate) *DashboardSourceEntity { 10334 s.SourceTemplate = v 10335 return s 10336} 10337 10338// Dashboard source template. 10339type DashboardSourceTemplate struct { 10340 _ struct{} `type:"structure"` 10341 10342 // The Amazon Resource Name (ARN) of the resource. 10343 // 10344 // Arn is a required field 10345 Arn *string `type:"string" required:"true"` 10346 10347 // Dataset references. 10348 // 10349 // DataSetReferences is a required field 10350 DataSetReferences []*DataSetReference `min:"1" type:"list" required:"true"` 10351} 10352 10353// String returns the string representation 10354func (s DashboardSourceTemplate) String() string { 10355 return awsutil.Prettify(s) 10356} 10357 10358// GoString returns the string representation 10359func (s DashboardSourceTemplate) GoString() string { 10360 return s.String() 10361} 10362 10363// Validate inspects the fields of the type to determine if they are valid. 10364func (s *DashboardSourceTemplate) Validate() error { 10365 invalidParams := request.ErrInvalidParams{Context: "DashboardSourceTemplate"} 10366 if s.Arn == nil { 10367 invalidParams.Add(request.NewErrParamRequired("Arn")) 10368 } 10369 if s.DataSetReferences == nil { 10370 invalidParams.Add(request.NewErrParamRequired("DataSetReferences")) 10371 } 10372 if s.DataSetReferences != nil && len(s.DataSetReferences) < 1 { 10373 invalidParams.Add(request.NewErrParamMinLen("DataSetReferences", 1)) 10374 } 10375 if s.DataSetReferences != nil { 10376 for i, v := range s.DataSetReferences { 10377 if v == nil { 10378 continue 10379 } 10380 if err := v.Validate(); err != nil { 10381 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DataSetReferences", i), err.(request.ErrInvalidParams)) 10382 } 10383 } 10384 } 10385 10386 if invalidParams.Len() > 0 { 10387 return invalidParams 10388 } 10389 return nil 10390} 10391 10392// SetArn sets the Arn field's value. 10393func (s *DashboardSourceTemplate) SetArn(v string) *DashboardSourceTemplate { 10394 s.Arn = &v 10395 return s 10396} 10397 10398// SetDataSetReferences sets the DataSetReferences field's value. 10399func (s *DashboardSourceTemplate) SetDataSetReferences(v []*DataSetReference) *DashboardSourceTemplate { 10400 s.DataSetReferences = v 10401 return s 10402} 10403 10404// Dashboard summary. 10405type DashboardSummary struct { 10406 _ struct{} `type:"structure"` 10407 10408 // The Amazon Resource Name (ARN) of the resource. 10409 Arn *string `type:"string"` 10410 10411 // The time that this dashboard was created. 10412 CreatedTime *time.Time `type:"timestamp"` 10413 10414 // Dashboard ID. 10415 DashboardId *string `min:"1" type:"string"` 10416 10417 // The last time that this dashboard was published. 10418 LastPublishedTime *time.Time `type:"timestamp"` 10419 10420 // The last time that this dashboard was updated. 10421 LastUpdatedTime *time.Time `type:"timestamp"` 10422 10423 // A display name for the dashboard. 10424 Name *string `min:"1" type:"string"` 10425 10426 // Published version number. 10427 PublishedVersionNumber *int64 `min:"1" type:"long"` 10428} 10429 10430// String returns the string representation 10431func (s DashboardSummary) String() string { 10432 return awsutil.Prettify(s) 10433} 10434 10435// GoString returns the string representation 10436func (s DashboardSummary) GoString() string { 10437 return s.String() 10438} 10439 10440// SetArn sets the Arn field's value. 10441func (s *DashboardSummary) SetArn(v string) *DashboardSummary { 10442 s.Arn = &v 10443 return s 10444} 10445 10446// SetCreatedTime sets the CreatedTime field's value. 10447func (s *DashboardSummary) SetCreatedTime(v time.Time) *DashboardSummary { 10448 s.CreatedTime = &v 10449 return s 10450} 10451 10452// SetDashboardId sets the DashboardId field's value. 10453func (s *DashboardSummary) SetDashboardId(v string) *DashboardSummary { 10454 s.DashboardId = &v 10455 return s 10456} 10457 10458// SetLastPublishedTime sets the LastPublishedTime field's value. 10459func (s *DashboardSummary) SetLastPublishedTime(v time.Time) *DashboardSummary { 10460 s.LastPublishedTime = &v 10461 return s 10462} 10463 10464// SetLastUpdatedTime sets the LastUpdatedTime field's value. 10465func (s *DashboardSummary) SetLastUpdatedTime(v time.Time) *DashboardSummary { 10466 s.LastUpdatedTime = &v 10467 return s 10468} 10469 10470// SetName sets the Name field's value. 10471func (s *DashboardSummary) SetName(v string) *DashboardSummary { 10472 s.Name = &v 10473 return s 10474} 10475 10476// SetPublishedVersionNumber sets the PublishedVersionNumber field's value. 10477func (s *DashboardSummary) SetPublishedVersionNumber(v int64) *DashboardSummary { 10478 s.PublishedVersionNumber = &v 10479 return s 10480} 10481 10482// Dashboard version. 10483type DashboardVersion struct { 10484 _ struct{} `type:"structure"` 10485 10486 // The Amazon Resource Name (ARN) of the resource. 10487 Arn *string `type:"string"` 10488 10489 // The time that this dashboard version was created. 10490 CreatedTime *time.Time `type:"timestamp"` 10491 10492 // Description. 10493 Description *string `min:"1" type:"string"` 10494 10495 // Errors. 10496 Errors []*DashboardError `min:"1" type:"list"` 10497 10498 // Source entity ARN. 10499 SourceEntityArn *string `type:"string"` 10500 10501 // The HTTP status of the request. 10502 Status *string `type:"string" enum:"ResourceStatus"` 10503 10504 // Version number. 10505 VersionNumber *int64 `min:"1" type:"long"` 10506} 10507 10508// String returns the string representation 10509func (s DashboardVersion) String() string { 10510 return awsutil.Prettify(s) 10511} 10512 10513// GoString returns the string representation 10514func (s DashboardVersion) GoString() string { 10515 return s.String() 10516} 10517 10518// SetArn sets the Arn field's value. 10519func (s *DashboardVersion) SetArn(v string) *DashboardVersion { 10520 s.Arn = &v 10521 return s 10522} 10523 10524// SetCreatedTime sets the CreatedTime field's value. 10525func (s *DashboardVersion) SetCreatedTime(v time.Time) *DashboardVersion { 10526 s.CreatedTime = &v 10527 return s 10528} 10529 10530// SetDescription sets the Description field's value. 10531func (s *DashboardVersion) SetDescription(v string) *DashboardVersion { 10532 s.Description = &v 10533 return s 10534} 10535 10536// SetErrors sets the Errors field's value. 10537func (s *DashboardVersion) SetErrors(v []*DashboardError) *DashboardVersion { 10538 s.Errors = v 10539 return s 10540} 10541 10542// SetSourceEntityArn sets the SourceEntityArn field's value. 10543func (s *DashboardVersion) SetSourceEntityArn(v string) *DashboardVersion { 10544 s.SourceEntityArn = &v 10545 return s 10546} 10547 10548// SetStatus sets the Status field's value. 10549func (s *DashboardVersion) SetStatus(v string) *DashboardVersion { 10550 s.Status = &v 10551 return s 10552} 10553 10554// SetVersionNumber sets the VersionNumber field's value. 10555func (s *DashboardVersion) SetVersionNumber(v int64) *DashboardVersion { 10556 s.VersionNumber = &v 10557 return s 10558} 10559 10560// Dashboard version summary. 10561type DashboardVersionSummary struct { 10562 _ struct{} `type:"structure"` 10563 10564 // The Amazon Resource Name (ARN) of the resource. 10565 Arn *string `type:"string"` 10566 10567 // The time that this dashboard version was created. 10568 CreatedTime *time.Time `type:"timestamp"` 10569 10570 // Description. 10571 Description *string `min:"1" type:"string"` 10572 10573 // Source entity ARN. 10574 SourceEntityArn *string `type:"string"` 10575 10576 // The HTTP status of the request. 10577 Status *string `type:"string" enum:"ResourceStatus"` 10578 10579 // Version number. 10580 VersionNumber *int64 `min:"1" type:"long"` 10581} 10582 10583// String returns the string representation 10584func (s DashboardVersionSummary) String() string { 10585 return awsutil.Prettify(s) 10586} 10587 10588// GoString returns the string representation 10589func (s DashboardVersionSummary) GoString() string { 10590 return s.String() 10591} 10592 10593// SetArn sets the Arn field's value. 10594func (s *DashboardVersionSummary) SetArn(v string) *DashboardVersionSummary { 10595 s.Arn = &v 10596 return s 10597} 10598 10599// SetCreatedTime sets the CreatedTime field's value. 10600func (s *DashboardVersionSummary) SetCreatedTime(v time.Time) *DashboardVersionSummary { 10601 s.CreatedTime = &v 10602 return s 10603} 10604 10605// SetDescription sets the Description field's value. 10606func (s *DashboardVersionSummary) SetDescription(v string) *DashboardVersionSummary { 10607 s.Description = &v 10608 return s 10609} 10610 10611// SetSourceEntityArn sets the SourceEntityArn field's value. 10612func (s *DashboardVersionSummary) SetSourceEntityArn(v string) *DashboardVersionSummary { 10613 s.SourceEntityArn = &v 10614 return s 10615} 10616 10617// SetStatus sets the Status field's value. 10618func (s *DashboardVersionSummary) SetStatus(v string) *DashboardVersionSummary { 10619 s.Status = &v 10620 return s 10621} 10622 10623// SetVersionNumber sets the VersionNumber field's value. 10624func (s *DashboardVersionSummary) SetVersionNumber(v int64) *DashboardVersionSummary { 10625 s.VersionNumber = &v 10626 return s 10627} 10628 10629// Dataset. 10630type DataSet struct { 10631 _ struct{} `type:"structure"` 10632 10633 // The Amazon Resource Name (ARN) of the resource. 10634 Arn *string `type:"string"` 10635 10636 // Groupings of columns that work together in certain Amazon QuickSight features. 10637 // Currently, only geospatial hierarchy is supported. 10638 ColumnGroups []*ColumnGroup `min:"1" type:"list"` 10639 10640 // The amount of SPICE capacity used by this dataset. This is 0 if the dataset 10641 // isn't imported into SPICE. 10642 ConsumedSpiceCapacityInBytes *int64 `type:"long"` 10643 10644 // The time that this dataset was created. 10645 CreatedTime *time.Time `type:"timestamp"` 10646 10647 // The ID of the dataset. 10648 DataSetId *string `type:"string"` 10649 10650 // Indicates whether you want to import the data into SPICE. 10651 ImportMode *string `type:"string" enum:"DataSetImportMode"` 10652 10653 // The last time that this dataset was updated. 10654 LastUpdatedTime *time.Time `type:"timestamp"` 10655 10656 // Configures the combination and transformation of the data from the physical 10657 // tables. 10658 LogicalTableMap map[string]*LogicalTable `min:"1" type:"map"` 10659 10660 // A display name for the dataset. 10661 Name *string `min:"1" type:"string"` 10662 10663 // The list of columns after all transforms. These columns are available in 10664 // templates, analyses, and dashboards. 10665 OutputColumns []*OutputColumn `type:"list"` 10666 10667 // Declares the physical tables that are available in the underlying data sources. 10668 PhysicalTableMap map[string]*PhysicalTable `min:"1" type:"map"` 10669 10670 // The row-level security configuration for the dataset. 10671 RowLevelPermissionDataSet *RowLevelPermissionDataSet `type:"structure"` 10672} 10673 10674// String returns the string representation 10675func (s DataSet) String() string { 10676 return awsutil.Prettify(s) 10677} 10678 10679// GoString returns the string representation 10680func (s DataSet) GoString() string { 10681 return s.String() 10682} 10683 10684// SetArn sets the Arn field's value. 10685func (s *DataSet) SetArn(v string) *DataSet { 10686 s.Arn = &v 10687 return s 10688} 10689 10690// SetColumnGroups sets the ColumnGroups field's value. 10691func (s *DataSet) SetColumnGroups(v []*ColumnGroup) *DataSet { 10692 s.ColumnGroups = v 10693 return s 10694} 10695 10696// SetConsumedSpiceCapacityInBytes sets the ConsumedSpiceCapacityInBytes field's value. 10697func (s *DataSet) SetConsumedSpiceCapacityInBytes(v int64) *DataSet { 10698 s.ConsumedSpiceCapacityInBytes = &v 10699 return s 10700} 10701 10702// SetCreatedTime sets the CreatedTime field's value. 10703func (s *DataSet) SetCreatedTime(v time.Time) *DataSet { 10704 s.CreatedTime = &v 10705 return s 10706} 10707 10708// SetDataSetId sets the DataSetId field's value. 10709func (s *DataSet) SetDataSetId(v string) *DataSet { 10710 s.DataSetId = &v 10711 return s 10712} 10713 10714// SetImportMode sets the ImportMode field's value. 10715func (s *DataSet) SetImportMode(v string) *DataSet { 10716 s.ImportMode = &v 10717 return s 10718} 10719 10720// SetLastUpdatedTime sets the LastUpdatedTime field's value. 10721func (s *DataSet) SetLastUpdatedTime(v time.Time) *DataSet { 10722 s.LastUpdatedTime = &v 10723 return s 10724} 10725 10726// SetLogicalTableMap sets the LogicalTableMap field's value. 10727func (s *DataSet) SetLogicalTableMap(v map[string]*LogicalTable) *DataSet { 10728 s.LogicalTableMap = v 10729 return s 10730} 10731 10732// SetName sets the Name field's value. 10733func (s *DataSet) SetName(v string) *DataSet { 10734 s.Name = &v 10735 return s 10736} 10737 10738// SetOutputColumns sets the OutputColumns field's value. 10739func (s *DataSet) SetOutputColumns(v []*OutputColumn) *DataSet { 10740 s.OutputColumns = v 10741 return s 10742} 10743 10744// SetPhysicalTableMap sets the PhysicalTableMap field's value. 10745func (s *DataSet) SetPhysicalTableMap(v map[string]*PhysicalTable) *DataSet { 10746 s.PhysicalTableMap = v 10747 return s 10748} 10749 10750// SetRowLevelPermissionDataSet sets the RowLevelPermissionDataSet field's value. 10751func (s *DataSet) SetRowLevelPermissionDataSet(v *RowLevelPermissionDataSet) *DataSet { 10752 s.RowLevelPermissionDataSet = v 10753 return s 10754} 10755 10756// Dataset configuration. 10757type DataSetConfiguration struct { 10758 _ struct{} `type:"structure"` 10759 10760 // A structure containing the list of column group schemas. 10761 ColumnGroupSchemaList []*ColumnGroupSchema `type:"list"` 10762 10763 // Dataset schema. 10764 DataSetSchema *DataSetSchema `type:"structure"` 10765 10766 // Placeholder. 10767 Placeholder *string `type:"string"` 10768} 10769 10770// String returns the string representation 10771func (s DataSetConfiguration) String() string { 10772 return awsutil.Prettify(s) 10773} 10774 10775// GoString returns the string representation 10776func (s DataSetConfiguration) GoString() string { 10777 return s.String() 10778} 10779 10780// SetColumnGroupSchemaList sets the ColumnGroupSchemaList field's value. 10781func (s *DataSetConfiguration) SetColumnGroupSchemaList(v []*ColumnGroupSchema) *DataSetConfiguration { 10782 s.ColumnGroupSchemaList = v 10783 return s 10784} 10785 10786// SetDataSetSchema sets the DataSetSchema field's value. 10787func (s *DataSetConfiguration) SetDataSetSchema(v *DataSetSchema) *DataSetConfiguration { 10788 s.DataSetSchema = v 10789 return s 10790} 10791 10792// SetPlaceholder sets the Placeholder field's value. 10793func (s *DataSetConfiguration) SetPlaceholder(v string) *DataSetConfiguration { 10794 s.Placeholder = &v 10795 return s 10796} 10797 10798// Dataset reference. 10799type DataSetReference struct { 10800 _ struct{} `type:"structure"` 10801 10802 // Dataset Amazon Resource Name (ARN). 10803 // 10804 // DataSetArn is a required field 10805 DataSetArn *string `type:"string" required:"true"` 10806 10807 // Dataset placeholder. 10808 // 10809 // DataSetPlaceholder is a required field 10810 DataSetPlaceholder *string `type:"string" required:"true"` 10811} 10812 10813// String returns the string representation 10814func (s DataSetReference) String() string { 10815 return awsutil.Prettify(s) 10816} 10817 10818// GoString returns the string representation 10819func (s DataSetReference) GoString() string { 10820 return s.String() 10821} 10822 10823// Validate inspects the fields of the type to determine if they are valid. 10824func (s *DataSetReference) Validate() error { 10825 invalidParams := request.ErrInvalidParams{Context: "DataSetReference"} 10826 if s.DataSetArn == nil { 10827 invalidParams.Add(request.NewErrParamRequired("DataSetArn")) 10828 } 10829 if s.DataSetPlaceholder == nil { 10830 invalidParams.Add(request.NewErrParamRequired("DataSetPlaceholder")) 10831 } 10832 10833 if invalidParams.Len() > 0 { 10834 return invalidParams 10835 } 10836 return nil 10837} 10838 10839// SetDataSetArn sets the DataSetArn field's value. 10840func (s *DataSetReference) SetDataSetArn(v string) *DataSetReference { 10841 s.DataSetArn = &v 10842 return s 10843} 10844 10845// SetDataSetPlaceholder sets the DataSetPlaceholder field's value. 10846func (s *DataSetReference) SetDataSetPlaceholder(v string) *DataSetReference { 10847 s.DataSetPlaceholder = &v 10848 return s 10849} 10850 10851// Dataset schema. 10852type DataSetSchema struct { 10853 _ struct{} `type:"structure"` 10854 10855 // A structure containing the list of column schemas. 10856 ColumnSchemaList []*ColumnSchema `type:"list"` 10857} 10858 10859// String returns the string representation 10860func (s DataSetSchema) String() string { 10861 return awsutil.Prettify(s) 10862} 10863 10864// GoString returns the string representation 10865func (s DataSetSchema) GoString() string { 10866 return s.String() 10867} 10868 10869// SetColumnSchemaList sets the ColumnSchemaList field's value. 10870func (s *DataSetSchema) SetColumnSchemaList(v []*ColumnSchema) *DataSetSchema { 10871 s.ColumnSchemaList = v 10872 return s 10873} 10874 10875// Dataset summary. 10876type DataSetSummary struct { 10877 _ struct{} `type:"structure"` 10878 10879 // The Amazon Resource Name (ARN) of the dataset. 10880 Arn *string `type:"string"` 10881 10882 // The time that this dataset was created. 10883 CreatedTime *time.Time `type:"timestamp"` 10884 10885 // The ID of the dataset. 10886 DataSetId *string `type:"string"` 10887 10888 // Indicates whether you want to import the data into SPICE. 10889 ImportMode *string `type:"string" enum:"DataSetImportMode"` 10890 10891 // The last time that this dataset was updated. 10892 LastUpdatedTime *time.Time `type:"timestamp"` 10893 10894 // A display name for the dataset. 10895 Name *string `min:"1" type:"string"` 10896 10897 // The row-level security configuration for the dataset. 10898 RowLevelPermissionDataSet *RowLevelPermissionDataSet `type:"structure"` 10899} 10900 10901// String returns the string representation 10902func (s DataSetSummary) String() string { 10903 return awsutil.Prettify(s) 10904} 10905 10906// GoString returns the string representation 10907func (s DataSetSummary) GoString() string { 10908 return s.String() 10909} 10910 10911// SetArn sets the Arn field's value. 10912func (s *DataSetSummary) SetArn(v string) *DataSetSummary { 10913 s.Arn = &v 10914 return s 10915} 10916 10917// SetCreatedTime sets the CreatedTime field's value. 10918func (s *DataSetSummary) SetCreatedTime(v time.Time) *DataSetSummary { 10919 s.CreatedTime = &v 10920 return s 10921} 10922 10923// SetDataSetId sets the DataSetId field's value. 10924func (s *DataSetSummary) SetDataSetId(v string) *DataSetSummary { 10925 s.DataSetId = &v 10926 return s 10927} 10928 10929// SetImportMode sets the ImportMode field's value. 10930func (s *DataSetSummary) SetImportMode(v string) *DataSetSummary { 10931 s.ImportMode = &v 10932 return s 10933} 10934 10935// SetLastUpdatedTime sets the LastUpdatedTime field's value. 10936func (s *DataSetSummary) SetLastUpdatedTime(v time.Time) *DataSetSummary { 10937 s.LastUpdatedTime = &v 10938 return s 10939} 10940 10941// SetName sets the Name field's value. 10942func (s *DataSetSummary) SetName(v string) *DataSetSummary { 10943 s.Name = &v 10944 return s 10945} 10946 10947// SetRowLevelPermissionDataSet sets the RowLevelPermissionDataSet field's value. 10948func (s *DataSetSummary) SetRowLevelPermissionDataSet(v *RowLevelPermissionDataSet) *DataSetSummary { 10949 s.RowLevelPermissionDataSet = v 10950 return s 10951} 10952 10953// The structure of a data source. 10954type DataSource struct { 10955 _ struct{} `type:"structure"` 10956 10957 // The Amazon Resource Name (ARN) of the data source. 10958 Arn *string `type:"string"` 10959 10960 // The time that this data source was created. 10961 CreatedTime *time.Time `type:"timestamp"` 10962 10963 // The ID of the data source. This ID is unique per AWS Region for each AWS 10964 // account. 10965 DataSourceId *string `type:"string"` 10966 10967 // The parameters that Amazon QuickSight uses to connect to your underlying 10968 // source. This is a variant type structure. For this structure to be valid, 10969 // only one of the attributes can be non-null. 10970 DataSourceParameters *DataSourceParameters `type:"structure"` 10971 10972 // Error information from the last update or the creation of the data source. 10973 ErrorInfo *DataSourceErrorInfo `type:"structure"` 10974 10975 // The last time that this data source was updated. 10976 LastUpdatedTime *time.Time `type:"timestamp"` 10977 10978 // A display name for the data source. 10979 Name *string `min:"1" type:"string"` 10980 10981 // Secure Socket Layer (SSL) properties that apply when QuickSight connects 10982 // to your underlying source. 10983 SslProperties *SslProperties `type:"structure"` 10984 10985 // The HTTP status of the request. 10986 Status *string `type:"string" enum:"ResourceStatus"` 10987 10988 // The type of the data source. This type indicates which database engine the 10989 // data source connects to. 10990 Type *string `type:"string" enum:"DataSourceType"` 10991 10992 // The VPC connection information. You need to use this parameter only when 10993 // you want QuickSight to use a VPC connection when connecting to your underlying 10994 // source. 10995 VpcConnectionProperties *VpcConnectionProperties `type:"structure"` 10996} 10997 10998// String returns the string representation 10999func (s DataSource) String() string { 11000 return awsutil.Prettify(s) 11001} 11002 11003// GoString returns the string representation 11004func (s DataSource) GoString() string { 11005 return s.String() 11006} 11007 11008// SetArn sets the Arn field's value. 11009func (s *DataSource) SetArn(v string) *DataSource { 11010 s.Arn = &v 11011 return s 11012} 11013 11014// SetCreatedTime sets the CreatedTime field's value. 11015func (s *DataSource) SetCreatedTime(v time.Time) *DataSource { 11016 s.CreatedTime = &v 11017 return s 11018} 11019 11020// SetDataSourceId sets the DataSourceId field's value. 11021func (s *DataSource) SetDataSourceId(v string) *DataSource { 11022 s.DataSourceId = &v 11023 return s 11024} 11025 11026// SetDataSourceParameters sets the DataSourceParameters field's value. 11027func (s *DataSource) SetDataSourceParameters(v *DataSourceParameters) *DataSource { 11028 s.DataSourceParameters = v 11029 return s 11030} 11031 11032// SetErrorInfo sets the ErrorInfo field's value. 11033func (s *DataSource) SetErrorInfo(v *DataSourceErrorInfo) *DataSource { 11034 s.ErrorInfo = v 11035 return s 11036} 11037 11038// SetLastUpdatedTime sets the LastUpdatedTime field's value. 11039func (s *DataSource) SetLastUpdatedTime(v time.Time) *DataSource { 11040 s.LastUpdatedTime = &v 11041 return s 11042} 11043 11044// SetName sets the Name field's value. 11045func (s *DataSource) SetName(v string) *DataSource { 11046 s.Name = &v 11047 return s 11048} 11049 11050// SetSslProperties sets the SslProperties field's value. 11051func (s *DataSource) SetSslProperties(v *SslProperties) *DataSource { 11052 s.SslProperties = v 11053 return s 11054} 11055 11056// SetStatus sets the Status field's value. 11057func (s *DataSource) SetStatus(v string) *DataSource { 11058 s.Status = &v 11059 return s 11060} 11061 11062// SetType sets the Type field's value. 11063func (s *DataSource) SetType(v string) *DataSource { 11064 s.Type = &v 11065 return s 11066} 11067 11068// SetVpcConnectionProperties sets the VpcConnectionProperties field's value. 11069func (s *DataSource) SetVpcConnectionProperties(v *VpcConnectionProperties) *DataSource { 11070 s.VpcConnectionProperties = v 11071 return s 11072} 11073 11074// Data source credentials. 11075type DataSourceCredentials struct { 11076 _ struct{} `type:"structure" sensitive:"true"` 11077 11078 // Credential pair. 11079 CredentialPair *CredentialPair `type:"structure"` 11080} 11081 11082// String returns the string representation 11083func (s DataSourceCredentials) String() string { 11084 return awsutil.Prettify(s) 11085} 11086 11087// GoString returns the string representation 11088func (s DataSourceCredentials) GoString() string { 11089 return s.String() 11090} 11091 11092// Validate inspects the fields of the type to determine if they are valid. 11093func (s *DataSourceCredentials) Validate() error { 11094 invalidParams := request.ErrInvalidParams{Context: "DataSourceCredentials"} 11095 if s.CredentialPair != nil { 11096 if err := s.CredentialPair.Validate(); err != nil { 11097 invalidParams.AddNested("CredentialPair", err.(request.ErrInvalidParams)) 11098 } 11099 } 11100 11101 if invalidParams.Len() > 0 { 11102 return invalidParams 11103 } 11104 return nil 11105} 11106 11107// SetCredentialPair sets the CredentialPair field's value. 11108func (s *DataSourceCredentials) SetCredentialPair(v *CredentialPair) *DataSourceCredentials { 11109 s.CredentialPair = v 11110 return s 11111} 11112 11113// Error information for the data source creation or update. 11114type DataSourceErrorInfo struct { 11115 _ struct{} `type:"structure"` 11116 11117 // Error message. 11118 Message *string `type:"string"` 11119 11120 // Error type. 11121 Type *string `type:"string" enum:"DataSourceErrorInfoType"` 11122} 11123 11124// String returns the string representation 11125func (s DataSourceErrorInfo) String() string { 11126 return awsutil.Prettify(s) 11127} 11128 11129// GoString returns the string representation 11130func (s DataSourceErrorInfo) GoString() string { 11131 return s.String() 11132} 11133 11134// SetMessage sets the Message field's value. 11135func (s *DataSourceErrorInfo) SetMessage(v string) *DataSourceErrorInfo { 11136 s.Message = &v 11137 return s 11138} 11139 11140// SetType sets the Type field's value. 11141func (s *DataSourceErrorInfo) SetType(v string) *DataSourceErrorInfo { 11142 s.Type = &v 11143 return s 11144} 11145 11146// The parameters that Amazon QuickSight uses to connect to your underlying 11147// data source. This is a variant type structure. For this structure to be valid, 11148// only one of the attributes can be non-null. 11149type DataSourceParameters struct { 11150 _ struct{} `type:"structure"` 11151 11152 // Amazon Elasticsearch Service parameters. 11153 AmazonElasticsearchParameters *AmazonElasticsearchParameters `type:"structure"` 11154 11155 // Amazon Athena parameters. 11156 AthenaParameters *AthenaParameters `type:"structure"` 11157 11158 // Amazon Aurora MySQL parameters. 11159 AuroraParameters *AuroraParameters `type:"structure"` 11160 11161 // Aurora PostgreSQL parameters. 11162 AuroraPostgreSqlParameters *AuroraPostgreSqlParameters `type:"structure"` 11163 11164 // AWS IoT Analytics parameters. 11165 AwsIotAnalyticsParameters *AwsIotAnalyticsParameters `type:"structure"` 11166 11167 // Jira parameters. 11168 JiraParameters *JiraParameters `type:"structure"` 11169 11170 // MariaDB parameters. 11171 MariaDbParameters *MariaDbParameters `type:"structure"` 11172 11173 // MySQL parameters. 11174 MySqlParameters *MySqlParameters `type:"structure"` 11175 11176 // PostgreSQL parameters. 11177 PostgreSqlParameters *PostgreSqlParameters `type:"structure"` 11178 11179 // Presto parameters. 11180 PrestoParameters *PrestoParameters `type:"structure"` 11181 11182 // Amazon RDS parameters. 11183 RdsParameters *RdsParameters `type:"structure"` 11184 11185 // Amazon Redshift parameters. 11186 RedshiftParameters *RedshiftParameters `type:"structure"` 11187 11188 // S3 parameters. 11189 S3Parameters *S3Parameters `type:"structure"` 11190 11191 // ServiceNow parameters. 11192 ServiceNowParameters *ServiceNowParameters `type:"structure"` 11193 11194 // Snowflake parameters. 11195 SnowflakeParameters *SnowflakeParameters `type:"structure"` 11196 11197 // Spark parameters. 11198 SparkParameters *SparkParameters `type:"structure"` 11199 11200 // SQL Server parameters. 11201 SqlServerParameters *SqlServerParameters `type:"structure"` 11202 11203 // Teradata parameters. 11204 TeradataParameters *TeradataParameters `type:"structure"` 11205 11206 // Twitter parameters. 11207 TwitterParameters *TwitterParameters `type:"structure"` 11208} 11209 11210// String returns the string representation 11211func (s DataSourceParameters) String() string { 11212 return awsutil.Prettify(s) 11213} 11214 11215// GoString returns the string representation 11216func (s DataSourceParameters) GoString() string { 11217 return s.String() 11218} 11219 11220// Validate inspects the fields of the type to determine if they are valid. 11221func (s *DataSourceParameters) Validate() error { 11222 invalidParams := request.ErrInvalidParams{Context: "DataSourceParameters"} 11223 if s.AmazonElasticsearchParameters != nil { 11224 if err := s.AmazonElasticsearchParameters.Validate(); err != nil { 11225 invalidParams.AddNested("AmazonElasticsearchParameters", err.(request.ErrInvalidParams)) 11226 } 11227 } 11228 if s.AthenaParameters != nil { 11229 if err := s.AthenaParameters.Validate(); err != nil { 11230 invalidParams.AddNested("AthenaParameters", err.(request.ErrInvalidParams)) 11231 } 11232 } 11233 if s.AuroraParameters != nil { 11234 if err := s.AuroraParameters.Validate(); err != nil { 11235 invalidParams.AddNested("AuroraParameters", err.(request.ErrInvalidParams)) 11236 } 11237 } 11238 if s.AuroraPostgreSqlParameters != nil { 11239 if err := s.AuroraPostgreSqlParameters.Validate(); err != nil { 11240 invalidParams.AddNested("AuroraPostgreSqlParameters", err.(request.ErrInvalidParams)) 11241 } 11242 } 11243 if s.AwsIotAnalyticsParameters != nil { 11244 if err := s.AwsIotAnalyticsParameters.Validate(); err != nil { 11245 invalidParams.AddNested("AwsIotAnalyticsParameters", err.(request.ErrInvalidParams)) 11246 } 11247 } 11248 if s.JiraParameters != nil { 11249 if err := s.JiraParameters.Validate(); err != nil { 11250 invalidParams.AddNested("JiraParameters", err.(request.ErrInvalidParams)) 11251 } 11252 } 11253 if s.MariaDbParameters != nil { 11254 if err := s.MariaDbParameters.Validate(); err != nil { 11255 invalidParams.AddNested("MariaDbParameters", err.(request.ErrInvalidParams)) 11256 } 11257 } 11258 if s.MySqlParameters != nil { 11259 if err := s.MySqlParameters.Validate(); err != nil { 11260 invalidParams.AddNested("MySqlParameters", err.(request.ErrInvalidParams)) 11261 } 11262 } 11263 if s.PostgreSqlParameters != nil { 11264 if err := s.PostgreSqlParameters.Validate(); err != nil { 11265 invalidParams.AddNested("PostgreSqlParameters", err.(request.ErrInvalidParams)) 11266 } 11267 } 11268 if s.PrestoParameters != nil { 11269 if err := s.PrestoParameters.Validate(); err != nil { 11270 invalidParams.AddNested("PrestoParameters", err.(request.ErrInvalidParams)) 11271 } 11272 } 11273 if s.RdsParameters != nil { 11274 if err := s.RdsParameters.Validate(); err != nil { 11275 invalidParams.AddNested("RdsParameters", err.(request.ErrInvalidParams)) 11276 } 11277 } 11278 if s.RedshiftParameters != nil { 11279 if err := s.RedshiftParameters.Validate(); err != nil { 11280 invalidParams.AddNested("RedshiftParameters", err.(request.ErrInvalidParams)) 11281 } 11282 } 11283 if s.S3Parameters != nil { 11284 if err := s.S3Parameters.Validate(); err != nil { 11285 invalidParams.AddNested("S3Parameters", err.(request.ErrInvalidParams)) 11286 } 11287 } 11288 if s.ServiceNowParameters != nil { 11289 if err := s.ServiceNowParameters.Validate(); err != nil { 11290 invalidParams.AddNested("ServiceNowParameters", err.(request.ErrInvalidParams)) 11291 } 11292 } 11293 if s.SnowflakeParameters != nil { 11294 if err := s.SnowflakeParameters.Validate(); err != nil { 11295 invalidParams.AddNested("SnowflakeParameters", err.(request.ErrInvalidParams)) 11296 } 11297 } 11298 if s.SparkParameters != nil { 11299 if err := s.SparkParameters.Validate(); err != nil { 11300 invalidParams.AddNested("SparkParameters", err.(request.ErrInvalidParams)) 11301 } 11302 } 11303 if s.SqlServerParameters != nil { 11304 if err := s.SqlServerParameters.Validate(); err != nil { 11305 invalidParams.AddNested("SqlServerParameters", err.(request.ErrInvalidParams)) 11306 } 11307 } 11308 if s.TeradataParameters != nil { 11309 if err := s.TeradataParameters.Validate(); err != nil { 11310 invalidParams.AddNested("TeradataParameters", err.(request.ErrInvalidParams)) 11311 } 11312 } 11313 if s.TwitterParameters != nil { 11314 if err := s.TwitterParameters.Validate(); err != nil { 11315 invalidParams.AddNested("TwitterParameters", err.(request.ErrInvalidParams)) 11316 } 11317 } 11318 11319 if invalidParams.Len() > 0 { 11320 return invalidParams 11321 } 11322 return nil 11323} 11324 11325// SetAmazonElasticsearchParameters sets the AmazonElasticsearchParameters field's value. 11326func (s *DataSourceParameters) SetAmazonElasticsearchParameters(v *AmazonElasticsearchParameters) *DataSourceParameters { 11327 s.AmazonElasticsearchParameters = v 11328 return s 11329} 11330 11331// SetAthenaParameters sets the AthenaParameters field's value. 11332func (s *DataSourceParameters) SetAthenaParameters(v *AthenaParameters) *DataSourceParameters { 11333 s.AthenaParameters = v 11334 return s 11335} 11336 11337// SetAuroraParameters sets the AuroraParameters field's value. 11338func (s *DataSourceParameters) SetAuroraParameters(v *AuroraParameters) *DataSourceParameters { 11339 s.AuroraParameters = v 11340 return s 11341} 11342 11343// SetAuroraPostgreSqlParameters sets the AuroraPostgreSqlParameters field's value. 11344func (s *DataSourceParameters) SetAuroraPostgreSqlParameters(v *AuroraPostgreSqlParameters) *DataSourceParameters { 11345 s.AuroraPostgreSqlParameters = v 11346 return s 11347} 11348 11349// SetAwsIotAnalyticsParameters sets the AwsIotAnalyticsParameters field's value. 11350func (s *DataSourceParameters) SetAwsIotAnalyticsParameters(v *AwsIotAnalyticsParameters) *DataSourceParameters { 11351 s.AwsIotAnalyticsParameters = v 11352 return s 11353} 11354 11355// SetJiraParameters sets the JiraParameters field's value. 11356func (s *DataSourceParameters) SetJiraParameters(v *JiraParameters) *DataSourceParameters { 11357 s.JiraParameters = v 11358 return s 11359} 11360 11361// SetMariaDbParameters sets the MariaDbParameters field's value. 11362func (s *DataSourceParameters) SetMariaDbParameters(v *MariaDbParameters) *DataSourceParameters { 11363 s.MariaDbParameters = v 11364 return s 11365} 11366 11367// SetMySqlParameters sets the MySqlParameters field's value. 11368func (s *DataSourceParameters) SetMySqlParameters(v *MySqlParameters) *DataSourceParameters { 11369 s.MySqlParameters = v 11370 return s 11371} 11372 11373// SetPostgreSqlParameters sets the PostgreSqlParameters field's value. 11374func (s *DataSourceParameters) SetPostgreSqlParameters(v *PostgreSqlParameters) *DataSourceParameters { 11375 s.PostgreSqlParameters = v 11376 return s 11377} 11378 11379// SetPrestoParameters sets the PrestoParameters field's value. 11380func (s *DataSourceParameters) SetPrestoParameters(v *PrestoParameters) *DataSourceParameters { 11381 s.PrestoParameters = v 11382 return s 11383} 11384 11385// SetRdsParameters sets the RdsParameters field's value. 11386func (s *DataSourceParameters) SetRdsParameters(v *RdsParameters) *DataSourceParameters { 11387 s.RdsParameters = v 11388 return s 11389} 11390 11391// SetRedshiftParameters sets the RedshiftParameters field's value. 11392func (s *DataSourceParameters) SetRedshiftParameters(v *RedshiftParameters) *DataSourceParameters { 11393 s.RedshiftParameters = v 11394 return s 11395} 11396 11397// SetS3Parameters sets the S3Parameters field's value. 11398func (s *DataSourceParameters) SetS3Parameters(v *S3Parameters) *DataSourceParameters { 11399 s.S3Parameters = v 11400 return s 11401} 11402 11403// SetServiceNowParameters sets the ServiceNowParameters field's value. 11404func (s *DataSourceParameters) SetServiceNowParameters(v *ServiceNowParameters) *DataSourceParameters { 11405 s.ServiceNowParameters = v 11406 return s 11407} 11408 11409// SetSnowflakeParameters sets the SnowflakeParameters field's value. 11410func (s *DataSourceParameters) SetSnowflakeParameters(v *SnowflakeParameters) *DataSourceParameters { 11411 s.SnowflakeParameters = v 11412 return s 11413} 11414 11415// SetSparkParameters sets the SparkParameters field's value. 11416func (s *DataSourceParameters) SetSparkParameters(v *SparkParameters) *DataSourceParameters { 11417 s.SparkParameters = v 11418 return s 11419} 11420 11421// SetSqlServerParameters sets the SqlServerParameters field's value. 11422func (s *DataSourceParameters) SetSqlServerParameters(v *SqlServerParameters) *DataSourceParameters { 11423 s.SqlServerParameters = v 11424 return s 11425} 11426 11427// SetTeradataParameters sets the TeradataParameters field's value. 11428func (s *DataSourceParameters) SetTeradataParameters(v *TeradataParameters) *DataSourceParameters { 11429 s.TeradataParameters = v 11430 return s 11431} 11432 11433// SetTwitterParameters sets the TwitterParameters field's value. 11434func (s *DataSourceParameters) SetTwitterParameters(v *TwitterParameters) *DataSourceParameters { 11435 s.TwitterParameters = v 11436 return s 11437} 11438 11439// Date time parameter. 11440type DateTimeParameter struct { 11441 _ struct{} `type:"structure"` 11442 11443 // A display name for the dataset. 11444 // 11445 // Name is a required field 11446 Name *string `type:"string" required:"true"` 11447 11448 // Values. 11449 // 11450 // Values is a required field 11451 Values []*time.Time `type:"list" required:"true"` 11452} 11453 11454// String returns the string representation 11455func (s DateTimeParameter) String() string { 11456 return awsutil.Prettify(s) 11457} 11458 11459// GoString returns the string representation 11460func (s DateTimeParameter) GoString() string { 11461 return s.String() 11462} 11463 11464// Validate inspects the fields of the type to determine if they are valid. 11465func (s *DateTimeParameter) Validate() error { 11466 invalidParams := request.ErrInvalidParams{Context: "DateTimeParameter"} 11467 if s.Name == nil { 11468 invalidParams.Add(request.NewErrParamRequired("Name")) 11469 } 11470 if s.Values == nil { 11471 invalidParams.Add(request.NewErrParamRequired("Values")) 11472 } 11473 11474 if invalidParams.Len() > 0 { 11475 return invalidParams 11476 } 11477 return nil 11478} 11479 11480// SetName sets the Name field's value. 11481func (s *DateTimeParameter) SetName(v string) *DateTimeParameter { 11482 s.Name = &v 11483 return s 11484} 11485 11486// SetValues sets the Values field's value. 11487func (s *DateTimeParameter) SetValues(v []*time.Time) *DateTimeParameter { 11488 s.Values = v 11489 return s 11490} 11491 11492// Decimal parameter. 11493type DecimalParameter struct { 11494 _ struct{} `type:"structure"` 11495 11496 // A display name for the dataset. 11497 // 11498 // Name is a required field 11499 Name *string `type:"string" required:"true"` 11500 11501 // Values. 11502 // 11503 // Values is a required field 11504 Values []*float64 `type:"list" required:"true"` 11505} 11506 11507// String returns the string representation 11508func (s DecimalParameter) String() string { 11509 return awsutil.Prettify(s) 11510} 11511 11512// GoString returns the string representation 11513func (s DecimalParameter) GoString() string { 11514 return s.String() 11515} 11516 11517// Validate inspects the fields of the type to determine if they are valid. 11518func (s *DecimalParameter) Validate() error { 11519 invalidParams := request.ErrInvalidParams{Context: "DecimalParameter"} 11520 if s.Name == nil { 11521 invalidParams.Add(request.NewErrParamRequired("Name")) 11522 } 11523 if s.Values == nil { 11524 invalidParams.Add(request.NewErrParamRequired("Values")) 11525 } 11526 11527 if invalidParams.Len() > 0 { 11528 return invalidParams 11529 } 11530 return nil 11531} 11532 11533// SetName sets the Name field's value. 11534func (s *DecimalParameter) SetName(v string) *DecimalParameter { 11535 s.Name = &v 11536 return s 11537} 11538 11539// SetValues sets the Values field's value. 11540func (s *DecimalParameter) SetValues(v []*float64) *DecimalParameter { 11541 s.Values = v 11542 return s 11543} 11544 11545type DeleteDashboardInput struct { 11546 _ struct{} `type:"structure"` 11547 11548 // The ID of the AWS account that contains the dashboard that you're deleting. 11549 // 11550 // AwsAccountId is a required field 11551 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 11552 11553 // The ID for the dashboard. 11554 // 11555 // DashboardId is a required field 11556 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 11557 11558 // The version number of the dashboard. If the version number property is provided, 11559 // only the specified version of the dashboard is deleted. 11560 VersionNumber *int64 `location:"querystring" locationName:"version-number" min:"1" type:"long"` 11561} 11562 11563// String returns the string representation 11564func (s DeleteDashboardInput) String() string { 11565 return awsutil.Prettify(s) 11566} 11567 11568// GoString returns the string representation 11569func (s DeleteDashboardInput) GoString() string { 11570 return s.String() 11571} 11572 11573// Validate inspects the fields of the type to determine if they are valid. 11574func (s *DeleteDashboardInput) Validate() error { 11575 invalidParams := request.ErrInvalidParams{Context: "DeleteDashboardInput"} 11576 if s.AwsAccountId == nil { 11577 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 11578 } 11579 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 11580 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 11581 } 11582 if s.DashboardId == nil { 11583 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 11584 } 11585 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 11586 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 11587 } 11588 if s.VersionNumber != nil && *s.VersionNumber < 1 { 11589 invalidParams.Add(request.NewErrParamMinValue("VersionNumber", 1)) 11590 } 11591 11592 if invalidParams.Len() > 0 { 11593 return invalidParams 11594 } 11595 return nil 11596} 11597 11598// SetAwsAccountId sets the AwsAccountId field's value. 11599func (s *DeleteDashboardInput) SetAwsAccountId(v string) *DeleteDashboardInput { 11600 s.AwsAccountId = &v 11601 return s 11602} 11603 11604// SetDashboardId sets the DashboardId field's value. 11605func (s *DeleteDashboardInput) SetDashboardId(v string) *DeleteDashboardInput { 11606 s.DashboardId = &v 11607 return s 11608} 11609 11610// SetVersionNumber sets the VersionNumber field's value. 11611func (s *DeleteDashboardInput) SetVersionNumber(v int64) *DeleteDashboardInput { 11612 s.VersionNumber = &v 11613 return s 11614} 11615 11616type DeleteDashboardOutput struct { 11617 _ struct{} `type:"structure"` 11618 11619 // The Secure Socket Layer (SSL) properties that apply for the resource. 11620 Arn *string `type:"string"` 11621 11622 // The ID of the dashboard. 11623 DashboardId *string `min:"1" type:"string"` 11624 11625 // The AWS request ID for this operation. 11626 RequestId *string `type:"string"` 11627 11628 // The HTTP status of the request. 11629 Status *int64 `location:"statusCode" type:"integer"` 11630} 11631 11632// String returns the string representation 11633func (s DeleteDashboardOutput) String() string { 11634 return awsutil.Prettify(s) 11635} 11636 11637// GoString returns the string representation 11638func (s DeleteDashboardOutput) GoString() string { 11639 return s.String() 11640} 11641 11642// SetArn sets the Arn field's value. 11643func (s *DeleteDashboardOutput) SetArn(v string) *DeleteDashboardOutput { 11644 s.Arn = &v 11645 return s 11646} 11647 11648// SetDashboardId sets the DashboardId field's value. 11649func (s *DeleteDashboardOutput) SetDashboardId(v string) *DeleteDashboardOutput { 11650 s.DashboardId = &v 11651 return s 11652} 11653 11654// SetRequestId sets the RequestId field's value. 11655func (s *DeleteDashboardOutput) SetRequestId(v string) *DeleteDashboardOutput { 11656 s.RequestId = &v 11657 return s 11658} 11659 11660// SetStatus sets the Status field's value. 11661func (s *DeleteDashboardOutput) SetStatus(v int64) *DeleteDashboardOutput { 11662 s.Status = &v 11663 return s 11664} 11665 11666type DeleteDataSetInput struct { 11667 _ struct{} `type:"structure"` 11668 11669 // The AWS account ID. 11670 // 11671 // AwsAccountId is a required field 11672 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 11673 11674 // The ID for the dataset that you want to create. This ID is unique per AWS 11675 // Region for each AWS account. 11676 // 11677 // DataSetId is a required field 11678 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 11679} 11680 11681// String returns the string representation 11682func (s DeleteDataSetInput) String() string { 11683 return awsutil.Prettify(s) 11684} 11685 11686// GoString returns the string representation 11687func (s DeleteDataSetInput) GoString() string { 11688 return s.String() 11689} 11690 11691// Validate inspects the fields of the type to determine if they are valid. 11692func (s *DeleteDataSetInput) Validate() error { 11693 invalidParams := request.ErrInvalidParams{Context: "DeleteDataSetInput"} 11694 if s.AwsAccountId == nil { 11695 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 11696 } 11697 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 11698 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 11699 } 11700 if s.DataSetId == nil { 11701 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 11702 } 11703 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 11704 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 11705 } 11706 11707 if invalidParams.Len() > 0 { 11708 return invalidParams 11709 } 11710 return nil 11711} 11712 11713// SetAwsAccountId sets the AwsAccountId field's value. 11714func (s *DeleteDataSetInput) SetAwsAccountId(v string) *DeleteDataSetInput { 11715 s.AwsAccountId = &v 11716 return s 11717} 11718 11719// SetDataSetId sets the DataSetId field's value. 11720func (s *DeleteDataSetInput) SetDataSetId(v string) *DeleteDataSetInput { 11721 s.DataSetId = &v 11722 return s 11723} 11724 11725type DeleteDataSetOutput struct { 11726 _ struct{} `type:"structure"` 11727 11728 // The Amazon Resource Name (ARN) of the dataset. 11729 Arn *string `type:"string"` 11730 11731 // The ID for the dataset that you want to create. This ID is unique per AWS 11732 // Region for each AWS account. 11733 DataSetId *string `type:"string"` 11734 11735 // The AWS request ID for this operation. 11736 RequestId *string `type:"string"` 11737 11738 // The HTTP status of the request. 11739 Status *int64 `location:"statusCode" type:"integer"` 11740} 11741 11742// String returns the string representation 11743func (s DeleteDataSetOutput) String() string { 11744 return awsutil.Prettify(s) 11745} 11746 11747// GoString returns the string representation 11748func (s DeleteDataSetOutput) GoString() string { 11749 return s.String() 11750} 11751 11752// SetArn sets the Arn field's value. 11753func (s *DeleteDataSetOutput) SetArn(v string) *DeleteDataSetOutput { 11754 s.Arn = &v 11755 return s 11756} 11757 11758// SetDataSetId sets the DataSetId field's value. 11759func (s *DeleteDataSetOutput) SetDataSetId(v string) *DeleteDataSetOutput { 11760 s.DataSetId = &v 11761 return s 11762} 11763 11764// SetRequestId sets the RequestId field's value. 11765func (s *DeleteDataSetOutput) SetRequestId(v string) *DeleteDataSetOutput { 11766 s.RequestId = &v 11767 return s 11768} 11769 11770// SetStatus sets the Status field's value. 11771func (s *DeleteDataSetOutput) SetStatus(v int64) *DeleteDataSetOutput { 11772 s.Status = &v 11773 return s 11774} 11775 11776type DeleteDataSourceInput struct { 11777 _ struct{} `type:"structure"` 11778 11779 // The AWS account ID. 11780 // 11781 // AwsAccountId is a required field 11782 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 11783 11784 // The ID of the data source. This ID is unique per AWS Region for each AWS 11785 // account. 11786 // 11787 // DataSourceId is a required field 11788 DataSourceId *string `location:"uri" locationName:"DataSourceId" type:"string" required:"true"` 11789} 11790 11791// String returns the string representation 11792func (s DeleteDataSourceInput) String() string { 11793 return awsutil.Prettify(s) 11794} 11795 11796// GoString returns the string representation 11797func (s DeleteDataSourceInput) GoString() string { 11798 return s.String() 11799} 11800 11801// Validate inspects the fields of the type to determine if they are valid. 11802func (s *DeleteDataSourceInput) Validate() error { 11803 invalidParams := request.ErrInvalidParams{Context: "DeleteDataSourceInput"} 11804 if s.AwsAccountId == nil { 11805 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 11806 } 11807 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 11808 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 11809 } 11810 if s.DataSourceId == nil { 11811 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 11812 } 11813 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 11814 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 11815 } 11816 11817 if invalidParams.Len() > 0 { 11818 return invalidParams 11819 } 11820 return nil 11821} 11822 11823// SetAwsAccountId sets the AwsAccountId field's value. 11824func (s *DeleteDataSourceInput) SetAwsAccountId(v string) *DeleteDataSourceInput { 11825 s.AwsAccountId = &v 11826 return s 11827} 11828 11829// SetDataSourceId sets the DataSourceId field's value. 11830func (s *DeleteDataSourceInput) SetDataSourceId(v string) *DeleteDataSourceInput { 11831 s.DataSourceId = &v 11832 return s 11833} 11834 11835type DeleteDataSourceOutput struct { 11836 _ struct{} `type:"structure"` 11837 11838 // The Amazon Resource Name (ARN) of the data source that you deleted. 11839 Arn *string `type:"string"` 11840 11841 // The ID of the data source. This ID is unique per AWS Region for each AWS 11842 // account. 11843 DataSourceId *string `type:"string"` 11844 11845 // The AWS request ID for this operation. 11846 RequestId *string `type:"string"` 11847 11848 // The HTTP status of the request. 11849 Status *int64 `location:"statusCode" type:"integer"` 11850} 11851 11852// String returns the string representation 11853func (s DeleteDataSourceOutput) String() string { 11854 return awsutil.Prettify(s) 11855} 11856 11857// GoString returns the string representation 11858func (s DeleteDataSourceOutput) GoString() string { 11859 return s.String() 11860} 11861 11862// SetArn sets the Arn field's value. 11863func (s *DeleteDataSourceOutput) SetArn(v string) *DeleteDataSourceOutput { 11864 s.Arn = &v 11865 return s 11866} 11867 11868// SetDataSourceId sets the DataSourceId field's value. 11869func (s *DeleteDataSourceOutput) SetDataSourceId(v string) *DeleteDataSourceOutput { 11870 s.DataSourceId = &v 11871 return s 11872} 11873 11874// SetRequestId sets the RequestId field's value. 11875func (s *DeleteDataSourceOutput) SetRequestId(v string) *DeleteDataSourceOutput { 11876 s.RequestId = &v 11877 return s 11878} 11879 11880// SetStatus sets the Status field's value. 11881func (s *DeleteDataSourceOutput) SetStatus(v int64) *DeleteDataSourceOutput { 11882 s.Status = &v 11883 return s 11884} 11885 11886type DeleteGroupInput struct { 11887 _ struct{} `type:"structure"` 11888 11889 // The ID for the AWS account that the group is in. Currently, you use the ID 11890 // for the AWS account that contains your Amazon QuickSight account. 11891 // 11892 // AwsAccountId is a required field 11893 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 11894 11895 // The name of the group that you want to delete. 11896 // 11897 // GroupName is a required field 11898 GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` 11899 11900 // The namespace. Currently, you should set this to default. 11901 // 11902 // Namespace is a required field 11903 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 11904} 11905 11906// String returns the string representation 11907func (s DeleteGroupInput) String() string { 11908 return awsutil.Prettify(s) 11909} 11910 11911// GoString returns the string representation 11912func (s DeleteGroupInput) GoString() string { 11913 return s.String() 11914} 11915 11916// Validate inspects the fields of the type to determine if they are valid. 11917func (s *DeleteGroupInput) Validate() error { 11918 invalidParams := request.ErrInvalidParams{Context: "DeleteGroupInput"} 11919 if s.AwsAccountId == nil { 11920 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 11921 } 11922 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 11923 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 11924 } 11925 if s.GroupName == nil { 11926 invalidParams.Add(request.NewErrParamRequired("GroupName")) 11927 } 11928 if s.GroupName != nil && len(*s.GroupName) < 1 { 11929 invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) 11930 } 11931 if s.Namespace == nil { 11932 invalidParams.Add(request.NewErrParamRequired("Namespace")) 11933 } 11934 if s.Namespace != nil && len(*s.Namespace) < 1 { 11935 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 11936 } 11937 11938 if invalidParams.Len() > 0 { 11939 return invalidParams 11940 } 11941 return nil 11942} 11943 11944// SetAwsAccountId sets the AwsAccountId field's value. 11945func (s *DeleteGroupInput) SetAwsAccountId(v string) *DeleteGroupInput { 11946 s.AwsAccountId = &v 11947 return s 11948} 11949 11950// SetGroupName sets the GroupName field's value. 11951func (s *DeleteGroupInput) SetGroupName(v string) *DeleteGroupInput { 11952 s.GroupName = &v 11953 return s 11954} 11955 11956// SetNamespace sets the Namespace field's value. 11957func (s *DeleteGroupInput) SetNamespace(v string) *DeleteGroupInput { 11958 s.Namespace = &v 11959 return s 11960} 11961 11962type DeleteGroupMembershipInput struct { 11963 _ struct{} `type:"structure"` 11964 11965 // The ID for the AWS account that the group is in. Currently, you use the ID 11966 // for the AWS account that contains your Amazon QuickSight account. 11967 // 11968 // AwsAccountId is a required field 11969 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 11970 11971 // The name of the group that you want to delete the user from. 11972 // 11973 // GroupName is a required field 11974 GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` 11975 11976 // The name of the user that you want to delete from the group membership. 11977 // 11978 // MemberName is a required field 11979 MemberName *string `location:"uri" locationName:"MemberName" min:"1" type:"string" required:"true"` 11980 11981 // The namespace. Currently, you should set this to default. 11982 // 11983 // Namespace is a required field 11984 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 11985} 11986 11987// String returns the string representation 11988func (s DeleteGroupMembershipInput) String() string { 11989 return awsutil.Prettify(s) 11990} 11991 11992// GoString returns the string representation 11993func (s DeleteGroupMembershipInput) GoString() string { 11994 return s.String() 11995} 11996 11997// Validate inspects the fields of the type to determine if they are valid. 11998func (s *DeleteGroupMembershipInput) Validate() error { 11999 invalidParams := request.ErrInvalidParams{Context: "DeleteGroupMembershipInput"} 12000 if s.AwsAccountId == nil { 12001 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12002 } 12003 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12004 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12005 } 12006 if s.GroupName == nil { 12007 invalidParams.Add(request.NewErrParamRequired("GroupName")) 12008 } 12009 if s.GroupName != nil && len(*s.GroupName) < 1 { 12010 invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) 12011 } 12012 if s.MemberName == nil { 12013 invalidParams.Add(request.NewErrParamRequired("MemberName")) 12014 } 12015 if s.MemberName != nil && len(*s.MemberName) < 1 { 12016 invalidParams.Add(request.NewErrParamMinLen("MemberName", 1)) 12017 } 12018 if s.Namespace == nil { 12019 invalidParams.Add(request.NewErrParamRequired("Namespace")) 12020 } 12021 if s.Namespace != nil && len(*s.Namespace) < 1 { 12022 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 12023 } 12024 12025 if invalidParams.Len() > 0 { 12026 return invalidParams 12027 } 12028 return nil 12029} 12030 12031// SetAwsAccountId sets the AwsAccountId field's value. 12032func (s *DeleteGroupMembershipInput) SetAwsAccountId(v string) *DeleteGroupMembershipInput { 12033 s.AwsAccountId = &v 12034 return s 12035} 12036 12037// SetGroupName sets the GroupName field's value. 12038func (s *DeleteGroupMembershipInput) SetGroupName(v string) *DeleteGroupMembershipInput { 12039 s.GroupName = &v 12040 return s 12041} 12042 12043// SetMemberName sets the MemberName field's value. 12044func (s *DeleteGroupMembershipInput) SetMemberName(v string) *DeleteGroupMembershipInput { 12045 s.MemberName = &v 12046 return s 12047} 12048 12049// SetNamespace sets the Namespace field's value. 12050func (s *DeleteGroupMembershipInput) SetNamespace(v string) *DeleteGroupMembershipInput { 12051 s.Namespace = &v 12052 return s 12053} 12054 12055type DeleteGroupMembershipOutput struct { 12056 _ struct{} `type:"structure"` 12057 12058 // The AWS request ID for this operation. 12059 RequestId *string `type:"string"` 12060 12061 // The HTTP status of the request. 12062 Status *int64 `location:"statusCode" type:"integer"` 12063} 12064 12065// String returns the string representation 12066func (s DeleteGroupMembershipOutput) String() string { 12067 return awsutil.Prettify(s) 12068} 12069 12070// GoString returns the string representation 12071func (s DeleteGroupMembershipOutput) GoString() string { 12072 return s.String() 12073} 12074 12075// SetRequestId sets the RequestId field's value. 12076func (s *DeleteGroupMembershipOutput) SetRequestId(v string) *DeleteGroupMembershipOutput { 12077 s.RequestId = &v 12078 return s 12079} 12080 12081// SetStatus sets the Status field's value. 12082func (s *DeleteGroupMembershipOutput) SetStatus(v int64) *DeleteGroupMembershipOutput { 12083 s.Status = &v 12084 return s 12085} 12086 12087type DeleteGroupOutput struct { 12088 _ struct{} `type:"structure"` 12089 12090 // The AWS request ID for this operation. 12091 RequestId *string `type:"string"` 12092 12093 // The HTTP status of the request. 12094 Status *int64 `location:"statusCode" type:"integer"` 12095} 12096 12097// String returns the string representation 12098func (s DeleteGroupOutput) String() string { 12099 return awsutil.Prettify(s) 12100} 12101 12102// GoString returns the string representation 12103func (s DeleteGroupOutput) GoString() string { 12104 return s.String() 12105} 12106 12107// SetRequestId sets the RequestId field's value. 12108func (s *DeleteGroupOutput) SetRequestId(v string) *DeleteGroupOutput { 12109 s.RequestId = &v 12110 return s 12111} 12112 12113// SetStatus sets the Status field's value. 12114func (s *DeleteGroupOutput) SetStatus(v int64) *DeleteGroupOutput { 12115 s.Status = &v 12116 return s 12117} 12118 12119type DeleteIAMPolicyAssignmentInput struct { 12120 _ struct{} `type:"structure"` 12121 12122 // The name of the assignment. 12123 // 12124 // AssignmentName is a required field 12125 AssignmentName *string `location:"uri" locationName:"AssignmentName" min:"1" type:"string" required:"true"` 12126 12127 // The AWS account ID where you want to delete the IAM policy assignment. 12128 // 12129 // AwsAccountId is a required field 12130 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12131 12132 // The namespace that contains the assignment. 12133 // 12134 // Namespace is a required field 12135 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 12136} 12137 12138// String returns the string representation 12139func (s DeleteIAMPolicyAssignmentInput) String() string { 12140 return awsutil.Prettify(s) 12141} 12142 12143// GoString returns the string representation 12144func (s DeleteIAMPolicyAssignmentInput) GoString() string { 12145 return s.String() 12146} 12147 12148// Validate inspects the fields of the type to determine if they are valid. 12149func (s *DeleteIAMPolicyAssignmentInput) Validate() error { 12150 invalidParams := request.ErrInvalidParams{Context: "DeleteIAMPolicyAssignmentInput"} 12151 if s.AssignmentName == nil { 12152 invalidParams.Add(request.NewErrParamRequired("AssignmentName")) 12153 } 12154 if s.AssignmentName != nil && len(*s.AssignmentName) < 1 { 12155 invalidParams.Add(request.NewErrParamMinLen("AssignmentName", 1)) 12156 } 12157 if s.AwsAccountId == nil { 12158 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12159 } 12160 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12161 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12162 } 12163 if s.Namespace == nil { 12164 invalidParams.Add(request.NewErrParamRequired("Namespace")) 12165 } 12166 if s.Namespace != nil && len(*s.Namespace) < 1 { 12167 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 12168 } 12169 12170 if invalidParams.Len() > 0 { 12171 return invalidParams 12172 } 12173 return nil 12174} 12175 12176// SetAssignmentName sets the AssignmentName field's value. 12177func (s *DeleteIAMPolicyAssignmentInput) SetAssignmentName(v string) *DeleteIAMPolicyAssignmentInput { 12178 s.AssignmentName = &v 12179 return s 12180} 12181 12182// SetAwsAccountId sets the AwsAccountId field's value. 12183func (s *DeleteIAMPolicyAssignmentInput) SetAwsAccountId(v string) *DeleteIAMPolicyAssignmentInput { 12184 s.AwsAccountId = &v 12185 return s 12186} 12187 12188// SetNamespace sets the Namespace field's value. 12189func (s *DeleteIAMPolicyAssignmentInput) SetNamespace(v string) *DeleteIAMPolicyAssignmentInput { 12190 s.Namespace = &v 12191 return s 12192} 12193 12194type DeleteIAMPolicyAssignmentOutput struct { 12195 _ struct{} `type:"structure"` 12196 12197 // The name of the assignment. 12198 AssignmentName *string `min:"1" type:"string"` 12199 12200 // The AWS request ID for this operation. 12201 RequestId *string `type:"string"` 12202 12203 // The HTTP status of the request. 12204 Status *int64 `location:"statusCode" type:"integer"` 12205} 12206 12207// String returns the string representation 12208func (s DeleteIAMPolicyAssignmentOutput) String() string { 12209 return awsutil.Prettify(s) 12210} 12211 12212// GoString returns the string representation 12213func (s DeleteIAMPolicyAssignmentOutput) GoString() string { 12214 return s.String() 12215} 12216 12217// SetAssignmentName sets the AssignmentName field's value. 12218func (s *DeleteIAMPolicyAssignmentOutput) SetAssignmentName(v string) *DeleteIAMPolicyAssignmentOutput { 12219 s.AssignmentName = &v 12220 return s 12221} 12222 12223// SetRequestId sets the RequestId field's value. 12224func (s *DeleteIAMPolicyAssignmentOutput) SetRequestId(v string) *DeleteIAMPolicyAssignmentOutput { 12225 s.RequestId = &v 12226 return s 12227} 12228 12229// SetStatus sets the Status field's value. 12230func (s *DeleteIAMPolicyAssignmentOutput) SetStatus(v int64) *DeleteIAMPolicyAssignmentOutput { 12231 s.Status = &v 12232 return s 12233} 12234 12235type DeleteTemplateAliasInput struct { 12236 _ struct{} `type:"structure"` 12237 12238 // The name for the template alias. If you name a specific alias, you delete 12239 // the version that the alias points to. You can specify the latest version 12240 // of the template by providing the keyword $LATEST in the AliasName parameter. 12241 // 12242 // AliasName is a required field 12243 AliasName *string `location:"uri" locationName:"AliasName" min:"1" type:"string" required:"true"` 12244 12245 // The ID of the AWS account that contains the item to delete. 12246 // 12247 // AwsAccountId is a required field 12248 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12249 12250 // The ID for the template that the specified alias is for. 12251 // 12252 // TemplateId is a required field 12253 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 12254} 12255 12256// String returns the string representation 12257func (s DeleteTemplateAliasInput) String() string { 12258 return awsutil.Prettify(s) 12259} 12260 12261// GoString returns the string representation 12262func (s DeleteTemplateAliasInput) GoString() string { 12263 return s.String() 12264} 12265 12266// Validate inspects the fields of the type to determine if they are valid. 12267func (s *DeleteTemplateAliasInput) Validate() error { 12268 invalidParams := request.ErrInvalidParams{Context: "DeleteTemplateAliasInput"} 12269 if s.AliasName == nil { 12270 invalidParams.Add(request.NewErrParamRequired("AliasName")) 12271 } 12272 if s.AliasName != nil && len(*s.AliasName) < 1 { 12273 invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) 12274 } 12275 if s.AwsAccountId == nil { 12276 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12277 } 12278 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12279 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12280 } 12281 if s.TemplateId == nil { 12282 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 12283 } 12284 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 12285 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 12286 } 12287 12288 if invalidParams.Len() > 0 { 12289 return invalidParams 12290 } 12291 return nil 12292} 12293 12294// SetAliasName sets the AliasName field's value. 12295func (s *DeleteTemplateAliasInput) SetAliasName(v string) *DeleteTemplateAliasInput { 12296 s.AliasName = &v 12297 return s 12298} 12299 12300// SetAwsAccountId sets the AwsAccountId field's value. 12301func (s *DeleteTemplateAliasInput) SetAwsAccountId(v string) *DeleteTemplateAliasInput { 12302 s.AwsAccountId = &v 12303 return s 12304} 12305 12306// SetTemplateId sets the TemplateId field's value. 12307func (s *DeleteTemplateAliasInput) SetTemplateId(v string) *DeleteTemplateAliasInput { 12308 s.TemplateId = &v 12309 return s 12310} 12311 12312type DeleteTemplateAliasOutput struct { 12313 _ struct{} `type:"structure"` 12314 12315 // The name for the template alias. 12316 AliasName *string `min:"1" type:"string"` 12317 12318 // The Amazon Resource Name (ARN) of the resource. 12319 Arn *string `type:"string"` 12320 12321 // The AWS request ID for this operation. 12322 RequestId *string `type:"string"` 12323 12324 // The HTTP status of the request. 12325 Status *int64 `location:"statusCode" type:"integer"` 12326 12327 // An ID for the template associated with the deletion. 12328 TemplateId *string `min:"1" type:"string"` 12329} 12330 12331// String returns the string representation 12332func (s DeleteTemplateAliasOutput) String() string { 12333 return awsutil.Prettify(s) 12334} 12335 12336// GoString returns the string representation 12337func (s DeleteTemplateAliasOutput) GoString() string { 12338 return s.String() 12339} 12340 12341// SetAliasName sets the AliasName field's value. 12342func (s *DeleteTemplateAliasOutput) SetAliasName(v string) *DeleteTemplateAliasOutput { 12343 s.AliasName = &v 12344 return s 12345} 12346 12347// SetArn sets the Arn field's value. 12348func (s *DeleteTemplateAliasOutput) SetArn(v string) *DeleteTemplateAliasOutput { 12349 s.Arn = &v 12350 return s 12351} 12352 12353// SetRequestId sets the RequestId field's value. 12354func (s *DeleteTemplateAliasOutput) SetRequestId(v string) *DeleteTemplateAliasOutput { 12355 s.RequestId = &v 12356 return s 12357} 12358 12359// SetStatus sets the Status field's value. 12360func (s *DeleteTemplateAliasOutput) SetStatus(v int64) *DeleteTemplateAliasOutput { 12361 s.Status = &v 12362 return s 12363} 12364 12365// SetTemplateId sets the TemplateId field's value. 12366func (s *DeleteTemplateAliasOutput) SetTemplateId(v string) *DeleteTemplateAliasOutput { 12367 s.TemplateId = &v 12368 return s 12369} 12370 12371type DeleteTemplateInput struct { 12372 _ struct{} `type:"structure"` 12373 12374 // The ID of the AWS account that contains the template that you're deleting. 12375 // 12376 // AwsAccountId is a required field 12377 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12378 12379 // An ID for the template you want to delete. 12380 // 12381 // TemplateId is a required field 12382 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 12383 12384 // Specifies the version of the template that you want to delete. If you don't 12385 // provide a version number, DeleteTemplate deletes all versions of the template. 12386 VersionNumber *int64 `location:"querystring" locationName:"version-number" min:"1" type:"long"` 12387} 12388 12389// String returns the string representation 12390func (s DeleteTemplateInput) String() string { 12391 return awsutil.Prettify(s) 12392} 12393 12394// GoString returns the string representation 12395func (s DeleteTemplateInput) GoString() string { 12396 return s.String() 12397} 12398 12399// Validate inspects the fields of the type to determine if they are valid. 12400func (s *DeleteTemplateInput) Validate() error { 12401 invalidParams := request.ErrInvalidParams{Context: "DeleteTemplateInput"} 12402 if s.AwsAccountId == nil { 12403 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12404 } 12405 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12406 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12407 } 12408 if s.TemplateId == nil { 12409 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 12410 } 12411 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 12412 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 12413 } 12414 if s.VersionNumber != nil && *s.VersionNumber < 1 { 12415 invalidParams.Add(request.NewErrParamMinValue("VersionNumber", 1)) 12416 } 12417 12418 if invalidParams.Len() > 0 { 12419 return invalidParams 12420 } 12421 return nil 12422} 12423 12424// SetAwsAccountId sets the AwsAccountId field's value. 12425func (s *DeleteTemplateInput) SetAwsAccountId(v string) *DeleteTemplateInput { 12426 s.AwsAccountId = &v 12427 return s 12428} 12429 12430// SetTemplateId sets the TemplateId field's value. 12431func (s *DeleteTemplateInput) SetTemplateId(v string) *DeleteTemplateInput { 12432 s.TemplateId = &v 12433 return s 12434} 12435 12436// SetVersionNumber sets the VersionNumber field's value. 12437func (s *DeleteTemplateInput) SetVersionNumber(v int64) *DeleteTemplateInput { 12438 s.VersionNumber = &v 12439 return s 12440} 12441 12442type DeleteTemplateOutput struct { 12443 _ struct{} `type:"structure"` 12444 12445 // The Amazon Resource Name (ARN) of the resource. 12446 Arn *string `type:"string"` 12447 12448 // The AWS request ID for this operation. 12449 RequestId *string `type:"string"` 12450 12451 // The HTTP status of the request. 12452 Status *int64 `location:"statusCode" type:"integer"` 12453 12454 // An ID for the template. 12455 TemplateId *string `min:"1" type:"string"` 12456} 12457 12458// String returns the string representation 12459func (s DeleteTemplateOutput) String() string { 12460 return awsutil.Prettify(s) 12461} 12462 12463// GoString returns the string representation 12464func (s DeleteTemplateOutput) GoString() string { 12465 return s.String() 12466} 12467 12468// SetArn sets the Arn field's value. 12469func (s *DeleteTemplateOutput) SetArn(v string) *DeleteTemplateOutput { 12470 s.Arn = &v 12471 return s 12472} 12473 12474// SetRequestId sets the RequestId field's value. 12475func (s *DeleteTemplateOutput) SetRequestId(v string) *DeleteTemplateOutput { 12476 s.RequestId = &v 12477 return s 12478} 12479 12480// SetStatus sets the Status field's value. 12481func (s *DeleteTemplateOutput) SetStatus(v int64) *DeleteTemplateOutput { 12482 s.Status = &v 12483 return s 12484} 12485 12486// SetTemplateId sets the TemplateId field's value. 12487func (s *DeleteTemplateOutput) SetTemplateId(v string) *DeleteTemplateOutput { 12488 s.TemplateId = &v 12489 return s 12490} 12491 12492type DeleteUserByPrincipalIdInput struct { 12493 _ struct{} `type:"structure"` 12494 12495 // The ID for the AWS account that the user is in. Currently, you use the ID 12496 // for the AWS account that contains your Amazon QuickSight account. 12497 // 12498 // AwsAccountId is a required field 12499 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12500 12501 // The namespace. Currently, you should set this to default. 12502 // 12503 // Namespace is a required field 12504 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 12505 12506 // The principal ID of the user. 12507 // 12508 // PrincipalId is a required field 12509 PrincipalId *string `location:"uri" locationName:"PrincipalId" type:"string" required:"true"` 12510} 12511 12512// String returns the string representation 12513func (s DeleteUserByPrincipalIdInput) String() string { 12514 return awsutil.Prettify(s) 12515} 12516 12517// GoString returns the string representation 12518func (s DeleteUserByPrincipalIdInput) GoString() string { 12519 return s.String() 12520} 12521 12522// Validate inspects the fields of the type to determine if they are valid. 12523func (s *DeleteUserByPrincipalIdInput) Validate() error { 12524 invalidParams := request.ErrInvalidParams{Context: "DeleteUserByPrincipalIdInput"} 12525 if s.AwsAccountId == nil { 12526 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12527 } 12528 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12529 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12530 } 12531 if s.Namespace == nil { 12532 invalidParams.Add(request.NewErrParamRequired("Namespace")) 12533 } 12534 if s.Namespace != nil && len(*s.Namespace) < 1 { 12535 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 12536 } 12537 if s.PrincipalId == nil { 12538 invalidParams.Add(request.NewErrParamRequired("PrincipalId")) 12539 } 12540 if s.PrincipalId != nil && len(*s.PrincipalId) < 1 { 12541 invalidParams.Add(request.NewErrParamMinLen("PrincipalId", 1)) 12542 } 12543 12544 if invalidParams.Len() > 0 { 12545 return invalidParams 12546 } 12547 return nil 12548} 12549 12550// SetAwsAccountId sets the AwsAccountId field's value. 12551func (s *DeleteUserByPrincipalIdInput) SetAwsAccountId(v string) *DeleteUserByPrincipalIdInput { 12552 s.AwsAccountId = &v 12553 return s 12554} 12555 12556// SetNamespace sets the Namespace field's value. 12557func (s *DeleteUserByPrincipalIdInput) SetNamespace(v string) *DeleteUserByPrincipalIdInput { 12558 s.Namespace = &v 12559 return s 12560} 12561 12562// SetPrincipalId sets the PrincipalId field's value. 12563func (s *DeleteUserByPrincipalIdInput) SetPrincipalId(v string) *DeleteUserByPrincipalIdInput { 12564 s.PrincipalId = &v 12565 return s 12566} 12567 12568type DeleteUserByPrincipalIdOutput struct { 12569 _ struct{} `type:"structure"` 12570 12571 // The AWS request ID for this operation. 12572 RequestId *string `type:"string"` 12573 12574 // The HTTP status of the request. 12575 Status *int64 `location:"statusCode" type:"integer"` 12576} 12577 12578// String returns the string representation 12579func (s DeleteUserByPrincipalIdOutput) String() string { 12580 return awsutil.Prettify(s) 12581} 12582 12583// GoString returns the string representation 12584func (s DeleteUserByPrincipalIdOutput) GoString() string { 12585 return s.String() 12586} 12587 12588// SetRequestId sets the RequestId field's value. 12589func (s *DeleteUserByPrincipalIdOutput) SetRequestId(v string) *DeleteUserByPrincipalIdOutput { 12590 s.RequestId = &v 12591 return s 12592} 12593 12594// SetStatus sets the Status field's value. 12595func (s *DeleteUserByPrincipalIdOutput) SetStatus(v int64) *DeleteUserByPrincipalIdOutput { 12596 s.Status = &v 12597 return s 12598} 12599 12600type DeleteUserInput struct { 12601 _ struct{} `type:"structure"` 12602 12603 // The ID for the AWS account that the user is in. Currently, you use the ID 12604 // for the AWS account that contains your Amazon QuickSight account. 12605 // 12606 // AwsAccountId is a required field 12607 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12608 12609 // The namespace. Currently, you should set this to default. 12610 // 12611 // Namespace is a required field 12612 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 12613 12614 // The name of the user that you want to delete. 12615 // 12616 // UserName is a required field 12617 UserName *string `location:"uri" locationName:"UserName" min:"1" type:"string" required:"true"` 12618} 12619 12620// String returns the string representation 12621func (s DeleteUserInput) String() string { 12622 return awsutil.Prettify(s) 12623} 12624 12625// GoString returns the string representation 12626func (s DeleteUserInput) GoString() string { 12627 return s.String() 12628} 12629 12630// Validate inspects the fields of the type to determine if they are valid. 12631func (s *DeleteUserInput) Validate() error { 12632 invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} 12633 if s.AwsAccountId == nil { 12634 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12635 } 12636 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12637 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12638 } 12639 if s.Namespace == nil { 12640 invalidParams.Add(request.NewErrParamRequired("Namespace")) 12641 } 12642 if s.Namespace != nil && len(*s.Namespace) < 1 { 12643 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 12644 } 12645 if s.UserName == nil { 12646 invalidParams.Add(request.NewErrParamRequired("UserName")) 12647 } 12648 if s.UserName != nil && len(*s.UserName) < 1 { 12649 invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) 12650 } 12651 12652 if invalidParams.Len() > 0 { 12653 return invalidParams 12654 } 12655 return nil 12656} 12657 12658// SetAwsAccountId sets the AwsAccountId field's value. 12659func (s *DeleteUserInput) SetAwsAccountId(v string) *DeleteUserInput { 12660 s.AwsAccountId = &v 12661 return s 12662} 12663 12664// SetNamespace sets the Namespace field's value. 12665func (s *DeleteUserInput) SetNamespace(v string) *DeleteUserInput { 12666 s.Namespace = &v 12667 return s 12668} 12669 12670// SetUserName sets the UserName field's value. 12671func (s *DeleteUserInput) SetUserName(v string) *DeleteUserInput { 12672 s.UserName = &v 12673 return s 12674} 12675 12676type DeleteUserOutput struct { 12677 _ struct{} `type:"structure"` 12678 12679 // The AWS request ID for this operation. 12680 RequestId *string `type:"string"` 12681 12682 // The HTTP status of the request. 12683 Status *int64 `location:"statusCode" type:"integer"` 12684} 12685 12686// String returns the string representation 12687func (s DeleteUserOutput) String() string { 12688 return awsutil.Prettify(s) 12689} 12690 12691// GoString returns the string representation 12692func (s DeleteUserOutput) GoString() string { 12693 return s.String() 12694} 12695 12696// SetRequestId sets the RequestId field's value. 12697func (s *DeleteUserOutput) SetRequestId(v string) *DeleteUserOutput { 12698 s.RequestId = &v 12699 return s 12700} 12701 12702// SetStatus sets the Status field's value. 12703func (s *DeleteUserOutput) SetStatus(v int64) *DeleteUserOutput { 12704 s.Status = &v 12705 return s 12706} 12707 12708type DescribeDashboardInput struct { 12709 _ struct{} `type:"structure"` 12710 12711 // The alias name. 12712 AliasName *string `location:"querystring" locationName:"alias-name" min:"1" type:"string"` 12713 12714 // The ID of the AWS account that contains the dashboard that you're describing. 12715 // 12716 // AwsAccountId is a required field 12717 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12718 12719 // The ID for the dashboard. 12720 // 12721 // DashboardId is a required field 12722 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 12723 12724 // The version number for the dashboard. If a version number isn't passed, the 12725 // latest published dashboard version is described. 12726 VersionNumber *int64 `location:"querystring" locationName:"version-number" min:"1" type:"long"` 12727} 12728 12729// String returns the string representation 12730func (s DescribeDashboardInput) String() string { 12731 return awsutil.Prettify(s) 12732} 12733 12734// GoString returns the string representation 12735func (s DescribeDashboardInput) GoString() string { 12736 return s.String() 12737} 12738 12739// Validate inspects the fields of the type to determine if they are valid. 12740func (s *DescribeDashboardInput) Validate() error { 12741 invalidParams := request.ErrInvalidParams{Context: "DescribeDashboardInput"} 12742 if s.AliasName != nil && len(*s.AliasName) < 1 { 12743 invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) 12744 } 12745 if s.AwsAccountId == nil { 12746 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12747 } 12748 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12749 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12750 } 12751 if s.DashboardId == nil { 12752 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 12753 } 12754 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 12755 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 12756 } 12757 if s.VersionNumber != nil && *s.VersionNumber < 1 { 12758 invalidParams.Add(request.NewErrParamMinValue("VersionNumber", 1)) 12759 } 12760 12761 if invalidParams.Len() > 0 { 12762 return invalidParams 12763 } 12764 return nil 12765} 12766 12767// SetAliasName sets the AliasName field's value. 12768func (s *DescribeDashboardInput) SetAliasName(v string) *DescribeDashboardInput { 12769 s.AliasName = &v 12770 return s 12771} 12772 12773// SetAwsAccountId sets the AwsAccountId field's value. 12774func (s *DescribeDashboardInput) SetAwsAccountId(v string) *DescribeDashboardInput { 12775 s.AwsAccountId = &v 12776 return s 12777} 12778 12779// SetDashboardId sets the DashboardId field's value. 12780func (s *DescribeDashboardInput) SetDashboardId(v string) *DescribeDashboardInput { 12781 s.DashboardId = &v 12782 return s 12783} 12784 12785// SetVersionNumber sets the VersionNumber field's value. 12786func (s *DescribeDashboardInput) SetVersionNumber(v int64) *DescribeDashboardInput { 12787 s.VersionNumber = &v 12788 return s 12789} 12790 12791type DescribeDashboardOutput struct { 12792 _ struct{} `type:"structure"` 12793 12794 // Information about the dashboard. 12795 Dashboard *Dashboard `type:"structure"` 12796 12797 // The AWS request ID for this operation. 12798 RequestId *string `type:"string"` 12799 12800 // The HTTP status of this request. 12801 Status *int64 `location:"statusCode" type:"integer"` 12802} 12803 12804// String returns the string representation 12805func (s DescribeDashboardOutput) String() string { 12806 return awsutil.Prettify(s) 12807} 12808 12809// GoString returns the string representation 12810func (s DescribeDashboardOutput) GoString() string { 12811 return s.String() 12812} 12813 12814// SetDashboard sets the Dashboard field's value. 12815func (s *DescribeDashboardOutput) SetDashboard(v *Dashboard) *DescribeDashboardOutput { 12816 s.Dashboard = v 12817 return s 12818} 12819 12820// SetRequestId sets the RequestId field's value. 12821func (s *DescribeDashboardOutput) SetRequestId(v string) *DescribeDashboardOutput { 12822 s.RequestId = &v 12823 return s 12824} 12825 12826// SetStatus sets the Status field's value. 12827func (s *DescribeDashboardOutput) SetStatus(v int64) *DescribeDashboardOutput { 12828 s.Status = &v 12829 return s 12830} 12831 12832type DescribeDashboardPermissionsInput struct { 12833 _ struct{} `type:"structure"` 12834 12835 // The ID of the AWS account that contains the dashboard that you're describing 12836 // permissions for. 12837 // 12838 // AwsAccountId is a required field 12839 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12840 12841 // The ID for the dashboard, also added to the IAM policy. 12842 // 12843 // DashboardId is a required field 12844 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 12845} 12846 12847// String returns the string representation 12848func (s DescribeDashboardPermissionsInput) String() string { 12849 return awsutil.Prettify(s) 12850} 12851 12852// GoString returns the string representation 12853func (s DescribeDashboardPermissionsInput) GoString() string { 12854 return s.String() 12855} 12856 12857// Validate inspects the fields of the type to determine if they are valid. 12858func (s *DescribeDashboardPermissionsInput) Validate() error { 12859 invalidParams := request.ErrInvalidParams{Context: "DescribeDashboardPermissionsInput"} 12860 if s.AwsAccountId == nil { 12861 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12862 } 12863 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12864 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12865 } 12866 if s.DashboardId == nil { 12867 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 12868 } 12869 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 12870 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 12871 } 12872 12873 if invalidParams.Len() > 0 { 12874 return invalidParams 12875 } 12876 return nil 12877} 12878 12879// SetAwsAccountId sets the AwsAccountId field's value. 12880func (s *DescribeDashboardPermissionsInput) SetAwsAccountId(v string) *DescribeDashboardPermissionsInput { 12881 s.AwsAccountId = &v 12882 return s 12883} 12884 12885// SetDashboardId sets the DashboardId field's value. 12886func (s *DescribeDashboardPermissionsInput) SetDashboardId(v string) *DescribeDashboardPermissionsInput { 12887 s.DashboardId = &v 12888 return s 12889} 12890 12891type DescribeDashboardPermissionsOutput struct { 12892 _ struct{} `type:"structure"` 12893 12894 // The Amazon Resource Name (ARN) of the dashboard. 12895 DashboardArn *string `type:"string"` 12896 12897 // The ID for the dashboard. 12898 DashboardId *string `min:"1" type:"string"` 12899 12900 // A structure that contains the permissions for the dashboard. 12901 Permissions []*ResourcePermission `min:"1" type:"list"` 12902 12903 // The AWS request ID for this operation. 12904 RequestId *string `type:"string"` 12905 12906 // The HTTP status of the request. 12907 Status *int64 `location:"statusCode" type:"integer"` 12908} 12909 12910// String returns the string representation 12911func (s DescribeDashboardPermissionsOutput) String() string { 12912 return awsutil.Prettify(s) 12913} 12914 12915// GoString returns the string representation 12916func (s DescribeDashboardPermissionsOutput) GoString() string { 12917 return s.String() 12918} 12919 12920// SetDashboardArn sets the DashboardArn field's value. 12921func (s *DescribeDashboardPermissionsOutput) SetDashboardArn(v string) *DescribeDashboardPermissionsOutput { 12922 s.DashboardArn = &v 12923 return s 12924} 12925 12926// SetDashboardId sets the DashboardId field's value. 12927func (s *DescribeDashboardPermissionsOutput) SetDashboardId(v string) *DescribeDashboardPermissionsOutput { 12928 s.DashboardId = &v 12929 return s 12930} 12931 12932// SetPermissions sets the Permissions field's value. 12933func (s *DescribeDashboardPermissionsOutput) SetPermissions(v []*ResourcePermission) *DescribeDashboardPermissionsOutput { 12934 s.Permissions = v 12935 return s 12936} 12937 12938// SetRequestId sets the RequestId field's value. 12939func (s *DescribeDashboardPermissionsOutput) SetRequestId(v string) *DescribeDashboardPermissionsOutput { 12940 s.RequestId = &v 12941 return s 12942} 12943 12944// SetStatus sets the Status field's value. 12945func (s *DescribeDashboardPermissionsOutput) SetStatus(v int64) *DescribeDashboardPermissionsOutput { 12946 s.Status = &v 12947 return s 12948} 12949 12950type DescribeDataSetInput struct { 12951 _ struct{} `type:"structure"` 12952 12953 // The AWS account ID. 12954 // 12955 // AwsAccountId is a required field 12956 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 12957 12958 // The ID for the dataset that you want to create. This ID is unique per AWS 12959 // Region for each AWS account. 12960 // 12961 // DataSetId is a required field 12962 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 12963} 12964 12965// String returns the string representation 12966func (s DescribeDataSetInput) String() string { 12967 return awsutil.Prettify(s) 12968} 12969 12970// GoString returns the string representation 12971func (s DescribeDataSetInput) GoString() string { 12972 return s.String() 12973} 12974 12975// Validate inspects the fields of the type to determine if they are valid. 12976func (s *DescribeDataSetInput) Validate() error { 12977 invalidParams := request.ErrInvalidParams{Context: "DescribeDataSetInput"} 12978 if s.AwsAccountId == nil { 12979 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 12980 } 12981 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 12982 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 12983 } 12984 if s.DataSetId == nil { 12985 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 12986 } 12987 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 12988 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 12989 } 12990 12991 if invalidParams.Len() > 0 { 12992 return invalidParams 12993 } 12994 return nil 12995} 12996 12997// SetAwsAccountId sets the AwsAccountId field's value. 12998func (s *DescribeDataSetInput) SetAwsAccountId(v string) *DescribeDataSetInput { 12999 s.AwsAccountId = &v 13000 return s 13001} 13002 13003// SetDataSetId sets the DataSetId field's value. 13004func (s *DescribeDataSetInput) SetDataSetId(v string) *DescribeDataSetInput { 13005 s.DataSetId = &v 13006 return s 13007} 13008 13009type DescribeDataSetOutput struct { 13010 _ struct{} `type:"structure"` 13011 13012 // Information on the dataset. 13013 DataSet *DataSet `type:"structure"` 13014 13015 // The AWS request ID for this operation. 13016 RequestId *string `type:"string"` 13017 13018 // The HTTP status of the request. 13019 Status *int64 `location:"statusCode" type:"integer"` 13020} 13021 13022// String returns the string representation 13023func (s DescribeDataSetOutput) String() string { 13024 return awsutil.Prettify(s) 13025} 13026 13027// GoString returns the string representation 13028func (s DescribeDataSetOutput) GoString() string { 13029 return s.String() 13030} 13031 13032// SetDataSet sets the DataSet field's value. 13033func (s *DescribeDataSetOutput) SetDataSet(v *DataSet) *DescribeDataSetOutput { 13034 s.DataSet = v 13035 return s 13036} 13037 13038// SetRequestId sets the RequestId field's value. 13039func (s *DescribeDataSetOutput) SetRequestId(v string) *DescribeDataSetOutput { 13040 s.RequestId = &v 13041 return s 13042} 13043 13044// SetStatus sets the Status field's value. 13045func (s *DescribeDataSetOutput) SetStatus(v int64) *DescribeDataSetOutput { 13046 s.Status = &v 13047 return s 13048} 13049 13050type DescribeDataSetPermissionsInput struct { 13051 _ struct{} `type:"structure"` 13052 13053 // The AWS account ID. 13054 // 13055 // AwsAccountId is a required field 13056 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13057 13058 // The ID for the dataset that you want to create. This ID is unique per AWS 13059 // Region for each AWS account. 13060 // 13061 // DataSetId is a required field 13062 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 13063} 13064 13065// String returns the string representation 13066func (s DescribeDataSetPermissionsInput) String() string { 13067 return awsutil.Prettify(s) 13068} 13069 13070// GoString returns the string representation 13071func (s DescribeDataSetPermissionsInput) GoString() string { 13072 return s.String() 13073} 13074 13075// Validate inspects the fields of the type to determine if they are valid. 13076func (s *DescribeDataSetPermissionsInput) Validate() error { 13077 invalidParams := request.ErrInvalidParams{Context: "DescribeDataSetPermissionsInput"} 13078 if s.AwsAccountId == nil { 13079 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13080 } 13081 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13082 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13083 } 13084 if s.DataSetId == nil { 13085 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 13086 } 13087 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 13088 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 13089 } 13090 13091 if invalidParams.Len() > 0 { 13092 return invalidParams 13093 } 13094 return nil 13095} 13096 13097// SetAwsAccountId sets the AwsAccountId field's value. 13098func (s *DescribeDataSetPermissionsInput) SetAwsAccountId(v string) *DescribeDataSetPermissionsInput { 13099 s.AwsAccountId = &v 13100 return s 13101} 13102 13103// SetDataSetId sets the DataSetId field's value. 13104func (s *DescribeDataSetPermissionsInput) SetDataSetId(v string) *DescribeDataSetPermissionsInput { 13105 s.DataSetId = &v 13106 return s 13107} 13108 13109type DescribeDataSetPermissionsOutput struct { 13110 _ struct{} `type:"structure"` 13111 13112 // The Amazon Resource Name (ARN) of the dataset. 13113 DataSetArn *string `type:"string"` 13114 13115 // The ID for the dataset that you want to create. This ID is unique per AWS 13116 // Region for each AWS account. 13117 DataSetId *string `type:"string"` 13118 13119 // A list of resource permissions on the dataset. 13120 Permissions []*ResourcePermission `min:"1" type:"list"` 13121 13122 // The AWS request ID for this operation. 13123 RequestId *string `type:"string"` 13124 13125 // The HTTP status of the request. 13126 Status *int64 `location:"statusCode" type:"integer"` 13127} 13128 13129// String returns the string representation 13130func (s DescribeDataSetPermissionsOutput) String() string { 13131 return awsutil.Prettify(s) 13132} 13133 13134// GoString returns the string representation 13135func (s DescribeDataSetPermissionsOutput) GoString() string { 13136 return s.String() 13137} 13138 13139// SetDataSetArn sets the DataSetArn field's value. 13140func (s *DescribeDataSetPermissionsOutput) SetDataSetArn(v string) *DescribeDataSetPermissionsOutput { 13141 s.DataSetArn = &v 13142 return s 13143} 13144 13145// SetDataSetId sets the DataSetId field's value. 13146func (s *DescribeDataSetPermissionsOutput) SetDataSetId(v string) *DescribeDataSetPermissionsOutput { 13147 s.DataSetId = &v 13148 return s 13149} 13150 13151// SetPermissions sets the Permissions field's value. 13152func (s *DescribeDataSetPermissionsOutput) SetPermissions(v []*ResourcePermission) *DescribeDataSetPermissionsOutput { 13153 s.Permissions = v 13154 return s 13155} 13156 13157// SetRequestId sets the RequestId field's value. 13158func (s *DescribeDataSetPermissionsOutput) SetRequestId(v string) *DescribeDataSetPermissionsOutput { 13159 s.RequestId = &v 13160 return s 13161} 13162 13163// SetStatus sets the Status field's value. 13164func (s *DescribeDataSetPermissionsOutput) SetStatus(v int64) *DescribeDataSetPermissionsOutput { 13165 s.Status = &v 13166 return s 13167} 13168 13169type DescribeDataSourceInput struct { 13170 _ struct{} `type:"structure"` 13171 13172 // The AWS account ID. 13173 // 13174 // AwsAccountId is a required field 13175 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13176 13177 // The ID of the data source. This ID is unique per AWS Region for each AWS 13178 // account. 13179 // 13180 // DataSourceId is a required field 13181 DataSourceId *string `location:"uri" locationName:"DataSourceId" type:"string" required:"true"` 13182} 13183 13184// String returns the string representation 13185func (s DescribeDataSourceInput) String() string { 13186 return awsutil.Prettify(s) 13187} 13188 13189// GoString returns the string representation 13190func (s DescribeDataSourceInput) GoString() string { 13191 return s.String() 13192} 13193 13194// Validate inspects the fields of the type to determine if they are valid. 13195func (s *DescribeDataSourceInput) Validate() error { 13196 invalidParams := request.ErrInvalidParams{Context: "DescribeDataSourceInput"} 13197 if s.AwsAccountId == nil { 13198 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13199 } 13200 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13201 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13202 } 13203 if s.DataSourceId == nil { 13204 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 13205 } 13206 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 13207 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 13208 } 13209 13210 if invalidParams.Len() > 0 { 13211 return invalidParams 13212 } 13213 return nil 13214} 13215 13216// SetAwsAccountId sets the AwsAccountId field's value. 13217func (s *DescribeDataSourceInput) SetAwsAccountId(v string) *DescribeDataSourceInput { 13218 s.AwsAccountId = &v 13219 return s 13220} 13221 13222// SetDataSourceId sets the DataSourceId field's value. 13223func (s *DescribeDataSourceInput) SetDataSourceId(v string) *DescribeDataSourceInput { 13224 s.DataSourceId = &v 13225 return s 13226} 13227 13228type DescribeDataSourceOutput struct { 13229 _ struct{} `type:"structure"` 13230 13231 // The information on the data source. 13232 DataSource *DataSource `type:"structure"` 13233 13234 // The AWS request ID for this operation. 13235 RequestId *string `type:"string"` 13236 13237 // The HTTP status of the request. 13238 Status *int64 `location:"statusCode" type:"integer"` 13239} 13240 13241// String returns the string representation 13242func (s DescribeDataSourceOutput) String() string { 13243 return awsutil.Prettify(s) 13244} 13245 13246// GoString returns the string representation 13247func (s DescribeDataSourceOutput) GoString() string { 13248 return s.String() 13249} 13250 13251// SetDataSource sets the DataSource field's value. 13252func (s *DescribeDataSourceOutput) SetDataSource(v *DataSource) *DescribeDataSourceOutput { 13253 s.DataSource = v 13254 return s 13255} 13256 13257// SetRequestId sets the RequestId field's value. 13258func (s *DescribeDataSourceOutput) SetRequestId(v string) *DescribeDataSourceOutput { 13259 s.RequestId = &v 13260 return s 13261} 13262 13263// SetStatus sets the Status field's value. 13264func (s *DescribeDataSourceOutput) SetStatus(v int64) *DescribeDataSourceOutput { 13265 s.Status = &v 13266 return s 13267} 13268 13269type DescribeDataSourcePermissionsInput struct { 13270 _ struct{} `type:"structure"` 13271 13272 // The AWS account ID. 13273 // 13274 // AwsAccountId is a required field 13275 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13276 13277 // The ID of the data source. This ID is unique per AWS Region for each AWS 13278 // account. 13279 // 13280 // DataSourceId is a required field 13281 DataSourceId *string `location:"uri" locationName:"DataSourceId" type:"string" required:"true"` 13282} 13283 13284// String returns the string representation 13285func (s DescribeDataSourcePermissionsInput) String() string { 13286 return awsutil.Prettify(s) 13287} 13288 13289// GoString returns the string representation 13290func (s DescribeDataSourcePermissionsInput) GoString() string { 13291 return s.String() 13292} 13293 13294// Validate inspects the fields of the type to determine if they are valid. 13295func (s *DescribeDataSourcePermissionsInput) Validate() error { 13296 invalidParams := request.ErrInvalidParams{Context: "DescribeDataSourcePermissionsInput"} 13297 if s.AwsAccountId == nil { 13298 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13299 } 13300 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13301 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13302 } 13303 if s.DataSourceId == nil { 13304 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 13305 } 13306 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 13307 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 13308 } 13309 13310 if invalidParams.Len() > 0 { 13311 return invalidParams 13312 } 13313 return nil 13314} 13315 13316// SetAwsAccountId sets the AwsAccountId field's value. 13317func (s *DescribeDataSourcePermissionsInput) SetAwsAccountId(v string) *DescribeDataSourcePermissionsInput { 13318 s.AwsAccountId = &v 13319 return s 13320} 13321 13322// SetDataSourceId sets the DataSourceId field's value. 13323func (s *DescribeDataSourcePermissionsInput) SetDataSourceId(v string) *DescribeDataSourcePermissionsInput { 13324 s.DataSourceId = &v 13325 return s 13326} 13327 13328type DescribeDataSourcePermissionsOutput struct { 13329 _ struct{} `type:"structure"` 13330 13331 // The Amazon Resource Name (ARN) of the data source. 13332 DataSourceArn *string `type:"string"` 13333 13334 // The ID of the data source. This ID is unique per AWS Region for each AWS 13335 // account. 13336 DataSourceId *string `type:"string"` 13337 13338 // A list of resource permissions on the data source. 13339 Permissions []*ResourcePermission `min:"1" type:"list"` 13340 13341 // The AWS request ID for this operation. 13342 RequestId *string `type:"string"` 13343 13344 // The HTTP status of the request. 13345 Status *int64 `location:"statusCode" type:"integer"` 13346} 13347 13348// String returns the string representation 13349func (s DescribeDataSourcePermissionsOutput) String() string { 13350 return awsutil.Prettify(s) 13351} 13352 13353// GoString returns the string representation 13354func (s DescribeDataSourcePermissionsOutput) GoString() string { 13355 return s.String() 13356} 13357 13358// SetDataSourceArn sets the DataSourceArn field's value. 13359func (s *DescribeDataSourcePermissionsOutput) SetDataSourceArn(v string) *DescribeDataSourcePermissionsOutput { 13360 s.DataSourceArn = &v 13361 return s 13362} 13363 13364// SetDataSourceId sets the DataSourceId field's value. 13365func (s *DescribeDataSourcePermissionsOutput) SetDataSourceId(v string) *DescribeDataSourcePermissionsOutput { 13366 s.DataSourceId = &v 13367 return s 13368} 13369 13370// SetPermissions sets the Permissions field's value. 13371func (s *DescribeDataSourcePermissionsOutput) SetPermissions(v []*ResourcePermission) *DescribeDataSourcePermissionsOutput { 13372 s.Permissions = v 13373 return s 13374} 13375 13376// SetRequestId sets the RequestId field's value. 13377func (s *DescribeDataSourcePermissionsOutput) SetRequestId(v string) *DescribeDataSourcePermissionsOutput { 13378 s.RequestId = &v 13379 return s 13380} 13381 13382// SetStatus sets the Status field's value. 13383func (s *DescribeDataSourcePermissionsOutput) SetStatus(v int64) *DescribeDataSourcePermissionsOutput { 13384 s.Status = &v 13385 return s 13386} 13387 13388type DescribeGroupInput struct { 13389 _ struct{} `type:"structure"` 13390 13391 // The ID for the AWS account that the group is in. Currently, you use the ID 13392 // for the AWS account that contains your Amazon QuickSight account. 13393 // 13394 // AwsAccountId is a required field 13395 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13396 13397 // The name of the group that you want to describe. 13398 // 13399 // GroupName is a required field 13400 GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` 13401 13402 // The namespace. Currently, you should set this to default. 13403 // 13404 // Namespace is a required field 13405 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 13406} 13407 13408// String returns the string representation 13409func (s DescribeGroupInput) String() string { 13410 return awsutil.Prettify(s) 13411} 13412 13413// GoString returns the string representation 13414func (s DescribeGroupInput) GoString() string { 13415 return s.String() 13416} 13417 13418// Validate inspects the fields of the type to determine if they are valid. 13419func (s *DescribeGroupInput) Validate() error { 13420 invalidParams := request.ErrInvalidParams{Context: "DescribeGroupInput"} 13421 if s.AwsAccountId == nil { 13422 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13423 } 13424 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13425 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13426 } 13427 if s.GroupName == nil { 13428 invalidParams.Add(request.NewErrParamRequired("GroupName")) 13429 } 13430 if s.GroupName != nil && len(*s.GroupName) < 1 { 13431 invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) 13432 } 13433 if s.Namespace == nil { 13434 invalidParams.Add(request.NewErrParamRequired("Namespace")) 13435 } 13436 if s.Namespace != nil && len(*s.Namespace) < 1 { 13437 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 13438 } 13439 13440 if invalidParams.Len() > 0 { 13441 return invalidParams 13442 } 13443 return nil 13444} 13445 13446// SetAwsAccountId sets the AwsAccountId field's value. 13447func (s *DescribeGroupInput) SetAwsAccountId(v string) *DescribeGroupInput { 13448 s.AwsAccountId = &v 13449 return s 13450} 13451 13452// SetGroupName sets the GroupName field's value. 13453func (s *DescribeGroupInput) SetGroupName(v string) *DescribeGroupInput { 13454 s.GroupName = &v 13455 return s 13456} 13457 13458// SetNamespace sets the Namespace field's value. 13459func (s *DescribeGroupInput) SetNamespace(v string) *DescribeGroupInput { 13460 s.Namespace = &v 13461 return s 13462} 13463 13464type DescribeGroupOutput struct { 13465 _ struct{} `type:"structure"` 13466 13467 // The name of the group. 13468 Group *Group `type:"structure"` 13469 13470 // The AWS request ID for this operation. 13471 RequestId *string `type:"string"` 13472 13473 // The HTTP status of the request. 13474 Status *int64 `location:"statusCode" type:"integer"` 13475} 13476 13477// String returns the string representation 13478func (s DescribeGroupOutput) String() string { 13479 return awsutil.Prettify(s) 13480} 13481 13482// GoString returns the string representation 13483func (s DescribeGroupOutput) GoString() string { 13484 return s.String() 13485} 13486 13487// SetGroup sets the Group field's value. 13488func (s *DescribeGroupOutput) SetGroup(v *Group) *DescribeGroupOutput { 13489 s.Group = v 13490 return s 13491} 13492 13493// SetRequestId sets the RequestId field's value. 13494func (s *DescribeGroupOutput) SetRequestId(v string) *DescribeGroupOutput { 13495 s.RequestId = &v 13496 return s 13497} 13498 13499// SetStatus sets the Status field's value. 13500func (s *DescribeGroupOutput) SetStatus(v int64) *DescribeGroupOutput { 13501 s.Status = &v 13502 return s 13503} 13504 13505type DescribeIAMPolicyAssignmentInput struct { 13506 _ struct{} `type:"structure"` 13507 13508 // The name of the assignment. 13509 // 13510 // AssignmentName is a required field 13511 AssignmentName *string `location:"uri" locationName:"AssignmentName" min:"1" type:"string" required:"true"` 13512 13513 // The ID of the AWS account that contains the assignment that you want to describe. 13514 // 13515 // AwsAccountId is a required field 13516 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13517 13518 // The namespace that contains the assignment. 13519 // 13520 // Namespace is a required field 13521 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 13522} 13523 13524// String returns the string representation 13525func (s DescribeIAMPolicyAssignmentInput) String() string { 13526 return awsutil.Prettify(s) 13527} 13528 13529// GoString returns the string representation 13530func (s DescribeIAMPolicyAssignmentInput) GoString() string { 13531 return s.String() 13532} 13533 13534// Validate inspects the fields of the type to determine if they are valid. 13535func (s *DescribeIAMPolicyAssignmentInput) Validate() error { 13536 invalidParams := request.ErrInvalidParams{Context: "DescribeIAMPolicyAssignmentInput"} 13537 if s.AssignmentName == nil { 13538 invalidParams.Add(request.NewErrParamRequired("AssignmentName")) 13539 } 13540 if s.AssignmentName != nil && len(*s.AssignmentName) < 1 { 13541 invalidParams.Add(request.NewErrParamMinLen("AssignmentName", 1)) 13542 } 13543 if s.AwsAccountId == nil { 13544 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13545 } 13546 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13547 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13548 } 13549 if s.Namespace == nil { 13550 invalidParams.Add(request.NewErrParamRequired("Namespace")) 13551 } 13552 if s.Namespace != nil && len(*s.Namespace) < 1 { 13553 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 13554 } 13555 13556 if invalidParams.Len() > 0 { 13557 return invalidParams 13558 } 13559 return nil 13560} 13561 13562// SetAssignmentName sets the AssignmentName field's value. 13563func (s *DescribeIAMPolicyAssignmentInput) SetAssignmentName(v string) *DescribeIAMPolicyAssignmentInput { 13564 s.AssignmentName = &v 13565 return s 13566} 13567 13568// SetAwsAccountId sets the AwsAccountId field's value. 13569func (s *DescribeIAMPolicyAssignmentInput) SetAwsAccountId(v string) *DescribeIAMPolicyAssignmentInput { 13570 s.AwsAccountId = &v 13571 return s 13572} 13573 13574// SetNamespace sets the Namespace field's value. 13575func (s *DescribeIAMPolicyAssignmentInput) SetNamespace(v string) *DescribeIAMPolicyAssignmentInput { 13576 s.Namespace = &v 13577 return s 13578} 13579 13580type DescribeIAMPolicyAssignmentOutput struct { 13581 _ struct{} `type:"structure"` 13582 13583 // Information describing the IAM policy assignment. 13584 IAMPolicyAssignment *IAMPolicyAssignment `type:"structure"` 13585 13586 // The AWS request ID for this operation. 13587 RequestId *string `type:"string"` 13588 13589 // The HTTP status of the request. 13590 Status *int64 `location:"statusCode" type:"integer"` 13591} 13592 13593// String returns the string representation 13594func (s DescribeIAMPolicyAssignmentOutput) String() string { 13595 return awsutil.Prettify(s) 13596} 13597 13598// GoString returns the string representation 13599func (s DescribeIAMPolicyAssignmentOutput) GoString() string { 13600 return s.String() 13601} 13602 13603// SetIAMPolicyAssignment sets the IAMPolicyAssignment field's value. 13604func (s *DescribeIAMPolicyAssignmentOutput) SetIAMPolicyAssignment(v *IAMPolicyAssignment) *DescribeIAMPolicyAssignmentOutput { 13605 s.IAMPolicyAssignment = v 13606 return s 13607} 13608 13609// SetRequestId sets the RequestId field's value. 13610func (s *DescribeIAMPolicyAssignmentOutput) SetRequestId(v string) *DescribeIAMPolicyAssignmentOutput { 13611 s.RequestId = &v 13612 return s 13613} 13614 13615// SetStatus sets the Status field's value. 13616func (s *DescribeIAMPolicyAssignmentOutput) SetStatus(v int64) *DescribeIAMPolicyAssignmentOutput { 13617 s.Status = &v 13618 return s 13619} 13620 13621type DescribeIngestionInput struct { 13622 _ struct{} `type:"structure"` 13623 13624 // The AWS account ID. 13625 // 13626 // AwsAccountId is a required field 13627 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13628 13629 // The ID of the dataset used in the ingestion. 13630 // 13631 // DataSetId is a required field 13632 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 13633 13634 // An ID for the ingestion. 13635 // 13636 // IngestionId is a required field 13637 IngestionId *string `location:"uri" locationName:"IngestionId" min:"1" type:"string" required:"true"` 13638} 13639 13640// String returns the string representation 13641func (s DescribeIngestionInput) String() string { 13642 return awsutil.Prettify(s) 13643} 13644 13645// GoString returns the string representation 13646func (s DescribeIngestionInput) GoString() string { 13647 return s.String() 13648} 13649 13650// Validate inspects the fields of the type to determine if they are valid. 13651func (s *DescribeIngestionInput) Validate() error { 13652 invalidParams := request.ErrInvalidParams{Context: "DescribeIngestionInput"} 13653 if s.AwsAccountId == nil { 13654 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13655 } 13656 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13657 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13658 } 13659 if s.DataSetId == nil { 13660 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 13661 } 13662 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 13663 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 13664 } 13665 if s.IngestionId == nil { 13666 invalidParams.Add(request.NewErrParamRequired("IngestionId")) 13667 } 13668 if s.IngestionId != nil && len(*s.IngestionId) < 1 { 13669 invalidParams.Add(request.NewErrParamMinLen("IngestionId", 1)) 13670 } 13671 13672 if invalidParams.Len() > 0 { 13673 return invalidParams 13674 } 13675 return nil 13676} 13677 13678// SetAwsAccountId sets the AwsAccountId field's value. 13679func (s *DescribeIngestionInput) SetAwsAccountId(v string) *DescribeIngestionInput { 13680 s.AwsAccountId = &v 13681 return s 13682} 13683 13684// SetDataSetId sets the DataSetId field's value. 13685func (s *DescribeIngestionInput) SetDataSetId(v string) *DescribeIngestionInput { 13686 s.DataSetId = &v 13687 return s 13688} 13689 13690// SetIngestionId sets the IngestionId field's value. 13691func (s *DescribeIngestionInput) SetIngestionId(v string) *DescribeIngestionInput { 13692 s.IngestionId = &v 13693 return s 13694} 13695 13696type DescribeIngestionOutput struct { 13697 _ struct{} `type:"structure"` 13698 13699 // Information about the ingestion. 13700 Ingestion *Ingestion `type:"structure"` 13701 13702 // The AWS request ID for this operation. 13703 RequestId *string `type:"string"` 13704 13705 // The HTTP status of the request. 13706 Status *int64 `location:"statusCode" type:"integer"` 13707} 13708 13709// String returns the string representation 13710func (s DescribeIngestionOutput) String() string { 13711 return awsutil.Prettify(s) 13712} 13713 13714// GoString returns the string representation 13715func (s DescribeIngestionOutput) GoString() string { 13716 return s.String() 13717} 13718 13719// SetIngestion sets the Ingestion field's value. 13720func (s *DescribeIngestionOutput) SetIngestion(v *Ingestion) *DescribeIngestionOutput { 13721 s.Ingestion = v 13722 return s 13723} 13724 13725// SetRequestId sets the RequestId field's value. 13726func (s *DescribeIngestionOutput) SetRequestId(v string) *DescribeIngestionOutput { 13727 s.RequestId = &v 13728 return s 13729} 13730 13731// SetStatus sets the Status field's value. 13732func (s *DescribeIngestionOutput) SetStatus(v int64) *DescribeIngestionOutput { 13733 s.Status = &v 13734 return s 13735} 13736 13737type DescribeTemplateAliasInput struct { 13738 _ struct{} `type:"structure"` 13739 13740 // The name of the template alias that you want to describe. If you name a specific 13741 // alias, you describe the version that the alias points to. You can specify 13742 // the latest version of the template by providing the keyword $LATEST in the 13743 // AliasName parameter. The keyword $PUBLISHED doesn't apply to templates. 13744 // 13745 // AliasName is a required field 13746 AliasName *string `location:"uri" locationName:"AliasName" min:"1" type:"string" required:"true"` 13747 13748 // The ID of the AWS account that contains the template alias that you're describing. 13749 // 13750 // AwsAccountId is a required field 13751 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13752 13753 // The ID for the template. 13754 // 13755 // TemplateId is a required field 13756 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 13757} 13758 13759// String returns the string representation 13760func (s DescribeTemplateAliasInput) String() string { 13761 return awsutil.Prettify(s) 13762} 13763 13764// GoString returns the string representation 13765func (s DescribeTemplateAliasInput) GoString() string { 13766 return s.String() 13767} 13768 13769// Validate inspects the fields of the type to determine if they are valid. 13770func (s *DescribeTemplateAliasInput) Validate() error { 13771 invalidParams := request.ErrInvalidParams{Context: "DescribeTemplateAliasInput"} 13772 if s.AliasName == nil { 13773 invalidParams.Add(request.NewErrParamRequired("AliasName")) 13774 } 13775 if s.AliasName != nil && len(*s.AliasName) < 1 { 13776 invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) 13777 } 13778 if s.AwsAccountId == nil { 13779 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13780 } 13781 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13782 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13783 } 13784 if s.TemplateId == nil { 13785 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 13786 } 13787 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 13788 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 13789 } 13790 13791 if invalidParams.Len() > 0 { 13792 return invalidParams 13793 } 13794 return nil 13795} 13796 13797// SetAliasName sets the AliasName field's value. 13798func (s *DescribeTemplateAliasInput) SetAliasName(v string) *DescribeTemplateAliasInput { 13799 s.AliasName = &v 13800 return s 13801} 13802 13803// SetAwsAccountId sets the AwsAccountId field's value. 13804func (s *DescribeTemplateAliasInput) SetAwsAccountId(v string) *DescribeTemplateAliasInput { 13805 s.AwsAccountId = &v 13806 return s 13807} 13808 13809// SetTemplateId sets the TemplateId field's value. 13810func (s *DescribeTemplateAliasInput) SetTemplateId(v string) *DescribeTemplateAliasInput { 13811 s.TemplateId = &v 13812 return s 13813} 13814 13815type DescribeTemplateAliasOutput struct { 13816 _ struct{} `type:"structure"` 13817 13818 // The AWS request ID for this operation. 13819 RequestId *string `type:"string"` 13820 13821 // The HTTP status of the request. 13822 Status *int64 `location:"statusCode" type:"integer"` 13823 13824 // Information about the template alias. 13825 TemplateAlias *TemplateAlias `type:"structure"` 13826} 13827 13828// String returns the string representation 13829func (s DescribeTemplateAliasOutput) String() string { 13830 return awsutil.Prettify(s) 13831} 13832 13833// GoString returns the string representation 13834func (s DescribeTemplateAliasOutput) GoString() string { 13835 return s.String() 13836} 13837 13838// SetRequestId sets the RequestId field's value. 13839func (s *DescribeTemplateAliasOutput) SetRequestId(v string) *DescribeTemplateAliasOutput { 13840 s.RequestId = &v 13841 return s 13842} 13843 13844// SetStatus sets the Status field's value. 13845func (s *DescribeTemplateAliasOutput) SetStatus(v int64) *DescribeTemplateAliasOutput { 13846 s.Status = &v 13847 return s 13848} 13849 13850// SetTemplateAlias sets the TemplateAlias field's value. 13851func (s *DescribeTemplateAliasOutput) SetTemplateAlias(v *TemplateAlias) *DescribeTemplateAliasOutput { 13852 s.TemplateAlias = v 13853 return s 13854} 13855 13856type DescribeTemplateInput struct { 13857 _ struct{} `type:"structure"` 13858 13859 // The alias of the template that you want to describe. If you name a specific 13860 // alias, you describe the version that the alias points to. You can specify 13861 // the latest version of the template by providing the keyword $LATEST in the 13862 // AliasName parameter. The keyword $PUBLISHED doesn't apply to templates. 13863 AliasName *string `location:"querystring" locationName:"alias-name" min:"1" type:"string"` 13864 13865 // The ID of the AWS account that contains the template that you're describing. 13866 // 13867 // AwsAccountId is a required field 13868 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13869 13870 // The ID for the template. 13871 // 13872 // TemplateId is a required field 13873 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 13874 13875 // (Optional) The number for the version to describe. If a VersionNumber parameter 13876 // value isn't provided, the latest version of the template is described. 13877 VersionNumber *int64 `location:"querystring" locationName:"version-number" min:"1" type:"long"` 13878} 13879 13880// String returns the string representation 13881func (s DescribeTemplateInput) String() string { 13882 return awsutil.Prettify(s) 13883} 13884 13885// GoString returns the string representation 13886func (s DescribeTemplateInput) GoString() string { 13887 return s.String() 13888} 13889 13890// Validate inspects the fields of the type to determine if they are valid. 13891func (s *DescribeTemplateInput) Validate() error { 13892 invalidParams := request.ErrInvalidParams{Context: "DescribeTemplateInput"} 13893 if s.AliasName != nil && len(*s.AliasName) < 1 { 13894 invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) 13895 } 13896 if s.AwsAccountId == nil { 13897 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 13898 } 13899 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 13900 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 13901 } 13902 if s.TemplateId == nil { 13903 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 13904 } 13905 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 13906 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 13907 } 13908 if s.VersionNumber != nil && *s.VersionNumber < 1 { 13909 invalidParams.Add(request.NewErrParamMinValue("VersionNumber", 1)) 13910 } 13911 13912 if invalidParams.Len() > 0 { 13913 return invalidParams 13914 } 13915 return nil 13916} 13917 13918// SetAliasName sets the AliasName field's value. 13919func (s *DescribeTemplateInput) SetAliasName(v string) *DescribeTemplateInput { 13920 s.AliasName = &v 13921 return s 13922} 13923 13924// SetAwsAccountId sets the AwsAccountId field's value. 13925func (s *DescribeTemplateInput) SetAwsAccountId(v string) *DescribeTemplateInput { 13926 s.AwsAccountId = &v 13927 return s 13928} 13929 13930// SetTemplateId sets the TemplateId field's value. 13931func (s *DescribeTemplateInput) SetTemplateId(v string) *DescribeTemplateInput { 13932 s.TemplateId = &v 13933 return s 13934} 13935 13936// SetVersionNumber sets the VersionNumber field's value. 13937func (s *DescribeTemplateInput) SetVersionNumber(v int64) *DescribeTemplateInput { 13938 s.VersionNumber = &v 13939 return s 13940} 13941 13942type DescribeTemplateOutput struct { 13943 _ struct{} `type:"structure"` 13944 13945 // The HTTP status of the request. 13946 Status *int64 `location:"statusCode" type:"integer"` 13947 13948 // The template structure for the object you want to describe. 13949 Template *Template `type:"structure"` 13950} 13951 13952// String returns the string representation 13953func (s DescribeTemplateOutput) String() string { 13954 return awsutil.Prettify(s) 13955} 13956 13957// GoString returns the string representation 13958func (s DescribeTemplateOutput) GoString() string { 13959 return s.String() 13960} 13961 13962// SetStatus sets the Status field's value. 13963func (s *DescribeTemplateOutput) SetStatus(v int64) *DescribeTemplateOutput { 13964 s.Status = &v 13965 return s 13966} 13967 13968// SetTemplate sets the Template field's value. 13969func (s *DescribeTemplateOutput) SetTemplate(v *Template) *DescribeTemplateOutput { 13970 s.Template = v 13971 return s 13972} 13973 13974type DescribeTemplatePermissionsInput struct { 13975 _ struct{} `type:"structure"` 13976 13977 // The ID of the AWS account that contains the template that you're describing. 13978 // 13979 // AwsAccountId is a required field 13980 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 13981 13982 // The ID for the template. 13983 // 13984 // TemplateId is a required field 13985 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 13986} 13987 13988// String returns the string representation 13989func (s DescribeTemplatePermissionsInput) String() string { 13990 return awsutil.Prettify(s) 13991} 13992 13993// GoString returns the string representation 13994func (s DescribeTemplatePermissionsInput) GoString() string { 13995 return s.String() 13996} 13997 13998// Validate inspects the fields of the type to determine if they are valid. 13999func (s *DescribeTemplatePermissionsInput) Validate() error { 14000 invalidParams := request.ErrInvalidParams{Context: "DescribeTemplatePermissionsInput"} 14001 if s.AwsAccountId == nil { 14002 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 14003 } 14004 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 14005 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 14006 } 14007 if s.TemplateId == nil { 14008 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 14009 } 14010 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 14011 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 14012 } 14013 14014 if invalidParams.Len() > 0 { 14015 return invalidParams 14016 } 14017 return nil 14018} 14019 14020// SetAwsAccountId sets the AwsAccountId field's value. 14021func (s *DescribeTemplatePermissionsInput) SetAwsAccountId(v string) *DescribeTemplatePermissionsInput { 14022 s.AwsAccountId = &v 14023 return s 14024} 14025 14026// SetTemplateId sets the TemplateId field's value. 14027func (s *DescribeTemplatePermissionsInput) SetTemplateId(v string) *DescribeTemplatePermissionsInput { 14028 s.TemplateId = &v 14029 return s 14030} 14031 14032type DescribeTemplatePermissionsOutput struct { 14033 _ struct{} `type:"structure"` 14034 14035 // A list of resource permissions to be set on the template. 14036 Permissions []*ResourcePermission `min:"1" type:"list"` 14037 14038 // The AWS request ID for this operation. 14039 RequestId *string `type:"string"` 14040 14041 // The HTTP status of the request. 14042 Status *int64 `location:"statusCode" type:"integer"` 14043 14044 // The Amazon Resource Name (ARN) of the template. 14045 TemplateArn *string `type:"string"` 14046 14047 // The ID for the template. 14048 TemplateId *string `min:"1" type:"string"` 14049} 14050 14051// String returns the string representation 14052func (s DescribeTemplatePermissionsOutput) String() string { 14053 return awsutil.Prettify(s) 14054} 14055 14056// GoString returns the string representation 14057func (s DescribeTemplatePermissionsOutput) GoString() string { 14058 return s.String() 14059} 14060 14061// SetPermissions sets the Permissions field's value. 14062func (s *DescribeTemplatePermissionsOutput) SetPermissions(v []*ResourcePermission) *DescribeTemplatePermissionsOutput { 14063 s.Permissions = v 14064 return s 14065} 14066 14067// SetRequestId sets the RequestId field's value. 14068func (s *DescribeTemplatePermissionsOutput) SetRequestId(v string) *DescribeTemplatePermissionsOutput { 14069 s.RequestId = &v 14070 return s 14071} 14072 14073// SetStatus sets the Status field's value. 14074func (s *DescribeTemplatePermissionsOutput) SetStatus(v int64) *DescribeTemplatePermissionsOutput { 14075 s.Status = &v 14076 return s 14077} 14078 14079// SetTemplateArn sets the TemplateArn field's value. 14080func (s *DescribeTemplatePermissionsOutput) SetTemplateArn(v string) *DescribeTemplatePermissionsOutput { 14081 s.TemplateArn = &v 14082 return s 14083} 14084 14085// SetTemplateId sets the TemplateId field's value. 14086func (s *DescribeTemplatePermissionsOutput) SetTemplateId(v string) *DescribeTemplatePermissionsOutput { 14087 s.TemplateId = &v 14088 return s 14089} 14090 14091type DescribeUserInput struct { 14092 _ struct{} `type:"structure"` 14093 14094 // The ID for the AWS account that the user is in. Currently, you use the ID 14095 // for the AWS account that contains your Amazon QuickSight account. 14096 // 14097 // AwsAccountId is a required field 14098 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 14099 14100 // The namespace. Currently, you should set this to default. 14101 // 14102 // Namespace is a required field 14103 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 14104 14105 // The name of the user that you want to describe. 14106 // 14107 // UserName is a required field 14108 UserName *string `location:"uri" locationName:"UserName" min:"1" type:"string" required:"true"` 14109} 14110 14111// String returns the string representation 14112func (s DescribeUserInput) String() string { 14113 return awsutil.Prettify(s) 14114} 14115 14116// GoString returns the string representation 14117func (s DescribeUserInput) GoString() string { 14118 return s.String() 14119} 14120 14121// Validate inspects the fields of the type to determine if they are valid. 14122func (s *DescribeUserInput) Validate() error { 14123 invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} 14124 if s.AwsAccountId == nil { 14125 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 14126 } 14127 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 14128 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 14129 } 14130 if s.Namespace == nil { 14131 invalidParams.Add(request.NewErrParamRequired("Namespace")) 14132 } 14133 if s.Namespace != nil && len(*s.Namespace) < 1 { 14134 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 14135 } 14136 if s.UserName == nil { 14137 invalidParams.Add(request.NewErrParamRequired("UserName")) 14138 } 14139 if s.UserName != nil && len(*s.UserName) < 1 { 14140 invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) 14141 } 14142 14143 if invalidParams.Len() > 0 { 14144 return invalidParams 14145 } 14146 return nil 14147} 14148 14149// SetAwsAccountId sets the AwsAccountId field's value. 14150func (s *DescribeUserInput) SetAwsAccountId(v string) *DescribeUserInput { 14151 s.AwsAccountId = &v 14152 return s 14153} 14154 14155// SetNamespace sets the Namespace field's value. 14156func (s *DescribeUserInput) SetNamespace(v string) *DescribeUserInput { 14157 s.Namespace = &v 14158 return s 14159} 14160 14161// SetUserName sets the UserName field's value. 14162func (s *DescribeUserInput) SetUserName(v string) *DescribeUserInput { 14163 s.UserName = &v 14164 return s 14165} 14166 14167type DescribeUserOutput struct { 14168 _ struct{} `type:"structure"` 14169 14170 // The AWS request ID for this operation. 14171 RequestId *string `type:"string"` 14172 14173 // The HTTP status of the request. 14174 Status *int64 `location:"statusCode" type:"integer"` 14175 14176 // The user name. 14177 User *User `type:"structure"` 14178} 14179 14180// String returns the string representation 14181func (s DescribeUserOutput) String() string { 14182 return awsutil.Prettify(s) 14183} 14184 14185// GoString returns the string representation 14186func (s DescribeUserOutput) GoString() string { 14187 return s.String() 14188} 14189 14190// SetRequestId sets the RequestId field's value. 14191func (s *DescribeUserOutput) SetRequestId(v string) *DescribeUserOutput { 14192 s.RequestId = &v 14193 return s 14194} 14195 14196// SetStatus sets the Status field's value. 14197func (s *DescribeUserOutput) SetStatus(v int64) *DescribeUserOutput { 14198 s.Status = &v 14199 return s 14200} 14201 14202// SetUser sets the User field's value. 14203func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { 14204 s.User = v 14205 return s 14206} 14207 14208// The domain specified isn't on the allow list. All domains for embedded dashboards 14209// must be added to the approved list by an Amazon QuickSight admin. 14210type DomainNotWhitelistedException struct { 14211 _ struct{} `type:"structure"` 14212 respMetadata protocol.ResponseMetadata 14213 14214 Message_ *string `locationName:"Message" type:"string"` 14215 14216 // The AWS request ID for this request. 14217 RequestId *string `type:"string"` 14218} 14219 14220// String returns the string representation 14221func (s DomainNotWhitelistedException) String() string { 14222 return awsutil.Prettify(s) 14223} 14224 14225// GoString returns the string representation 14226func (s DomainNotWhitelistedException) GoString() string { 14227 return s.String() 14228} 14229 14230func newErrorDomainNotWhitelistedException(v protocol.ResponseMetadata) error { 14231 return &DomainNotWhitelistedException{ 14232 respMetadata: v, 14233 } 14234} 14235 14236// Code returns the exception type name. 14237func (s DomainNotWhitelistedException) Code() string { 14238 return "DomainNotWhitelistedException" 14239} 14240 14241// Message returns the exception's message. 14242func (s DomainNotWhitelistedException) Message() string { 14243 if s.Message_ != nil { 14244 return *s.Message_ 14245 } 14246 return "" 14247} 14248 14249// OrigErr always returns nil, satisfies awserr.Error interface. 14250func (s DomainNotWhitelistedException) OrigErr() error { 14251 return nil 14252} 14253 14254func (s DomainNotWhitelistedException) Error() string { 14255 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 14256} 14257 14258// Status code returns the HTTP status code for the request's response error. 14259func (s DomainNotWhitelistedException) StatusCode() int { 14260 return s.respMetadata.StatusCode 14261} 14262 14263// RequestID returns the service's response RequestID for request. 14264func (s DomainNotWhitelistedException) RequestID() string { 14265 return s.respMetadata.RequestID 14266} 14267 14268// Error information for the SPICE ingestion of a dataset. 14269type ErrorInfo struct { 14270 _ struct{} `type:"structure"` 14271 14272 // Error message. 14273 Message *string `type:"string"` 14274 14275 // Error type. 14276 Type *string `type:"string" enum:"IngestionErrorType"` 14277} 14278 14279// String returns the string representation 14280func (s ErrorInfo) String() string { 14281 return awsutil.Prettify(s) 14282} 14283 14284// GoString returns the string representation 14285func (s ErrorInfo) GoString() string { 14286 return s.String() 14287} 14288 14289// SetMessage sets the Message field's value. 14290func (s *ErrorInfo) SetMessage(v string) *ErrorInfo { 14291 s.Message = &v 14292 return s 14293} 14294 14295// SetType sets the Type field's value. 14296func (s *ErrorInfo) SetType(v string) *ErrorInfo { 14297 s.Type = &v 14298 return s 14299} 14300 14301// Export to .csv option. 14302type ExportToCSVOption struct { 14303 _ struct{} `type:"structure"` 14304 14305 // Availability status. 14306 AvailabilityStatus *string `type:"string" enum:"DashboardBehavior"` 14307} 14308 14309// String returns the string representation 14310func (s ExportToCSVOption) String() string { 14311 return awsutil.Prettify(s) 14312} 14313 14314// GoString returns the string representation 14315func (s ExportToCSVOption) GoString() string { 14316 return s.String() 14317} 14318 14319// SetAvailabilityStatus sets the AvailabilityStatus field's value. 14320func (s *ExportToCSVOption) SetAvailabilityStatus(v string) *ExportToCSVOption { 14321 s.AvailabilityStatus = &v 14322 return s 14323} 14324 14325// A transform operation that filters rows based on a condition. 14326type FilterOperation struct { 14327 _ struct{} `type:"structure"` 14328 14329 // An expression that must evaluate to a Boolean value. Rows for which the expression 14330 // evaluates to true are kept in the dataset. 14331 // 14332 // ConditionExpression is a required field 14333 ConditionExpression *string `min:"1" type:"string" required:"true"` 14334} 14335 14336// String returns the string representation 14337func (s FilterOperation) String() string { 14338 return awsutil.Prettify(s) 14339} 14340 14341// GoString returns the string representation 14342func (s FilterOperation) GoString() string { 14343 return s.String() 14344} 14345 14346// Validate inspects the fields of the type to determine if they are valid. 14347func (s *FilterOperation) Validate() error { 14348 invalidParams := request.ErrInvalidParams{Context: "FilterOperation"} 14349 if s.ConditionExpression == nil { 14350 invalidParams.Add(request.NewErrParamRequired("ConditionExpression")) 14351 } 14352 if s.ConditionExpression != nil && len(*s.ConditionExpression) < 1 { 14353 invalidParams.Add(request.NewErrParamMinLen("ConditionExpression", 1)) 14354 } 14355 14356 if invalidParams.Len() > 0 { 14357 return invalidParams 14358 } 14359 return nil 14360} 14361 14362// SetConditionExpression sets the ConditionExpression field's value. 14363func (s *FilterOperation) SetConditionExpression(v string) *FilterOperation { 14364 s.ConditionExpression = &v 14365 return s 14366} 14367 14368// Geospatial column group that denotes a hierarchy. 14369type GeoSpatialColumnGroup struct { 14370 _ struct{} `type:"structure"` 14371 14372 // Columns in this hierarchy. 14373 // 14374 // Columns is a required field 14375 Columns []*string `min:"1" type:"list" required:"true"` 14376 14377 // Country code. 14378 // 14379 // CountryCode is a required field 14380 CountryCode *string `type:"string" required:"true" enum:"GeoSpatialCountryCode"` 14381 14382 // A display name for the hierarchy. 14383 // 14384 // Name is a required field 14385 Name *string `min:"1" type:"string" required:"true"` 14386} 14387 14388// String returns the string representation 14389func (s GeoSpatialColumnGroup) String() string { 14390 return awsutil.Prettify(s) 14391} 14392 14393// GoString returns the string representation 14394func (s GeoSpatialColumnGroup) GoString() string { 14395 return s.String() 14396} 14397 14398// Validate inspects the fields of the type to determine if they are valid. 14399func (s *GeoSpatialColumnGroup) Validate() error { 14400 invalidParams := request.ErrInvalidParams{Context: "GeoSpatialColumnGroup"} 14401 if s.Columns == nil { 14402 invalidParams.Add(request.NewErrParamRequired("Columns")) 14403 } 14404 if s.Columns != nil && len(s.Columns) < 1 { 14405 invalidParams.Add(request.NewErrParamMinLen("Columns", 1)) 14406 } 14407 if s.CountryCode == nil { 14408 invalidParams.Add(request.NewErrParamRequired("CountryCode")) 14409 } 14410 if s.Name == nil { 14411 invalidParams.Add(request.NewErrParamRequired("Name")) 14412 } 14413 if s.Name != nil && len(*s.Name) < 1 { 14414 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 14415 } 14416 14417 if invalidParams.Len() > 0 { 14418 return invalidParams 14419 } 14420 return nil 14421} 14422 14423// SetColumns sets the Columns field's value. 14424func (s *GeoSpatialColumnGroup) SetColumns(v []*string) *GeoSpatialColumnGroup { 14425 s.Columns = v 14426 return s 14427} 14428 14429// SetCountryCode sets the CountryCode field's value. 14430func (s *GeoSpatialColumnGroup) SetCountryCode(v string) *GeoSpatialColumnGroup { 14431 s.CountryCode = &v 14432 return s 14433} 14434 14435// SetName sets the Name field's value. 14436func (s *GeoSpatialColumnGroup) SetName(v string) *GeoSpatialColumnGroup { 14437 s.Name = &v 14438 return s 14439} 14440 14441type GetDashboardEmbedUrlInput struct { 14442 _ struct{} `type:"structure"` 14443 14444 // The ID for the AWS account that contains the dashboard that you're embedding. 14445 // 14446 // AwsAccountId is a required field 14447 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 14448 14449 // The ID for the dashboard, also added to the IAM policy. 14450 // 14451 // DashboardId is a required field 14452 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 14453 14454 // The authentication method that the user uses to sign in. 14455 // 14456 // IdentityType is a required field 14457 IdentityType *string `location:"querystring" locationName:"creds-type" type:"string" required:"true" enum:"IdentityType"` 14458 14459 // Remove the reset button on the embedded dashboard. The default is FALSE, 14460 // which enables the reset button. 14461 ResetDisabled *bool `location:"querystring" locationName:"reset-disabled" type:"boolean"` 14462 14463 // How many minutes the session is valid. The session lifetime must be 15-600 14464 // minutes. 14465 SessionLifetimeInMinutes *int64 `location:"querystring" locationName:"session-lifetime" min:"15" type:"long"` 14466 14467 // Remove the undo/redo button on the embedded dashboard. The default is FALSE, 14468 // which enables the undo/redo button. 14469 UndoRedoDisabled *bool `location:"querystring" locationName:"undo-redo-disabled" type:"boolean"` 14470 14471 // The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT 14472 // identity type. You can use this for any Amazon QuickSight users in your account 14473 // (readers, authors, or admins) authenticated as one of the following: 14474 // 14475 // * Active Directory (AD) users or group members 14476 // 14477 // * Invited nonfederated users 14478 // 14479 // * IAM users and IAM role-based sessions authenticated through Federated 14480 // Single Sign-On using SAML, OpenID Connect, or IAM federation. 14481 UserArn *string `location:"querystring" locationName:"user-arn" type:"string"` 14482} 14483 14484// String returns the string representation 14485func (s GetDashboardEmbedUrlInput) String() string { 14486 return awsutil.Prettify(s) 14487} 14488 14489// GoString returns the string representation 14490func (s GetDashboardEmbedUrlInput) GoString() string { 14491 return s.String() 14492} 14493 14494// Validate inspects the fields of the type to determine if they are valid. 14495func (s *GetDashboardEmbedUrlInput) Validate() error { 14496 invalidParams := request.ErrInvalidParams{Context: "GetDashboardEmbedUrlInput"} 14497 if s.AwsAccountId == nil { 14498 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 14499 } 14500 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 14501 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 14502 } 14503 if s.DashboardId == nil { 14504 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 14505 } 14506 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 14507 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 14508 } 14509 if s.IdentityType == nil { 14510 invalidParams.Add(request.NewErrParamRequired("IdentityType")) 14511 } 14512 if s.SessionLifetimeInMinutes != nil && *s.SessionLifetimeInMinutes < 15 { 14513 invalidParams.Add(request.NewErrParamMinValue("SessionLifetimeInMinutes", 15)) 14514 } 14515 14516 if invalidParams.Len() > 0 { 14517 return invalidParams 14518 } 14519 return nil 14520} 14521 14522// SetAwsAccountId sets the AwsAccountId field's value. 14523func (s *GetDashboardEmbedUrlInput) SetAwsAccountId(v string) *GetDashboardEmbedUrlInput { 14524 s.AwsAccountId = &v 14525 return s 14526} 14527 14528// SetDashboardId sets the DashboardId field's value. 14529func (s *GetDashboardEmbedUrlInput) SetDashboardId(v string) *GetDashboardEmbedUrlInput { 14530 s.DashboardId = &v 14531 return s 14532} 14533 14534// SetIdentityType sets the IdentityType field's value. 14535func (s *GetDashboardEmbedUrlInput) SetIdentityType(v string) *GetDashboardEmbedUrlInput { 14536 s.IdentityType = &v 14537 return s 14538} 14539 14540// SetResetDisabled sets the ResetDisabled field's value. 14541func (s *GetDashboardEmbedUrlInput) SetResetDisabled(v bool) *GetDashboardEmbedUrlInput { 14542 s.ResetDisabled = &v 14543 return s 14544} 14545 14546// SetSessionLifetimeInMinutes sets the SessionLifetimeInMinutes field's value. 14547func (s *GetDashboardEmbedUrlInput) SetSessionLifetimeInMinutes(v int64) *GetDashboardEmbedUrlInput { 14548 s.SessionLifetimeInMinutes = &v 14549 return s 14550} 14551 14552// SetUndoRedoDisabled sets the UndoRedoDisabled field's value. 14553func (s *GetDashboardEmbedUrlInput) SetUndoRedoDisabled(v bool) *GetDashboardEmbedUrlInput { 14554 s.UndoRedoDisabled = &v 14555 return s 14556} 14557 14558// SetUserArn sets the UserArn field's value. 14559func (s *GetDashboardEmbedUrlInput) SetUserArn(v string) *GetDashboardEmbedUrlInput { 14560 s.UserArn = &v 14561 return s 14562} 14563 14564type GetDashboardEmbedUrlOutput struct { 14565 _ struct{} `type:"structure"` 14566 14567 // An URL that you can put into your server-side webpage to embed your dashboard. 14568 // This URL is valid for 5 minutes, and the resulting session is valid for 10 14569 // hours. The API provides the URL with an auth_code value that enables a single 14570 // sign-on session. 14571 EmbedUrl *string `type:"string" sensitive:"true"` 14572 14573 // The AWS request ID for this operation. 14574 RequestId *string `type:"string"` 14575 14576 // The HTTP status of the request. 14577 Status *int64 `location:"statusCode" type:"integer"` 14578} 14579 14580// String returns the string representation 14581func (s GetDashboardEmbedUrlOutput) String() string { 14582 return awsutil.Prettify(s) 14583} 14584 14585// GoString returns the string representation 14586func (s GetDashboardEmbedUrlOutput) GoString() string { 14587 return s.String() 14588} 14589 14590// SetEmbedUrl sets the EmbedUrl field's value. 14591func (s *GetDashboardEmbedUrlOutput) SetEmbedUrl(v string) *GetDashboardEmbedUrlOutput { 14592 s.EmbedUrl = &v 14593 return s 14594} 14595 14596// SetRequestId sets the RequestId field's value. 14597func (s *GetDashboardEmbedUrlOutput) SetRequestId(v string) *GetDashboardEmbedUrlOutput { 14598 s.RequestId = &v 14599 return s 14600} 14601 14602// SetStatus sets the Status field's value. 14603func (s *GetDashboardEmbedUrlOutput) SetStatus(v int64) *GetDashboardEmbedUrlOutput { 14604 s.Status = &v 14605 return s 14606} 14607 14608// A group in Amazon QuickSight consists of a set of users. You can use groups 14609// to make it easier to manage access and security. Currently, an Amazon QuickSight 14610// subscription can't contain more than 500 Amazon QuickSight groups. 14611type Group struct { 14612 _ struct{} `type:"structure"` 14613 14614 // The Amazon Resource Name (ARN) for the group. 14615 Arn *string `type:"string"` 14616 14617 // The group description. 14618 Description *string `min:"1" type:"string"` 14619 14620 // The name of the group. 14621 GroupName *string `min:"1" type:"string"` 14622 14623 // The principal ID of the group. 14624 PrincipalId *string `type:"string"` 14625} 14626 14627// String returns the string representation 14628func (s Group) String() string { 14629 return awsutil.Prettify(s) 14630} 14631 14632// GoString returns the string representation 14633func (s Group) GoString() string { 14634 return s.String() 14635} 14636 14637// SetArn sets the Arn field's value. 14638func (s *Group) SetArn(v string) *Group { 14639 s.Arn = &v 14640 return s 14641} 14642 14643// SetDescription sets the Description field's value. 14644func (s *Group) SetDescription(v string) *Group { 14645 s.Description = &v 14646 return s 14647} 14648 14649// SetGroupName sets the GroupName field's value. 14650func (s *Group) SetGroupName(v string) *Group { 14651 s.GroupName = &v 14652 return s 14653} 14654 14655// SetPrincipalId sets the PrincipalId field's value. 14656func (s *Group) SetPrincipalId(v string) *Group { 14657 s.PrincipalId = &v 14658 return s 14659} 14660 14661// A member of an Amazon QuickSight group. Currently, group members must be 14662// users. Groups can't be members of another group. . 14663type GroupMember struct { 14664 _ struct{} `type:"structure"` 14665 14666 // The Amazon Resource Name (ARN) for the group member (user). 14667 Arn *string `type:"string"` 14668 14669 // The name of the group member (user). 14670 MemberName *string `min:"1" type:"string"` 14671} 14672 14673// String returns the string representation 14674func (s GroupMember) String() string { 14675 return awsutil.Prettify(s) 14676} 14677 14678// GoString returns the string representation 14679func (s GroupMember) GoString() string { 14680 return s.String() 14681} 14682 14683// SetArn sets the Arn field's value. 14684func (s *GroupMember) SetArn(v string) *GroupMember { 14685 s.Arn = &v 14686 return s 14687} 14688 14689// SetMemberName sets the MemberName field's value. 14690func (s *GroupMember) SetMemberName(v string) *GroupMember { 14691 s.MemberName = &v 14692 return s 14693} 14694 14695// An IAM policy assignment. 14696type IAMPolicyAssignment struct { 14697 _ struct{} `type:"structure"` 14698 14699 // Assignment ID. 14700 AssignmentId *string `type:"string"` 14701 14702 // Assignment name. 14703 AssignmentName *string `min:"1" type:"string"` 14704 14705 // Assignment status. 14706 AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` 14707 14708 // The AWS account ID. 14709 AwsAccountId *string `min:"12" type:"string"` 14710 14711 // Identities. 14712 Identities map[string][]*string `type:"map"` 14713 14714 // The Amazon Resource Name (ARN) for the IAM policy. 14715 PolicyArn *string `type:"string"` 14716} 14717 14718// String returns the string representation 14719func (s IAMPolicyAssignment) String() string { 14720 return awsutil.Prettify(s) 14721} 14722 14723// GoString returns the string representation 14724func (s IAMPolicyAssignment) GoString() string { 14725 return s.String() 14726} 14727 14728// SetAssignmentId sets the AssignmentId field's value. 14729func (s *IAMPolicyAssignment) SetAssignmentId(v string) *IAMPolicyAssignment { 14730 s.AssignmentId = &v 14731 return s 14732} 14733 14734// SetAssignmentName sets the AssignmentName field's value. 14735func (s *IAMPolicyAssignment) SetAssignmentName(v string) *IAMPolicyAssignment { 14736 s.AssignmentName = &v 14737 return s 14738} 14739 14740// SetAssignmentStatus sets the AssignmentStatus field's value. 14741func (s *IAMPolicyAssignment) SetAssignmentStatus(v string) *IAMPolicyAssignment { 14742 s.AssignmentStatus = &v 14743 return s 14744} 14745 14746// SetAwsAccountId sets the AwsAccountId field's value. 14747func (s *IAMPolicyAssignment) SetAwsAccountId(v string) *IAMPolicyAssignment { 14748 s.AwsAccountId = &v 14749 return s 14750} 14751 14752// SetIdentities sets the Identities field's value. 14753func (s *IAMPolicyAssignment) SetIdentities(v map[string][]*string) *IAMPolicyAssignment { 14754 s.Identities = v 14755 return s 14756} 14757 14758// SetPolicyArn sets the PolicyArn field's value. 14759func (s *IAMPolicyAssignment) SetPolicyArn(v string) *IAMPolicyAssignment { 14760 s.PolicyArn = &v 14761 return s 14762} 14763 14764// IAM policy assignment summary. 14765type IAMPolicyAssignmentSummary struct { 14766 _ struct{} `type:"structure"` 14767 14768 // Assignment name. 14769 AssignmentName *string `min:"1" type:"string"` 14770 14771 // Assignment status. 14772 AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` 14773} 14774 14775// String returns the string representation 14776func (s IAMPolicyAssignmentSummary) String() string { 14777 return awsutil.Prettify(s) 14778} 14779 14780// GoString returns the string representation 14781func (s IAMPolicyAssignmentSummary) GoString() string { 14782 return s.String() 14783} 14784 14785// SetAssignmentName sets the AssignmentName field's value. 14786func (s *IAMPolicyAssignmentSummary) SetAssignmentName(v string) *IAMPolicyAssignmentSummary { 14787 s.AssignmentName = &v 14788 return s 14789} 14790 14791// SetAssignmentStatus sets the AssignmentStatus field's value. 14792func (s *IAMPolicyAssignmentSummary) SetAssignmentStatus(v string) *IAMPolicyAssignmentSummary { 14793 s.AssignmentStatus = &v 14794 return s 14795} 14796 14797// The identity type specified isn't supported. Supported identity types include 14798// IAM and QUICKSIGHT. 14799type IdentityTypeNotSupportedException struct { 14800 _ struct{} `type:"structure"` 14801 respMetadata protocol.ResponseMetadata 14802 14803 Message_ *string `locationName:"Message" type:"string"` 14804 14805 // The AWS request ID for this request. 14806 RequestId *string `type:"string"` 14807} 14808 14809// String returns the string representation 14810func (s IdentityTypeNotSupportedException) String() string { 14811 return awsutil.Prettify(s) 14812} 14813 14814// GoString returns the string representation 14815func (s IdentityTypeNotSupportedException) GoString() string { 14816 return s.String() 14817} 14818 14819func newErrorIdentityTypeNotSupportedException(v protocol.ResponseMetadata) error { 14820 return &IdentityTypeNotSupportedException{ 14821 respMetadata: v, 14822 } 14823} 14824 14825// Code returns the exception type name. 14826func (s IdentityTypeNotSupportedException) Code() string { 14827 return "IdentityTypeNotSupportedException" 14828} 14829 14830// Message returns the exception's message. 14831func (s IdentityTypeNotSupportedException) Message() string { 14832 if s.Message_ != nil { 14833 return *s.Message_ 14834 } 14835 return "" 14836} 14837 14838// OrigErr always returns nil, satisfies awserr.Error interface. 14839func (s IdentityTypeNotSupportedException) OrigErr() error { 14840 return nil 14841} 14842 14843func (s IdentityTypeNotSupportedException) Error() string { 14844 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 14845} 14846 14847// Status code returns the HTTP status code for the request's response error. 14848func (s IdentityTypeNotSupportedException) StatusCode() int { 14849 return s.respMetadata.StatusCode 14850} 14851 14852// RequestID returns the service's response RequestID for request. 14853func (s IdentityTypeNotSupportedException) RequestID() string { 14854 return s.respMetadata.RequestID 14855} 14856 14857// Information about the SPICE ingestion for a dataset. 14858type Ingestion struct { 14859 _ struct{} `type:"structure"` 14860 14861 // The Amazon Resource Name (ARN) of the resource. 14862 // 14863 // Arn is a required field 14864 Arn *string `type:"string" required:"true"` 14865 14866 // The time that this ingestion started. 14867 // 14868 // CreatedTime is a required field 14869 CreatedTime *time.Time `type:"timestamp" required:"true"` 14870 14871 // Error information for this ingestion. 14872 ErrorInfo *ErrorInfo `type:"structure"` 14873 14874 // Ingestion ID. 14875 IngestionId *string `min:"1" type:"string"` 14876 14877 // The size of the data ingested, in bytes. 14878 IngestionSizeInBytes *int64 `type:"long"` 14879 14880 // Ingestion status. 14881 // 14882 // IngestionStatus is a required field 14883 IngestionStatus *string `type:"string" required:"true" enum:"IngestionStatus"` 14884 14885 // The time that this ingestion took, measured in seconds. 14886 IngestionTimeInSeconds *int64 `type:"long"` 14887 14888 // Information about a queued dataset SPICE ingestion. 14889 QueueInfo *QueueInfo `type:"structure"` 14890 14891 // Event source for this ingestion. 14892 RequestSource *string `type:"string" enum:"IngestionRequestSource"` 14893 14894 // Type of this ingestion. 14895 RequestType *string `type:"string" enum:"IngestionRequestType"` 14896 14897 // Information about rows for a data set SPICE ingestion. 14898 RowInfo *RowInfo `type:"structure"` 14899} 14900 14901// String returns the string representation 14902func (s Ingestion) String() string { 14903 return awsutil.Prettify(s) 14904} 14905 14906// GoString returns the string representation 14907func (s Ingestion) GoString() string { 14908 return s.String() 14909} 14910 14911// SetArn sets the Arn field's value. 14912func (s *Ingestion) SetArn(v string) *Ingestion { 14913 s.Arn = &v 14914 return s 14915} 14916 14917// SetCreatedTime sets the CreatedTime field's value. 14918func (s *Ingestion) SetCreatedTime(v time.Time) *Ingestion { 14919 s.CreatedTime = &v 14920 return s 14921} 14922 14923// SetErrorInfo sets the ErrorInfo field's value. 14924func (s *Ingestion) SetErrorInfo(v *ErrorInfo) *Ingestion { 14925 s.ErrorInfo = v 14926 return s 14927} 14928 14929// SetIngestionId sets the IngestionId field's value. 14930func (s *Ingestion) SetIngestionId(v string) *Ingestion { 14931 s.IngestionId = &v 14932 return s 14933} 14934 14935// SetIngestionSizeInBytes sets the IngestionSizeInBytes field's value. 14936func (s *Ingestion) SetIngestionSizeInBytes(v int64) *Ingestion { 14937 s.IngestionSizeInBytes = &v 14938 return s 14939} 14940 14941// SetIngestionStatus sets the IngestionStatus field's value. 14942func (s *Ingestion) SetIngestionStatus(v string) *Ingestion { 14943 s.IngestionStatus = &v 14944 return s 14945} 14946 14947// SetIngestionTimeInSeconds sets the IngestionTimeInSeconds field's value. 14948func (s *Ingestion) SetIngestionTimeInSeconds(v int64) *Ingestion { 14949 s.IngestionTimeInSeconds = &v 14950 return s 14951} 14952 14953// SetQueueInfo sets the QueueInfo field's value. 14954func (s *Ingestion) SetQueueInfo(v *QueueInfo) *Ingestion { 14955 s.QueueInfo = v 14956 return s 14957} 14958 14959// SetRequestSource sets the RequestSource field's value. 14960func (s *Ingestion) SetRequestSource(v string) *Ingestion { 14961 s.RequestSource = &v 14962 return s 14963} 14964 14965// SetRequestType sets the RequestType field's value. 14966func (s *Ingestion) SetRequestType(v string) *Ingestion { 14967 s.RequestType = &v 14968 return s 14969} 14970 14971// SetRowInfo sets the RowInfo field's value. 14972func (s *Ingestion) SetRowInfo(v *RowInfo) *Ingestion { 14973 s.RowInfo = v 14974 return s 14975} 14976 14977// Metadata for a column that is used as the input of a transform operation. 14978type InputColumn struct { 14979 _ struct{} `type:"structure"` 14980 14981 // The name of this column in the underlying data source. 14982 // 14983 // Name is a required field 14984 Name *string `min:"1" type:"string" required:"true"` 14985 14986 // The data type of the column. 14987 // 14988 // Type is a required field 14989 Type *string `type:"string" required:"true" enum:"InputColumnDataType"` 14990} 14991 14992// String returns the string representation 14993func (s InputColumn) String() string { 14994 return awsutil.Prettify(s) 14995} 14996 14997// GoString returns the string representation 14998func (s InputColumn) GoString() string { 14999 return s.String() 15000} 15001 15002// Validate inspects the fields of the type to determine if they are valid. 15003func (s *InputColumn) Validate() error { 15004 invalidParams := request.ErrInvalidParams{Context: "InputColumn"} 15005 if s.Name == nil { 15006 invalidParams.Add(request.NewErrParamRequired("Name")) 15007 } 15008 if s.Name != nil && len(*s.Name) < 1 { 15009 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 15010 } 15011 if s.Type == nil { 15012 invalidParams.Add(request.NewErrParamRequired("Type")) 15013 } 15014 15015 if invalidParams.Len() > 0 { 15016 return invalidParams 15017 } 15018 return nil 15019} 15020 15021// SetName sets the Name field's value. 15022func (s *InputColumn) SetName(v string) *InputColumn { 15023 s.Name = &v 15024 return s 15025} 15026 15027// SetType sets the Type field's value. 15028func (s *InputColumn) SetType(v string) *InputColumn { 15029 s.Type = &v 15030 return s 15031} 15032 15033// Integer parameter. 15034type IntegerParameter struct { 15035 _ struct{} `type:"structure"` 15036 15037 // A display name for the dataset. 15038 // 15039 // Name is a required field 15040 Name *string `type:"string" required:"true"` 15041 15042 // Values. 15043 // 15044 // Values is a required field 15045 Values []*int64 `type:"list" required:"true"` 15046} 15047 15048// String returns the string representation 15049func (s IntegerParameter) String() string { 15050 return awsutil.Prettify(s) 15051} 15052 15053// GoString returns the string representation 15054func (s IntegerParameter) GoString() string { 15055 return s.String() 15056} 15057 15058// Validate inspects the fields of the type to determine if they are valid. 15059func (s *IntegerParameter) Validate() error { 15060 invalidParams := request.ErrInvalidParams{Context: "IntegerParameter"} 15061 if s.Name == nil { 15062 invalidParams.Add(request.NewErrParamRequired("Name")) 15063 } 15064 if s.Values == nil { 15065 invalidParams.Add(request.NewErrParamRequired("Values")) 15066 } 15067 15068 if invalidParams.Len() > 0 { 15069 return invalidParams 15070 } 15071 return nil 15072} 15073 15074// SetName sets the Name field's value. 15075func (s *IntegerParameter) SetName(v string) *IntegerParameter { 15076 s.Name = &v 15077 return s 15078} 15079 15080// SetValues sets the Values field's value. 15081func (s *IntegerParameter) SetValues(v []*int64) *IntegerParameter { 15082 s.Values = v 15083 return s 15084} 15085 15086// An internal failure occurred. 15087type InternalFailureException struct { 15088 _ struct{} `type:"structure"` 15089 respMetadata protocol.ResponseMetadata 15090 15091 Message_ *string `locationName:"Message" type:"string"` 15092 15093 // The AWS request ID for this request. 15094 RequestId *string `type:"string"` 15095} 15096 15097// String returns the string representation 15098func (s InternalFailureException) String() string { 15099 return awsutil.Prettify(s) 15100} 15101 15102// GoString returns the string representation 15103func (s InternalFailureException) GoString() string { 15104 return s.String() 15105} 15106 15107func newErrorInternalFailureException(v protocol.ResponseMetadata) error { 15108 return &InternalFailureException{ 15109 respMetadata: v, 15110 } 15111} 15112 15113// Code returns the exception type name. 15114func (s InternalFailureException) Code() string { 15115 return "InternalFailureException" 15116} 15117 15118// Message returns the exception's message. 15119func (s InternalFailureException) Message() string { 15120 if s.Message_ != nil { 15121 return *s.Message_ 15122 } 15123 return "" 15124} 15125 15126// OrigErr always returns nil, satisfies awserr.Error interface. 15127func (s InternalFailureException) OrigErr() error { 15128 return nil 15129} 15130 15131func (s InternalFailureException) Error() string { 15132 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 15133} 15134 15135// Status code returns the HTTP status code for the request's response error. 15136func (s InternalFailureException) StatusCode() int { 15137 return s.respMetadata.StatusCode 15138} 15139 15140// RequestID returns the service's response RequestID for request. 15141func (s InternalFailureException) RequestID() string { 15142 return s.respMetadata.RequestID 15143} 15144 15145// The NextToken value isn't valid. 15146type InvalidNextTokenException struct { 15147 _ struct{} `type:"structure"` 15148 respMetadata protocol.ResponseMetadata 15149 15150 Message_ *string `locationName:"Message" type:"string"` 15151 15152 // The AWS request ID for this request. 15153 RequestId *string `type:"string"` 15154} 15155 15156// String returns the string representation 15157func (s InvalidNextTokenException) String() string { 15158 return awsutil.Prettify(s) 15159} 15160 15161// GoString returns the string representation 15162func (s InvalidNextTokenException) GoString() string { 15163 return s.String() 15164} 15165 15166func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { 15167 return &InvalidNextTokenException{ 15168 respMetadata: v, 15169 } 15170} 15171 15172// Code returns the exception type name. 15173func (s InvalidNextTokenException) Code() string { 15174 return "InvalidNextTokenException" 15175} 15176 15177// Message returns the exception's message. 15178func (s InvalidNextTokenException) Message() string { 15179 if s.Message_ != nil { 15180 return *s.Message_ 15181 } 15182 return "" 15183} 15184 15185// OrigErr always returns nil, satisfies awserr.Error interface. 15186func (s InvalidNextTokenException) OrigErr() error { 15187 return nil 15188} 15189 15190func (s InvalidNextTokenException) Error() string { 15191 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 15192} 15193 15194// Status code returns the HTTP status code for the request's response error. 15195func (s InvalidNextTokenException) StatusCode() int { 15196 return s.respMetadata.StatusCode 15197} 15198 15199// RequestID returns the service's response RequestID for request. 15200func (s InvalidNextTokenException) RequestID() string { 15201 return s.respMetadata.RequestID 15202} 15203 15204// One or more parameters has a value that isn't valid. 15205type InvalidParameterValueException struct { 15206 _ struct{} `type:"structure"` 15207 respMetadata protocol.ResponseMetadata 15208 15209 Message_ *string `locationName:"Message" type:"string"` 15210 15211 // The AWS request ID for this request. 15212 RequestId *string `type:"string"` 15213} 15214 15215// String returns the string representation 15216func (s InvalidParameterValueException) String() string { 15217 return awsutil.Prettify(s) 15218} 15219 15220// GoString returns the string representation 15221func (s InvalidParameterValueException) GoString() string { 15222 return s.String() 15223} 15224 15225func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { 15226 return &InvalidParameterValueException{ 15227 respMetadata: v, 15228 } 15229} 15230 15231// Code returns the exception type name. 15232func (s InvalidParameterValueException) Code() string { 15233 return "InvalidParameterValueException" 15234} 15235 15236// Message returns the exception's message. 15237func (s InvalidParameterValueException) Message() string { 15238 if s.Message_ != nil { 15239 return *s.Message_ 15240 } 15241 return "" 15242} 15243 15244// OrigErr always returns nil, satisfies awserr.Error interface. 15245func (s InvalidParameterValueException) OrigErr() error { 15246 return nil 15247} 15248 15249func (s InvalidParameterValueException) Error() string { 15250 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 15251} 15252 15253// Status code returns the HTTP status code for the request's response error. 15254func (s InvalidParameterValueException) StatusCode() int { 15255 return s.respMetadata.StatusCode 15256} 15257 15258// RequestID returns the service's response RequestID for request. 15259func (s InvalidParameterValueException) RequestID() string { 15260 return s.respMetadata.RequestID 15261} 15262 15263// Jira parameters. 15264type JiraParameters struct { 15265 _ struct{} `type:"structure"` 15266 15267 // The base URL of the Jira site. 15268 // 15269 // SiteBaseUrl is a required field 15270 SiteBaseUrl *string `min:"1" type:"string" required:"true"` 15271} 15272 15273// String returns the string representation 15274func (s JiraParameters) String() string { 15275 return awsutil.Prettify(s) 15276} 15277 15278// GoString returns the string representation 15279func (s JiraParameters) GoString() string { 15280 return s.String() 15281} 15282 15283// Validate inspects the fields of the type to determine if they are valid. 15284func (s *JiraParameters) Validate() error { 15285 invalidParams := request.ErrInvalidParams{Context: "JiraParameters"} 15286 if s.SiteBaseUrl == nil { 15287 invalidParams.Add(request.NewErrParamRequired("SiteBaseUrl")) 15288 } 15289 if s.SiteBaseUrl != nil && len(*s.SiteBaseUrl) < 1 { 15290 invalidParams.Add(request.NewErrParamMinLen("SiteBaseUrl", 1)) 15291 } 15292 15293 if invalidParams.Len() > 0 { 15294 return invalidParams 15295 } 15296 return nil 15297} 15298 15299// SetSiteBaseUrl sets the SiteBaseUrl field's value. 15300func (s *JiraParameters) SetSiteBaseUrl(v string) *JiraParameters { 15301 s.SiteBaseUrl = &v 15302 return s 15303} 15304 15305// Join instruction. 15306type JoinInstruction struct { 15307 _ struct{} `type:"structure"` 15308 15309 // Left operand. 15310 // 15311 // LeftOperand is a required field 15312 LeftOperand *string `min:"1" type:"string" required:"true"` 15313 15314 // On Clause. 15315 // 15316 // OnClause is a required field 15317 OnClause *string `min:"1" type:"string" required:"true"` 15318 15319 // Right operand. 15320 // 15321 // RightOperand is a required field 15322 RightOperand *string `min:"1" type:"string" required:"true"` 15323 15324 // Type. 15325 // 15326 // Type is a required field 15327 Type *string `type:"string" required:"true" enum:"JoinType"` 15328} 15329 15330// String returns the string representation 15331func (s JoinInstruction) String() string { 15332 return awsutil.Prettify(s) 15333} 15334 15335// GoString returns the string representation 15336func (s JoinInstruction) GoString() string { 15337 return s.String() 15338} 15339 15340// Validate inspects the fields of the type to determine if they are valid. 15341func (s *JoinInstruction) Validate() error { 15342 invalidParams := request.ErrInvalidParams{Context: "JoinInstruction"} 15343 if s.LeftOperand == nil { 15344 invalidParams.Add(request.NewErrParamRequired("LeftOperand")) 15345 } 15346 if s.LeftOperand != nil && len(*s.LeftOperand) < 1 { 15347 invalidParams.Add(request.NewErrParamMinLen("LeftOperand", 1)) 15348 } 15349 if s.OnClause == nil { 15350 invalidParams.Add(request.NewErrParamRequired("OnClause")) 15351 } 15352 if s.OnClause != nil && len(*s.OnClause) < 1 { 15353 invalidParams.Add(request.NewErrParamMinLen("OnClause", 1)) 15354 } 15355 if s.RightOperand == nil { 15356 invalidParams.Add(request.NewErrParamRequired("RightOperand")) 15357 } 15358 if s.RightOperand != nil && len(*s.RightOperand) < 1 { 15359 invalidParams.Add(request.NewErrParamMinLen("RightOperand", 1)) 15360 } 15361 if s.Type == nil { 15362 invalidParams.Add(request.NewErrParamRequired("Type")) 15363 } 15364 15365 if invalidParams.Len() > 0 { 15366 return invalidParams 15367 } 15368 return nil 15369} 15370 15371// SetLeftOperand sets the LeftOperand field's value. 15372func (s *JoinInstruction) SetLeftOperand(v string) *JoinInstruction { 15373 s.LeftOperand = &v 15374 return s 15375} 15376 15377// SetOnClause sets the OnClause field's value. 15378func (s *JoinInstruction) SetOnClause(v string) *JoinInstruction { 15379 s.OnClause = &v 15380 return s 15381} 15382 15383// SetRightOperand sets the RightOperand field's value. 15384func (s *JoinInstruction) SetRightOperand(v string) *JoinInstruction { 15385 s.RightOperand = &v 15386 return s 15387} 15388 15389// SetType sets the Type field's value. 15390func (s *JoinInstruction) SetType(v string) *JoinInstruction { 15391 s.Type = &v 15392 return s 15393} 15394 15395// A limit is exceeded. 15396type LimitExceededException struct { 15397 _ struct{} `type:"structure"` 15398 respMetadata protocol.ResponseMetadata 15399 15400 Message_ *string `locationName:"Message" type:"string"` 15401 15402 // The AWS request ID for this request. 15403 RequestId *string `type:"string"` 15404 15405 // Limit exceeded. 15406 ResourceType *string `type:"string" enum:"ExceptionResourceType"` 15407} 15408 15409// String returns the string representation 15410func (s LimitExceededException) String() string { 15411 return awsutil.Prettify(s) 15412} 15413 15414// GoString returns the string representation 15415func (s LimitExceededException) GoString() string { 15416 return s.String() 15417} 15418 15419func newErrorLimitExceededException(v protocol.ResponseMetadata) error { 15420 return &LimitExceededException{ 15421 respMetadata: v, 15422 } 15423} 15424 15425// Code returns the exception type name. 15426func (s LimitExceededException) Code() string { 15427 return "LimitExceededException" 15428} 15429 15430// Message returns the exception's message. 15431func (s LimitExceededException) Message() string { 15432 if s.Message_ != nil { 15433 return *s.Message_ 15434 } 15435 return "" 15436} 15437 15438// OrigErr always returns nil, satisfies awserr.Error interface. 15439func (s LimitExceededException) OrigErr() error { 15440 return nil 15441} 15442 15443func (s LimitExceededException) Error() string { 15444 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 15445} 15446 15447// Status code returns the HTTP status code for the request's response error. 15448func (s LimitExceededException) StatusCode() int { 15449 return s.respMetadata.StatusCode 15450} 15451 15452// RequestID returns the service's response RequestID for request. 15453func (s LimitExceededException) RequestID() string { 15454 return s.respMetadata.RequestID 15455} 15456 15457type ListDashboardVersionsInput struct { 15458 _ struct{} `type:"structure"` 15459 15460 // The ID of the AWS account that contains the dashboard that you're listing 15461 // versions for. 15462 // 15463 // AwsAccountId is a required field 15464 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 15465 15466 // The ID for the dashboard. 15467 // 15468 // DashboardId is a required field 15469 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 15470 15471 // The maximum number of results to be returned per request. 15472 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 15473 15474 // The token for the next set of results, or null if there are no more results. 15475 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 15476} 15477 15478// String returns the string representation 15479func (s ListDashboardVersionsInput) String() string { 15480 return awsutil.Prettify(s) 15481} 15482 15483// GoString returns the string representation 15484func (s ListDashboardVersionsInput) GoString() string { 15485 return s.String() 15486} 15487 15488// Validate inspects the fields of the type to determine if they are valid. 15489func (s *ListDashboardVersionsInput) Validate() error { 15490 invalidParams := request.ErrInvalidParams{Context: "ListDashboardVersionsInput"} 15491 if s.AwsAccountId == nil { 15492 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 15493 } 15494 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 15495 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 15496 } 15497 if s.DashboardId == nil { 15498 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 15499 } 15500 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 15501 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 15502 } 15503 if s.MaxResults != nil && *s.MaxResults < 1 { 15504 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 15505 } 15506 15507 if invalidParams.Len() > 0 { 15508 return invalidParams 15509 } 15510 return nil 15511} 15512 15513// SetAwsAccountId sets the AwsAccountId field's value. 15514func (s *ListDashboardVersionsInput) SetAwsAccountId(v string) *ListDashboardVersionsInput { 15515 s.AwsAccountId = &v 15516 return s 15517} 15518 15519// SetDashboardId sets the DashboardId field's value. 15520func (s *ListDashboardVersionsInput) SetDashboardId(v string) *ListDashboardVersionsInput { 15521 s.DashboardId = &v 15522 return s 15523} 15524 15525// SetMaxResults sets the MaxResults field's value. 15526func (s *ListDashboardVersionsInput) SetMaxResults(v int64) *ListDashboardVersionsInput { 15527 s.MaxResults = &v 15528 return s 15529} 15530 15531// SetNextToken sets the NextToken field's value. 15532func (s *ListDashboardVersionsInput) SetNextToken(v string) *ListDashboardVersionsInput { 15533 s.NextToken = &v 15534 return s 15535} 15536 15537type ListDashboardVersionsOutput struct { 15538 _ struct{} `type:"structure"` 15539 15540 // A structure that contains information about each version of the dashboard. 15541 DashboardVersionSummaryList []*DashboardVersionSummary `type:"list"` 15542 15543 // The token for the next set of results, or null if there are no more results. 15544 NextToken *string `type:"string"` 15545 15546 // The AWS request ID for this operation. 15547 RequestId *string `type:"string"` 15548 15549 // The HTTP status of the request. 15550 Status *int64 `location:"statusCode" type:"integer"` 15551} 15552 15553// String returns the string representation 15554func (s ListDashboardVersionsOutput) String() string { 15555 return awsutil.Prettify(s) 15556} 15557 15558// GoString returns the string representation 15559func (s ListDashboardVersionsOutput) GoString() string { 15560 return s.String() 15561} 15562 15563// SetDashboardVersionSummaryList sets the DashboardVersionSummaryList field's value. 15564func (s *ListDashboardVersionsOutput) SetDashboardVersionSummaryList(v []*DashboardVersionSummary) *ListDashboardVersionsOutput { 15565 s.DashboardVersionSummaryList = v 15566 return s 15567} 15568 15569// SetNextToken sets the NextToken field's value. 15570func (s *ListDashboardVersionsOutput) SetNextToken(v string) *ListDashboardVersionsOutput { 15571 s.NextToken = &v 15572 return s 15573} 15574 15575// SetRequestId sets the RequestId field's value. 15576func (s *ListDashboardVersionsOutput) SetRequestId(v string) *ListDashboardVersionsOutput { 15577 s.RequestId = &v 15578 return s 15579} 15580 15581// SetStatus sets the Status field's value. 15582func (s *ListDashboardVersionsOutput) SetStatus(v int64) *ListDashboardVersionsOutput { 15583 s.Status = &v 15584 return s 15585} 15586 15587type ListDashboardsInput struct { 15588 _ struct{} `type:"structure"` 15589 15590 // The ID of the AWS account that contains the dashboards that you're listing. 15591 // 15592 // AwsAccountId is a required field 15593 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 15594 15595 // The maximum number of results to be returned per request. 15596 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 15597 15598 // The token for the next set of results, or null if there are no more results. 15599 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 15600} 15601 15602// String returns the string representation 15603func (s ListDashboardsInput) String() string { 15604 return awsutil.Prettify(s) 15605} 15606 15607// GoString returns the string representation 15608func (s ListDashboardsInput) GoString() string { 15609 return s.String() 15610} 15611 15612// Validate inspects the fields of the type to determine if they are valid. 15613func (s *ListDashboardsInput) Validate() error { 15614 invalidParams := request.ErrInvalidParams{Context: "ListDashboardsInput"} 15615 if s.AwsAccountId == nil { 15616 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 15617 } 15618 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 15619 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 15620 } 15621 if s.MaxResults != nil && *s.MaxResults < 1 { 15622 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 15623 } 15624 15625 if invalidParams.Len() > 0 { 15626 return invalidParams 15627 } 15628 return nil 15629} 15630 15631// SetAwsAccountId sets the AwsAccountId field's value. 15632func (s *ListDashboardsInput) SetAwsAccountId(v string) *ListDashboardsInput { 15633 s.AwsAccountId = &v 15634 return s 15635} 15636 15637// SetMaxResults sets the MaxResults field's value. 15638func (s *ListDashboardsInput) SetMaxResults(v int64) *ListDashboardsInput { 15639 s.MaxResults = &v 15640 return s 15641} 15642 15643// SetNextToken sets the NextToken field's value. 15644func (s *ListDashboardsInput) SetNextToken(v string) *ListDashboardsInput { 15645 s.NextToken = &v 15646 return s 15647} 15648 15649type ListDashboardsOutput struct { 15650 _ struct{} `type:"structure"` 15651 15652 // A structure that contains all of the dashboards shared with the user. This 15653 // structure provides basic information about the dashboards. 15654 DashboardSummaryList []*DashboardSummary `type:"list"` 15655 15656 // The token for the next set of results, or null if there are no more results. 15657 NextToken *string `type:"string"` 15658 15659 // The AWS request ID for this operation. 15660 RequestId *string `type:"string"` 15661 15662 // The HTTP status of the request. 15663 Status *int64 `location:"statusCode" type:"integer"` 15664} 15665 15666// String returns the string representation 15667func (s ListDashboardsOutput) String() string { 15668 return awsutil.Prettify(s) 15669} 15670 15671// GoString returns the string representation 15672func (s ListDashboardsOutput) GoString() string { 15673 return s.String() 15674} 15675 15676// SetDashboardSummaryList sets the DashboardSummaryList field's value. 15677func (s *ListDashboardsOutput) SetDashboardSummaryList(v []*DashboardSummary) *ListDashboardsOutput { 15678 s.DashboardSummaryList = v 15679 return s 15680} 15681 15682// SetNextToken sets the NextToken field's value. 15683func (s *ListDashboardsOutput) SetNextToken(v string) *ListDashboardsOutput { 15684 s.NextToken = &v 15685 return s 15686} 15687 15688// SetRequestId sets the RequestId field's value. 15689func (s *ListDashboardsOutput) SetRequestId(v string) *ListDashboardsOutput { 15690 s.RequestId = &v 15691 return s 15692} 15693 15694// SetStatus sets the Status field's value. 15695func (s *ListDashboardsOutput) SetStatus(v int64) *ListDashboardsOutput { 15696 s.Status = &v 15697 return s 15698} 15699 15700type ListDataSetsInput struct { 15701 _ struct{} `type:"structure"` 15702 15703 // The AWS account ID. 15704 // 15705 // AwsAccountId is a required field 15706 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 15707 15708 // The maximum number of results to be returned per request. 15709 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 15710 15711 // The token for the next set of results, or null if there are no more results. 15712 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 15713} 15714 15715// String returns the string representation 15716func (s ListDataSetsInput) String() string { 15717 return awsutil.Prettify(s) 15718} 15719 15720// GoString returns the string representation 15721func (s ListDataSetsInput) GoString() string { 15722 return s.String() 15723} 15724 15725// Validate inspects the fields of the type to determine if they are valid. 15726func (s *ListDataSetsInput) Validate() error { 15727 invalidParams := request.ErrInvalidParams{Context: "ListDataSetsInput"} 15728 if s.AwsAccountId == nil { 15729 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 15730 } 15731 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 15732 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 15733 } 15734 if s.MaxResults != nil && *s.MaxResults < 1 { 15735 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 15736 } 15737 15738 if invalidParams.Len() > 0 { 15739 return invalidParams 15740 } 15741 return nil 15742} 15743 15744// SetAwsAccountId sets the AwsAccountId field's value. 15745func (s *ListDataSetsInput) SetAwsAccountId(v string) *ListDataSetsInput { 15746 s.AwsAccountId = &v 15747 return s 15748} 15749 15750// SetMaxResults sets the MaxResults field's value. 15751func (s *ListDataSetsInput) SetMaxResults(v int64) *ListDataSetsInput { 15752 s.MaxResults = &v 15753 return s 15754} 15755 15756// SetNextToken sets the NextToken field's value. 15757func (s *ListDataSetsInput) SetNextToken(v string) *ListDataSetsInput { 15758 s.NextToken = &v 15759 return s 15760} 15761 15762type ListDataSetsOutput struct { 15763 _ struct{} `type:"structure"` 15764 15765 // The list of dataset summaries. 15766 DataSetSummaries []*DataSetSummary `type:"list"` 15767 15768 // The token for the next set of results, or null if there are no more results. 15769 NextToken *string `type:"string"` 15770 15771 // The AWS request ID for this operation. 15772 RequestId *string `type:"string"` 15773 15774 // The HTTP status of the request. 15775 Status *int64 `location:"statusCode" type:"integer"` 15776} 15777 15778// String returns the string representation 15779func (s ListDataSetsOutput) String() string { 15780 return awsutil.Prettify(s) 15781} 15782 15783// GoString returns the string representation 15784func (s ListDataSetsOutput) GoString() string { 15785 return s.String() 15786} 15787 15788// SetDataSetSummaries sets the DataSetSummaries field's value. 15789func (s *ListDataSetsOutput) SetDataSetSummaries(v []*DataSetSummary) *ListDataSetsOutput { 15790 s.DataSetSummaries = v 15791 return s 15792} 15793 15794// SetNextToken sets the NextToken field's value. 15795func (s *ListDataSetsOutput) SetNextToken(v string) *ListDataSetsOutput { 15796 s.NextToken = &v 15797 return s 15798} 15799 15800// SetRequestId sets the RequestId field's value. 15801func (s *ListDataSetsOutput) SetRequestId(v string) *ListDataSetsOutput { 15802 s.RequestId = &v 15803 return s 15804} 15805 15806// SetStatus sets the Status field's value. 15807func (s *ListDataSetsOutput) SetStatus(v int64) *ListDataSetsOutput { 15808 s.Status = &v 15809 return s 15810} 15811 15812type ListDataSourcesInput struct { 15813 _ struct{} `type:"structure"` 15814 15815 // The AWS account ID. 15816 // 15817 // AwsAccountId is a required field 15818 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 15819 15820 // The maximum number of results to be returned per request. 15821 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 15822 15823 // The token for the next set of results, or null if there are no more results. 15824 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 15825} 15826 15827// String returns the string representation 15828func (s ListDataSourcesInput) String() string { 15829 return awsutil.Prettify(s) 15830} 15831 15832// GoString returns the string representation 15833func (s ListDataSourcesInput) GoString() string { 15834 return s.String() 15835} 15836 15837// Validate inspects the fields of the type to determine if they are valid. 15838func (s *ListDataSourcesInput) Validate() error { 15839 invalidParams := request.ErrInvalidParams{Context: "ListDataSourcesInput"} 15840 if s.AwsAccountId == nil { 15841 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 15842 } 15843 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 15844 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 15845 } 15846 if s.MaxResults != nil && *s.MaxResults < 1 { 15847 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 15848 } 15849 15850 if invalidParams.Len() > 0 { 15851 return invalidParams 15852 } 15853 return nil 15854} 15855 15856// SetAwsAccountId sets the AwsAccountId field's value. 15857func (s *ListDataSourcesInput) SetAwsAccountId(v string) *ListDataSourcesInput { 15858 s.AwsAccountId = &v 15859 return s 15860} 15861 15862// SetMaxResults sets the MaxResults field's value. 15863func (s *ListDataSourcesInput) SetMaxResults(v int64) *ListDataSourcesInput { 15864 s.MaxResults = &v 15865 return s 15866} 15867 15868// SetNextToken sets the NextToken field's value. 15869func (s *ListDataSourcesInput) SetNextToken(v string) *ListDataSourcesInput { 15870 s.NextToken = &v 15871 return s 15872} 15873 15874type ListDataSourcesOutput struct { 15875 _ struct{} `type:"structure"` 15876 15877 // A list of data sources. 15878 DataSources []*DataSource `type:"list"` 15879 15880 // The token for the next set of results, or null if there are no more results. 15881 NextToken *string `type:"string"` 15882 15883 // The AWS request ID for this operation. 15884 RequestId *string `type:"string"` 15885 15886 // The HTTP status of the request. 15887 Status *int64 `location:"statusCode" type:"integer"` 15888} 15889 15890// String returns the string representation 15891func (s ListDataSourcesOutput) String() string { 15892 return awsutil.Prettify(s) 15893} 15894 15895// GoString returns the string representation 15896func (s ListDataSourcesOutput) GoString() string { 15897 return s.String() 15898} 15899 15900// SetDataSources sets the DataSources field's value. 15901func (s *ListDataSourcesOutput) SetDataSources(v []*DataSource) *ListDataSourcesOutput { 15902 s.DataSources = v 15903 return s 15904} 15905 15906// SetNextToken sets the NextToken field's value. 15907func (s *ListDataSourcesOutput) SetNextToken(v string) *ListDataSourcesOutput { 15908 s.NextToken = &v 15909 return s 15910} 15911 15912// SetRequestId sets the RequestId field's value. 15913func (s *ListDataSourcesOutput) SetRequestId(v string) *ListDataSourcesOutput { 15914 s.RequestId = &v 15915 return s 15916} 15917 15918// SetStatus sets the Status field's value. 15919func (s *ListDataSourcesOutput) SetStatus(v int64) *ListDataSourcesOutput { 15920 s.Status = &v 15921 return s 15922} 15923 15924type ListGroupMembershipsInput struct { 15925 _ struct{} `type:"structure"` 15926 15927 // The ID for the AWS account that the group is in. Currently, you use the ID 15928 // for the AWS account that contains your Amazon QuickSight account. 15929 // 15930 // AwsAccountId is a required field 15931 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 15932 15933 // The name of the group that you want to see a membership list of. 15934 // 15935 // GroupName is a required field 15936 GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` 15937 15938 // The maximum number of results to return from this request. 15939 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 15940 15941 // The namespace. Currently, you should set this to default. 15942 // 15943 // Namespace is a required field 15944 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 15945 15946 // A pagination token that can be used in a subsequent request. 15947 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 15948} 15949 15950// String returns the string representation 15951func (s ListGroupMembershipsInput) String() string { 15952 return awsutil.Prettify(s) 15953} 15954 15955// GoString returns the string representation 15956func (s ListGroupMembershipsInput) GoString() string { 15957 return s.String() 15958} 15959 15960// Validate inspects the fields of the type to determine if they are valid. 15961func (s *ListGroupMembershipsInput) Validate() error { 15962 invalidParams := request.ErrInvalidParams{Context: "ListGroupMembershipsInput"} 15963 if s.AwsAccountId == nil { 15964 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 15965 } 15966 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 15967 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 15968 } 15969 if s.GroupName == nil { 15970 invalidParams.Add(request.NewErrParamRequired("GroupName")) 15971 } 15972 if s.GroupName != nil && len(*s.GroupName) < 1 { 15973 invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) 15974 } 15975 if s.MaxResults != nil && *s.MaxResults < 1 { 15976 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 15977 } 15978 if s.Namespace == nil { 15979 invalidParams.Add(request.NewErrParamRequired("Namespace")) 15980 } 15981 if s.Namespace != nil && len(*s.Namespace) < 1 { 15982 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 15983 } 15984 15985 if invalidParams.Len() > 0 { 15986 return invalidParams 15987 } 15988 return nil 15989} 15990 15991// SetAwsAccountId sets the AwsAccountId field's value. 15992func (s *ListGroupMembershipsInput) SetAwsAccountId(v string) *ListGroupMembershipsInput { 15993 s.AwsAccountId = &v 15994 return s 15995} 15996 15997// SetGroupName sets the GroupName field's value. 15998func (s *ListGroupMembershipsInput) SetGroupName(v string) *ListGroupMembershipsInput { 15999 s.GroupName = &v 16000 return s 16001} 16002 16003// SetMaxResults sets the MaxResults field's value. 16004func (s *ListGroupMembershipsInput) SetMaxResults(v int64) *ListGroupMembershipsInput { 16005 s.MaxResults = &v 16006 return s 16007} 16008 16009// SetNamespace sets the Namespace field's value. 16010func (s *ListGroupMembershipsInput) SetNamespace(v string) *ListGroupMembershipsInput { 16011 s.Namespace = &v 16012 return s 16013} 16014 16015// SetNextToken sets the NextToken field's value. 16016func (s *ListGroupMembershipsInput) SetNextToken(v string) *ListGroupMembershipsInput { 16017 s.NextToken = &v 16018 return s 16019} 16020 16021type ListGroupMembershipsOutput struct { 16022 _ struct{} `type:"structure"` 16023 16024 // The list of the members of the group. 16025 GroupMemberList []*GroupMember `type:"list"` 16026 16027 // A pagination token that can be used in a subsequent request. 16028 NextToken *string `type:"string"` 16029 16030 // The AWS request ID for this operation. 16031 RequestId *string `type:"string"` 16032 16033 // The HTTP status of the request. 16034 Status *int64 `location:"statusCode" type:"integer"` 16035} 16036 16037// String returns the string representation 16038func (s ListGroupMembershipsOutput) String() string { 16039 return awsutil.Prettify(s) 16040} 16041 16042// GoString returns the string representation 16043func (s ListGroupMembershipsOutput) GoString() string { 16044 return s.String() 16045} 16046 16047// SetGroupMemberList sets the GroupMemberList field's value. 16048func (s *ListGroupMembershipsOutput) SetGroupMemberList(v []*GroupMember) *ListGroupMembershipsOutput { 16049 s.GroupMemberList = v 16050 return s 16051} 16052 16053// SetNextToken sets the NextToken field's value. 16054func (s *ListGroupMembershipsOutput) SetNextToken(v string) *ListGroupMembershipsOutput { 16055 s.NextToken = &v 16056 return s 16057} 16058 16059// SetRequestId sets the RequestId field's value. 16060func (s *ListGroupMembershipsOutput) SetRequestId(v string) *ListGroupMembershipsOutput { 16061 s.RequestId = &v 16062 return s 16063} 16064 16065// SetStatus sets the Status field's value. 16066func (s *ListGroupMembershipsOutput) SetStatus(v int64) *ListGroupMembershipsOutput { 16067 s.Status = &v 16068 return s 16069} 16070 16071type ListGroupsInput struct { 16072 _ struct{} `type:"structure"` 16073 16074 // The ID for the AWS account that the group is in. Currently, you use the ID 16075 // for the AWS account that contains your Amazon QuickSight account. 16076 // 16077 // AwsAccountId is a required field 16078 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 16079 16080 // The maximum number of results to return. 16081 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 16082 16083 // The namespace. Currently, you should set this to default. 16084 // 16085 // Namespace is a required field 16086 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 16087 16088 // A pagination token that can be used in a subsequent request. 16089 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 16090} 16091 16092// String returns the string representation 16093func (s ListGroupsInput) String() string { 16094 return awsutil.Prettify(s) 16095} 16096 16097// GoString returns the string representation 16098func (s ListGroupsInput) GoString() string { 16099 return s.String() 16100} 16101 16102// Validate inspects the fields of the type to determine if they are valid. 16103func (s *ListGroupsInput) Validate() error { 16104 invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} 16105 if s.AwsAccountId == nil { 16106 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 16107 } 16108 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 16109 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 16110 } 16111 if s.MaxResults != nil && *s.MaxResults < 1 { 16112 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 16113 } 16114 if s.Namespace == nil { 16115 invalidParams.Add(request.NewErrParamRequired("Namespace")) 16116 } 16117 if s.Namespace != nil && len(*s.Namespace) < 1 { 16118 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 16119 } 16120 16121 if invalidParams.Len() > 0 { 16122 return invalidParams 16123 } 16124 return nil 16125} 16126 16127// SetAwsAccountId sets the AwsAccountId field's value. 16128func (s *ListGroupsInput) SetAwsAccountId(v string) *ListGroupsInput { 16129 s.AwsAccountId = &v 16130 return s 16131} 16132 16133// SetMaxResults sets the MaxResults field's value. 16134func (s *ListGroupsInput) SetMaxResults(v int64) *ListGroupsInput { 16135 s.MaxResults = &v 16136 return s 16137} 16138 16139// SetNamespace sets the Namespace field's value. 16140func (s *ListGroupsInput) SetNamespace(v string) *ListGroupsInput { 16141 s.Namespace = &v 16142 return s 16143} 16144 16145// SetNextToken sets the NextToken field's value. 16146func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { 16147 s.NextToken = &v 16148 return s 16149} 16150 16151type ListGroupsOutput struct { 16152 _ struct{} `type:"structure"` 16153 16154 // The list of the groups. 16155 GroupList []*Group `type:"list"` 16156 16157 // A pagination token that can be used in a subsequent request. 16158 NextToken *string `type:"string"` 16159 16160 // The AWS request ID for this operation. 16161 RequestId *string `type:"string"` 16162 16163 // The HTTP status of the request. 16164 Status *int64 `location:"statusCode" type:"integer"` 16165} 16166 16167// String returns the string representation 16168func (s ListGroupsOutput) String() string { 16169 return awsutil.Prettify(s) 16170} 16171 16172// GoString returns the string representation 16173func (s ListGroupsOutput) GoString() string { 16174 return s.String() 16175} 16176 16177// SetGroupList sets the GroupList field's value. 16178func (s *ListGroupsOutput) SetGroupList(v []*Group) *ListGroupsOutput { 16179 s.GroupList = v 16180 return s 16181} 16182 16183// SetNextToken sets the NextToken field's value. 16184func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { 16185 s.NextToken = &v 16186 return s 16187} 16188 16189// SetRequestId sets the RequestId field's value. 16190func (s *ListGroupsOutput) SetRequestId(v string) *ListGroupsOutput { 16191 s.RequestId = &v 16192 return s 16193} 16194 16195// SetStatus sets the Status field's value. 16196func (s *ListGroupsOutput) SetStatus(v int64) *ListGroupsOutput { 16197 s.Status = &v 16198 return s 16199} 16200 16201type ListIAMPolicyAssignmentsForUserInput struct { 16202 _ struct{} `type:"structure"` 16203 16204 // The ID of the AWS account that contains the assignments. 16205 // 16206 // AwsAccountId is a required field 16207 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 16208 16209 // The maximum number of results to be returned per request. 16210 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 16211 16212 // The namespace of the assignment. 16213 // 16214 // Namespace is a required field 16215 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 16216 16217 // The token for the next set of results, or null if there are no more results. 16218 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 16219 16220 // The name of the user. 16221 // 16222 // UserName is a required field 16223 UserName *string `location:"uri" locationName:"UserName" min:"1" type:"string" required:"true"` 16224} 16225 16226// String returns the string representation 16227func (s ListIAMPolicyAssignmentsForUserInput) String() string { 16228 return awsutil.Prettify(s) 16229} 16230 16231// GoString returns the string representation 16232func (s ListIAMPolicyAssignmentsForUserInput) GoString() string { 16233 return s.String() 16234} 16235 16236// Validate inspects the fields of the type to determine if they are valid. 16237func (s *ListIAMPolicyAssignmentsForUserInput) Validate() error { 16238 invalidParams := request.ErrInvalidParams{Context: "ListIAMPolicyAssignmentsForUserInput"} 16239 if s.AwsAccountId == nil { 16240 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 16241 } 16242 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 16243 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 16244 } 16245 if s.MaxResults != nil && *s.MaxResults < 1 { 16246 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 16247 } 16248 if s.Namespace == nil { 16249 invalidParams.Add(request.NewErrParamRequired("Namespace")) 16250 } 16251 if s.Namespace != nil && len(*s.Namespace) < 1 { 16252 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 16253 } 16254 if s.UserName == nil { 16255 invalidParams.Add(request.NewErrParamRequired("UserName")) 16256 } 16257 if s.UserName != nil && len(*s.UserName) < 1 { 16258 invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) 16259 } 16260 16261 if invalidParams.Len() > 0 { 16262 return invalidParams 16263 } 16264 return nil 16265} 16266 16267// SetAwsAccountId sets the AwsAccountId field's value. 16268func (s *ListIAMPolicyAssignmentsForUserInput) SetAwsAccountId(v string) *ListIAMPolicyAssignmentsForUserInput { 16269 s.AwsAccountId = &v 16270 return s 16271} 16272 16273// SetMaxResults sets the MaxResults field's value. 16274func (s *ListIAMPolicyAssignmentsForUserInput) SetMaxResults(v int64) *ListIAMPolicyAssignmentsForUserInput { 16275 s.MaxResults = &v 16276 return s 16277} 16278 16279// SetNamespace sets the Namespace field's value. 16280func (s *ListIAMPolicyAssignmentsForUserInput) SetNamespace(v string) *ListIAMPolicyAssignmentsForUserInput { 16281 s.Namespace = &v 16282 return s 16283} 16284 16285// SetNextToken sets the NextToken field's value. 16286func (s *ListIAMPolicyAssignmentsForUserInput) SetNextToken(v string) *ListIAMPolicyAssignmentsForUserInput { 16287 s.NextToken = &v 16288 return s 16289} 16290 16291// SetUserName sets the UserName field's value. 16292func (s *ListIAMPolicyAssignmentsForUserInput) SetUserName(v string) *ListIAMPolicyAssignmentsForUserInput { 16293 s.UserName = &v 16294 return s 16295} 16296 16297type ListIAMPolicyAssignmentsForUserOutput struct { 16298 _ struct{} `type:"structure"` 16299 16300 // The active assignments for this user. 16301 ActiveAssignments []*ActiveIAMPolicyAssignment `type:"list"` 16302 16303 // The token for the next set of results, or null if there are no more results. 16304 NextToken *string `type:"string"` 16305 16306 // The AWS request ID for this operation. 16307 RequestId *string `type:"string"` 16308 16309 // The HTTP status of the request. 16310 Status *int64 `location:"statusCode" type:"integer"` 16311} 16312 16313// String returns the string representation 16314func (s ListIAMPolicyAssignmentsForUserOutput) String() string { 16315 return awsutil.Prettify(s) 16316} 16317 16318// GoString returns the string representation 16319func (s ListIAMPolicyAssignmentsForUserOutput) GoString() string { 16320 return s.String() 16321} 16322 16323// SetActiveAssignments sets the ActiveAssignments field's value. 16324func (s *ListIAMPolicyAssignmentsForUserOutput) SetActiveAssignments(v []*ActiveIAMPolicyAssignment) *ListIAMPolicyAssignmentsForUserOutput { 16325 s.ActiveAssignments = v 16326 return s 16327} 16328 16329// SetNextToken sets the NextToken field's value. 16330func (s *ListIAMPolicyAssignmentsForUserOutput) SetNextToken(v string) *ListIAMPolicyAssignmentsForUserOutput { 16331 s.NextToken = &v 16332 return s 16333} 16334 16335// SetRequestId sets the RequestId field's value. 16336func (s *ListIAMPolicyAssignmentsForUserOutput) SetRequestId(v string) *ListIAMPolicyAssignmentsForUserOutput { 16337 s.RequestId = &v 16338 return s 16339} 16340 16341// SetStatus sets the Status field's value. 16342func (s *ListIAMPolicyAssignmentsForUserOutput) SetStatus(v int64) *ListIAMPolicyAssignmentsForUserOutput { 16343 s.Status = &v 16344 return s 16345} 16346 16347type ListIAMPolicyAssignmentsInput struct { 16348 _ struct{} `type:"structure"` 16349 16350 // The status of the assignments. 16351 AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` 16352 16353 // The ID of the AWS account that contains these IAM policy assignments. 16354 // 16355 // AwsAccountId is a required field 16356 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 16357 16358 // The maximum number of results to be returned per request. 16359 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 16360 16361 // The namespace for the assignments. 16362 // 16363 // Namespace is a required field 16364 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 16365 16366 // The token for the next set of results, or null if there are no more results. 16367 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 16368} 16369 16370// String returns the string representation 16371func (s ListIAMPolicyAssignmentsInput) String() string { 16372 return awsutil.Prettify(s) 16373} 16374 16375// GoString returns the string representation 16376func (s ListIAMPolicyAssignmentsInput) GoString() string { 16377 return s.String() 16378} 16379 16380// Validate inspects the fields of the type to determine if they are valid. 16381func (s *ListIAMPolicyAssignmentsInput) Validate() error { 16382 invalidParams := request.ErrInvalidParams{Context: "ListIAMPolicyAssignmentsInput"} 16383 if s.AwsAccountId == nil { 16384 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 16385 } 16386 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 16387 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 16388 } 16389 if s.MaxResults != nil && *s.MaxResults < 1 { 16390 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 16391 } 16392 if s.Namespace == nil { 16393 invalidParams.Add(request.NewErrParamRequired("Namespace")) 16394 } 16395 if s.Namespace != nil && len(*s.Namespace) < 1 { 16396 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 16397 } 16398 16399 if invalidParams.Len() > 0 { 16400 return invalidParams 16401 } 16402 return nil 16403} 16404 16405// SetAssignmentStatus sets the AssignmentStatus field's value. 16406func (s *ListIAMPolicyAssignmentsInput) SetAssignmentStatus(v string) *ListIAMPolicyAssignmentsInput { 16407 s.AssignmentStatus = &v 16408 return s 16409} 16410 16411// SetAwsAccountId sets the AwsAccountId field's value. 16412func (s *ListIAMPolicyAssignmentsInput) SetAwsAccountId(v string) *ListIAMPolicyAssignmentsInput { 16413 s.AwsAccountId = &v 16414 return s 16415} 16416 16417// SetMaxResults sets the MaxResults field's value. 16418func (s *ListIAMPolicyAssignmentsInput) SetMaxResults(v int64) *ListIAMPolicyAssignmentsInput { 16419 s.MaxResults = &v 16420 return s 16421} 16422 16423// SetNamespace sets the Namespace field's value. 16424func (s *ListIAMPolicyAssignmentsInput) SetNamespace(v string) *ListIAMPolicyAssignmentsInput { 16425 s.Namespace = &v 16426 return s 16427} 16428 16429// SetNextToken sets the NextToken field's value. 16430func (s *ListIAMPolicyAssignmentsInput) SetNextToken(v string) *ListIAMPolicyAssignmentsInput { 16431 s.NextToken = &v 16432 return s 16433} 16434 16435type ListIAMPolicyAssignmentsOutput struct { 16436 _ struct{} `type:"structure"` 16437 16438 // Information describing the IAM policy assignments. 16439 IAMPolicyAssignments []*IAMPolicyAssignmentSummary `type:"list"` 16440 16441 // The token for the next set of results, or null if there are no more results. 16442 NextToken *string `type:"string"` 16443 16444 // The AWS request ID for this operation. 16445 RequestId *string `type:"string"` 16446 16447 // The HTTP status of the request. 16448 Status *int64 `location:"statusCode" type:"integer"` 16449} 16450 16451// String returns the string representation 16452func (s ListIAMPolicyAssignmentsOutput) String() string { 16453 return awsutil.Prettify(s) 16454} 16455 16456// GoString returns the string representation 16457func (s ListIAMPolicyAssignmentsOutput) GoString() string { 16458 return s.String() 16459} 16460 16461// SetIAMPolicyAssignments sets the IAMPolicyAssignments field's value. 16462func (s *ListIAMPolicyAssignmentsOutput) SetIAMPolicyAssignments(v []*IAMPolicyAssignmentSummary) *ListIAMPolicyAssignmentsOutput { 16463 s.IAMPolicyAssignments = v 16464 return s 16465} 16466 16467// SetNextToken sets the NextToken field's value. 16468func (s *ListIAMPolicyAssignmentsOutput) SetNextToken(v string) *ListIAMPolicyAssignmentsOutput { 16469 s.NextToken = &v 16470 return s 16471} 16472 16473// SetRequestId sets the RequestId field's value. 16474func (s *ListIAMPolicyAssignmentsOutput) SetRequestId(v string) *ListIAMPolicyAssignmentsOutput { 16475 s.RequestId = &v 16476 return s 16477} 16478 16479// SetStatus sets the Status field's value. 16480func (s *ListIAMPolicyAssignmentsOutput) SetStatus(v int64) *ListIAMPolicyAssignmentsOutput { 16481 s.Status = &v 16482 return s 16483} 16484 16485type ListIngestionsInput struct { 16486 _ struct{} `type:"structure"` 16487 16488 // The AWS account ID. 16489 // 16490 // AwsAccountId is a required field 16491 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 16492 16493 // The ID of the dataset used in the ingestion. 16494 // 16495 // DataSetId is a required field 16496 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 16497 16498 // The maximum number of results to be returned per request. 16499 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 16500 16501 // The token for the next set of results, or null if there are no more results. 16502 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 16503} 16504 16505// String returns the string representation 16506func (s ListIngestionsInput) String() string { 16507 return awsutil.Prettify(s) 16508} 16509 16510// GoString returns the string representation 16511func (s ListIngestionsInput) GoString() string { 16512 return s.String() 16513} 16514 16515// Validate inspects the fields of the type to determine if they are valid. 16516func (s *ListIngestionsInput) Validate() error { 16517 invalidParams := request.ErrInvalidParams{Context: "ListIngestionsInput"} 16518 if s.AwsAccountId == nil { 16519 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 16520 } 16521 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 16522 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 16523 } 16524 if s.DataSetId == nil { 16525 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 16526 } 16527 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 16528 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 16529 } 16530 if s.MaxResults != nil && *s.MaxResults < 1 { 16531 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 16532 } 16533 16534 if invalidParams.Len() > 0 { 16535 return invalidParams 16536 } 16537 return nil 16538} 16539 16540// SetAwsAccountId sets the AwsAccountId field's value. 16541func (s *ListIngestionsInput) SetAwsAccountId(v string) *ListIngestionsInput { 16542 s.AwsAccountId = &v 16543 return s 16544} 16545 16546// SetDataSetId sets the DataSetId field's value. 16547func (s *ListIngestionsInput) SetDataSetId(v string) *ListIngestionsInput { 16548 s.DataSetId = &v 16549 return s 16550} 16551 16552// SetMaxResults sets the MaxResults field's value. 16553func (s *ListIngestionsInput) SetMaxResults(v int64) *ListIngestionsInput { 16554 s.MaxResults = &v 16555 return s 16556} 16557 16558// SetNextToken sets the NextToken field's value. 16559func (s *ListIngestionsInput) SetNextToken(v string) *ListIngestionsInput { 16560 s.NextToken = &v 16561 return s 16562} 16563 16564type ListIngestionsOutput struct { 16565 _ struct{} `type:"structure"` 16566 16567 // A list of the ingestions. 16568 Ingestions []*Ingestion `type:"list"` 16569 16570 // The token for the next set of results, or null if there are no more results. 16571 NextToken *string `type:"string"` 16572 16573 // The AWS request ID for this operation. 16574 RequestId *string `type:"string"` 16575 16576 // The HTTP status of the request. 16577 Status *int64 `location:"statusCode" type:"integer"` 16578} 16579 16580// String returns the string representation 16581func (s ListIngestionsOutput) String() string { 16582 return awsutil.Prettify(s) 16583} 16584 16585// GoString returns the string representation 16586func (s ListIngestionsOutput) GoString() string { 16587 return s.String() 16588} 16589 16590// SetIngestions sets the Ingestions field's value. 16591func (s *ListIngestionsOutput) SetIngestions(v []*Ingestion) *ListIngestionsOutput { 16592 s.Ingestions = v 16593 return s 16594} 16595 16596// SetNextToken sets the NextToken field's value. 16597func (s *ListIngestionsOutput) SetNextToken(v string) *ListIngestionsOutput { 16598 s.NextToken = &v 16599 return s 16600} 16601 16602// SetRequestId sets the RequestId field's value. 16603func (s *ListIngestionsOutput) SetRequestId(v string) *ListIngestionsOutput { 16604 s.RequestId = &v 16605 return s 16606} 16607 16608// SetStatus sets the Status field's value. 16609func (s *ListIngestionsOutput) SetStatus(v int64) *ListIngestionsOutput { 16610 s.Status = &v 16611 return s 16612} 16613 16614type ListTagsForResourceInput struct { 16615 _ struct{} `type:"structure"` 16616 16617 // The Amazon Resource Name (ARN) of the resource that you want a list of tags 16618 // for. 16619 // 16620 // ResourceArn is a required field 16621 ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` 16622} 16623 16624// String returns the string representation 16625func (s ListTagsForResourceInput) String() string { 16626 return awsutil.Prettify(s) 16627} 16628 16629// GoString returns the string representation 16630func (s ListTagsForResourceInput) GoString() string { 16631 return s.String() 16632} 16633 16634// Validate inspects the fields of the type to determine if they are valid. 16635func (s *ListTagsForResourceInput) Validate() error { 16636 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 16637 if s.ResourceArn == nil { 16638 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 16639 } 16640 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 16641 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 16642 } 16643 16644 if invalidParams.Len() > 0 { 16645 return invalidParams 16646 } 16647 return nil 16648} 16649 16650// SetResourceArn sets the ResourceArn field's value. 16651func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 16652 s.ResourceArn = &v 16653 return s 16654} 16655 16656type ListTagsForResourceOutput struct { 16657 _ struct{} `type:"structure"` 16658 16659 // The AWS request ID for this operation. 16660 RequestId *string `type:"string"` 16661 16662 // The HTTP status of the request. 16663 Status *int64 `location:"statusCode" type:"integer"` 16664 16665 // Contains a map of the key-value pairs for the resource tag or tags assigned 16666 // to the resource. 16667 Tags []*Tag `min:"1" type:"list"` 16668} 16669 16670// String returns the string representation 16671func (s ListTagsForResourceOutput) String() string { 16672 return awsutil.Prettify(s) 16673} 16674 16675// GoString returns the string representation 16676func (s ListTagsForResourceOutput) GoString() string { 16677 return s.String() 16678} 16679 16680// SetRequestId sets the RequestId field's value. 16681func (s *ListTagsForResourceOutput) SetRequestId(v string) *ListTagsForResourceOutput { 16682 s.RequestId = &v 16683 return s 16684} 16685 16686// SetStatus sets the Status field's value. 16687func (s *ListTagsForResourceOutput) SetStatus(v int64) *ListTagsForResourceOutput { 16688 s.Status = &v 16689 return s 16690} 16691 16692// SetTags sets the Tags field's value. 16693func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 16694 s.Tags = v 16695 return s 16696} 16697 16698type ListTemplateAliasesInput struct { 16699 _ struct{} `type:"structure"` 16700 16701 // The ID of the AWS account that contains the template aliases that you're 16702 // listing. 16703 // 16704 // AwsAccountId is a required field 16705 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 16706 16707 // The maximum number of results to be returned per request. 16708 MaxResults *int64 `location:"querystring" locationName:"max-result" min:"1" type:"integer"` 16709 16710 // The token for the next set of results, or null if there are no more results. 16711 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 16712 16713 // The ID for the template. 16714 // 16715 // TemplateId is a required field 16716 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 16717} 16718 16719// String returns the string representation 16720func (s ListTemplateAliasesInput) String() string { 16721 return awsutil.Prettify(s) 16722} 16723 16724// GoString returns the string representation 16725func (s ListTemplateAliasesInput) GoString() string { 16726 return s.String() 16727} 16728 16729// Validate inspects the fields of the type to determine if they are valid. 16730func (s *ListTemplateAliasesInput) Validate() error { 16731 invalidParams := request.ErrInvalidParams{Context: "ListTemplateAliasesInput"} 16732 if s.AwsAccountId == nil { 16733 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 16734 } 16735 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 16736 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 16737 } 16738 if s.MaxResults != nil && *s.MaxResults < 1 { 16739 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 16740 } 16741 if s.TemplateId == nil { 16742 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 16743 } 16744 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 16745 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 16746 } 16747 16748 if invalidParams.Len() > 0 { 16749 return invalidParams 16750 } 16751 return nil 16752} 16753 16754// SetAwsAccountId sets the AwsAccountId field's value. 16755func (s *ListTemplateAliasesInput) SetAwsAccountId(v string) *ListTemplateAliasesInput { 16756 s.AwsAccountId = &v 16757 return s 16758} 16759 16760// SetMaxResults sets the MaxResults field's value. 16761func (s *ListTemplateAliasesInput) SetMaxResults(v int64) *ListTemplateAliasesInput { 16762 s.MaxResults = &v 16763 return s 16764} 16765 16766// SetNextToken sets the NextToken field's value. 16767func (s *ListTemplateAliasesInput) SetNextToken(v string) *ListTemplateAliasesInput { 16768 s.NextToken = &v 16769 return s 16770} 16771 16772// SetTemplateId sets the TemplateId field's value. 16773func (s *ListTemplateAliasesInput) SetTemplateId(v string) *ListTemplateAliasesInput { 16774 s.TemplateId = &v 16775 return s 16776} 16777 16778type ListTemplateAliasesOutput struct { 16779 _ struct{} `type:"structure"` 16780 16781 // The token for the next set of results, or null if there are no more results. 16782 NextToken *string `type:"string"` 16783 16784 // The AWS request ID for this operation. 16785 RequestId *string `type:"string"` 16786 16787 // The HTTP status of the request. 16788 Status *int64 `location:"statusCode" type:"integer"` 16789 16790 // A structure containing the list of the template's aliases. 16791 TemplateAliasList []*TemplateAlias `type:"list"` 16792} 16793 16794// String returns the string representation 16795func (s ListTemplateAliasesOutput) String() string { 16796 return awsutil.Prettify(s) 16797} 16798 16799// GoString returns the string representation 16800func (s ListTemplateAliasesOutput) GoString() string { 16801 return s.String() 16802} 16803 16804// SetNextToken sets the NextToken field's value. 16805func (s *ListTemplateAliasesOutput) SetNextToken(v string) *ListTemplateAliasesOutput { 16806 s.NextToken = &v 16807 return s 16808} 16809 16810// SetRequestId sets the RequestId field's value. 16811func (s *ListTemplateAliasesOutput) SetRequestId(v string) *ListTemplateAliasesOutput { 16812 s.RequestId = &v 16813 return s 16814} 16815 16816// SetStatus sets the Status field's value. 16817func (s *ListTemplateAliasesOutput) SetStatus(v int64) *ListTemplateAliasesOutput { 16818 s.Status = &v 16819 return s 16820} 16821 16822// SetTemplateAliasList sets the TemplateAliasList field's value. 16823func (s *ListTemplateAliasesOutput) SetTemplateAliasList(v []*TemplateAlias) *ListTemplateAliasesOutput { 16824 s.TemplateAliasList = v 16825 return s 16826} 16827 16828type ListTemplateVersionsInput struct { 16829 _ struct{} `type:"structure"` 16830 16831 // The ID of the AWS account that contains the templates that you're listing. 16832 // 16833 // AwsAccountId is a required field 16834 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 16835 16836 // The maximum number of results to be returned per request. 16837 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 16838 16839 // The token for the next set of results, or null if there are no more results. 16840 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 16841 16842 // The ID for the template. 16843 // 16844 // TemplateId is a required field 16845 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 16846} 16847 16848// String returns the string representation 16849func (s ListTemplateVersionsInput) String() string { 16850 return awsutil.Prettify(s) 16851} 16852 16853// GoString returns the string representation 16854func (s ListTemplateVersionsInput) GoString() string { 16855 return s.String() 16856} 16857 16858// Validate inspects the fields of the type to determine if they are valid. 16859func (s *ListTemplateVersionsInput) Validate() error { 16860 invalidParams := request.ErrInvalidParams{Context: "ListTemplateVersionsInput"} 16861 if s.AwsAccountId == nil { 16862 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 16863 } 16864 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 16865 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 16866 } 16867 if s.MaxResults != nil && *s.MaxResults < 1 { 16868 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 16869 } 16870 if s.TemplateId == nil { 16871 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 16872 } 16873 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 16874 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 16875 } 16876 16877 if invalidParams.Len() > 0 { 16878 return invalidParams 16879 } 16880 return nil 16881} 16882 16883// SetAwsAccountId sets the AwsAccountId field's value. 16884func (s *ListTemplateVersionsInput) SetAwsAccountId(v string) *ListTemplateVersionsInput { 16885 s.AwsAccountId = &v 16886 return s 16887} 16888 16889// SetMaxResults sets the MaxResults field's value. 16890func (s *ListTemplateVersionsInput) SetMaxResults(v int64) *ListTemplateVersionsInput { 16891 s.MaxResults = &v 16892 return s 16893} 16894 16895// SetNextToken sets the NextToken field's value. 16896func (s *ListTemplateVersionsInput) SetNextToken(v string) *ListTemplateVersionsInput { 16897 s.NextToken = &v 16898 return s 16899} 16900 16901// SetTemplateId sets the TemplateId field's value. 16902func (s *ListTemplateVersionsInput) SetTemplateId(v string) *ListTemplateVersionsInput { 16903 s.TemplateId = &v 16904 return s 16905} 16906 16907type ListTemplateVersionsOutput struct { 16908 _ struct{} `type:"structure"` 16909 16910 // The token for the next set of results, or null if there are no more results. 16911 NextToken *string `type:"string"` 16912 16913 // The AWS request ID for this operation. 16914 RequestId *string `type:"string"` 16915 16916 // The HTTP status of the request. 16917 Status *int64 `location:"statusCode" type:"integer"` 16918 16919 // A structure containing a list of all the versions of the specified template. 16920 TemplateVersionSummaryList []*TemplateVersionSummary `type:"list"` 16921} 16922 16923// String returns the string representation 16924func (s ListTemplateVersionsOutput) String() string { 16925 return awsutil.Prettify(s) 16926} 16927 16928// GoString returns the string representation 16929func (s ListTemplateVersionsOutput) GoString() string { 16930 return s.String() 16931} 16932 16933// SetNextToken sets the NextToken field's value. 16934func (s *ListTemplateVersionsOutput) SetNextToken(v string) *ListTemplateVersionsOutput { 16935 s.NextToken = &v 16936 return s 16937} 16938 16939// SetRequestId sets the RequestId field's value. 16940func (s *ListTemplateVersionsOutput) SetRequestId(v string) *ListTemplateVersionsOutput { 16941 s.RequestId = &v 16942 return s 16943} 16944 16945// SetStatus sets the Status field's value. 16946func (s *ListTemplateVersionsOutput) SetStatus(v int64) *ListTemplateVersionsOutput { 16947 s.Status = &v 16948 return s 16949} 16950 16951// SetTemplateVersionSummaryList sets the TemplateVersionSummaryList field's value. 16952func (s *ListTemplateVersionsOutput) SetTemplateVersionSummaryList(v []*TemplateVersionSummary) *ListTemplateVersionsOutput { 16953 s.TemplateVersionSummaryList = v 16954 return s 16955} 16956 16957type ListTemplatesInput struct { 16958 _ struct{} `type:"structure"` 16959 16960 // The ID of the AWS account that contains the templates that you're listing. 16961 // 16962 // AwsAccountId is a required field 16963 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 16964 16965 // The maximum number of results to be returned per request. 16966 MaxResults *int64 `location:"querystring" locationName:"max-result" min:"1" type:"integer"` 16967 16968 // The token for the next set of results, or null if there are no more results. 16969 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 16970} 16971 16972// String returns the string representation 16973func (s ListTemplatesInput) String() string { 16974 return awsutil.Prettify(s) 16975} 16976 16977// GoString returns the string representation 16978func (s ListTemplatesInput) GoString() string { 16979 return s.String() 16980} 16981 16982// Validate inspects the fields of the type to determine if they are valid. 16983func (s *ListTemplatesInput) Validate() error { 16984 invalidParams := request.ErrInvalidParams{Context: "ListTemplatesInput"} 16985 if s.AwsAccountId == nil { 16986 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 16987 } 16988 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 16989 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 16990 } 16991 if s.MaxResults != nil && *s.MaxResults < 1 { 16992 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 16993 } 16994 16995 if invalidParams.Len() > 0 { 16996 return invalidParams 16997 } 16998 return nil 16999} 17000 17001// SetAwsAccountId sets the AwsAccountId field's value. 17002func (s *ListTemplatesInput) SetAwsAccountId(v string) *ListTemplatesInput { 17003 s.AwsAccountId = &v 17004 return s 17005} 17006 17007// SetMaxResults sets the MaxResults field's value. 17008func (s *ListTemplatesInput) SetMaxResults(v int64) *ListTemplatesInput { 17009 s.MaxResults = &v 17010 return s 17011} 17012 17013// SetNextToken sets the NextToken field's value. 17014func (s *ListTemplatesInput) SetNextToken(v string) *ListTemplatesInput { 17015 s.NextToken = &v 17016 return s 17017} 17018 17019type ListTemplatesOutput struct { 17020 _ struct{} `type:"structure"` 17021 17022 // The token for the next set of results, or null if there are no more results. 17023 NextToken *string `type:"string"` 17024 17025 // The AWS request ID for this operation. 17026 RequestId *string `type:"string"` 17027 17028 // The HTTP status of the request. 17029 Status *int64 `location:"statusCode" type:"integer"` 17030 17031 // A structure containing information about the templates in the list. 17032 TemplateSummaryList []*TemplateSummary `type:"list"` 17033} 17034 17035// String returns the string representation 17036func (s ListTemplatesOutput) String() string { 17037 return awsutil.Prettify(s) 17038} 17039 17040// GoString returns the string representation 17041func (s ListTemplatesOutput) GoString() string { 17042 return s.String() 17043} 17044 17045// SetNextToken sets the NextToken field's value. 17046func (s *ListTemplatesOutput) SetNextToken(v string) *ListTemplatesOutput { 17047 s.NextToken = &v 17048 return s 17049} 17050 17051// SetRequestId sets the RequestId field's value. 17052func (s *ListTemplatesOutput) SetRequestId(v string) *ListTemplatesOutput { 17053 s.RequestId = &v 17054 return s 17055} 17056 17057// SetStatus sets the Status field's value. 17058func (s *ListTemplatesOutput) SetStatus(v int64) *ListTemplatesOutput { 17059 s.Status = &v 17060 return s 17061} 17062 17063// SetTemplateSummaryList sets the TemplateSummaryList field's value. 17064func (s *ListTemplatesOutput) SetTemplateSummaryList(v []*TemplateSummary) *ListTemplatesOutput { 17065 s.TemplateSummaryList = v 17066 return s 17067} 17068 17069type ListUserGroupsInput struct { 17070 _ struct{} `type:"structure"` 17071 17072 // The AWS account ID that the user is in. Currently, you use the ID for the 17073 // AWS account that contains your Amazon QuickSight account. 17074 // 17075 // AwsAccountId is a required field 17076 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 17077 17078 // The maximum number of results to return from this request. 17079 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 17080 17081 // The namespace. Currently, you should set this to default. 17082 // 17083 // Namespace is a required field 17084 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 17085 17086 // A pagination token that can be used in a subsequent request. 17087 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 17088 17089 // The Amazon QuickSight user name that you want to list group memberships for. 17090 // 17091 // UserName is a required field 17092 UserName *string `location:"uri" locationName:"UserName" min:"1" type:"string" required:"true"` 17093} 17094 17095// String returns the string representation 17096func (s ListUserGroupsInput) String() string { 17097 return awsutil.Prettify(s) 17098} 17099 17100// GoString returns the string representation 17101func (s ListUserGroupsInput) GoString() string { 17102 return s.String() 17103} 17104 17105// Validate inspects the fields of the type to determine if they are valid. 17106func (s *ListUserGroupsInput) Validate() error { 17107 invalidParams := request.ErrInvalidParams{Context: "ListUserGroupsInput"} 17108 if s.AwsAccountId == nil { 17109 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 17110 } 17111 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 17112 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 17113 } 17114 if s.MaxResults != nil && *s.MaxResults < 1 { 17115 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 17116 } 17117 if s.Namespace == nil { 17118 invalidParams.Add(request.NewErrParamRequired("Namespace")) 17119 } 17120 if s.Namespace != nil && len(*s.Namespace) < 1 { 17121 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 17122 } 17123 if s.UserName == nil { 17124 invalidParams.Add(request.NewErrParamRequired("UserName")) 17125 } 17126 if s.UserName != nil && len(*s.UserName) < 1 { 17127 invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) 17128 } 17129 17130 if invalidParams.Len() > 0 { 17131 return invalidParams 17132 } 17133 return nil 17134} 17135 17136// SetAwsAccountId sets the AwsAccountId field's value. 17137func (s *ListUserGroupsInput) SetAwsAccountId(v string) *ListUserGroupsInput { 17138 s.AwsAccountId = &v 17139 return s 17140} 17141 17142// SetMaxResults sets the MaxResults field's value. 17143func (s *ListUserGroupsInput) SetMaxResults(v int64) *ListUserGroupsInput { 17144 s.MaxResults = &v 17145 return s 17146} 17147 17148// SetNamespace sets the Namespace field's value. 17149func (s *ListUserGroupsInput) SetNamespace(v string) *ListUserGroupsInput { 17150 s.Namespace = &v 17151 return s 17152} 17153 17154// SetNextToken sets the NextToken field's value. 17155func (s *ListUserGroupsInput) SetNextToken(v string) *ListUserGroupsInput { 17156 s.NextToken = &v 17157 return s 17158} 17159 17160// SetUserName sets the UserName field's value. 17161func (s *ListUserGroupsInput) SetUserName(v string) *ListUserGroupsInput { 17162 s.UserName = &v 17163 return s 17164} 17165 17166type ListUserGroupsOutput struct { 17167 _ struct{} `type:"structure"` 17168 17169 // The list of groups the user is a member of. 17170 GroupList []*Group `type:"list"` 17171 17172 // A pagination token that can be used in a subsequent request. 17173 NextToken *string `type:"string"` 17174 17175 // The AWS request ID for this operation. 17176 RequestId *string `type:"string"` 17177 17178 // The HTTP status of the request. 17179 Status *int64 `location:"statusCode" type:"integer"` 17180} 17181 17182// String returns the string representation 17183func (s ListUserGroupsOutput) String() string { 17184 return awsutil.Prettify(s) 17185} 17186 17187// GoString returns the string representation 17188func (s ListUserGroupsOutput) GoString() string { 17189 return s.String() 17190} 17191 17192// SetGroupList sets the GroupList field's value. 17193func (s *ListUserGroupsOutput) SetGroupList(v []*Group) *ListUserGroupsOutput { 17194 s.GroupList = v 17195 return s 17196} 17197 17198// SetNextToken sets the NextToken field's value. 17199func (s *ListUserGroupsOutput) SetNextToken(v string) *ListUserGroupsOutput { 17200 s.NextToken = &v 17201 return s 17202} 17203 17204// SetRequestId sets the RequestId field's value. 17205func (s *ListUserGroupsOutput) SetRequestId(v string) *ListUserGroupsOutput { 17206 s.RequestId = &v 17207 return s 17208} 17209 17210// SetStatus sets the Status field's value. 17211func (s *ListUserGroupsOutput) SetStatus(v int64) *ListUserGroupsOutput { 17212 s.Status = &v 17213 return s 17214} 17215 17216type ListUsersInput struct { 17217 _ struct{} `type:"structure"` 17218 17219 // The ID for the AWS account that the user is in. Currently, you use the ID 17220 // for the AWS account that contains your Amazon QuickSight account. 17221 // 17222 // AwsAccountId is a required field 17223 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 17224 17225 // The maximum number of results to return from this request. 17226 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 17227 17228 // The namespace. Currently, you should set this to default. 17229 // 17230 // Namespace is a required field 17231 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 17232 17233 // A pagination token that can be used in a subsequent request. 17234 NextToken *string `location:"querystring" locationName:"next-token" type:"string"` 17235} 17236 17237// String returns the string representation 17238func (s ListUsersInput) String() string { 17239 return awsutil.Prettify(s) 17240} 17241 17242// GoString returns the string representation 17243func (s ListUsersInput) GoString() string { 17244 return s.String() 17245} 17246 17247// Validate inspects the fields of the type to determine if they are valid. 17248func (s *ListUsersInput) Validate() error { 17249 invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} 17250 if s.AwsAccountId == nil { 17251 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 17252 } 17253 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 17254 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 17255 } 17256 if s.MaxResults != nil && *s.MaxResults < 1 { 17257 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 17258 } 17259 if s.Namespace == nil { 17260 invalidParams.Add(request.NewErrParamRequired("Namespace")) 17261 } 17262 if s.Namespace != nil && len(*s.Namespace) < 1 { 17263 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 17264 } 17265 17266 if invalidParams.Len() > 0 { 17267 return invalidParams 17268 } 17269 return nil 17270} 17271 17272// SetAwsAccountId sets the AwsAccountId field's value. 17273func (s *ListUsersInput) SetAwsAccountId(v string) *ListUsersInput { 17274 s.AwsAccountId = &v 17275 return s 17276} 17277 17278// SetMaxResults sets the MaxResults field's value. 17279func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { 17280 s.MaxResults = &v 17281 return s 17282} 17283 17284// SetNamespace sets the Namespace field's value. 17285func (s *ListUsersInput) SetNamespace(v string) *ListUsersInput { 17286 s.Namespace = &v 17287 return s 17288} 17289 17290// SetNextToken sets the NextToken field's value. 17291func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { 17292 s.NextToken = &v 17293 return s 17294} 17295 17296type ListUsersOutput struct { 17297 _ struct{} `type:"structure"` 17298 17299 // A pagination token that can be used in a subsequent request. 17300 NextToken *string `type:"string"` 17301 17302 // The AWS request ID for this operation. 17303 RequestId *string `type:"string"` 17304 17305 // The HTTP status of the request. 17306 Status *int64 `location:"statusCode" type:"integer"` 17307 17308 // The list of users. 17309 UserList []*User `type:"list"` 17310} 17311 17312// String returns the string representation 17313func (s ListUsersOutput) String() string { 17314 return awsutil.Prettify(s) 17315} 17316 17317// GoString returns the string representation 17318func (s ListUsersOutput) GoString() string { 17319 return s.String() 17320} 17321 17322// SetNextToken sets the NextToken field's value. 17323func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { 17324 s.NextToken = &v 17325 return s 17326} 17327 17328// SetRequestId sets the RequestId field's value. 17329func (s *ListUsersOutput) SetRequestId(v string) *ListUsersOutput { 17330 s.RequestId = &v 17331 return s 17332} 17333 17334// SetStatus sets the Status field's value. 17335func (s *ListUsersOutput) SetStatus(v int64) *ListUsersOutput { 17336 s.Status = &v 17337 return s 17338} 17339 17340// SetUserList sets the UserList field's value. 17341func (s *ListUsersOutput) SetUserList(v []*User) *ListUsersOutput { 17342 s.UserList = v 17343 return s 17344} 17345 17346// A logical table is a unit that joins and that data transformations operate 17347// on. A logical table has a source, which can be either a physical table or 17348// result of a join. When a logical table points to a physical table, the logical 17349// table acts as a mutable copy of that physical table through transform operations. 17350type LogicalTable struct { 17351 _ struct{} `type:"structure"` 17352 17353 // A display name for the logical table. 17354 // 17355 // Alias is a required field 17356 Alias *string `min:"1" type:"string" required:"true"` 17357 17358 // Transform operations that act on this logical table. 17359 DataTransforms []*TransformOperation `min:"1" type:"list"` 17360 17361 // Source of this logical table. 17362 // 17363 // Source is a required field 17364 Source *LogicalTableSource `type:"structure" required:"true"` 17365} 17366 17367// String returns the string representation 17368func (s LogicalTable) String() string { 17369 return awsutil.Prettify(s) 17370} 17371 17372// GoString returns the string representation 17373func (s LogicalTable) GoString() string { 17374 return s.String() 17375} 17376 17377// Validate inspects the fields of the type to determine if they are valid. 17378func (s *LogicalTable) Validate() error { 17379 invalidParams := request.ErrInvalidParams{Context: "LogicalTable"} 17380 if s.Alias == nil { 17381 invalidParams.Add(request.NewErrParamRequired("Alias")) 17382 } 17383 if s.Alias != nil && len(*s.Alias) < 1 { 17384 invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) 17385 } 17386 if s.DataTransforms != nil && len(s.DataTransforms) < 1 { 17387 invalidParams.Add(request.NewErrParamMinLen("DataTransforms", 1)) 17388 } 17389 if s.Source == nil { 17390 invalidParams.Add(request.NewErrParamRequired("Source")) 17391 } 17392 if s.DataTransforms != nil { 17393 for i, v := range s.DataTransforms { 17394 if v == nil { 17395 continue 17396 } 17397 if err := v.Validate(); err != nil { 17398 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DataTransforms", i), err.(request.ErrInvalidParams)) 17399 } 17400 } 17401 } 17402 if s.Source != nil { 17403 if err := s.Source.Validate(); err != nil { 17404 invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) 17405 } 17406 } 17407 17408 if invalidParams.Len() > 0 { 17409 return invalidParams 17410 } 17411 return nil 17412} 17413 17414// SetAlias sets the Alias field's value. 17415func (s *LogicalTable) SetAlias(v string) *LogicalTable { 17416 s.Alias = &v 17417 return s 17418} 17419 17420// SetDataTransforms sets the DataTransforms field's value. 17421func (s *LogicalTable) SetDataTransforms(v []*TransformOperation) *LogicalTable { 17422 s.DataTransforms = v 17423 return s 17424} 17425 17426// SetSource sets the Source field's value. 17427func (s *LogicalTable) SetSource(v *LogicalTableSource) *LogicalTable { 17428 s.Source = v 17429 return s 17430} 17431 17432// Information about the source of a logical table. This is a variant type structure. 17433// For this structure to be valid, only one of the attributes can be non-null. 17434type LogicalTableSource struct { 17435 _ struct{} `type:"structure"` 17436 17437 // Specifies the result of a join of two logical tables. 17438 JoinInstruction *JoinInstruction `type:"structure"` 17439 17440 // Physical table ID. 17441 PhysicalTableId *string `min:"1" type:"string"` 17442} 17443 17444// String returns the string representation 17445func (s LogicalTableSource) String() string { 17446 return awsutil.Prettify(s) 17447} 17448 17449// GoString returns the string representation 17450func (s LogicalTableSource) GoString() string { 17451 return s.String() 17452} 17453 17454// Validate inspects the fields of the type to determine if they are valid. 17455func (s *LogicalTableSource) Validate() error { 17456 invalidParams := request.ErrInvalidParams{Context: "LogicalTableSource"} 17457 if s.PhysicalTableId != nil && len(*s.PhysicalTableId) < 1 { 17458 invalidParams.Add(request.NewErrParamMinLen("PhysicalTableId", 1)) 17459 } 17460 if s.JoinInstruction != nil { 17461 if err := s.JoinInstruction.Validate(); err != nil { 17462 invalidParams.AddNested("JoinInstruction", err.(request.ErrInvalidParams)) 17463 } 17464 } 17465 17466 if invalidParams.Len() > 0 { 17467 return invalidParams 17468 } 17469 return nil 17470} 17471 17472// SetJoinInstruction sets the JoinInstruction field's value. 17473func (s *LogicalTableSource) SetJoinInstruction(v *JoinInstruction) *LogicalTableSource { 17474 s.JoinInstruction = v 17475 return s 17476} 17477 17478// SetPhysicalTableId sets the PhysicalTableId field's value. 17479func (s *LogicalTableSource) SetPhysicalTableId(v string) *LogicalTableSource { 17480 s.PhysicalTableId = &v 17481 return s 17482} 17483 17484// Amazon S3 manifest file location. 17485type ManifestFileLocation struct { 17486 _ struct{} `type:"structure"` 17487 17488 // Amazon S3 bucket. 17489 // 17490 // Bucket is a required field 17491 Bucket *string `min:"1" type:"string" required:"true"` 17492 17493 // Amazon S3 key that identifies an object. 17494 // 17495 // Key is a required field 17496 Key *string `min:"1" type:"string" required:"true"` 17497} 17498 17499// String returns the string representation 17500func (s ManifestFileLocation) String() string { 17501 return awsutil.Prettify(s) 17502} 17503 17504// GoString returns the string representation 17505func (s ManifestFileLocation) GoString() string { 17506 return s.String() 17507} 17508 17509// Validate inspects the fields of the type to determine if they are valid. 17510func (s *ManifestFileLocation) Validate() error { 17511 invalidParams := request.ErrInvalidParams{Context: "ManifestFileLocation"} 17512 if s.Bucket == nil { 17513 invalidParams.Add(request.NewErrParamRequired("Bucket")) 17514 } 17515 if s.Bucket != nil && len(*s.Bucket) < 1 { 17516 invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) 17517 } 17518 if s.Key == nil { 17519 invalidParams.Add(request.NewErrParamRequired("Key")) 17520 } 17521 if s.Key != nil && len(*s.Key) < 1 { 17522 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 17523 } 17524 17525 if invalidParams.Len() > 0 { 17526 return invalidParams 17527 } 17528 return nil 17529} 17530 17531// SetBucket sets the Bucket field's value. 17532func (s *ManifestFileLocation) SetBucket(v string) *ManifestFileLocation { 17533 s.Bucket = &v 17534 return s 17535} 17536 17537// SetKey sets the Key field's value. 17538func (s *ManifestFileLocation) SetKey(v string) *ManifestFileLocation { 17539 s.Key = &v 17540 return s 17541} 17542 17543// MariaDB parameters. 17544type MariaDbParameters struct { 17545 _ struct{} `type:"structure"` 17546 17547 // Database. 17548 // 17549 // Database is a required field 17550 Database *string `min:"1" type:"string" required:"true"` 17551 17552 // Host. 17553 // 17554 // Host is a required field 17555 Host *string `min:"1" type:"string" required:"true"` 17556 17557 // Port. 17558 // 17559 // Port is a required field 17560 Port *int64 `min:"1" type:"integer" required:"true"` 17561} 17562 17563// String returns the string representation 17564func (s MariaDbParameters) String() string { 17565 return awsutil.Prettify(s) 17566} 17567 17568// GoString returns the string representation 17569func (s MariaDbParameters) GoString() string { 17570 return s.String() 17571} 17572 17573// Validate inspects the fields of the type to determine if they are valid. 17574func (s *MariaDbParameters) Validate() error { 17575 invalidParams := request.ErrInvalidParams{Context: "MariaDbParameters"} 17576 if s.Database == nil { 17577 invalidParams.Add(request.NewErrParamRequired("Database")) 17578 } 17579 if s.Database != nil && len(*s.Database) < 1 { 17580 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 17581 } 17582 if s.Host == nil { 17583 invalidParams.Add(request.NewErrParamRequired("Host")) 17584 } 17585 if s.Host != nil && len(*s.Host) < 1 { 17586 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 17587 } 17588 if s.Port == nil { 17589 invalidParams.Add(request.NewErrParamRequired("Port")) 17590 } 17591 if s.Port != nil && *s.Port < 1 { 17592 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 17593 } 17594 17595 if invalidParams.Len() > 0 { 17596 return invalidParams 17597 } 17598 return nil 17599} 17600 17601// SetDatabase sets the Database field's value. 17602func (s *MariaDbParameters) SetDatabase(v string) *MariaDbParameters { 17603 s.Database = &v 17604 return s 17605} 17606 17607// SetHost sets the Host field's value. 17608func (s *MariaDbParameters) SetHost(v string) *MariaDbParameters { 17609 s.Host = &v 17610 return s 17611} 17612 17613// SetPort sets the Port field's value. 17614func (s *MariaDbParameters) SetPort(v int64) *MariaDbParameters { 17615 s.Port = &v 17616 return s 17617} 17618 17619// MySQL parameters. 17620type MySqlParameters struct { 17621 _ struct{} `type:"structure"` 17622 17623 // Database. 17624 // 17625 // Database is a required field 17626 Database *string `min:"1" type:"string" required:"true"` 17627 17628 // Host. 17629 // 17630 // Host is a required field 17631 Host *string `min:"1" type:"string" required:"true"` 17632 17633 // Port. 17634 // 17635 // Port is a required field 17636 Port *int64 `min:"1" type:"integer" required:"true"` 17637} 17638 17639// String returns the string representation 17640func (s MySqlParameters) String() string { 17641 return awsutil.Prettify(s) 17642} 17643 17644// GoString returns the string representation 17645func (s MySqlParameters) GoString() string { 17646 return s.String() 17647} 17648 17649// Validate inspects the fields of the type to determine if they are valid. 17650func (s *MySqlParameters) Validate() error { 17651 invalidParams := request.ErrInvalidParams{Context: "MySqlParameters"} 17652 if s.Database == nil { 17653 invalidParams.Add(request.NewErrParamRequired("Database")) 17654 } 17655 if s.Database != nil && len(*s.Database) < 1 { 17656 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 17657 } 17658 if s.Host == nil { 17659 invalidParams.Add(request.NewErrParamRequired("Host")) 17660 } 17661 if s.Host != nil && len(*s.Host) < 1 { 17662 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 17663 } 17664 if s.Port == nil { 17665 invalidParams.Add(request.NewErrParamRequired("Port")) 17666 } 17667 if s.Port != nil && *s.Port < 1 { 17668 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 17669 } 17670 17671 if invalidParams.Len() > 0 { 17672 return invalidParams 17673 } 17674 return nil 17675} 17676 17677// SetDatabase sets the Database field's value. 17678func (s *MySqlParameters) SetDatabase(v string) *MySqlParameters { 17679 s.Database = &v 17680 return s 17681} 17682 17683// SetHost sets the Host field's value. 17684func (s *MySqlParameters) SetHost(v string) *MySqlParameters { 17685 s.Host = &v 17686 return s 17687} 17688 17689// SetPort sets the Port field's value. 17690func (s *MySqlParameters) SetPort(v int64) *MySqlParameters { 17691 s.Port = &v 17692 return s 17693} 17694 17695// Output column. 17696type OutputColumn struct { 17697 _ struct{} `type:"structure"` 17698 17699 // A display name for the dataset. 17700 Name *string `min:"1" type:"string"` 17701 17702 // Type. 17703 Type *string `type:"string" enum:"ColumnDataType"` 17704} 17705 17706// String returns the string representation 17707func (s OutputColumn) String() string { 17708 return awsutil.Prettify(s) 17709} 17710 17711// GoString returns the string representation 17712func (s OutputColumn) GoString() string { 17713 return s.String() 17714} 17715 17716// SetName sets the Name field's value. 17717func (s *OutputColumn) SetName(v string) *OutputColumn { 17718 s.Name = &v 17719 return s 17720} 17721 17722// SetType sets the Type field's value. 17723func (s *OutputColumn) SetType(v string) *OutputColumn { 17724 s.Type = &v 17725 return s 17726} 17727 17728// Parameters. 17729type Parameters struct { 17730 _ struct{} `type:"structure"` 17731 17732 // DateTime parameters. 17733 DateTimeParameters []*DateTimeParameter `type:"list"` 17734 17735 // Decimal parameters. 17736 DecimalParameters []*DecimalParameter `type:"list"` 17737 17738 // Integer parameters. 17739 IntegerParameters []*IntegerParameter `type:"list"` 17740 17741 // String parameters. 17742 StringParameters []*StringParameter `type:"list"` 17743} 17744 17745// String returns the string representation 17746func (s Parameters) String() string { 17747 return awsutil.Prettify(s) 17748} 17749 17750// GoString returns the string representation 17751func (s Parameters) GoString() string { 17752 return s.String() 17753} 17754 17755// Validate inspects the fields of the type to determine if they are valid. 17756func (s *Parameters) Validate() error { 17757 invalidParams := request.ErrInvalidParams{Context: "Parameters"} 17758 if s.DateTimeParameters != nil { 17759 for i, v := range s.DateTimeParameters { 17760 if v == nil { 17761 continue 17762 } 17763 if err := v.Validate(); err != nil { 17764 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DateTimeParameters", i), err.(request.ErrInvalidParams)) 17765 } 17766 } 17767 } 17768 if s.DecimalParameters != nil { 17769 for i, v := range s.DecimalParameters { 17770 if v == nil { 17771 continue 17772 } 17773 if err := v.Validate(); err != nil { 17774 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DecimalParameters", i), err.(request.ErrInvalidParams)) 17775 } 17776 } 17777 } 17778 if s.IntegerParameters != nil { 17779 for i, v := range s.IntegerParameters { 17780 if v == nil { 17781 continue 17782 } 17783 if err := v.Validate(); err != nil { 17784 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "IntegerParameters", i), err.(request.ErrInvalidParams)) 17785 } 17786 } 17787 } 17788 if s.StringParameters != nil { 17789 for i, v := range s.StringParameters { 17790 if v == nil { 17791 continue 17792 } 17793 if err := v.Validate(); err != nil { 17794 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StringParameters", i), err.(request.ErrInvalidParams)) 17795 } 17796 } 17797 } 17798 17799 if invalidParams.Len() > 0 { 17800 return invalidParams 17801 } 17802 return nil 17803} 17804 17805// SetDateTimeParameters sets the DateTimeParameters field's value. 17806func (s *Parameters) SetDateTimeParameters(v []*DateTimeParameter) *Parameters { 17807 s.DateTimeParameters = v 17808 return s 17809} 17810 17811// SetDecimalParameters sets the DecimalParameters field's value. 17812func (s *Parameters) SetDecimalParameters(v []*DecimalParameter) *Parameters { 17813 s.DecimalParameters = v 17814 return s 17815} 17816 17817// SetIntegerParameters sets the IntegerParameters field's value. 17818func (s *Parameters) SetIntegerParameters(v []*IntegerParameter) *Parameters { 17819 s.IntegerParameters = v 17820 return s 17821} 17822 17823// SetStringParameters sets the StringParameters field's value. 17824func (s *Parameters) SetStringParameters(v []*StringParameter) *Parameters { 17825 s.StringParameters = v 17826 return s 17827} 17828 17829// A view of a data source that contains information about the shape of the 17830// data in the underlying source. This is a variant type structure. For this 17831// structure to be valid, only one of the attributes can be non-null. 17832type PhysicalTable struct { 17833 _ struct{} `type:"structure"` 17834 17835 // A physical table type built from the results of the custom SQL query. 17836 CustomSql *CustomSql `type:"structure"` 17837 17838 // A physical table type for relational data sources. 17839 RelationalTable *RelationalTable `type:"structure"` 17840 17841 // A physical table type for as S3 data source. 17842 S3Source *S3Source `type:"structure"` 17843} 17844 17845// String returns the string representation 17846func (s PhysicalTable) String() string { 17847 return awsutil.Prettify(s) 17848} 17849 17850// GoString returns the string representation 17851func (s PhysicalTable) GoString() string { 17852 return s.String() 17853} 17854 17855// Validate inspects the fields of the type to determine if they are valid. 17856func (s *PhysicalTable) Validate() error { 17857 invalidParams := request.ErrInvalidParams{Context: "PhysicalTable"} 17858 if s.CustomSql != nil { 17859 if err := s.CustomSql.Validate(); err != nil { 17860 invalidParams.AddNested("CustomSql", err.(request.ErrInvalidParams)) 17861 } 17862 } 17863 if s.RelationalTable != nil { 17864 if err := s.RelationalTable.Validate(); err != nil { 17865 invalidParams.AddNested("RelationalTable", err.(request.ErrInvalidParams)) 17866 } 17867 } 17868 if s.S3Source != nil { 17869 if err := s.S3Source.Validate(); err != nil { 17870 invalidParams.AddNested("S3Source", err.(request.ErrInvalidParams)) 17871 } 17872 } 17873 17874 if invalidParams.Len() > 0 { 17875 return invalidParams 17876 } 17877 return nil 17878} 17879 17880// SetCustomSql sets the CustomSql field's value. 17881func (s *PhysicalTable) SetCustomSql(v *CustomSql) *PhysicalTable { 17882 s.CustomSql = v 17883 return s 17884} 17885 17886// SetRelationalTable sets the RelationalTable field's value. 17887func (s *PhysicalTable) SetRelationalTable(v *RelationalTable) *PhysicalTable { 17888 s.RelationalTable = v 17889 return s 17890} 17891 17892// SetS3Source sets the S3Source field's value. 17893func (s *PhysicalTable) SetS3Source(v *S3Source) *PhysicalTable { 17894 s.S3Source = v 17895 return s 17896} 17897 17898// PostgreSQL parameters. 17899type PostgreSqlParameters struct { 17900 _ struct{} `type:"structure"` 17901 17902 // Database. 17903 // 17904 // Database is a required field 17905 Database *string `min:"1" type:"string" required:"true"` 17906 17907 // Host. 17908 // 17909 // Host is a required field 17910 Host *string `min:"1" type:"string" required:"true"` 17911 17912 // Port. 17913 // 17914 // Port is a required field 17915 Port *int64 `min:"1" type:"integer" required:"true"` 17916} 17917 17918// String returns the string representation 17919func (s PostgreSqlParameters) String() string { 17920 return awsutil.Prettify(s) 17921} 17922 17923// GoString returns the string representation 17924func (s PostgreSqlParameters) GoString() string { 17925 return s.String() 17926} 17927 17928// Validate inspects the fields of the type to determine if they are valid. 17929func (s *PostgreSqlParameters) Validate() error { 17930 invalidParams := request.ErrInvalidParams{Context: "PostgreSqlParameters"} 17931 if s.Database == nil { 17932 invalidParams.Add(request.NewErrParamRequired("Database")) 17933 } 17934 if s.Database != nil && len(*s.Database) < 1 { 17935 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 17936 } 17937 if s.Host == nil { 17938 invalidParams.Add(request.NewErrParamRequired("Host")) 17939 } 17940 if s.Host != nil && len(*s.Host) < 1 { 17941 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 17942 } 17943 if s.Port == nil { 17944 invalidParams.Add(request.NewErrParamRequired("Port")) 17945 } 17946 if s.Port != nil && *s.Port < 1 { 17947 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 17948 } 17949 17950 if invalidParams.Len() > 0 { 17951 return invalidParams 17952 } 17953 return nil 17954} 17955 17956// SetDatabase sets the Database field's value. 17957func (s *PostgreSqlParameters) SetDatabase(v string) *PostgreSqlParameters { 17958 s.Database = &v 17959 return s 17960} 17961 17962// SetHost sets the Host field's value. 17963func (s *PostgreSqlParameters) SetHost(v string) *PostgreSqlParameters { 17964 s.Host = &v 17965 return s 17966} 17967 17968// SetPort sets the Port field's value. 17969func (s *PostgreSqlParameters) SetPort(v int64) *PostgreSqlParameters { 17970 s.Port = &v 17971 return s 17972} 17973 17974// One or more preconditions aren't met. 17975type PreconditionNotMetException struct { 17976 _ struct{} `type:"structure"` 17977 respMetadata protocol.ResponseMetadata 17978 17979 Message_ *string `locationName:"Message" type:"string"` 17980 17981 // The AWS request ID for this request. 17982 RequestId *string `type:"string"` 17983} 17984 17985// String returns the string representation 17986func (s PreconditionNotMetException) String() string { 17987 return awsutil.Prettify(s) 17988} 17989 17990// GoString returns the string representation 17991func (s PreconditionNotMetException) GoString() string { 17992 return s.String() 17993} 17994 17995func newErrorPreconditionNotMetException(v protocol.ResponseMetadata) error { 17996 return &PreconditionNotMetException{ 17997 respMetadata: v, 17998 } 17999} 18000 18001// Code returns the exception type name. 18002func (s PreconditionNotMetException) Code() string { 18003 return "PreconditionNotMetException" 18004} 18005 18006// Message returns the exception's message. 18007func (s PreconditionNotMetException) Message() string { 18008 if s.Message_ != nil { 18009 return *s.Message_ 18010 } 18011 return "" 18012} 18013 18014// OrigErr always returns nil, satisfies awserr.Error interface. 18015func (s PreconditionNotMetException) OrigErr() error { 18016 return nil 18017} 18018 18019func (s PreconditionNotMetException) Error() string { 18020 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 18021} 18022 18023// Status code returns the HTTP status code for the request's response error. 18024func (s PreconditionNotMetException) StatusCode() int { 18025 return s.respMetadata.StatusCode 18026} 18027 18028// RequestID returns the service's response RequestID for request. 18029func (s PreconditionNotMetException) RequestID() string { 18030 return s.respMetadata.RequestID 18031} 18032 18033// Presto parameters. 18034type PrestoParameters struct { 18035 _ struct{} `type:"structure"` 18036 18037 // Catalog. 18038 // 18039 // Catalog is a required field 18040 Catalog *string `type:"string" required:"true"` 18041 18042 // Host. 18043 // 18044 // Host is a required field 18045 Host *string `min:"1" type:"string" required:"true"` 18046 18047 // Port. 18048 // 18049 // Port is a required field 18050 Port *int64 `min:"1" type:"integer" required:"true"` 18051} 18052 18053// String returns the string representation 18054func (s PrestoParameters) String() string { 18055 return awsutil.Prettify(s) 18056} 18057 18058// GoString returns the string representation 18059func (s PrestoParameters) GoString() string { 18060 return s.String() 18061} 18062 18063// Validate inspects the fields of the type to determine if they are valid. 18064func (s *PrestoParameters) Validate() error { 18065 invalidParams := request.ErrInvalidParams{Context: "PrestoParameters"} 18066 if s.Catalog == nil { 18067 invalidParams.Add(request.NewErrParamRequired("Catalog")) 18068 } 18069 if s.Host == nil { 18070 invalidParams.Add(request.NewErrParamRequired("Host")) 18071 } 18072 if s.Host != nil && len(*s.Host) < 1 { 18073 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 18074 } 18075 if s.Port == nil { 18076 invalidParams.Add(request.NewErrParamRequired("Port")) 18077 } 18078 if s.Port != nil && *s.Port < 1 { 18079 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 18080 } 18081 18082 if invalidParams.Len() > 0 { 18083 return invalidParams 18084 } 18085 return nil 18086} 18087 18088// SetCatalog sets the Catalog field's value. 18089func (s *PrestoParameters) SetCatalog(v string) *PrestoParameters { 18090 s.Catalog = &v 18091 return s 18092} 18093 18094// SetHost sets the Host field's value. 18095func (s *PrestoParameters) SetHost(v string) *PrestoParameters { 18096 s.Host = &v 18097 return s 18098} 18099 18100// SetPort sets the Port field's value. 18101func (s *PrestoParameters) SetPort(v int64) *PrestoParameters { 18102 s.Port = &v 18103 return s 18104} 18105 18106// A transform operation that projects columns. Operations that come after a 18107// projection can only refer to projected columns. 18108type ProjectOperation struct { 18109 _ struct{} `type:"structure"` 18110 18111 // Projected columns. 18112 // 18113 // ProjectedColumns is a required field 18114 ProjectedColumns []*string `min:"1" type:"list" required:"true"` 18115} 18116 18117// String returns the string representation 18118func (s ProjectOperation) String() string { 18119 return awsutil.Prettify(s) 18120} 18121 18122// GoString returns the string representation 18123func (s ProjectOperation) GoString() string { 18124 return s.String() 18125} 18126 18127// Validate inspects the fields of the type to determine if they are valid. 18128func (s *ProjectOperation) Validate() error { 18129 invalidParams := request.ErrInvalidParams{Context: "ProjectOperation"} 18130 if s.ProjectedColumns == nil { 18131 invalidParams.Add(request.NewErrParamRequired("ProjectedColumns")) 18132 } 18133 if s.ProjectedColumns != nil && len(s.ProjectedColumns) < 1 { 18134 invalidParams.Add(request.NewErrParamMinLen("ProjectedColumns", 1)) 18135 } 18136 18137 if invalidParams.Len() > 0 { 18138 return invalidParams 18139 } 18140 return nil 18141} 18142 18143// SetProjectedColumns sets the ProjectedColumns field's value. 18144func (s *ProjectOperation) SetProjectedColumns(v []*string) *ProjectOperation { 18145 s.ProjectedColumns = v 18146 return s 18147} 18148 18149// Information about a queued dataset SPICE ingestion. 18150type QueueInfo struct { 18151 _ struct{} `type:"structure"` 18152 18153 // The ID of the ongoing ingestion. The queued ingestion is waiting for the 18154 // ongoing ingestion to complete. 18155 // 18156 // QueuedIngestion is a required field 18157 QueuedIngestion *string `type:"string" required:"true"` 18158 18159 // The ID of the queued ingestion. 18160 // 18161 // WaitingOnIngestion is a required field 18162 WaitingOnIngestion *string `type:"string" required:"true"` 18163} 18164 18165// String returns the string representation 18166func (s QueueInfo) String() string { 18167 return awsutil.Prettify(s) 18168} 18169 18170// GoString returns the string representation 18171func (s QueueInfo) GoString() string { 18172 return s.String() 18173} 18174 18175// SetQueuedIngestion sets the QueuedIngestion field's value. 18176func (s *QueueInfo) SetQueuedIngestion(v string) *QueueInfo { 18177 s.QueuedIngestion = &v 18178 return s 18179} 18180 18181// SetWaitingOnIngestion sets the WaitingOnIngestion field's value. 18182func (s *QueueInfo) SetWaitingOnIngestion(v string) *QueueInfo { 18183 s.WaitingOnIngestion = &v 18184 return s 18185} 18186 18187// Amazon RDS parameters. 18188type RdsParameters struct { 18189 _ struct{} `type:"structure"` 18190 18191 // Database. 18192 // 18193 // Database is a required field 18194 Database *string `min:"1" type:"string" required:"true"` 18195 18196 // Instance ID. 18197 // 18198 // InstanceId is a required field 18199 InstanceId *string `min:"1" type:"string" required:"true"` 18200} 18201 18202// String returns the string representation 18203func (s RdsParameters) String() string { 18204 return awsutil.Prettify(s) 18205} 18206 18207// GoString returns the string representation 18208func (s RdsParameters) GoString() string { 18209 return s.String() 18210} 18211 18212// Validate inspects the fields of the type to determine if they are valid. 18213func (s *RdsParameters) Validate() error { 18214 invalidParams := request.ErrInvalidParams{Context: "RdsParameters"} 18215 if s.Database == nil { 18216 invalidParams.Add(request.NewErrParamRequired("Database")) 18217 } 18218 if s.Database != nil && len(*s.Database) < 1 { 18219 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 18220 } 18221 if s.InstanceId == nil { 18222 invalidParams.Add(request.NewErrParamRequired("InstanceId")) 18223 } 18224 if s.InstanceId != nil && len(*s.InstanceId) < 1 { 18225 invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) 18226 } 18227 18228 if invalidParams.Len() > 0 { 18229 return invalidParams 18230 } 18231 return nil 18232} 18233 18234// SetDatabase sets the Database field's value. 18235func (s *RdsParameters) SetDatabase(v string) *RdsParameters { 18236 s.Database = &v 18237 return s 18238} 18239 18240// SetInstanceId sets the InstanceId field's value. 18241func (s *RdsParameters) SetInstanceId(v string) *RdsParameters { 18242 s.InstanceId = &v 18243 return s 18244} 18245 18246// Amazon Redshift parameters. The ClusterId field can be blank if Host and 18247// Port are both set. The Host and Port fields can be blank if the ClusterId 18248// field is set. 18249type RedshiftParameters struct { 18250 _ struct{} `type:"structure"` 18251 18252 // Cluster ID. This field can be blank if the Host and Port are provided. 18253 ClusterId *string `min:"1" type:"string"` 18254 18255 // Database. 18256 // 18257 // Database is a required field 18258 Database *string `min:"1" type:"string" required:"true"` 18259 18260 // Host. This field can be blank if ClusterId is provided. 18261 Host *string `min:"1" type:"string"` 18262 18263 // Port. This field can be blank if the ClusterId is provided. 18264 Port *int64 `type:"integer"` 18265} 18266 18267// String returns the string representation 18268func (s RedshiftParameters) String() string { 18269 return awsutil.Prettify(s) 18270} 18271 18272// GoString returns the string representation 18273func (s RedshiftParameters) GoString() string { 18274 return s.String() 18275} 18276 18277// Validate inspects the fields of the type to determine if they are valid. 18278func (s *RedshiftParameters) Validate() error { 18279 invalidParams := request.ErrInvalidParams{Context: "RedshiftParameters"} 18280 if s.ClusterId != nil && len(*s.ClusterId) < 1 { 18281 invalidParams.Add(request.NewErrParamMinLen("ClusterId", 1)) 18282 } 18283 if s.Database == nil { 18284 invalidParams.Add(request.NewErrParamRequired("Database")) 18285 } 18286 if s.Database != nil && len(*s.Database) < 1 { 18287 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 18288 } 18289 if s.Host != nil && len(*s.Host) < 1 { 18290 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 18291 } 18292 18293 if invalidParams.Len() > 0 { 18294 return invalidParams 18295 } 18296 return nil 18297} 18298 18299// SetClusterId sets the ClusterId field's value. 18300func (s *RedshiftParameters) SetClusterId(v string) *RedshiftParameters { 18301 s.ClusterId = &v 18302 return s 18303} 18304 18305// SetDatabase sets the Database field's value. 18306func (s *RedshiftParameters) SetDatabase(v string) *RedshiftParameters { 18307 s.Database = &v 18308 return s 18309} 18310 18311// SetHost sets the Host field's value. 18312func (s *RedshiftParameters) SetHost(v string) *RedshiftParameters { 18313 s.Host = &v 18314 return s 18315} 18316 18317// SetPort sets the Port field's value. 18318func (s *RedshiftParameters) SetPort(v int64) *RedshiftParameters { 18319 s.Port = &v 18320 return s 18321} 18322 18323type RegisterUserInput struct { 18324 _ struct{} `type:"structure"` 18325 18326 // The ID for the AWS account that the user is in. Currently, you use the ID 18327 // for the AWS account that contains your Amazon QuickSight account. 18328 // 18329 // AwsAccountId is a required field 18330 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 18331 18332 // The email address of the user that you want to register. 18333 // 18334 // Email is a required field 18335 Email *string `type:"string" required:"true"` 18336 18337 // The ARN of the IAM user or role that you are registering with Amazon QuickSight. 18338 IamArn *string `type:"string"` 18339 18340 // Amazon QuickSight supports several ways of managing the identity of users. 18341 // This parameter accepts two values: 18342 // 18343 // * IAM: A user whose identity maps to an existing IAM user or role. 18344 // 18345 // * QUICKSIGHT: A user whose identity is owned and managed internally by 18346 // Amazon QuickSight. 18347 // 18348 // IdentityType is a required field 18349 IdentityType *string `type:"string" required:"true" enum:"IdentityType"` 18350 18351 // The namespace. Currently, you should set this to default. 18352 // 18353 // Namespace is a required field 18354 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 18355 18356 // You need to use this parameter only when you register one or more users using 18357 // an assumed IAM role. You don't need to provide the session name for other 18358 // scenarios, for example when you are registering an IAM user or an Amazon 18359 // QuickSight user. You can register multiple users using the same IAM role 18360 // if each user has a different session name. For more information on assuming 18361 // IAM roles, see assume-role (https://docs.aws.example.com/cli/latest/reference/sts/assume-role.html) 18362 // in the AWS CLI Reference. 18363 SessionName *string `min:"2" type:"string"` 18364 18365 // The Amazon QuickSight user name that you want to create for the user you 18366 // are registering. 18367 UserName *string `min:"1" type:"string"` 18368 18369 // The Amazon QuickSight role for the user. The user role can be one of the 18370 // following: 18371 // 18372 // * READER: A user who has read-only access to dashboards. 18373 // 18374 // * AUTHOR: A user who can create data sources, datasets, analyses, and 18375 // dashboards. 18376 // 18377 // * ADMIN: A user who is an author, who can also manage Amazon QuickSight 18378 // settings. 18379 // 18380 // * RESTRICTED_READER: This role isn't currently available for use. 18381 // 18382 // * RESTRICTED_AUTHOR: This role isn't currently available for use. 18383 // 18384 // UserRole is a required field 18385 UserRole *string `type:"string" required:"true" enum:"UserRole"` 18386} 18387 18388// String returns the string representation 18389func (s RegisterUserInput) String() string { 18390 return awsutil.Prettify(s) 18391} 18392 18393// GoString returns the string representation 18394func (s RegisterUserInput) GoString() string { 18395 return s.String() 18396} 18397 18398// Validate inspects the fields of the type to determine if they are valid. 18399func (s *RegisterUserInput) Validate() error { 18400 invalidParams := request.ErrInvalidParams{Context: "RegisterUserInput"} 18401 if s.AwsAccountId == nil { 18402 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 18403 } 18404 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 18405 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 18406 } 18407 if s.Email == nil { 18408 invalidParams.Add(request.NewErrParamRequired("Email")) 18409 } 18410 if s.IdentityType == nil { 18411 invalidParams.Add(request.NewErrParamRequired("IdentityType")) 18412 } 18413 if s.Namespace == nil { 18414 invalidParams.Add(request.NewErrParamRequired("Namespace")) 18415 } 18416 if s.Namespace != nil && len(*s.Namespace) < 1 { 18417 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 18418 } 18419 if s.SessionName != nil && len(*s.SessionName) < 2 { 18420 invalidParams.Add(request.NewErrParamMinLen("SessionName", 2)) 18421 } 18422 if s.UserName != nil && len(*s.UserName) < 1 { 18423 invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) 18424 } 18425 if s.UserRole == nil { 18426 invalidParams.Add(request.NewErrParamRequired("UserRole")) 18427 } 18428 18429 if invalidParams.Len() > 0 { 18430 return invalidParams 18431 } 18432 return nil 18433} 18434 18435// SetAwsAccountId sets the AwsAccountId field's value. 18436func (s *RegisterUserInput) SetAwsAccountId(v string) *RegisterUserInput { 18437 s.AwsAccountId = &v 18438 return s 18439} 18440 18441// SetEmail sets the Email field's value. 18442func (s *RegisterUserInput) SetEmail(v string) *RegisterUserInput { 18443 s.Email = &v 18444 return s 18445} 18446 18447// SetIamArn sets the IamArn field's value. 18448func (s *RegisterUserInput) SetIamArn(v string) *RegisterUserInput { 18449 s.IamArn = &v 18450 return s 18451} 18452 18453// SetIdentityType sets the IdentityType field's value. 18454func (s *RegisterUserInput) SetIdentityType(v string) *RegisterUserInput { 18455 s.IdentityType = &v 18456 return s 18457} 18458 18459// SetNamespace sets the Namespace field's value. 18460func (s *RegisterUserInput) SetNamespace(v string) *RegisterUserInput { 18461 s.Namespace = &v 18462 return s 18463} 18464 18465// SetSessionName sets the SessionName field's value. 18466func (s *RegisterUserInput) SetSessionName(v string) *RegisterUserInput { 18467 s.SessionName = &v 18468 return s 18469} 18470 18471// SetUserName sets the UserName field's value. 18472func (s *RegisterUserInput) SetUserName(v string) *RegisterUserInput { 18473 s.UserName = &v 18474 return s 18475} 18476 18477// SetUserRole sets the UserRole field's value. 18478func (s *RegisterUserInput) SetUserRole(v string) *RegisterUserInput { 18479 s.UserRole = &v 18480 return s 18481} 18482 18483type RegisterUserOutput struct { 18484 _ struct{} `type:"structure"` 18485 18486 // The AWS request ID for this operation. 18487 RequestId *string `type:"string"` 18488 18489 // The HTTP status of the request. 18490 Status *int64 `location:"statusCode" type:"integer"` 18491 18492 // The user name. 18493 User *User `type:"structure"` 18494 18495 // The URL the user visits to complete registration and provide a password. 18496 // This is returned only for users with an identity type of QUICKSIGHT. 18497 UserInvitationUrl *string `type:"string"` 18498} 18499 18500// String returns the string representation 18501func (s RegisterUserOutput) String() string { 18502 return awsutil.Prettify(s) 18503} 18504 18505// GoString returns the string representation 18506func (s RegisterUserOutput) GoString() string { 18507 return s.String() 18508} 18509 18510// SetRequestId sets the RequestId field's value. 18511func (s *RegisterUserOutput) SetRequestId(v string) *RegisterUserOutput { 18512 s.RequestId = &v 18513 return s 18514} 18515 18516// SetStatus sets the Status field's value. 18517func (s *RegisterUserOutput) SetStatus(v int64) *RegisterUserOutput { 18518 s.Status = &v 18519 return s 18520} 18521 18522// SetUser sets the User field's value. 18523func (s *RegisterUserOutput) SetUser(v *User) *RegisterUserOutput { 18524 s.User = v 18525 return s 18526} 18527 18528// SetUserInvitationUrl sets the UserInvitationUrl field's value. 18529func (s *RegisterUserOutput) SetUserInvitationUrl(v string) *RegisterUserOutput { 18530 s.UserInvitationUrl = &v 18531 return s 18532} 18533 18534// A physical table type for relational data sources. 18535type RelationalTable struct { 18536 _ struct{} `type:"structure"` 18537 18538 // The Amazon Resource Name (ARN) for the data source. 18539 // 18540 // DataSourceArn is a required field 18541 DataSourceArn *string `type:"string" required:"true"` 18542 18543 // The column schema of the table. 18544 // 18545 // InputColumns is a required field 18546 InputColumns []*InputColumn `min:"1" type:"list" required:"true"` 18547 18548 // The name of the relational table. 18549 // 18550 // Name is a required field 18551 Name *string `min:"1" type:"string" required:"true"` 18552 18553 // The schema name. This name applies to certain relational database engines. 18554 Schema *string `type:"string"` 18555} 18556 18557// String returns the string representation 18558func (s RelationalTable) String() string { 18559 return awsutil.Prettify(s) 18560} 18561 18562// GoString returns the string representation 18563func (s RelationalTable) GoString() string { 18564 return s.String() 18565} 18566 18567// Validate inspects the fields of the type to determine if they are valid. 18568func (s *RelationalTable) Validate() error { 18569 invalidParams := request.ErrInvalidParams{Context: "RelationalTable"} 18570 if s.DataSourceArn == nil { 18571 invalidParams.Add(request.NewErrParamRequired("DataSourceArn")) 18572 } 18573 if s.InputColumns == nil { 18574 invalidParams.Add(request.NewErrParamRequired("InputColumns")) 18575 } 18576 if s.InputColumns != nil && len(s.InputColumns) < 1 { 18577 invalidParams.Add(request.NewErrParamMinLen("InputColumns", 1)) 18578 } 18579 if s.Name == nil { 18580 invalidParams.Add(request.NewErrParamRequired("Name")) 18581 } 18582 if s.Name != nil && len(*s.Name) < 1 { 18583 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 18584 } 18585 if s.InputColumns != nil { 18586 for i, v := range s.InputColumns { 18587 if v == nil { 18588 continue 18589 } 18590 if err := v.Validate(); err != nil { 18591 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputColumns", i), err.(request.ErrInvalidParams)) 18592 } 18593 } 18594 } 18595 18596 if invalidParams.Len() > 0 { 18597 return invalidParams 18598 } 18599 return nil 18600} 18601 18602// SetDataSourceArn sets the DataSourceArn field's value. 18603func (s *RelationalTable) SetDataSourceArn(v string) *RelationalTable { 18604 s.DataSourceArn = &v 18605 return s 18606} 18607 18608// SetInputColumns sets the InputColumns field's value. 18609func (s *RelationalTable) SetInputColumns(v []*InputColumn) *RelationalTable { 18610 s.InputColumns = v 18611 return s 18612} 18613 18614// SetName sets the Name field's value. 18615func (s *RelationalTable) SetName(v string) *RelationalTable { 18616 s.Name = &v 18617 return s 18618} 18619 18620// SetSchema sets the Schema field's value. 18621func (s *RelationalTable) SetSchema(v string) *RelationalTable { 18622 s.Schema = &v 18623 return s 18624} 18625 18626// A transform operation that renames a column. 18627type RenameColumnOperation struct { 18628 _ struct{} `type:"structure"` 18629 18630 // The name of the column to be renamed. 18631 // 18632 // ColumnName is a required field 18633 ColumnName *string `min:"1" type:"string" required:"true"` 18634 18635 // The new name for the column. 18636 // 18637 // NewColumnName is a required field 18638 NewColumnName *string `min:"1" type:"string" required:"true"` 18639} 18640 18641// String returns the string representation 18642func (s RenameColumnOperation) String() string { 18643 return awsutil.Prettify(s) 18644} 18645 18646// GoString returns the string representation 18647func (s RenameColumnOperation) GoString() string { 18648 return s.String() 18649} 18650 18651// Validate inspects the fields of the type to determine if they are valid. 18652func (s *RenameColumnOperation) Validate() error { 18653 invalidParams := request.ErrInvalidParams{Context: "RenameColumnOperation"} 18654 if s.ColumnName == nil { 18655 invalidParams.Add(request.NewErrParamRequired("ColumnName")) 18656 } 18657 if s.ColumnName != nil && len(*s.ColumnName) < 1 { 18658 invalidParams.Add(request.NewErrParamMinLen("ColumnName", 1)) 18659 } 18660 if s.NewColumnName == nil { 18661 invalidParams.Add(request.NewErrParamRequired("NewColumnName")) 18662 } 18663 if s.NewColumnName != nil && len(*s.NewColumnName) < 1 { 18664 invalidParams.Add(request.NewErrParamMinLen("NewColumnName", 1)) 18665 } 18666 18667 if invalidParams.Len() > 0 { 18668 return invalidParams 18669 } 18670 return nil 18671} 18672 18673// SetColumnName sets the ColumnName field's value. 18674func (s *RenameColumnOperation) SetColumnName(v string) *RenameColumnOperation { 18675 s.ColumnName = &v 18676 return s 18677} 18678 18679// SetNewColumnName sets the NewColumnName field's value. 18680func (s *RenameColumnOperation) SetNewColumnName(v string) *RenameColumnOperation { 18681 s.NewColumnName = &v 18682 return s 18683} 18684 18685// The resource specified already exists. 18686type ResourceExistsException struct { 18687 _ struct{} `type:"structure"` 18688 respMetadata protocol.ResponseMetadata 18689 18690 Message_ *string `locationName:"Message" type:"string"` 18691 18692 // The AWS request ID for this request. 18693 RequestId *string `type:"string"` 18694 18695 // The AWS request ID for this request. 18696 ResourceType *string `type:"string" enum:"ExceptionResourceType"` 18697} 18698 18699// String returns the string representation 18700func (s ResourceExistsException) String() string { 18701 return awsutil.Prettify(s) 18702} 18703 18704// GoString returns the string representation 18705func (s ResourceExistsException) GoString() string { 18706 return s.String() 18707} 18708 18709func newErrorResourceExistsException(v protocol.ResponseMetadata) error { 18710 return &ResourceExistsException{ 18711 respMetadata: v, 18712 } 18713} 18714 18715// Code returns the exception type name. 18716func (s ResourceExistsException) Code() string { 18717 return "ResourceExistsException" 18718} 18719 18720// Message returns the exception's message. 18721func (s ResourceExistsException) Message() string { 18722 if s.Message_ != nil { 18723 return *s.Message_ 18724 } 18725 return "" 18726} 18727 18728// OrigErr always returns nil, satisfies awserr.Error interface. 18729func (s ResourceExistsException) OrigErr() error { 18730 return nil 18731} 18732 18733func (s ResourceExistsException) Error() string { 18734 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 18735} 18736 18737// Status code returns the HTTP status code for the request's response error. 18738func (s ResourceExistsException) StatusCode() int { 18739 return s.respMetadata.StatusCode 18740} 18741 18742// RequestID returns the service's response RequestID for request. 18743func (s ResourceExistsException) RequestID() string { 18744 return s.respMetadata.RequestID 18745} 18746 18747// One or more resources can't be found. 18748type ResourceNotFoundException struct { 18749 _ struct{} `type:"structure"` 18750 respMetadata protocol.ResponseMetadata 18751 18752 Message_ *string `locationName:"Message" type:"string"` 18753 18754 // The AWS request ID for this request. 18755 RequestId *string `type:"string"` 18756 18757 // The AWS request ID for this request. 18758 ResourceType *string `type:"string" enum:"ExceptionResourceType"` 18759} 18760 18761// String returns the string representation 18762func (s ResourceNotFoundException) String() string { 18763 return awsutil.Prettify(s) 18764} 18765 18766// GoString returns the string representation 18767func (s ResourceNotFoundException) GoString() string { 18768 return s.String() 18769} 18770 18771func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 18772 return &ResourceNotFoundException{ 18773 respMetadata: v, 18774 } 18775} 18776 18777// Code returns the exception type name. 18778func (s ResourceNotFoundException) Code() string { 18779 return "ResourceNotFoundException" 18780} 18781 18782// Message returns the exception's message. 18783func (s ResourceNotFoundException) Message() string { 18784 if s.Message_ != nil { 18785 return *s.Message_ 18786 } 18787 return "" 18788} 18789 18790// OrigErr always returns nil, satisfies awserr.Error interface. 18791func (s ResourceNotFoundException) OrigErr() error { 18792 return nil 18793} 18794 18795func (s ResourceNotFoundException) Error() string { 18796 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 18797} 18798 18799// Status code returns the HTTP status code for the request's response error. 18800func (s ResourceNotFoundException) StatusCode() int { 18801 return s.respMetadata.StatusCode 18802} 18803 18804// RequestID returns the service's response RequestID for request. 18805func (s ResourceNotFoundException) RequestID() string { 18806 return s.respMetadata.RequestID 18807} 18808 18809// Permission for the resource. 18810type ResourcePermission struct { 18811 _ struct{} `type:"structure"` 18812 18813 // The action to grant or revoke permissions on, for example "quicksight:DescribeDashboard". 18814 // 18815 // Actions is a required field 18816 Actions []*string `min:"1" type:"list" required:"true"` 18817 18818 // The Amazon Resource Name (ARN) of an Amazon QuickSight user or group, or 18819 // an IAM ARN. If you are using cross-account resource sharing, this is the 18820 // IAM ARN of an account root. Otherwise, it is the ARN of a QuickSight user 18821 // or group. . 18822 // 18823 // Principal is a required field 18824 Principal *string `min:"1" type:"string" required:"true"` 18825} 18826 18827// String returns the string representation 18828func (s ResourcePermission) String() string { 18829 return awsutil.Prettify(s) 18830} 18831 18832// GoString returns the string representation 18833func (s ResourcePermission) GoString() string { 18834 return s.String() 18835} 18836 18837// Validate inspects the fields of the type to determine if they are valid. 18838func (s *ResourcePermission) Validate() error { 18839 invalidParams := request.ErrInvalidParams{Context: "ResourcePermission"} 18840 if s.Actions == nil { 18841 invalidParams.Add(request.NewErrParamRequired("Actions")) 18842 } 18843 if s.Actions != nil && len(s.Actions) < 1 { 18844 invalidParams.Add(request.NewErrParamMinLen("Actions", 1)) 18845 } 18846 if s.Principal == nil { 18847 invalidParams.Add(request.NewErrParamRequired("Principal")) 18848 } 18849 if s.Principal != nil && len(*s.Principal) < 1 { 18850 invalidParams.Add(request.NewErrParamMinLen("Principal", 1)) 18851 } 18852 18853 if invalidParams.Len() > 0 { 18854 return invalidParams 18855 } 18856 return nil 18857} 18858 18859// SetActions sets the Actions field's value. 18860func (s *ResourcePermission) SetActions(v []*string) *ResourcePermission { 18861 s.Actions = v 18862 return s 18863} 18864 18865// SetPrincipal sets the Principal field's value. 18866func (s *ResourcePermission) SetPrincipal(v string) *ResourcePermission { 18867 s.Principal = &v 18868 return s 18869} 18870 18871// This resource is currently unavailable. 18872type ResourceUnavailableException struct { 18873 _ struct{} `type:"structure"` 18874 respMetadata protocol.ResponseMetadata 18875 18876 Message_ *string `locationName:"Message" type:"string"` 18877 18878 // The AWS request ID for this request. 18879 RequestId *string `type:"string"` 18880 18881 // The resource type for this request. 18882 ResourceType *string `type:"string" enum:"ExceptionResourceType"` 18883} 18884 18885// String returns the string representation 18886func (s ResourceUnavailableException) String() string { 18887 return awsutil.Prettify(s) 18888} 18889 18890// GoString returns the string representation 18891func (s ResourceUnavailableException) GoString() string { 18892 return s.String() 18893} 18894 18895func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { 18896 return &ResourceUnavailableException{ 18897 respMetadata: v, 18898 } 18899} 18900 18901// Code returns the exception type name. 18902func (s ResourceUnavailableException) Code() string { 18903 return "ResourceUnavailableException" 18904} 18905 18906// Message returns the exception's message. 18907func (s ResourceUnavailableException) Message() string { 18908 if s.Message_ != nil { 18909 return *s.Message_ 18910 } 18911 return "" 18912} 18913 18914// OrigErr always returns nil, satisfies awserr.Error interface. 18915func (s ResourceUnavailableException) OrigErr() error { 18916 return nil 18917} 18918 18919func (s ResourceUnavailableException) Error() string { 18920 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 18921} 18922 18923// Status code returns the HTTP status code for the request's response error. 18924func (s ResourceUnavailableException) StatusCode() int { 18925 return s.respMetadata.StatusCode 18926} 18927 18928// RequestID returns the service's response RequestID for request. 18929func (s ResourceUnavailableException) RequestID() string { 18930 return s.respMetadata.RequestID 18931} 18932 18933// Information about rows for a data set SPICE ingestion. 18934type RowInfo struct { 18935 _ struct{} `type:"structure"` 18936 18937 // The number of rows that were not ingested. 18938 RowsDropped *int64 `type:"long"` 18939 18940 // The number of rows that were ingested. 18941 RowsIngested *int64 `type:"long"` 18942} 18943 18944// String returns the string representation 18945func (s RowInfo) String() string { 18946 return awsutil.Prettify(s) 18947} 18948 18949// GoString returns the string representation 18950func (s RowInfo) GoString() string { 18951 return s.String() 18952} 18953 18954// SetRowsDropped sets the RowsDropped field's value. 18955func (s *RowInfo) SetRowsDropped(v int64) *RowInfo { 18956 s.RowsDropped = &v 18957 return s 18958} 18959 18960// SetRowsIngested sets the RowsIngested field's value. 18961func (s *RowInfo) SetRowsIngested(v int64) *RowInfo { 18962 s.RowsIngested = &v 18963 return s 18964} 18965 18966// The row-level security configuration for the dataset. 18967type RowLevelPermissionDataSet struct { 18968 _ struct{} `type:"structure"` 18969 18970 // The Amazon Resource Name (ARN) of the permission dataset. 18971 // 18972 // Arn is a required field 18973 Arn *string `type:"string" required:"true"` 18974 18975 // Permission policy. 18976 // 18977 // PermissionPolicy is a required field 18978 PermissionPolicy *string `type:"string" required:"true" enum:"RowLevelPermissionPolicy"` 18979} 18980 18981// String returns the string representation 18982func (s RowLevelPermissionDataSet) String() string { 18983 return awsutil.Prettify(s) 18984} 18985 18986// GoString returns the string representation 18987func (s RowLevelPermissionDataSet) GoString() string { 18988 return s.String() 18989} 18990 18991// Validate inspects the fields of the type to determine if they are valid. 18992func (s *RowLevelPermissionDataSet) Validate() error { 18993 invalidParams := request.ErrInvalidParams{Context: "RowLevelPermissionDataSet"} 18994 if s.Arn == nil { 18995 invalidParams.Add(request.NewErrParamRequired("Arn")) 18996 } 18997 if s.PermissionPolicy == nil { 18998 invalidParams.Add(request.NewErrParamRequired("PermissionPolicy")) 18999 } 19000 19001 if invalidParams.Len() > 0 { 19002 return invalidParams 19003 } 19004 return nil 19005} 19006 19007// SetArn sets the Arn field's value. 19008func (s *RowLevelPermissionDataSet) SetArn(v string) *RowLevelPermissionDataSet { 19009 s.Arn = &v 19010 return s 19011} 19012 19013// SetPermissionPolicy sets the PermissionPolicy field's value. 19014func (s *RowLevelPermissionDataSet) SetPermissionPolicy(v string) *RowLevelPermissionDataSet { 19015 s.PermissionPolicy = &v 19016 return s 19017} 19018 19019// S3 parameters. 19020type S3Parameters struct { 19021 _ struct{} `type:"structure"` 19022 19023 // Location of the Amazon S3 manifest file. This is NULL if the manifest file 19024 // was uploaded in the console. 19025 // 19026 // ManifestFileLocation is a required field 19027 ManifestFileLocation *ManifestFileLocation `type:"structure" required:"true"` 19028} 19029 19030// String returns the string representation 19031func (s S3Parameters) String() string { 19032 return awsutil.Prettify(s) 19033} 19034 19035// GoString returns the string representation 19036func (s S3Parameters) GoString() string { 19037 return s.String() 19038} 19039 19040// Validate inspects the fields of the type to determine if they are valid. 19041func (s *S3Parameters) Validate() error { 19042 invalidParams := request.ErrInvalidParams{Context: "S3Parameters"} 19043 if s.ManifestFileLocation == nil { 19044 invalidParams.Add(request.NewErrParamRequired("ManifestFileLocation")) 19045 } 19046 if s.ManifestFileLocation != nil { 19047 if err := s.ManifestFileLocation.Validate(); err != nil { 19048 invalidParams.AddNested("ManifestFileLocation", err.(request.ErrInvalidParams)) 19049 } 19050 } 19051 19052 if invalidParams.Len() > 0 { 19053 return invalidParams 19054 } 19055 return nil 19056} 19057 19058// SetManifestFileLocation sets the ManifestFileLocation field's value. 19059func (s *S3Parameters) SetManifestFileLocation(v *ManifestFileLocation) *S3Parameters { 19060 s.ManifestFileLocation = v 19061 return s 19062} 19063 19064// A physical table type for as S3 data source. 19065type S3Source struct { 19066 _ struct{} `type:"structure"` 19067 19068 // The amazon Resource Name (ARN) for the data source. 19069 // 19070 // DataSourceArn is a required field 19071 DataSourceArn *string `type:"string" required:"true"` 19072 19073 // A physical table type for as S3 data source. 19074 // 19075 // InputColumns is a required field 19076 InputColumns []*InputColumn `min:"1" type:"list" required:"true"` 19077 19078 // Information about the format for the S3 source file or files. 19079 UploadSettings *UploadSettings `type:"structure"` 19080} 19081 19082// String returns the string representation 19083func (s S3Source) String() string { 19084 return awsutil.Prettify(s) 19085} 19086 19087// GoString returns the string representation 19088func (s S3Source) GoString() string { 19089 return s.String() 19090} 19091 19092// Validate inspects the fields of the type to determine if they are valid. 19093func (s *S3Source) Validate() error { 19094 invalidParams := request.ErrInvalidParams{Context: "S3Source"} 19095 if s.DataSourceArn == nil { 19096 invalidParams.Add(request.NewErrParamRequired("DataSourceArn")) 19097 } 19098 if s.InputColumns == nil { 19099 invalidParams.Add(request.NewErrParamRequired("InputColumns")) 19100 } 19101 if s.InputColumns != nil && len(s.InputColumns) < 1 { 19102 invalidParams.Add(request.NewErrParamMinLen("InputColumns", 1)) 19103 } 19104 if s.InputColumns != nil { 19105 for i, v := range s.InputColumns { 19106 if v == nil { 19107 continue 19108 } 19109 if err := v.Validate(); err != nil { 19110 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputColumns", i), err.(request.ErrInvalidParams)) 19111 } 19112 } 19113 } 19114 if s.UploadSettings != nil { 19115 if err := s.UploadSettings.Validate(); err != nil { 19116 invalidParams.AddNested("UploadSettings", err.(request.ErrInvalidParams)) 19117 } 19118 } 19119 19120 if invalidParams.Len() > 0 { 19121 return invalidParams 19122 } 19123 return nil 19124} 19125 19126// SetDataSourceArn sets the DataSourceArn field's value. 19127func (s *S3Source) SetDataSourceArn(v string) *S3Source { 19128 s.DataSourceArn = &v 19129 return s 19130} 19131 19132// SetInputColumns sets the InputColumns field's value. 19133func (s *S3Source) SetInputColumns(v []*InputColumn) *S3Source { 19134 s.InputColumns = v 19135 return s 19136} 19137 19138// SetUploadSettings sets the UploadSettings field's value. 19139func (s *S3Source) SetUploadSettings(v *UploadSettings) *S3Source { 19140 s.UploadSettings = v 19141 return s 19142} 19143 19144type SearchDashboardsInput struct { 19145 _ struct{} `type:"structure"` 19146 19147 // The ID of the AWS account that contains the user whose dashboards you're 19148 // searching for. 19149 // 19150 // AwsAccountId is a required field 19151 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 19152 19153 // The filters to apply to the search. Currently, you can search only by user 19154 // name. For example, "Filters": [ { "Name": "QUICKSIGHT_USER", "Operator": 19155 // "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1" 19156 // } ] 19157 // 19158 // Filters is a required field 19159 Filters []*DashboardSearchFilter `type:"list" required:"true"` 19160 19161 // The maximum number of results to be returned per request. 19162 MaxResults *int64 `min:"1" type:"integer"` 19163 19164 // The token for the next set of results, or null if there are no more results. 19165 NextToken *string `type:"string"` 19166} 19167 19168// String returns the string representation 19169func (s SearchDashboardsInput) String() string { 19170 return awsutil.Prettify(s) 19171} 19172 19173// GoString returns the string representation 19174func (s SearchDashboardsInput) GoString() string { 19175 return s.String() 19176} 19177 19178// Validate inspects the fields of the type to determine if they are valid. 19179func (s *SearchDashboardsInput) Validate() error { 19180 invalidParams := request.ErrInvalidParams{Context: "SearchDashboardsInput"} 19181 if s.AwsAccountId == nil { 19182 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 19183 } 19184 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 19185 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 19186 } 19187 if s.Filters == nil { 19188 invalidParams.Add(request.NewErrParamRequired("Filters")) 19189 } 19190 if s.MaxResults != nil && *s.MaxResults < 1 { 19191 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 19192 } 19193 if s.Filters != nil { 19194 for i, v := range s.Filters { 19195 if v == nil { 19196 continue 19197 } 19198 if err := v.Validate(); err != nil { 19199 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) 19200 } 19201 } 19202 } 19203 19204 if invalidParams.Len() > 0 { 19205 return invalidParams 19206 } 19207 return nil 19208} 19209 19210// SetAwsAccountId sets the AwsAccountId field's value. 19211func (s *SearchDashboardsInput) SetAwsAccountId(v string) *SearchDashboardsInput { 19212 s.AwsAccountId = &v 19213 return s 19214} 19215 19216// SetFilters sets the Filters field's value. 19217func (s *SearchDashboardsInput) SetFilters(v []*DashboardSearchFilter) *SearchDashboardsInput { 19218 s.Filters = v 19219 return s 19220} 19221 19222// SetMaxResults sets the MaxResults field's value. 19223func (s *SearchDashboardsInput) SetMaxResults(v int64) *SearchDashboardsInput { 19224 s.MaxResults = &v 19225 return s 19226} 19227 19228// SetNextToken sets the NextToken field's value. 19229func (s *SearchDashboardsInput) SetNextToken(v string) *SearchDashboardsInput { 19230 s.NextToken = &v 19231 return s 19232} 19233 19234type SearchDashboardsOutput struct { 19235 _ struct{} `type:"structure"` 19236 19237 // The list of dashboards owned by the user specified in Filters in your request. 19238 DashboardSummaryList []*DashboardSummary `type:"list"` 19239 19240 // The token for the next set of results, or null if there are no more results. 19241 NextToken *string `type:"string"` 19242 19243 // The AWS request ID for this operation. 19244 RequestId *string `type:"string"` 19245 19246 // The HTTP status of the request. 19247 Status *int64 `location:"statusCode" type:"integer"` 19248} 19249 19250// String returns the string representation 19251func (s SearchDashboardsOutput) String() string { 19252 return awsutil.Prettify(s) 19253} 19254 19255// GoString returns the string representation 19256func (s SearchDashboardsOutput) GoString() string { 19257 return s.String() 19258} 19259 19260// SetDashboardSummaryList sets the DashboardSummaryList field's value. 19261func (s *SearchDashboardsOutput) SetDashboardSummaryList(v []*DashboardSummary) *SearchDashboardsOutput { 19262 s.DashboardSummaryList = v 19263 return s 19264} 19265 19266// SetNextToken sets the NextToken field's value. 19267func (s *SearchDashboardsOutput) SetNextToken(v string) *SearchDashboardsOutput { 19268 s.NextToken = &v 19269 return s 19270} 19271 19272// SetRequestId sets the RequestId field's value. 19273func (s *SearchDashboardsOutput) SetRequestId(v string) *SearchDashboardsOutput { 19274 s.RequestId = &v 19275 return s 19276} 19277 19278// SetStatus sets the Status field's value. 19279func (s *SearchDashboardsOutput) SetStatus(v int64) *SearchDashboardsOutput { 19280 s.Status = &v 19281 return s 19282} 19283 19284// ServiceNow parameters. 19285type ServiceNowParameters struct { 19286 _ struct{} `type:"structure"` 19287 19288 // URL of the base site. 19289 // 19290 // SiteBaseUrl is a required field 19291 SiteBaseUrl *string `min:"1" type:"string" required:"true"` 19292} 19293 19294// String returns the string representation 19295func (s ServiceNowParameters) String() string { 19296 return awsutil.Prettify(s) 19297} 19298 19299// GoString returns the string representation 19300func (s ServiceNowParameters) GoString() string { 19301 return s.String() 19302} 19303 19304// Validate inspects the fields of the type to determine if they are valid. 19305func (s *ServiceNowParameters) Validate() error { 19306 invalidParams := request.ErrInvalidParams{Context: "ServiceNowParameters"} 19307 if s.SiteBaseUrl == nil { 19308 invalidParams.Add(request.NewErrParamRequired("SiteBaseUrl")) 19309 } 19310 if s.SiteBaseUrl != nil && len(*s.SiteBaseUrl) < 1 { 19311 invalidParams.Add(request.NewErrParamMinLen("SiteBaseUrl", 1)) 19312 } 19313 19314 if invalidParams.Len() > 0 { 19315 return invalidParams 19316 } 19317 return nil 19318} 19319 19320// SetSiteBaseUrl sets the SiteBaseUrl field's value. 19321func (s *ServiceNowParameters) SetSiteBaseUrl(v string) *ServiceNowParameters { 19322 s.SiteBaseUrl = &v 19323 return s 19324} 19325 19326// The number of minutes specified for the lifetime of a session isn't valid. 19327// The session lifetime must be 15-600 minutes. 19328type SessionLifetimeInMinutesInvalidException struct { 19329 _ struct{} `type:"structure"` 19330 respMetadata protocol.ResponseMetadata 19331 19332 Message_ *string `locationName:"Message" type:"string"` 19333 19334 // The AWS request ID for this request. 19335 RequestId *string `type:"string"` 19336} 19337 19338// String returns the string representation 19339func (s SessionLifetimeInMinutesInvalidException) String() string { 19340 return awsutil.Prettify(s) 19341} 19342 19343// GoString returns the string representation 19344func (s SessionLifetimeInMinutesInvalidException) GoString() string { 19345 return s.String() 19346} 19347 19348func newErrorSessionLifetimeInMinutesInvalidException(v protocol.ResponseMetadata) error { 19349 return &SessionLifetimeInMinutesInvalidException{ 19350 respMetadata: v, 19351 } 19352} 19353 19354// Code returns the exception type name. 19355func (s SessionLifetimeInMinutesInvalidException) Code() string { 19356 return "SessionLifetimeInMinutesInvalidException" 19357} 19358 19359// Message returns the exception's message. 19360func (s SessionLifetimeInMinutesInvalidException) Message() string { 19361 if s.Message_ != nil { 19362 return *s.Message_ 19363 } 19364 return "" 19365} 19366 19367// OrigErr always returns nil, satisfies awserr.Error interface. 19368func (s SessionLifetimeInMinutesInvalidException) OrigErr() error { 19369 return nil 19370} 19371 19372func (s SessionLifetimeInMinutesInvalidException) Error() string { 19373 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 19374} 19375 19376// Status code returns the HTTP status code for the request's response error. 19377func (s SessionLifetimeInMinutesInvalidException) StatusCode() int { 19378 return s.respMetadata.StatusCode 19379} 19380 19381// RequestID returns the service's response RequestID for request. 19382func (s SessionLifetimeInMinutesInvalidException) RequestID() string { 19383 return s.respMetadata.RequestID 19384} 19385 19386// Sheet controls option. 19387type SheetControlsOption struct { 19388 _ struct{} `type:"structure"` 19389 19390 // Visibility state. 19391 VisibilityState *string `type:"string" enum:"DashboardUIState"` 19392} 19393 19394// String returns the string representation 19395func (s SheetControlsOption) String() string { 19396 return awsutil.Prettify(s) 19397} 19398 19399// GoString returns the string representation 19400func (s SheetControlsOption) GoString() string { 19401 return s.String() 19402} 19403 19404// SetVisibilityState sets the VisibilityState field's value. 19405func (s *SheetControlsOption) SetVisibilityState(v string) *SheetControlsOption { 19406 s.VisibilityState = &v 19407 return s 19408} 19409 19410// Snowflake parameters. 19411type SnowflakeParameters struct { 19412 _ struct{} `type:"structure"` 19413 19414 // Database. 19415 // 19416 // Database is a required field 19417 Database *string `min:"1" type:"string" required:"true"` 19418 19419 // Host. 19420 // 19421 // Host is a required field 19422 Host *string `min:"1" type:"string" required:"true"` 19423 19424 // Warehouse. 19425 // 19426 // Warehouse is a required field 19427 Warehouse *string `type:"string" required:"true"` 19428} 19429 19430// String returns the string representation 19431func (s SnowflakeParameters) String() string { 19432 return awsutil.Prettify(s) 19433} 19434 19435// GoString returns the string representation 19436func (s SnowflakeParameters) GoString() string { 19437 return s.String() 19438} 19439 19440// Validate inspects the fields of the type to determine if they are valid. 19441func (s *SnowflakeParameters) Validate() error { 19442 invalidParams := request.ErrInvalidParams{Context: "SnowflakeParameters"} 19443 if s.Database == nil { 19444 invalidParams.Add(request.NewErrParamRequired("Database")) 19445 } 19446 if s.Database != nil && len(*s.Database) < 1 { 19447 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 19448 } 19449 if s.Host == nil { 19450 invalidParams.Add(request.NewErrParamRequired("Host")) 19451 } 19452 if s.Host != nil && len(*s.Host) < 1 { 19453 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 19454 } 19455 if s.Warehouse == nil { 19456 invalidParams.Add(request.NewErrParamRequired("Warehouse")) 19457 } 19458 19459 if invalidParams.Len() > 0 { 19460 return invalidParams 19461 } 19462 return nil 19463} 19464 19465// SetDatabase sets the Database field's value. 19466func (s *SnowflakeParameters) SetDatabase(v string) *SnowflakeParameters { 19467 s.Database = &v 19468 return s 19469} 19470 19471// SetHost sets the Host field's value. 19472func (s *SnowflakeParameters) SetHost(v string) *SnowflakeParameters { 19473 s.Host = &v 19474 return s 19475} 19476 19477// SetWarehouse sets the Warehouse field's value. 19478func (s *SnowflakeParameters) SetWarehouse(v string) *SnowflakeParameters { 19479 s.Warehouse = &v 19480 return s 19481} 19482 19483// Spark parameters. 19484type SparkParameters struct { 19485 _ struct{} `type:"structure"` 19486 19487 // Host. 19488 // 19489 // Host is a required field 19490 Host *string `min:"1" type:"string" required:"true"` 19491 19492 // Port. 19493 // 19494 // Port is a required field 19495 Port *int64 `min:"1" type:"integer" required:"true"` 19496} 19497 19498// String returns the string representation 19499func (s SparkParameters) String() string { 19500 return awsutil.Prettify(s) 19501} 19502 19503// GoString returns the string representation 19504func (s SparkParameters) GoString() string { 19505 return s.String() 19506} 19507 19508// Validate inspects the fields of the type to determine if they are valid. 19509func (s *SparkParameters) Validate() error { 19510 invalidParams := request.ErrInvalidParams{Context: "SparkParameters"} 19511 if s.Host == nil { 19512 invalidParams.Add(request.NewErrParamRequired("Host")) 19513 } 19514 if s.Host != nil && len(*s.Host) < 1 { 19515 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 19516 } 19517 if s.Port == nil { 19518 invalidParams.Add(request.NewErrParamRequired("Port")) 19519 } 19520 if s.Port != nil && *s.Port < 1 { 19521 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 19522 } 19523 19524 if invalidParams.Len() > 0 { 19525 return invalidParams 19526 } 19527 return nil 19528} 19529 19530// SetHost sets the Host field's value. 19531func (s *SparkParameters) SetHost(v string) *SparkParameters { 19532 s.Host = &v 19533 return s 19534} 19535 19536// SetPort sets the Port field's value. 19537func (s *SparkParameters) SetPort(v int64) *SparkParameters { 19538 s.Port = &v 19539 return s 19540} 19541 19542// SQL Server parameters. 19543type SqlServerParameters struct { 19544 _ struct{} `type:"structure"` 19545 19546 // Database. 19547 // 19548 // Database is a required field 19549 Database *string `min:"1" type:"string" required:"true"` 19550 19551 // Host. 19552 // 19553 // Host is a required field 19554 Host *string `min:"1" type:"string" required:"true"` 19555 19556 // Port. 19557 // 19558 // Port is a required field 19559 Port *int64 `min:"1" type:"integer" required:"true"` 19560} 19561 19562// String returns the string representation 19563func (s SqlServerParameters) String() string { 19564 return awsutil.Prettify(s) 19565} 19566 19567// GoString returns the string representation 19568func (s SqlServerParameters) GoString() string { 19569 return s.String() 19570} 19571 19572// Validate inspects the fields of the type to determine if they are valid. 19573func (s *SqlServerParameters) Validate() error { 19574 invalidParams := request.ErrInvalidParams{Context: "SqlServerParameters"} 19575 if s.Database == nil { 19576 invalidParams.Add(request.NewErrParamRequired("Database")) 19577 } 19578 if s.Database != nil && len(*s.Database) < 1 { 19579 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 19580 } 19581 if s.Host == nil { 19582 invalidParams.Add(request.NewErrParamRequired("Host")) 19583 } 19584 if s.Host != nil && len(*s.Host) < 1 { 19585 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 19586 } 19587 if s.Port == nil { 19588 invalidParams.Add(request.NewErrParamRequired("Port")) 19589 } 19590 if s.Port != nil && *s.Port < 1 { 19591 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 19592 } 19593 19594 if invalidParams.Len() > 0 { 19595 return invalidParams 19596 } 19597 return nil 19598} 19599 19600// SetDatabase sets the Database field's value. 19601func (s *SqlServerParameters) SetDatabase(v string) *SqlServerParameters { 19602 s.Database = &v 19603 return s 19604} 19605 19606// SetHost sets the Host field's value. 19607func (s *SqlServerParameters) SetHost(v string) *SqlServerParameters { 19608 s.Host = &v 19609 return s 19610} 19611 19612// SetPort sets the Port field's value. 19613func (s *SqlServerParameters) SetPort(v int64) *SqlServerParameters { 19614 s.Port = &v 19615 return s 19616} 19617 19618// Secure Socket Layer (SSL) properties that apply when QuickSight connects 19619// to your underlying data source. 19620type SslProperties struct { 19621 _ struct{} `type:"structure"` 19622 19623 // A Boolean option to control whether SSL should be disabled. 19624 DisableSsl *bool `type:"boolean"` 19625} 19626 19627// String returns the string representation 19628func (s SslProperties) String() string { 19629 return awsutil.Prettify(s) 19630} 19631 19632// GoString returns the string representation 19633func (s SslProperties) GoString() string { 19634 return s.String() 19635} 19636 19637// SetDisableSsl sets the DisableSsl field's value. 19638func (s *SslProperties) SetDisableSsl(v bool) *SslProperties { 19639 s.DisableSsl = &v 19640 return s 19641} 19642 19643// String parameter. 19644type StringParameter struct { 19645 _ struct{} `type:"structure"` 19646 19647 // A display name for the dataset. 19648 // 19649 // Name is a required field 19650 Name *string `type:"string" required:"true"` 19651 19652 // Values. 19653 // 19654 // Values is a required field 19655 Values []*string `type:"list" required:"true"` 19656} 19657 19658// String returns the string representation 19659func (s StringParameter) String() string { 19660 return awsutil.Prettify(s) 19661} 19662 19663// GoString returns the string representation 19664func (s StringParameter) GoString() string { 19665 return s.String() 19666} 19667 19668// Validate inspects the fields of the type to determine if they are valid. 19669func (s *StringParameter) Validate() error { 19670 invalidParams := request.ErrInvalidParams{Context: "StringParameter"} 19671 if s.Name == nil { 19672 invalidParams.Add(request.NewErrParamRequired("Name")) 19673 } 19674 if s.Values == nil { 19675 invalidParams.Add(request.NewErrParamRequired("Values")) 19676 } 19677 19678 if invalidParams.Len() > 0 { 19679 return invalidParams 19680 } 19681 return nil 19682} 19683 19684// SetName sets the Name field's value. 19685func (s *StringParameter) SetName(v string) *StringParameter { 19686 s.Name = &v 19687 return s 19688} 19689 19690// SetValues sets the Values field's value. 19691func (s *StringParameter) SetValues(v []*string) *StringParameter { 19692 s.Values = v 19693 return s 19694} 19695 19696// The key or keys of the key-value pairs for the resource tag or tags assigned 19697// to the resource. 19698type Tag struct { 19699 _ struct{} `type:"structure"` 19700 19701 // Tag key. 19702 // 19703 // Key is a required field 19704 Key *string `min:"1" type:"string" required:"true"` 19705 19706 // Tag value. 19707 // 19708 // Value is a required field 19709 Value *string `min:"1" type:"string" required:"true"` 19710} 19711 19712// String returns the string representation 19713func (s Tag) String() string { 19714 return awsutil.Prettify(s) 19715} 19716 19717// GoString returns the string representation 19718func (s Tag) GoString() string { 19719 return s.String() 19720} 19721 19722// Validate inspects the fields of the type to determine if they are valid. 19723func (s *Tag) Validate() error { 19724 invalidParams := request.ErrInvalidParams{Context: "Tag"} 19725 if s.Key == nil { 19726 invalidParams.Add(request.NewErrParamRequired("Key")) 19727 } 19728 if s.Key != nil && len(*s.Key) < 1 { 19729 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 19730 } 19731 if s.Value == nil { 19732 invalidParams.Add(request.NewErrParamRequired("Value")) 19733 } 19734 if s.Value != nil && len(*s.Value) < 1 { 19735 invalidParams.Add(request.NewErrParamMinLen("Value", 1)) 19736 } 19737 19738 if invalidParams.Len() > 0 { 19739 return invalidParams 19740 } 19741 return nil 19742} 19743 19744// SetKey sets the Key field's value. 19745func (s *Tag) SetKey(v string) *Tag { 19746 s.Key = &v 19747 return s 19748} 19749 19750// SetValue sets the Value field's value. 19751func (s *Tag) SetValue(v string) *Tag { 19752 s.Value = &v 19753 return s 19754} 19755 19756// A transform operation that tags a column with additional information. 19757type TagColumnOperation struct { 19758 _ struct{} `type:"structure"` 19759 19760 // The column that this operation acts on. 19761 // 19762 // ColumnName is a required field 19763 ColumnName *string `min:"1" type:"string" required:"true"` 19764 19765 // The dataset column tag, currently only used for geospatial type tagging. . 19766 // 19767 // This is not tags for the AWS tagging feature. . 19768 // 19769 // Tags is a required field 19770 Tags []*ColumnTag `min:"1" type:"list" required:"true"` 19771} 19772 19773// String returns the string representation 19774func (s TagColumnOperation) String() string { 19775 return awsutil.Prettify(s) 19776} 19777 19778// GoString returns the string representation 19779func (s TagColumnOperation) GoString() string { 19780 return s.String() 19781} 19782 19783// Validate inspects the fields of the type to determine if they are valid. 19784func (s *TagColumnOperation) Validate() error { 19785 invalidParams := request.ErrInvalidParams{Context: "TagColumnOperation"} 19786 if s.ColumnName == nil { 19787 invalidParams.Add(request.NewErrParamRequired("ColumnName")) 19788 } 19789 if s.ColumnName != nil && len(*s.ColumnName) < 1 { 19790 invalidParams.Add(request.NewErrParamMinLen("ColumnName", 1)) 19791 } 19792 if s.Tags == nil { 19793 invalidParams.Add(request.NewErrParamRequired("Tags")) 19794 } 19795 if s.Tags != nil && len(s.Tags) < 1 { 19796 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 19797 } 19798 19799 if invalidParams.Len() > 0 { 19800 return invalidParams 19801 } 19802 return nil 19803} 19804 19805// SetColumnName sets the ColumnName field's value. 19806func (s *TagColumnOperation) SetColumnName(v string) *TagColumnOperation { 19807 s.ColumnName = &v 19808 return s 19809} 19810 19811// SetTags sets the Tags field's value. 19812func (s *TagColumnOperation) SetTags(v []*ColumnTag) *TagColumnOperation { 19813 s.Tags = v 19814 return s 19815} 19816 19817type TagResourceInput struct { 19818 _ struct{} `type:"structure"` 19819 19820 // The Amazon Resource Name (ARN) of the resource that you want to tag. 19821 // 19822 // ResourceArn is a required field 19823 ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` 19824 19825 // Contains a map of the key-value pairs for the resource tag or tags assigned 19826 // to the resource. 19827 // 19828 // Tags is a required field 19829 Tags []*Tag `min:"1" type:"list" required:"true"` 19830} 19831 19832// String returns the string representation 19833func (s TagResourceInput) String() string { 19834 return awsutil.Prettify(s) 19835} 19836 19837// GoString returns the string representation 19838func (s TagResourceInput) GoString() string { 19839 return s.String() 19840} 19841 19842// Validate inspects the fields of the type to determine if they are valid. 19843func (s *TagResourceInput) Validate() error { 19844 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 19845 if s.ResourceArn == nil { 19846 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 19847 } 19848 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 19849 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 19850 } 19851 if s.Tags == nil { 19852 invalidParams.Add(request.NewErrParamRequired("Tags")) 19853 } 19854 if s.Tags != nil && len(s.Tags) < 1 { 19855 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 19856 } 19857 if s.Tags != nil { 19858 for i, v := range s.Tags { 19859 if v == nil { 19860 continue 19861 } 19862 if err := v.Validate(); err != nil { 19863 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 19864 } 19865 } 19866 } 19867 19868 if invalidParams.Len() > 0 { 19869 return invalidParams 19870 } 19871 return nil 19872} 19873 19874// SetResourceArn sets the ResourceArn field's value. 19875func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 19876 s.ResourceArn = &v 19877 return s 19878} 19879 19880// SetTags sets the Tags field's value. 19881func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 19882 s.Tags = v 19883 return s 19884} 19885 19886type TagResourceOutput struct { 19887 _ struct{} `type:"structure"` 19888 19889 // The AWS request ID for this operation. 19890 RequestId *string `type:"string"` 19891 19892 // The HTTP status of the request. 19893 Status *int64 `location:"statusCode" type:"integer"` 19894} 19895 19896// String returns the string representation 19897func (s TagResourceOutput) String() string { 19898 return awsutil.Prettify(s) 19899} 19900 19901// GoString returns the string representation 19902func (s TagResourceOutput) GoString() string { 19903 return s.String() 19904} 19905 19906// SetRequestId sets the RequestId field's value. 19907func (s *TagResourceOutput) SetRequestId(v string) *TagResourceOutput { 19908 s.RequestId = &v 19909 return s 19910} 19911 19912// SetStatus sets the Status field's value. 19913func (s *TagResourceOutput) SetStatus(v int64) *TagResourceOutput { 19914 s.Status = &v 19915 return s 19916} 19917 19918// A template object. A template is an entity in QuickSight that encapsulates 19919// the metadata required to create an analysis and that you can use to create 19920// a dashboard. A template adds a layer of abstraction by using placeholders 19921// to replace the dataset associated with the analysis. You can use templates 19922// to create dashboards by replacing dataset placeholders with datasets that 19923// follow the same schema that was used to create the source analysis and template. 19924// 19925// You can share templates across AWS accounts by allowing users in other AWS 19926// accounts to create a template or a dashboard from an existing template. 19927type Template struct { 19928 _ struct{} `type:"structure"` 19929 19930 // The Amazon Resource Name (ARN) of the template. 19931 Arn *string `type:"string"` 19932 19933 // Time when this was created. 19934 CreatedTime *time.Time `type:"timestamp"` 19935 19936 // Time when this was last updated. 19937 LastUpdatedTime *time.Time `type:"timestamp"` 19938 19939 // The display name of the template. 19940 Name *string `min:"1" type:"string"` 19941 19942 // The ID for the template. This is unique per AWS Region for each AWS account. 19943 TemplateId *string `min:"1" type:"string"` 19944 19945 // A structure describing the versions of the template. 19946 Version *TemplateVersion `type:"structure"` 19947} 19948 19949// String returns the string representation 19950func (s Template) String() string { 19951 return awsutil.Prettify(s) 19952} 19953 19954// GoString returns the string representation 19955func (s Template) GoString() string { 19956 return s.String() 19957} 19958 19959// SetArn sets the Arn field's value. 19960func (s *Template) SetArn(v string) *Template { 19961 s.Arn = &v 19962 return s 19963} 19964 19965// SetCreatedTime sets the CreatedTime field's value. 19966func (s *Template) SetCreatedTime(v time.Time) *Template { 19967 s.CreatedTime = &v 19968 return s 19969} 19970 19971// SetLastUpdatedTime sets the LastUpdatedTime field's value. 19972func (s *Template) SetLastUpdatedTime(v time.Time) *Template { 19973 s.LastUpdatedTime = &v 19974 return s 19975} 19976 19977// SetName sets the Name field's value. 19978func (s *Template) SetName(v string) *Template { 19979 s.Name = &v 19980 return s 19981} 19982 19983// SetTemplateId sets the TemplateId field's value. 19984func (s *Template) SetTemplateId(v string) *Template { 19985 s.TemplateId = &v 19986 return s 19987} 19988 19989// SetVersion sets the Version field's value. 19990func (s *Template) SetVersion(v *TemplateVersion) *Template { 19991 s.Version = v 19992 return s 19993} 19994 19995// The template alias. 19996type TemplateAlias struct { 19997 _ struct{} `type:"structure"` 19998 19999 // The display name of the template alias. 20000 AliasName *string `min:"1" type:"string"` 20001 20002 // The Amazon Resource Name (ARN) of the template alias. 20003 Arn *string `type:"string"` 20004 20005 // The version number of the template alias. 20006 TemplateVersionNumber *int64 `min:"1" type:"long"` 20007} 20008 20009// String returns the string representation 20010func (s TemplateAlias) String() string { 20011 return awsutil.Prettify(s) 20012} 20013 20014// GoString returns the string representation 20015func (s TemplateAlias) GoString() string { 20016 return s.String() 20017} 20018 20019// SetAliasName sets the AliasName field's value. 20020func (s *TemplateAlias) SetAliasName(v string) *TemplateAlias { 20021 s.AliasName = &v 20022 return s 20023} 20024 20025// SetArn sets the Arn field's value. 20026func (s *TemplateAlias) SetArn(v string) *TemplateAlias { 20027 s.Arn = &v 20028 return s 20029} 20030 20031// SetTemplateVersionNumber sets the TemplateVersionNumber field's value. 20032func (s *TemplateAlias) SetTemplateVersionNumber(v int64) *TemplateAlias { 20033 s.TemplateVersionNumber = &v 20034 return s 20035} 20036 20037// List of errors that occurred when the template version creation failed. 20038type TemplateError struct { 20039 _ struct{} `type:"structure"` 20040 20041 // Description of the error type. 20042 Message *string `type:"string"` 20043 20044 // Type of error. 20045 Type *string `type:"string" enum:"TemplateErrorType"` 20046} 20047 20048// String returns the string representation 20049func (s TemplateError) String() string { 20050 return awsutil.Prettify(s) 20051} 20052 20053// GoString returns the string representation 20054func (s TemplateError) GoString() string { 20055 return s.String() 20056} 20057 20058// SetMessage sets the Message field's value. 20059func (s *TemplateError) SetMessage(v string) *TemplateError { 20060 s.Message = &v 20061 return s 20062} 20063 20064// SetType sets the Type field's value. 20065func (s *TemplateError) SetType(v string) *TemplateError { 20066 s.Type = &v 20067 return s 20068} 20069 20070// The source analysis of the template. 20071type TemplateSourceAnalysis struct { 20072 _ struct{} `type:"structure"` 20073 20074 // The Amazon Resource Name (ARN) of the resource. 20075 // 20076 // Arn is a required field 20077 Arn *string `type:"string" required:"true"` 20078 20079 // A structure containing information about the dataset references used as placeholders 20080 // in the template. 20081 // 20082 // DataSetReferences is a required field 20083 DataSetReferences []*DataSetReference `min:"1" type:"list" required:"true"` 20084} 20085 20086// String returns the string representation 20087func (s TemplateSourceAnalysis) String() string { 20088 return awsutil.Prettify(s) 20089} 20090 20091// GoString returns the string representation 20092func (s TemplateSourceAnalysis) GoString() string { 20093 return s.String() 20094} 20095 20096// Validate inspects the fields of the type to determine if they are valid. 20097func (s *TemplateSourceAnalysis) Validate() error { 20098 invalidParams := request.ErrInvalidParams{Context: "TemplateSourceAnalysis"} 20099 if s.Arn == nil { 20100 invalidParams.Add(request.NewErrParamRequired("Arn")) 20101 } 20102 if s.DataSetReferences == nil { 20103 invalidParams.Add(request.NewErrParamRequired("DataSetReferences")) 20104 } 20105 if s.DataSetReferences != nil && len(s.DataSetReferences) < 1 { 20106 invalidParams.Add(request.NewErrParamMinLen("DataSetReferences", 1)) 20107 } 20108 if s.DataSetReferences != nil { 20109 for i, v := range s.DataSetReferences { 20110 if v == nil { 20111 continue 20112 } 20113 if err := v.Validate(); err != nil { 20114 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DataSetReferences", i), err.(request.ErrInvalidParams)) 20115 } 20116 } 20117 } 20118 20119 if invalidParams.Len() > 0 { 20120 return invalidParams 20121 } 20122 return nil 20123} 20124 20125// SetArn sets the Arn field's value. 20126func (s *TemplateSourceAnalysis) SetArn(v string) *TemplateSourceAnalysis { 20127 s.Arn = &v 20128 return s 20129} 20130 20131// SetDataSetReferences sets the DataSetReferences field's value. 20132func (s *TemplateSourceAnalysis) SetDataSetReferences(v []*DataSetReference) *TemplateSourceAnalysis { 20133 s.DataSetReferences = v 20134 return s 20135} 20136 20137// The source entity of the template. 20138type TemplateSourceEntity struct { 20139 _ struct{} `type:"structure"` 20140 20141 // The source analysis, if it is based on an analysis. 20142 SourceAnalysis *TemplateSourceAnalysis `type:"structure"` 20143 20144 // The source template, if it is based on an template. 20145 SourceTemplate *TemplateSourceTemplate `type:"structure"` 20146} 20147 20148// String returns the string representation 20149func (s TemplateSourceEntity) String() string { 20150 return awsutil.Prettify(s) 20151} 20152 20153// GoString returns the string representation 20154func (s TemplateSourceEntity) GoString() string { 20155 return s.String() 20156} 20157 20158// Validate inspects the fields of the type to determine if they are valid. 20159func (s *TemplateSourceEntity) Validate() error { 20160 invalidParams := request.ErrInvalidParams{Context: "TemplateSourceEntity"} 20161 if s.SourceAnalysis != nil { 20162 if err := s.SourceAnalysis.Validate(); err != nil { 20163 invalidParams.AddNested("SourceAnalysis", err.(request.ErrInvalidParams)) 20164 } 20165 } 20166 if s.SourceTemplate != nil { 20167 if err := s.SourceTemplate.Validate(); err != nil { 20168 invalidParams.AddNested("SourceTemplate", err.(request.ErrInvalidParams)) 20169 } 20170 } 20171 20172 if invalidParams.Len() > 0 { 20173 return invalidParams 20174 } 20175 return nil 20176} 20177 20178// SetSourceAnalysis sets the SourceAnalysis field's value. 20179func (s *TemplateSourceEntity) SetSourceAnalysis(v *TemplateSourceAnalysis) *TemplateSourceEntity { 20180 s.SourceAnalysis = v 20181 return s 20182} 20183 20184// SetSourceTemplate sets the SourceTemplate field's value. 20185func (s *TemplateSourceEntity) SetSourceTemplate(v *TemplateSourceTemplate) *TemplateSourceEntity { 20186 s.SourceTemplate = v 20187 return s 20188} 20189 20190// The source template of the template. 20191type TemplateSourceTemplate struct { 20192 _ struct{} `type:"structure"` 20193 20194 // The Amazon Resource Name (ARN) of the resource. 20195 // 20196 // Arn is a required field 20197 Arn *string `type:"string" required:"true"` 20198} 20199 20200// String returns the string representation 20201func (s TemplateSourceTemplate) String() string { 20202 return awsutil.Prettify(s) 20203} 20204 20205// GoString returns the string representation 20206func (s TemplateSourceTemplate) GoString() string { 20207 return s.String() 20208} 20209 20210// Validate inspects the fields of the type to determine if they are valid. 20211func (s *TemplateSourceTemplate) Validate() error { 20212 invalidParams := request.ErrInvalidParams{Context: "TemplateSourceTemplate"} 20213 if s.Arn == nil { 20214 invalidParams.Add(request.NewErrParamRequired("Arn")) 20215 } 20216 20217 if invalidParams.Len() > 0 { 20218 return invalidParams 20219 } 20220 return nil 20221} 20222 20223// SetArn sets the Arn field's value. 20224func (s *TemplateSourceTemplate) SetArn(v string) *TemplateSourceTemplate { 20225 s.Arn = &v 20226 return s 20227} 20228 20229// The template summary. 20230type TemplateSummary struct { 20231 _ struct{} `type:"structure"` 20232 20233 // A summary of a template. 20234 Arn *string `type:"string"` 20235 20236 // The last time that this template was created. 20237 CreatedTime *time.Time `type:"timestamp"` 20238 20239 // The last time that this template was updated. 20240 LastUpdatedTime *time.Time `type:"timestamp"` 20241 20242 // A structure containing a list of version numbers for the template summary. 20243 LatestVersionNumber *int64 `min:"1" type:"long"` 20244 20245 // A display name for the template. 20246 Name *string `min:"1" type:"string"` 20247 20248 // The ID of the template. This ID is unique per AWS Region for each AWS account. 20249 TemplateId *string `min:"1" type:"string"` 20250} 20251 20252// String returns the string representation 20253func (s TemplateSummary) String() string { 20254 return awsutil.Prettify(s) 20255} 20256 20257// GoString returns the string representation 20258func (s TemplateSummary) GoString() string { 20259 return s.String() 20260} 20261 20262// SetArn sets the Arn field's value. 20263func (s *TemplateSummary) SetArn(v string) *TemplateSummary { 20264 s.Arn = &v 20265 return s 20266} 20267 20268// SetCreatedTime sets the CreatedTime field's value. 20269func (s *TemplateSummary) SetCreatedTime(v time.Time) *TemplateSummary { 20270 s.CreatedTime = &v 20271 return s 20272} 20273 20274// SetLastUpdatedTime sets the LastUpdatedTime field's value. 20275func (s *TemplateSummary) SetLastUpdatedTime(v time.Time) *TemplateSummary { 20276 s.LastUpdatedTime = &v 20277 return s 20278} 20279 20280// SetLatestVersionNumber sets the LatestVersionNumber field's value. 20281func (s *TemplateSummary) SetLatestVersionNumber(v int64) *TemplateSummary { 20282 s.LatestVersionNumber = &v 20283 return s 20284} 20285 20286// SetName sets the Name field's value. 20287func (s *TemplateSummary) SetName(v string) *TemplateSummary { 20288 s.Name = &v 20289 return s 20290} 20291 20292// SetTemplateId sets the TemplateId field's value. 20293func (s *TemplateSummary) SetTemplateId(v string) *TemplateSummary { 20294 s.TemplateId = &v 20295 return s 20296} 20297 20298// A version of a template. 20299type TemplateVersion struct { 20300 _ struct{} `type:"structure"` 20301 20302 // The time that this template version was created. 20303 CreatedTime *time.Time `type:"timestamp"` 20304 20305 // Schema of the dataset identified by the placeholder. The idea is that any 20306 // dashboard created from the template should be bound to new datasets matching 20307 // the same schema described through this API. . 20308 DataSetConfigurations []*DataSetConfiguration `type:"list"` 20309 20310 // The description of the template. 20311 Description *string `min:"1" type:"string"` 20312 20313 // Errors associated with the template. 20314 Errors []*TemplateError `min:"1" type:"list"` 20315 20316 // The Amazon Resource Name (ARN) of the analysis or template which was used 20317 // to create this template. 20318 SourceEntityArn *string `type:"string"` 20319 20320 // The HTTP status of the request. 20321 Status *string `type:"string" enum:"ResourceStatus"` 20322 20323 // The version number of the template. 20324 VersionNumber *int64 `min:"1" type:"long"` 20325} 20326 20327// String returns the string representation 20328func (s TemplateVersion) String() string { 20329 return awsutil.Prettify(s) 20330} 20331 20332// GoString returns the string representation 20333func (s TemplateVersion) GoString() string { 20334 return s.String() 20335} 20336 20337// SetCreatedTime sets the CreatedTime field's value. 20338func (s *TemplateVersion) SetCreatedTime(v time.Time) *TemplateVersion { 20339 s.CreatedTime = &v 20340 return s 20341} 20342 20343// SetDataSetConfigurations sets the DataSetConfigurations field's value. 20344func (s *TemplateVersion) SetDataSetConfigurations(v []*DataSetConfiguration) *TemplateVersion { 20345 s.DataSetConfigurations = v 20346 return s 20347} 20348 20349// SetDescription sets the Description field's value. 20350func (s *TemplateVersion) SetDescription(v string) *TemplateVersion { 20351 s.Description = &v 20352 return s 20353} 20354 20355// SetErrors sets the Errors field's value. 20356func (s *TemplateVersion) SetErrors(v []*TemplateError) *TemplateVersion { 20357 s.Errors = v 20358 return s 20359} 20360 20361// SetSourceEntityArn sets the SourceEntityArn field's value. 20362func (s *TemplateVersion) SetSourceEntityArn(v string) *TemplateVersion { 20363 s.SourceEntityArn = &v 20364 return s 20365} 20366 20367// SetStatus sets the Status field's value. 20368func (s *TemplateVersion) SetStatus(v string) *TemplateVersion { 20369 s.Status = &v 20370 return s 20371} 20372 20373// SetVersionNumber sets the VersionNumber field's value. 20374func (s *TemplateVersion) SetVersionNumber(v int64) *TemplateVersion { 20375 s.VersionNumber = &v 20376 return s 20377} 20378 20379// The template version. 20380type TemplateVersionSummary struct { 20381 _ struct{} `type:"structure"` 20382 20383 // The ARN of the template version. 20384 Arn *string `type:"string"` 20385 20386 // The time that this template version was created. 20387 CreatedTime *time.Time `type:"timestamp"` 20388 20389 // The description of the template version. 20390 Description *string `min:"1" type:"string"` 20391 20392 // The status of the template version. 20393 Status *string `type:"string" enum:"ResourceStatus"` 20394 20395 // The version number of the template version. 20396 VersionNumber *int64 `min:"1" type:"long"` 20397} 20398 20399// String returns the string representation 20400func (s TemplateVersionSummary) String() string { 20401 return awsutil.Prettify(s) 20402} 20403 20404// GoString returns the string representation 20405func (s TemplateVersionSummary) GoString() string { 20406 return s.String() 20407} 20408 20409// SetArn sets the Arn field's value. 20410func (s *TemplateVersionSummary) SetArn(v string) *TemplateVersionSummary { 20411 s.Arn = &v 20412 return s 20413} 20414 20415// SetCreatedTime sets the CreatedTime field's value. 20416func (s *TemplateVersionSummary) SetCreatedTime(v time.Time) *TemplateVersionSummary { 20417 s.CreatedTime = &v 20418 return s 20419} 20420 20421// SetDescription sets the Description field's value. 20422func (s *TemplateVersionSummary) SetDescription(v string) *TemplateVersionSummary { 20423 s.Description = &v 20424 return s 20425} 20426 20427// SetStatus sets the Status field's value. 20428func (s *TemplateVersionSummary) SetStatus(v string) *TemplateVersionSummary { 20429 s.Status = &v 20430 return s 20431} 20432 20433// SetVersionNumber sets the VersionNumber field's value. 20434func (s *TemplateVersionSummary) SetVersionNumber(v int64) *TemplateVersionSummary { 20435 s.VersionNumber = &v 20436 return s 20437} 20438 20439// Teradata parameters. 20440type TeradataParameters struct { 20441 _ struct{} `type:"structure"` 20442 20443 // Database. 20444 // 20445 // Database is a required field 20446 Database *string `min:"1" type:"string" required:"true"` 20447 20448 // Host. 20449 // 20450 // Host is a required field 20451 Host *string `min:"1" type:"string" required:"true"` 20452 20453 // Port. 20454 // 20455 // Port is a required field 20456 Port *int64 `min:"1" type:"integer" required:"true"` 20457} 20458 20459// String returns the string representation 20460func (s TeradataParameters) String() string { 20461 return awsutil.Prettify(s) 20462} 20463 20464// GoString returns the string representation 20465func (s TeradataParameters) GoString() string { 20466 return s.String() 20467} 20468 20469// Validate inspects the fields of the type to determine if they are valid. 20470func (s *TeradataParameters) Validate() error { 20471 invalidParams := request.ErrInvalidParams{Context: "TeradataParameters"} 20472 if s.Database == nil { 20473 invalidParams.Add(request.NewErrParamRequired("Database")) 20474 } 20475 if s.Database != nil && len(*s.Database) < 1 { 20476 invalidParams.Add(request.NewErrParamMinLen("Database", 1)) 20477 } 20478 if s.Host == nil { 20479 invalidParams.Add(request.NewErrParamRequired("Host")) 20480 } 20481 if s.Host != nil && len(*s.Host) < 1 { 20482 invalidParams.Add(request.NewErrParamMinLen("Host", 1)) 20483 } 20484 if s.Port == nil { 20485 invalidParams.Add(request.NewErrParamRequired("Port")) 20486 } 20487 if s.Port != nil && *s.Port < 1 { 20488 invalidParams.Add(request.NewErrParamMinValue("Port", 1)) 20489 } 20490 20491 if invalidParams.Len() > 0 { 20492 return invalidParams 20493 } 20494 return nil 20495} 20496 20497// SetDatabase sets the Database field's value. 20498func (s *TeradataParameters) SetDatabase(v string) *TeradataParameters { 20499 s.Database = &v 20500 return s 20501} 20502 20503// SetHost sets the Host field's value. 20504func (s *TeradataParameters) SetHost(v string) *TeradataParameters { 20505 s.Host = &v 20506 return s 20507} 20508 20509// SetPort sets the Port field's value. 20510func (s *TeradataParameters) SetPort(v int64) *TeradataParameters { 20511 s.Port = &v 20512 return s 20513} 20514 20515// Access is throttled. 20516type ThrottlingException struct { 20517 _ struct{} `type:"structure"` 20518 respMetadata protocol.ResponseMetadata 20519 20520 Message_ *string `locationName:"Message" type:"string"` 20521 20522 // The AWS request ID for this request. 20523 RequestId *string `type:"string"` 20524} 20525 20526// String returns the string representation 20527func (s ThrottlingException) String() string { 20528 return awsutil.Prettify(s) 20529} 20530 20531// GoString returns the string representation 20532func (s ThrottlingException) GoString() string { 20533 return s.String() 20534} 20535 20536func newErrorThrottlingException(v protocol.ResponseMetadata) error { 20537 return &ThrottlingException{ 20538 respMetadata: v, 20539 } 20540} 20541 20542// Code returns the exception type name. 20543func (s ThrottlingException) Code() string { 20544 return "ThrottlingException" 20545} 20546 20547// Message returns the exception's message. 20548func (s ThrottlingException) Message() string { 20549 if s.Message_ != nil { 20550 return *s.Message_ 20551 } 20552 return "" 20553} 20554 20555// OrigErr always returns nil, satisfies awserr.Error interface. 20556func (s ThrottlingException) OrigErr() error { 20557 return nil 20558} 20559 20560func (s ThrottlingException) Error() string { 20561 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 20562} 20563 20564// Status code returns the HTTP status code for the request's response error. 20565func (s ThrottlingException) StatusCode() int { 20566 return s.respMetadata.StatusCode 20567} 20568 20569// RequestID returns the service's response RequestID for request. 20570func (s ThrottlingException) RequestID() string { 20571 return s.respMetadata.RequestID 20572} 20573 20574// A data transformation on a logical table. This is a variant type structure. 20575// For this structure to be valid, only one of the attributes can be non-null. 20576type TransformOperation struct { 20577 _ struct{} `type:"structure"` 20578 20579 // A transform operation that casts a column to a different type. 20580 CastColumnTypeOperation *CastColumnTypeOperation `type:"structure"` 20581 20582 // An operation that creates calculated columns. Columns created in one such 20583 // operation form a lexical closure. 20584 CreateColumnsOperation *CreateColumnsOperation `type:"structure"` 20585 20586 // An operation that filters rows based on some condition. 20587 FilterOperation *FilterOperation `type:"structure"` 20588 20589 // An operation that projects columns. Operations that come after a projection 20590 // can only refer to projected columns. 20591 ProjectOperation *ProjectOperation `type:"structure"` 20592 20593 // An operation that renames a column. 20594 RenameColumnOperation *RenameColumnOperation `type:"structure"` 20595 20596 // An operation that tags a column with additional information. 20597 TagColumnOperation *TagColumnOperation `type:"structure"` 20598} 20599 20600// String returns the string representation 20601func (s TransformOperation) String() string { 20602 return awsutil.Prettify(s) 20603} 20604 20605// GoString returns the string representation 20606func (s TransformOperation) GoString() string { 20607 return s.String() 20608} 20609 20610// Validate inspects the fields of the type to determine if they are valid. 20611func (s *TransformOperation) Validate() error { 20612 invalidParams := request.ErrInvalidParams{Context: "TransformOperation"} 20613 if s.CastColumnTypeOperation != nil { 20614 if err := s.CastColumnTypeOperation.Validate(); err != nil { 20615 invalidParams.AddNested("CastColumnTypeOperation", err.(request.ErrInvalidParams)) 20616 } 20617 } 20618 if s.CreateColumnsOperation != nil { 20619 if err := s.CreateColumnsOperation.Validate(); err != nil { 20620 invalidParams.AddNested("CreateColumnsOperation", err.(request.ErrInvalidParams)) 20621 } 20622 } 20623 if s.FilterOperation != nil { 20624 if err := s.FilterOperation.Validate(); err != nil { 20625 invalidParams.AddNested("FilterOperation", err.(request.ErrInvalidParams)) 20626 } 20627 } 20628 if s.ProjectOperation != nil { 20629 if err := s.ProjectOperation.Validate(); err != nil { 20630 invalidParams.AddNested("ProjectOperation", err.(request.ErrInvalidParams)) 20631 } 20632 } 20633 if s.RenameColumnOperation != nil { 20634 if err := s.RenameColumnOperation.Validate(); err != nil { 20635 invalidParams.AddNested("RenameColumnOperation", err.(request.ErrInvalidParams)) 20636 } 20637 } 20638 if s.TagColumnOperation != nil { 20639 if err := s.TagColumnOperation.Validate(); err != nil { 20640 invalidParams.AddNested("TagColumnOperation", err.(request.ErrInvalidParams)) 20641 } 20642 } 20643 20644 if invalidParams.Len() > 0 { 20645 return invalidParams 20646 } 20647 return nil 20648} 20649 20650// SetCastColumnTypeOperation sets the CastColumnTypeOperation field's value. 20651func (s *TransformOperation) SetCastColumnTypeOperation(v *CastColumnTypeOperation) *TransformOperation { 20652 s.CastColumnTypeOperation = v 20653 return s 20654} 20655 20656// SetCreateColumnsOperation sets the CreateColumnsOperation field's value. 20657func (s *TransformOperation) SetCreateColumnsOperation(v *CreateColumnsOperation) *TransformOperation { 20658 s.CreateColumnsOperation = v 20659 return s 20660} 20661 20662// SetFilterOperation sets the FilterOperation field's value. 20663func (s *TransformOperation) SetFilterOperation(v *FilterOperation) *TransformOperation { 20664 s.FilterOperation = v 20665 return s 20666} 20667 20668// SetProjectOperation sets the ProjectOperation field's value. 20669func (s *TransformOperation) SetProjectOperation(v *ProjectOperation) *TransformOperation { 20670 s.ProjectOperation = v 20671 return s 20672} 20673 20674// SetRenameColumnOperation sets the RenameColumnOperation field's value. 20675func (s *TransformOperation) SetRenameColumnOperation(v *RenameColumnOperation) *TransformOperation { 20676 s.RenameColumnOperation = v 20677 return s 20678} 20679 20680// SetTagColumnOperation sets the TagColumnOperation field's value. 20681func (s *TransformOperation) SetTagColumnOperation(v *TagColumnOperation) *TransformOperation { 20682 s.TagColumnOperation = v 20683 return s 20684} 20685 20686// Twitter parameters. 20687type TwitterParameters struct { 20688 _ struct{} `type:"structure"` 20689 20690 // Maximum number of rows to query Twitter. 20691 // 20692 // MaxRows is a required field 20693 MaxRows *int64 `min:"1" type:"integer" required:"true"` 20694 20695 // Twitter query string. 20696 // 20697 // Query is a required field 20698 Query *string `min:"1" type:"string" required:"true"` 20699} 20700 20701// String returns the string representation 20702func (s TwitterParameters) String() string { 20703 return awsutil.Prettify(s) 20704} 20705 20706// GoString returns the string representation 20707func (s TwitterParameters) GoString() string { 20708 return s.String() 20709} 20710 20711// Validate inspects the fields of the type to determine if they are valid. 20712func (s *TwitterParameters) Validate() error { 20713 invalidParams := request.ErrInvalidParams{Context: "TwitterParameters"} 20714 if s.MaxRows == nil { 20715 invalidParams.Add(request.NewErrParamRequired("MaxRows")) 20716 } 20717 if s.MaxRows != nil && *s.MaxRows < 1 { 20718 invalidParams.Add(request.NewErrParamMinValue("MaxRows", 1)) 20719 } 20720 if s.Query == nil { 20721 invalidParams.Add(request.NewErrParamRequired("Query")) 20722 } 20723 if s.Query != nil && len(*s.Query) < 1 { 20724 invalidParams.Add(request.NewErrParamMinLen("Query", 1)) 20725 } 20726 20727 if invalidParams.Len() > 0 { 20728 return invalidParams 20729 } 20730 return nil 20731} 20732 20733// SetMaxRows sets the MaxRows field's value. 20734func (s *TwitterParameters) SetMaxRows(v int64) *TwitterParameters { 20735 s.MaxRows = &v 20736 return s 20737} 20738 20739// SetQuery sets the Query field's value. 20740func (s *TwitterParameters) SetQuery(v string) *TwitterParameters { 20741 s.Query = &v 20742 return s 20743} 20744 20745// This error indicates that you are calling an operation on an Amazon QuickSight 20746// subscription where the edition doesn't include support for that operation. 20747// Amazon QuickSight currently has Standard Edition and Enterprise Edition. 20748// Not every operation and capability is available in every edition. 20749type UnsupportedUserEditionException struct { 20750 _ struct{} `type:"structure"` 20751 respMetadata protocol.ResponseMetadata 20752 20753 Message_ *string `locationName:"Message" type:"string"` 20754 20755 // The AWS request ID for this request. 20756 RequestId *string `type:"string"` 20757} 20758 20759// String returns the string representation 20760func (s UnsupportedUserEditionException) String() string { 20761 return awsutil.Prettify(s) 20762} 20763 20764// GoString returns the string representation 20765func (s UnsupportedUserEditionException) GoString() string { 20766 return s.String() 20767} 20768 20769func newErrorUnsupportedUserEditionException(v protocol.ResponseMetadata) error { 20770 return &UnsupportedUserEditionException{ 20771 respMetadata: v, 20772 } 20773} 20774 20775// Code returns the exception type name. 20776func (s UnsupportedUserEditionException) Code() string { 20777 return "UnsupportedUserEditionException" 20778} 20779 20780// Message returns the exception's message. 20781func (s UnsupportedUserEditionException) Message() string { 20782 if s.Message_ != nil { 20783 return *s.Message_ 20784 } 20785 return "" 20786} 20787 20788// OrigErr always returns nil, satisfies awserr.Error interface. 20789func (s UnsupportedUserEditionException) OrigErr() error { 20790 return nil 20791} 20792 20793func (s UnsupportedUserEditionException) Error() string { 20794 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 20795} 20796 20797// Status code returns the HTTP status code for the request's response error. 20798func (s UnsupportedUserEditionException) StatusCode() int { 20799 return s.respMetadata.StatusCode 20800} 20801 20802// RequestID returns the service's response RequestID for request. 20803func (s UnsupportedUserEditionException) RequestID() string { 20804 return s.respMetadata.RequestID 20805} 20806 20807type UntagResourceInput struct { 20808 _ struct{} `type:"structure"` 20809 20810 // The Amazon Resource Name (ARN) of the resource that you want to untag. 20811 // 20812 // ResourceArn is a required field 20813 ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` 20814 20815 // The keys of the key-value pairs for the resource tag or tags assigned to 20816 // the resource. 20817 // 20818 // TagKeys is a required field 20819 TagKeys []*string `location:"querystring" locationName:"keys" min:"1" type:"list" required:"true"` 20820} 20821 20822// String returns the string representation 20823func (s UntagResourceInput) String() string { 20824 return awsutil.Prettify(s) 20825} 20826 20827// GoString returns the string representation 20828func (s UntagResourceInput) GoString() string { 20829 return s.String() 20830} 20831 20832// Validate inspects the fields of the type to determine if they are valid. 20833func (s *UntagResourceInput) Validate() error { 20834 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 20835 if s.ResourceArn == nil { 20836 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 20837 } 20838 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 20839 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 20840 } 20841 if s.TagKeys == nil { 20842 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 20843 } 20844 if s.TagKeys != nil && len(s.TagKeys) < 1 { 20845 invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) 20846 } 20847 20848 if invalidParams.Len() > 0 { 20849 return invalidParams 20850 } 20851 return nil 20852} 20853 20854// SetResourceArn sets the ResourceArn field's value. 20855func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 20856 s.ResourceArn = &v 20857 return s 20858} 20859 20860// SetTagKeys sets the TagKeys field's value. 20861func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 20862 s.TagKeys = v 20863 return s 20864} 20865 20866type UntagResourceOutput struct { 20867 _ struct{} `type:"structure"` 20868 20869 // The AWS request ID for this operation. 20870 RequestId *string `type:"string"` 20871 20872 // The HTTP status of the request. 20873 Status *int64 `location:"statusCode" type:"integer"` 20874} 20875 20876// String returns the string representation 20877func (s UntagResourceOutput) String() string { 20878 return awsutil.Prettify(s) 20879} 20880 20881// GoString returns the string representation 20882func (s UntagResourceOutput) GoString() string { 20883 return s.String() 20884} 20885 20886// SetRequestId sets the RequestId field's value. 20887func (s *UntagResourceOutput) SetRequestId(v string) *UntagResourceOutput { 20888 s.RequestId = &v 20889 return s 20890} 20891 20892// SetStatus sets the Status field's value. 20893func (s *UntagResourceOutput) SetStatus(v int64) *UntagResourceOutput { 20894 s.Status = &v 20895 return s 20896} 20897 20898type UpdateDashboardInput struct { 20899 _ struct{} `type:"structure"` 20900 20901 // The ID of the AWS account that contains the dashboard that you're updating. 20902 // 20903 // AwsAccountId is a required field 20904 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 20905 20906 // The ID for the dashboard. 20907 // 20908 // DashboardId is a required field 20909 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 20910 20911 // Options for publishing the dashboard when you create it: 20912 // 20913 // * AvailabilityStatus for AdHocFilteringOption - This status can be either 20914 // ENABLED or DISABLED. When this is set to DISABLED, QuickSight disables 20915 // the left filter pane on the published dashboard, which can be used for 20916 // ad hoc (one-time) filtering. This option is ENABLED by default. 20917 // 20918 // * AvailabilityStatus for ExportToCSVOption - This status can be either 20919 // ENABLED or DISABLED. The visual option to export data to .csv format isn't 20920 // enabled when this is set to DISABLED. This option is ENABLED by default. 20921 // 20922 // * VisibilityState for SheetControlsOption - This visibility state can 20923 // be either COLLAPSED or EXPANDED. The sheet controls pane is collapsed 20924 // by default when set to true. This option is COLLAPSED by default. 20925 DashboardPublishOptions *DashboardPublishOptions `type:"structure"` 20926 20927 // The display name of the dashboard. 20928 // 20929 // Name is a required field 20930 Name *string `min:"1" type:"string" required:"true"` 20931 20932 // A structure that contains the parameters of the dashboard. 20933 Parameters *Parameters `type:"structure"` 20934 20935 // The template or analysis from which the dashboard is created. The SouceTemplate 20936 // entity accepts the Amazon Resource Name (ARN) of the template and also references 20937 // to replacement datasets for the placeholders set when creating the template. 20938 // The replacement datasets need to follow the same schema as the datasets for 20939 // which placeholders were created when creating the template. 20940 // 20941 // SourceEntity is a required field 20942 SourceEntity *DashboardSourceEntity `type:"structure" required:"true"` 20943 20944 // A description for the first version of the dashboard being created. 20945 VersionDescription *string `min:"1" type:"string"` 20946} 20947 20948// String returns the string representation 20949func (s UpdateDashboardInput) String() string { 20950 return awsutil.Prettify(s) 20951} 20952 20953// GoString returns the string representation 20954func (s UpdateDashboardInput) GoString() string { 20955 return s.String() 20956} 20957 20958// Validate inspects the fields of the type to determine if they are valid. 20959func (s *UpdateDashboardInput) Validate() error { 20960 invalidParams := request.ErrInvalidParams{Context: "UpdateDashboardInput"} 20961 if s.AwsAccountId == nil { 20962 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 20963 } 20964 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 20965 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 20966 } 20967 if s.DashboardId == nil { 20968 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 20969 } 20970 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 20971 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 20972 } 20973 if s.Name == nil { 20974 invalidParams.Add(request.NewErrParamRequired("Name")) 20975 } 20976 if s.Name != nil && len(*s.Name) < 1 { 20977 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 20978 } 20979 if s.SourceEntity == nil { 20980 invalidParams.Add(request.NewErrParamRequired("SourceEntity")) 20981 } 20982 if s.VersionDescription != nil && len(*s.VersionDescription) < 1 { 20983 invalidParams.Add(request.NewErrParamMinLen("VersionDescription", 1)) 20984 } 20985 if s.Parameters != nil { 20986 if err := s.Parameters.Validate(); err != nil { 20987 invalidParams.AddNested("Parameters", err.(request.ErrInvalidParams)) 20988 } 20989 } 20990 if s.SourceEntity != nil { 20991 if err := s.SourceEntity.Validate(); err != nil { 20992 invalidParams.AddNested("SourceEntity", err.(request.ErrInvalidParams)) 20993 } 20994 } 20995 20996 if invalidParams.Len() > 0 { 20997 return invalidParams 20998 } 20999 return nil 21000} 21001 21002// SetAwsAccountId sets the AwsAccountId field's value. 21003func (s *UpdateDashboardInput) SetAwsAccountId(v string) *UpdateDashboardInput { 21004 s.AwsAccountId = &v 21005 return s 21006} 21007 21008// SetDashboardId sets the DashboardId field's value. 21009func (s *UpdateDashboardInput) SetDashboardId(v string) *UpdateDashboardInput { 21010 s.DashboardId = &v 21011 return s 21012} 21013 21014// SetDashboardPublishOptions sets the DashboardPublishOptions field's value. 21015func (s *UpdateDashboardInput) SetDashboardPublishOptions(v *DashboardPublishOptions) *UpdateDashboardInput { 21016 s.DashboardPublishOptions = v 21017 return s 21018} 21019 21020// SetName sets the Name field's value. 21021func (s *UpdateDashboardInput) SetName(v string) *UpdateDashboardInput { 21022 s.Name = &v 21023 return s 21024} 21025 21026// SetParameters sets the Parameters field's value. 21027func (s *UpdateDashboardInput) SetParameters(v *Parameters) *UpdateDashboardInput { 21028 s.Parameters = v 21029 return s 21030} 21031 21032// SetSourceEntity sets the SourceEntity field's value. 21033func (s *UpdateDashboardInput) SetSourceEntity(v *DashboardSourceEntity) *UpdateDashboardInput { 21034 s.SourceEntity = v 21035 return s 21036} 21037 21038// SetVersionDescription sets the VersionDescription field's value. 21039func (s *UpdateDashboardInput) SetVersionDescription(v string) *UpdateDashboardInput { 21040 s.VersionDescription = &v 21041 return s 21042} 21043 21044type UpdateDashboardOutput struct { 21045 _ struct{} `type:"structure"` 21046 21047 // The Amazon Resource Name (ARN) of the resource. 21048 Arn *string `type:"string"` 21049 21050 // The creation status of the request. 21051 CreationStatus *string `type:"string" enum:"ResourceStatus"` 21052 21053 // The ID for the dashboard. 21054 DashboardId *string `min:"1" type:"string"` 21055 21056 // The AWS request ID for this operation. 21057 RequestId *string `type:"string"` 21058 21059 // The HTTP status of the request. 21060 Status *int64 `type:"integer"` 21061 21062 // The ARN of the dashboard, including the version number. 21063 VersionArn *string `type:"string"` 21064} 21065 21066// String returns the string representation 21067func (s UpdateDashboardOutput) String() string { 21068 return awsutil.Prettify(s) 21069} 21070 21071// GoString returns the string representation 21072func (s UpdateDashboardOutput) GoString() string { 21073 return s.String() 21074} 21075 21076// SetArn sets the Arn field's value. 21077func (s *UpdateDashboardOutput) SetArn(v string) *UpdateDashboardOutput { 21078 s.Arn = &v 21079 return s 21080} 21081 21082// SetCreationStatus sets the CreationStatus field's value. 21083func (s *UpdateDashboardOutput) SetCreationStatus(v string) *UpdateDashboardOutput { 21084 s.CreationStatus = &v 21085 return s 21086} 21087 21088// SetDashboardId sets the DashboardId field's value. 21089func (s *UpdateDashboardOutput) SetDashboardId(v string) *UpdateDashboardOutput { 21090 s.DashboardId = &v 21091 return s 21092} 21093 21094// SetRequestId sets the RequestId field's value. 21095func (s *UpdateDashboardOutput) SetRequestId(v string) *UpdateDashboardOutput { 21096 s.RequestId = &v 21097 return s 21098} 21099 21100// SetStatus sets the Status field's value. 21101func (s *UpdateDashboardOutput) SetStatus(v int64) *UpdateDashboardOutput { 21102 s.Status = &v 21103 return s 21104} 21105 21106// SetVersionArn sets the VersionArn field's value. 21107func (s *UpdateDashboardOutput) SetVersionArn(v string) *UpdateDashboardOutput { 21108 s.VersionArn = &v 21109 return s 21110} 21111 21112type UpdateDashboardPermissionsInput struct { 21113 _ struct{} `type:"structure"` 21114 21115 // The ID of the AWS account that contains the dashboard whose permissions you're 21116 // updating. 21117 // 21118 // AwsAccountId is a required field 21119 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 21120 21121 // The ID for the dashboard. 21122 // 21123 // DashboardId is a required field 21124 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 21125 21126 // The permissions that you want to grant on this resource. 21127 GrantPermissions []*ResourcePermission `min:"1" type:"list"` 21128 21129 // The permissions that you want to revoke from this resource. 21130 RevokePermissions []*ResourcePermission `min:"1" type:"list"` 21131} 21132 21133// String returns the string representation 21134func (s UpdateDashboardPermissionsInput) String() string { 21135 return awsutil.Prettify(s) 21136} 21137 21138// GoString returns the string representation 21139func (s UpdateDashboardPermissionsInput) GoString() string { 21140 return s.String() 21141} 21142 21143// Validate inspects the fields of the type to determine if they are valid. 21144func (s *UpdateDashboardPermissionsInput) Validate() error { 21145 invalidParams := request.ErrInvalidParams{Context: "UpdateDashboardPermissionsInput"} 21146 if s.AwsAccountId == nil { 21147 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 21148 } 21149 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 21150 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 21151 } 21152 if s.DashboardId == nil { 21153 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 21154 } 21155 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 21156 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 21157 } 21158 if s.GrantPermissions != nil && len(s.GrantPermissions) < 1 { 21159 invalidParams.Add(request.NewErrParamMinLen("GrantPermissions", 1)) 21160 } 21161 if s.RevokePermissions != nil && len(s.RevokePermissions) < 1 { 21162 invalidParams.Add(request.NewErrParamMinLen("RevokePermissions", 1)) 21163 } 21164 if s.GrantPermissions != nil { 21165 for i, v := range s.GrantPermissions { 21166 if v == nil { 21167 continue 21168 } 21169 if err := v.Validate(); err != nil { 21170 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GrantPermissions", i), err.(request.ErrInvalidParams)) 21171 } 21172 } 21173 } 21174 if s.RevokePermissions != nil { 21175 for i, v := range s.RevokePermissions { 21176 if v == nil { 21177 continue 21178 } 21179 if err := v.Validate(); err != nil { 21180 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RevokePermissions", i), err.(request.ErrInvalidParams)) 21181 } 21182 } 21183 } 21184 21185 if invalidParams.Len() > 0 { 21186 return invalidParams 21187 } 21188 return nil 21189} 21190 21191// SetAwsAccountId sets the AwsAccountId field's value. 21192func (s *UpdateDashboardPermissionsInput) SetAwsAccountId(v string) *UpdateDashboardPermissionsInput { 21193 s.AwsAccountId = &v 21194 return s 21195} 21196 21197// SetDashboardId sets the DashboardId field's value. 21198func (s *UpdateDashboardPermissionsInput) SetDashboardId(v string) *UpdateDashboardPermissionsInput { 21199 s.DashboardId = &v 21200 return s 21201} 21202 21203// SetGrantPermissions sets the GrantPermissions field's value. 21204func (s *UpdateDashboardPermissionsInput) SetGrantPermissions(v []*ResourcePermission) *UpdateDashboardPermissionsInput { 21205 s.GrantPermissions = v 21206 return s 21207} 21208 21209// SetRevokePermissions sets the RevokePermissions field's value. 21210func (s *UpdateDashboardPermissionsInput) SetRevokePermissions(v []*ResourcePermission) *UpdateDashboardPermissionsInput { 21211 s.RevokePermissions = v 21212 return s 21213} 21214 21215type UpdateDashboardPermissionsOutput struct { 21216 _ struct{} `type:"structure"` 21217 21218 // The Amazon Resource Name (ARN) of the dashboard. 21219 DashboardArn *string `type:"string"` 21220 21221 // The ID for the dashboard. 21222 DashboardId *string `min:"1" type:"string"` 21223 21224 // Information about the permissions on the dashboard. 21225 Permissions []*ResourcePermission `min:"1" type:"list"` 21226 21227 // The AWS request ID for this operation. 21228 RequestId *string `type:"string"` 21229 21230 // The HTTP status of the request. 21231 Status *int64 `location:"statusCode" type:"integer"` 21232} 21233 21234// String returns the string representation 21235func (s UpdateDashboardPermissionsOutput) String() string { 21236 return awsutil.Prettify(s) 21237} 21238 21239// GoString returns the string representation 21240func (s UpdateDashboardPermissionsOutput) GoString() string { 21241 return s.String() 21242} 21243 21244// SetDashboardArn sets the DashboardArn field's value. 21245func (s *UpdateDashboardPermissionsOutput) SetDashboardArn(v string) *UpdateDashboardPermissionsOutput { 21246 s.DashboardArn = &v 21247 return s 21248} 21249 21250// SetDashboardId sets the DashboardId field's value. 21251func (s *UpdateDashboardPermissionsOutput) SetDashboardId(v string) *UpdateDashboardPermissionsOutput { 21252 s.DashboardId = &v 21253 return s 21254} 21255 21256// SetPermissions sets the Permissions field's value. 21257func (s *UpdateDashboardPermissionsOutput) SetPermissions(v []*ResourcePermission) *UpdateDashboardPermissionsOutput { 21258 s.Permissions = v 21259 return s 21260} 21261 21262// SetRequestId sets the RequestId field's value. 21263func (s *UpdateDashboardPermissionsOutput) SetRequestId(v string) *UpdateDashboardPermissionsOutput { 21264 s.RequestId = &v 21265 return s 21266} 21267 21268// SetStatus sets the Status field's value. 21269func (s *UpdateDashboardPermissionsOutput) SetStatus(v int64) *UpdateDashboardPermissionsOutput { 21270 s.Status = &v 21271 return s 21272} 21273 21274type UpdateDashboardPublishedVersionInput struct { 21275 _ struct{} `type:"structure"` 21276 21277 // The ID of the AWS account that contains the dashboard that you're updating. 21278 // 21279 // AwsAccountId is a required field 21280 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 21281 21282 // The ID for the dashboard. 21283 // 21284 // DashboardId is a required field 21285 DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` 21286 21287 // The version number of the dashboard. 21288 // 21289 // VersionNumber is a required field 21290 VersionNumber *int64 `location:"uri" locationName:"VersionNumber" min:"1" type:"long" required:"true"` 21291} 21292 21293// String returns the string representation 21294func (s UpdateDashboardPublishedVersionInput) String() string { 21295 return awsutil.Prettify(s) 21296} 21297 21298// GoString returns the string representation 21299func (s UpdateDashboardPublishedVersionInput) GoString() string { 21300 return s.String() 21301} 21302 21303// Validate inspects the fields of the type to determine if they are valid. 21304func (s *UpdateDashboardPublishedVersionInput) Validate() error { 21305 invalidParams := request.ErrInvalidParams{Context: "UpdateDashboardPublishedVersionInput"} 21306 if s.AwsAccountId == nil { 21307 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 21308 } 21309 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 21310 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 21311 } 21312 if s.DashboardId == nil { 21313 invalidParams.Add(request.NewErrParamRequired("DashboardId")) 21314 } 21315 if s.DashboardId != nil && len(*s.DashboardId) < 1 { 21316 invalidParams.Add(request.NewErrParamMinLen("DashboardId", 1)) 21317 } 21318 if s.VersionNumber == nil { 21319 invalidParams.Add(request.NewErrParamRequired("VersionNumber")) 21320 } 21321 if s.VersionNumber != nil && *s.VersionNumber < 1 { 21322 invalidParams.Add(request.NewErrParamMinValue("VersionNumber", 1)) 21323 } 21324 21325 if invalidParams.Len() > 0 { 21326 return invalidParams 21327 } 21328 return nil 21329} 21330 21331// SetAwsAccountId sets the AwsAccountId field's value. 21332func (s *UpdateDashboardPublishedVersionInput) SetAwsAccountId(v string) *UpdateDashboardPublishedVersionInput { 21333 s.AwsAccountId = &v 21334 return s 21335} 21336 21337// SetDashboardId sets the DashboardId field's value. 21338func (s *UpdateDashboardPublishedVersionInput) SetDashboardId(v string) *UpdateDashboardPublishedVersionInput { 21339 s.DashboardId = &v 21340 return s 21341} 21342 21343// SetVersionNumber sets the VersionNumber field's value. 21344func (s *UpdateDashboardPublishedVersionInput) SetVersionNumber(v int64) *UpdateDashboardPublishedVersionInput { 21345 s.VersionNumber = &v 21346 return s 21347} 21348 21349type UpdateDashboardPublishedVersionOutput struct { 21350 _ struct{} `type:"structure"` 21351 21352 // The Amazon Resource Name (ARN) of the dashboard. 21353 DashboardArn *string `type:"string"` 21354 21355 // The ID for the dashboard. 21356 DashboardId *string `min:"1" type:"string"` 21357 21358 // The AWS request ID for this operation. 21359 RequestId *string `type:"string"` 21360 21361 // The HTTP status of the request. 21362 Status *int64 `location:"statusCode" type:"integer"` 21363} 21364 21365// String returns the string representation 21366func (s UpdateDashboardPublishedVersionOutput) String() string { 21367 return awsutil.Prettify(s) 21368} 21369 21370// GoString returns the string representation 21371func (s UpdateDashboardPublishedVersionOutput) GoString() string { 21372 return s.String() 21373} 21374 21375// SetDashboardArn sets the DashboardArn field's value. 21376func (s *UpdateDashboardPublishedVersionOutput) SetDashboardArn(v string) *UpdateDashboardPublishedVersionOutput { 21377 s.DashboardArn = &v 21378 return s 21379} 21380 21381// SetDashboardId sets the DashboardId field's value. 21382func (s *UpdateDashboardPublishedVersionOutput) SetDashboardId(v string) *UpdateDashboardPublishedVersionOutput { 21383 s.DashboardId = &v 21384 return s 21385} 21386 21387// SetRequestId sets the RequestId field's value. 21388func (s *UpdateDashboardPublishedVersionOutput) SetRequestId(v string) *UpdateDashboardPublishedVersionOutput { 21389 s.RequestId = &v 21390 return s 21391} 21392 21393// SetStatus sets the Status field's value. 21394func (s *UpdateDashboardPublishedVersionOutput) SetStatus(v int64) *UpdateDashboardPublishedVersionOutput { 21395 s.Status = &v 21396 return s 21397} 21398 21399type UpdateDataSetInput struct { 21400 _ struct{} `type:"structure"` 21401 21402 // The AWS account ID. 21403 // 21404 // AwsAccountId is a required field 21405 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 21406 21407 // Groupings of columns that work together in certain QuickSight features. Currently, 21408 // only geospatial hierarchy is supported. 21409 ColumnGroups []*ColumnGroup `min:"1" type:"list"` 21410 21411 // The ID for the dataset that you want to update. This ID is unique per AWS 21412 // Region for each AWS account. 21413 // 21414 // DataSetId is a required field 21415 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 21416 21417 // Indicates whether you want to import the data into SPICE. 21418 // 21419 // ImportMode is a required field 21420 ImportMode *string `type:"string" required:"true" enum:"DataSetImportMode"` 21421 21422 // Configures the combination and transformation of the data from the physical 21423 // tables. 21424 LogicalTableMap map[string]*LogicalTable `min:"1" type:"map"` 21425 21426 // The display name for the dataset. 21427 // 21428 // Name is a required field 21429 Name *string `min:"1" type:"string" required:"true"` 21430 21431 // Declares the physical tables that are available in the underlying data sources. 21432 // 21433 // PhysicalTableMap is a required field 21434 PhysicalTableMap map[string]*PhysicalTable `min:"1" type:"map" required:"true"` 21435 21436 // The row-level security configuration for the data you want to create. 21437 RowLevelPermissionDataSet *RowLevelPermissionDataSet `type:"structure"` 21438} 21439 21440// String returns the string representation 21441func (s UpdateDataSetInput) String() string { 21442 return awsutil.Prettify(s) 21443} 21444 21445// GoString returns the string representation 21446func (s UpdateDataSetInput) GoString() string { 21447 return s.String() 21448} 21449 21450// Validate inspects the fields of the type to determine if they are valid. 21451func (s *UpdateDataSetInput) Validate() error { 21452 invalidParams := request.ErrInvalidParams{Context: "UpdateDataSetInput"} 21453 if s.AwsAccountId == nil { 21454 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 21455 } 21456 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 21457 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 21458 } 21459 if s.ColumnGroups != nil && len(s.ColumnGroups) < 1 { 21460 invalidParams.Add(request.NewErrParamMinLen("ColumnGroups", 1)) 21461 } 21462 if s.DataSetId == nil { 21463 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 21464 } 21465 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 21466 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 21467 } 21468 if s.ImportMode == nil { 21469 invalidParams.Add(request.NewErrParamRequired("ImportMode")) 21470 } 21471 if s.LogicalTableMap != nil && len(s.LogicalTableMap) < 1 { 21472 invalidParams.Add(request.NewErrParamMinLen("LogicalTableMap", 1)) 21473 } 21474 if s.Name == nil { 21475 invalidParams.Add(request.NewErrParamRequired("Name")) 21476 } 21477 if s.Name != nil && len(*s.Name) < 1 { 21478 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 21479 } 21480 if s.PhysicalTableMap == nil { 21481 invalidParams.Add(request.NewErrParamRequired("PhysicalTableMap")) 21482 } 21483 if s.PhysicalTableMap != nil && len(s.PhysicalTableMap) < 1 { 21484 invalidParams.Add(request.NewErrParamMinLen("PhysicalTableMap", 1)) 21485 } 21486 if s.ColumnGroups != nil { 21487 for i, v := range s.ColumnGroups { 21488 if v == nil { 21489 continue 21490 } 21491 if err := v.Validate(); err != nil { 21492 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ColumnGroups", i), err.(request.ErrInvalidParams)) 21493 } 21494 } 21495 } 21496 if s.LogicalTableMap != nil { 21497 for i, v := range s.LogicalTableMap { 21498 if v == nil { 21499 continue 21500 } 21501 if err := v.Validate(); err != nil { 21502 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LogicalTableMap", i), err.(request.ErrInvalidParams)) 21503 } 21504 } 21505 } 21506 if s.PhysicalTableMap != nil { 21507 for i, v := range s.PhysicalTableMap { 21508 if v == nil { 21509 continue 21510 } 21511 if err := v.Validate(); err != nil { 21512 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PhysicalTableMap", i), err.(request.ErrInvalidParams)) 21513 } 21514 } 21515 } 21516 if s.RowLevelPermissionDataSet != nil { 21517 if err := s.RowLevelPermissionDataSet.Validate(); err != nil { 21518 invalidParams.AddNested("RowLevelPermissionDataSet", err.(request.ErrInvalidParams)) 21519 } 21520 } 21521 21522 if invalidParams.Len() > 0 { 21523 return invalidParams 21524 } 21525 return nil 21526} 21527 21528// SetAwsAccountId sets the AwsAccountId field's value. 21529func (s *UpdateDataSetInput) SetAwsAccountId(v string) *UpdateDataSetInput { 21530 s.AwsAccountId = &v 21531 return s 21532} 21533 21534// SetColumnGroups sets the ColumnGroups field's value. 21535func (s *UpdateDataSetInput) SetColumnGroups(v []*ColumnGroup) *UpdateDataSetInput { 21536 s.ColumnGroups = v 21537 return s 21538} 21539 21540// SetDataSetId sets the DataSetId field's value. 21541func (s *UpdateDataSetInput) SetDataSetId(v string) *UpdateDataSetInput { 21542 s.DataSetId = &v 21543 return s 21544} 21545 21546// SetImportMode sets the ImportMode field's value. 21547func (s *UpdateDataSetInput) SetImportMode(v string) *UpdateDataSetInput { 21548 s.ImportMode = &v 21549 return s 21550} 21551 21552// SetLogicalTableMap sets the LogicalTableMap field's value. 21553func (s *UpdateDataSetInput) SetLogicalTableMap(v map[string]*LogicalTable) *UpdateDataSetInput { 21554 s.LogicalTableMap = v 21555 return s 21556} 21557 21558// SetName sets the Name field's value. 21559func (s *UpdateDataSetInput) SetName(v string) *UpdateDataSetInput { 21560 s.Name = &v 21561 return s 21562} 21563 21564// SetPhysicalTableMap sets the PhysicalTableMap field's value. 21565func (s *UpdateDataSetInput) SetPhysicalTableMap(v map[string]*PhysicalTable) *UpdateDataSetInput { 21566 s.PhysicalTableMap = v 21567 return s 21568} 21569 21570// SetRowLevelPermissionDataSet sets the RowLevelPermissionDataSet field's value. 21571func (s *UpdateDataSetInput) SetRowLevelPermissionDataSet(v *RowLevelPermissionDataSet) *UpdateDataSetInput { 21572 s.RowLevelPermissionDataSet = v 21573 return s 21574} 21575 21576type UpdateDataSetOutput struct { 21577 _ struct{} `type:"structure"` 21578 21579 // The Amazon Resource Name (ARN) of the dataset. 21580 Arn *string `type:"string"` 21581 21582 // The ID for the dataset that you want to create. This ID is unique per AWS 21583 // Region for each AWS account. 21584 DataSetId *string `type:"string"` 21585 21586 // The ARN for the ingestion, which is triggered as a result of dataset creation 21587 // if the import mode is SPICE. 21588 IngestionArn *string `type:"string"` 21589 21590 // The ID of the ingestion, which is triggered as a result of dataset creation 21591 // if the import mode is SPICE. 21592 IngestionId *string `type:"string"` 21593 21594 // The AWS request ID for this operation. 21595 RequestId *string `type:"string"` 21596 21597 // The HTTP status of the request. 21598 Status *int64 `location:"statusCode" type:"integer"` 21599} 21600 21601// String returns the string representation 21602func (s UpdateDataSetOutput) String() string { 21603 return awsutil.Prettify(s) 21604} 21605 21606// GoString returns the string representation 21607func (s UpdateDataSetOutput) GoString() string { 21608 return s.String() 21609} 21610 21611// SetArn sets the Arn field's value. 21612func (s *UpdateDataSetOutput) SetArn(v string) *UpdateDataSetOutput { 21613 s.Arn = &v 21614 return s 21615} 21616 21617// SetDataSetId sets the DataSetId field's value. 21618func (s *UpdateDataSetOutput) SetDataSetId(v string) *UpdateDataSetOutput { 21619 s.DataSetId = &v 21620 return s 21621} 21622 21623// SetIngestionArn sets the IngestionArn field's value. 21624func (s *UpdateDataSetOutput) SetIngestionArn(v string) *UpdateDataSetOutput { 21625 s.IngestionArn = &v 21626 return s 21627} 21628 21629// SetIngestionId sets the IngestionId field's value. 21630func (s *UpdateDataSetOutput) SetIngestionId(v string) *UpdateDataSetOutput { 21631 s.IngestionId = &v 21632 return s 21633} 21634 21635// SetRequestId sets the RequestId field's value. 21636func (s *UpdateDataSetOutput) SetRequestId(v string) *UpdateDataSetOutput { 21637 s.RequestId = &v 21638 return s 21639} 21640 21641// SetStatus sets the Status field's value. 21642func (s *UpdateDataSetOutput) SetStatus(v int64) *UpdateDataSetOutput { 21643 s.Status = &v 21644 return s 21645} 21646 21647type UpdateDataSetPermissionsInput struct { 21648 _ struct{} `type:"structure"` 21649 21650 // The AWS account ID. 21651 // 21652 // AwsAccountId is a required field 21653 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 21654 21655 // The ID for the dataset whose permissions you want to update. This ID is unique 21656 // per AWS Region for each AWS account. 21657 // 21658 // DataSetId is a required field 21659 DataSetId *string `location:"uri" locationName:"DataSetId" type:"string" required:"true"` 21660 21661 // The resource permissions that you want to grant to the dataset. 21662 GrantPermissions []*ResourcePermission `min:"1" type:"list"` 21663 21664 // The resource permissions that you want to revoke from the dataset. 21665 RevokePermissions []*ResourcePermission `min:"1" type:"list"` 21666} 21667 21668// String returns the string representation 21669func (s UpdateDataSetPermissionsInput) String() string { 21670 return awsutil.Prettify(s) 21671} 21672 21673// GoString returns the string representation 21674func (s UpdateDataSetPermissionsInput) GoString() string { 21675 return s.String() 21676} 21677 21678// Validate inspects the fields of the type to determine if they are valid. 21679func (s *UpdateDataSetPermissionsInput) Validate() error { 21680 invalidParams := request.ErrInvalidParams{Context: "UpdateDataSetPermissionsInput"} 21681 if s.AwsAccountId == nil { 21682 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 21683 } 21684 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 21685 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 21686 } 21687 if s.DataSetId == nil { 21688 invalidParams.Add(request.NewErrParamRequired("DataSetId")) 21689 } 21690 if s.DataSetId != nil && len(*s.DataSetId) < 1 { 21691 invalidParams.Add(request.NewErrParamMinLen("DataSetId", 1)) 21692 } 21693 if s.GrantPermissions != nil && len(s.GrantPermissions) < 1 { 21694 invalidParams.Add(request.NewErrParamMinLen("GrantPermissions", 1)) 21695 } 21696 if s.RevokePermissions != nil && len(s.RevokePermissions) < 1 { 21697 invalidParams.Add(request.NewErrParamMinLen("RevokePermissions", 1)) 21698 } 21699 if s.GrantPermissions != nil { 21700 for i, v := range s.GrantPermissions { 21701 if v == nil { 21702 continue 21703 } 21704 if err := v.Validate(); err != nil { 21705 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GrantPermissions", i), err.(request.ErrInvalidParams)) 21706 } 21707 } 21708 } 21709 if s.RevokePermissions != nil { 21710 for i, v := range s.RevokePermissions { 21711 if v == nil { 21712 continue 21713 } 21714 if err := v.Validate(); err != nil { 21715 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RevokePermissions", i), err.(request.ErrInvalidParams)) 21716 } 21717 } 21718 } 21719 21720 if invalidParams.Len() > 0 { 21721 return invalidParams 21722 } 21723 return nil 21724} 21725 21726// SetAwsAccountId sets the AwsAccountId field's value. 21727func (s *UpdateDataSetPermissionsInput) SetAwsAccountId(v string) *UpdateDataSetPermissionsInput { 21728 s.AwsAccountId = &v 21729 return s 21730} 21731 21732// SetDataSetId sets the DataSetId field's value. 21733func (s *UpdateDataSetPermissionsInput) SetDataSetId(v string) *UpdateDataSetPermissionsInput { 21734 s.DataSetId = &v 21735 return s 21736} 21737 21738// SetGrantPermissions sets the GrantPermissions field's value. 21739func (s *UpdateDataSetPermissionsInput) SetGrantPermissions(v []*ResourcePermission) *UpdateDataSetPermissionsInput { 21740 s.GrantPermissions = v 21741 return s 21742} 21743 21744// SetRevokePermissions sets the RevokePermissions field's value. 21745func (s *UpdateDataSetPermissionsInput) SetRevokePermissions(v []*ResourcePermission) *UpdateDataSetPermissionsInput { 21746 s.RevokePermissions = v 21747 return s 21748} 21749 21750type UpdateDataSetPermissionsOutput struct { 21751 _ struct{} `type:"structure"` 21752 21753 // The Amazon Resource Name (ARN) of the dataset. 21754 DataSetArn *string `type:"string"` 21755 21756 // The ID for the dataset whose permissions you want to update. This ID is unique 21757 // per AWS Region for each AWS account. 21758 DataSetId *string `type:"string"` 21759 21760 // The AWS request ID for this operation. 21761 RequestId *string `type:"string"` 21762 21763 // The HTTP status of the request. 21764 Status *int64 `location:"statusCode" type:"integer"` 21765} 21766 21767// String returns the string representation 21768func (s UpdateDataSetPermissionsOutput) String() string { 21769 return awsutil.Prettify(s) 21770} 21771 21772// GoString returns the string representation 21773func (s UpdateDataSetPermissionsOutput) GoString() string { 21774 return s.String() 21775} 21776 21777// SetDataSetArn sets the DataSetArn field's value. 21778func (s *UpdateDataSetPermissionsOutput) SetDataSetArn(v string) *UpdateDataSetPermissionsOutput { 21779 s.DataSetArn = &v 21780 return s 21781} 21782 21783// SetDataSetId sets the DataSetId field's value. 21784func (s *UpdateDataSetPermissionsOutput) SetDataSetId(v string) *UpdateDataSetPermissionsOutput { 21785 s.DataSetId = &v 21786 return s 21787} 21788 21789// SetRequestId sets the RequestId field's value. 21790func (s *UpdateDataSetPermissionsOutput) SetRequestId(v string) *UpdateDataSetPermissionsOutput { 21791 s.RequestId = &v 21792 return s 21793} 21794 21795// SetStatus sets the Status field's value. 21796func (s *UpdateDataSetPermissionsOutput) SetStatus(v int64) *UpdateDataSetPermissionsOutput { 21797 s.Status = &v 21798 return s 21799} 21800 21801type UpdateDataSourceInput struct { 21802 _ struct{} `type:"structure"` 21803 21804 // The AWS account ID. 21805 // 21806 // AwsAccountId is a required field 21807 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 21808 21809 // The credentials that QuickSight that uses to connect to your underlying source. 21810 // Currently, only credentials based on user name and password are supported. 21811 Credentials *DataSourceCredentials `type:"structure" sensitive:"true"` 21812 21813 // The ID of the data source. This ID is unique per AWS Region for each AWS 21814 // account. 21815 // 21816 // DataSourceId is a required field 21817 DataSourceId *string `location:"uri" locationName:"DataSourceId" type:"string" required:"true"` 21818 21819 // The parameters that QuickSight uses to connect to your underlying source. 21820 DataSourceParameters *DataSourceParameters `type:"structure"` 21821 21822 // A display name for the data source. 21823 // 21824 // Name is a required field 21825 Name *string `min:"1" type:"string" required:"true"` 21826 21827 // Secure Socket Layer (SSL) properties that apply when QuickSight connects 21828 // to your underlying source. 21829 SslProperties *SslProperties `type:"structure"` 21830 21831 // Use this parameter only when you want QuickSight to use a VPC connection 21832 // when connecting to your underlying source. 21833 VpcConnectionProperties *VpcConnectionProperties `type:"structure"` 21834} 21835 21836// String returns the string representation 21837func (s UpdateDataSourceInput) String() string { 21838 return awsutil.Prettify(s) 21839} 21840 21841// GoString returns the string representation 21842func (s UpdateDataSourceInput) GoString() string { 21843 return s.String() 21844} 21845 21846// Validate inspects the fields of the type to determine if they are valid. 21847func (s *UpdateDataSourceInput) Validate() error { 21848 invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourceInput"} 21849 if s.AwsAccountId == nil { 21850 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 21851 } 21852 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 21853 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 21854 } 21855 if s.DataSourceId == nil { 21856 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 21857 } 21858 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 21859 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 21860 } 21861 if s.Name == nil { 21862 invalidParams.Add(request.NewErrParamRequired("Name")) 21863 } 21864 if s.Name != nil && len(*s.Name) < 1 { 21865 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 21866 } 21867 if s.Credentials != nil { 21868 if err := s.Credentials.Validate(); err != nil { 21869 invalidParams.AddNested("Credentials", err.(request.ErrInvalidParams)) 21870 } 21871 } 21872 if s.DataSourceParameters != nil { 21873 if err := s.DataSourceParameters.Validate(); err != nil { 21874 invalidParams.AddNested("DataSourceParameters", err.(request.ErrInvalidParams)) 21875 } 21876 } 21877 if s.VpcConnectionProperties != nil { 21878 if err := s.VpcConnectionProperties.Validate(); err != nil { 21879 invalidParams.AddNested("VpcConnectionProperties", err.(request.ErrInvalidParams)) 21880 } 21881 } 21882 21883 if invalidParams.Len() > 0 { 21884 return invalidParams 21885 } 21886 return nil 21887} 21888 21889// SetAwsAccountId sets the AwsAccountId field's value. 21890func (s *UpdateDataSourceInput) SetAwsAccountId(v string) *UpdateDataSourceInput { 21891 s.AwsAccountId = &v 21892 return s 21893} 21894 21895// SetCredentials sets the Credentials field's value. 21896func (s *UpdateDataSourceInput) SetCredentials(v *DataSourceCredentials) *UpdateDataSourceInput { 21897 s.Credentials = v 21898 return s 21899} 21900 21901// SetDataSourceId sets the DataSourceId field's value. 21902func (s *UpdateDataSourceInput) SetDataSourceId(v string) *UpdateDataSourceInput { 21903 s.DataSourceId = &v 21904 return s 21905} 21906 21907// SetDataSourceParameters sets the DataSourceParameters field's value. 21908func (s *UpdateDataSourceInput) SetDataSourceParameters(v *DataSourceParameters) *UpdateDataSourceInput { 21909 s.DataSourceParameters = v 21910 return s 21911} 21912 21913// SetName sets the Name field's value. 21914func (s *UpdateDataSourceInput) SetName(v string) *UpdateDataSourceInput { 21915 s.Name = &v 21916 return s 21917} 21918 21919// SetSslProperties sets the SslProperties field's value. 21920func (s *UpdateDataSourceInput) SetSslProperties(v *SslProperties) *UpdateDataSourceInput { 21921 s.SslProperties = v 21922 return s 21923} 21924 21925// SetVpcConnectionProperties sets the VpcConnectionProperties field's value. 21926func (s *UpdateDataSourceInput) SetVpcConnectionProperties(v *VpcConnectionProperties) *UpdateDataSourceInput { 21927 s.VpcConnectionProperties = v 21928 return s 21929} 21930 21931type UpdateDataSourceOutput struct { 21932 _ struct{} `type:"structure"` 21933 21934 // The Amazon Resource Name (ARN) of the data source. 21935 Arn *string `type:"string"` 21936 21937 // The ID of the data source. This ID is unique per AWS Region for each AWS 21938 // account. 21939 DataSourceId *string `type:"string"` 21940 21941 // The AWS request ID for this operation. 21942 RequestId *string `type:"string"` 21943 21944 // The HTTP status of the request. 21945 Status *int64 `location:"statusCode" type:"integer"` 21946 21947 // The update status of the data source's last update. 21948 UpdateStatus *string `type:"string" enum:"ResourceStatus"` 21949} 21950 21951// String returns the string representation 21952func (s UpdateDataSourceOutput) String() string { 21953 return awsutil.Prettify(s) 21954} 21955 21956// GoString returns the string representation 21957func (s UpdateDataSourceOutput) GoString() string { 21958 return s.String() 21959} 21960 21961// SetArn sets the Arn field's value. 21962func (s *UpdateDataSourceOutput) SetArn(v string) *UpdateDataSourceOutput { 21963 s.Arn = &v 21964 return s 21965} 21966 21967// SetDataSourceId sets the DataSourceId field's value. 21968func (s *UpdateDataSourceOutput) SetDataSourceId(v string) *UpdateDataSourceOutput { 21969 s.DataSourceId = &v 21970 return s 21971} 21972 21973// SetRequestId sets the RequestId field's value. 21974func (s *UpdateDataSourceOutput) SetRequestId(v string) *UpdateDataSourceOutput { 21975 s.RequestId = &v 21976 return s 21977} 21978 21979// SetStatus sets the Status field's value. 21980func (s *UpdateDataSourceOutput) SetStatus(v int64) *UpdateDataSourceOutput { 21981 s.Status = &v 21982 return s 21983} 21984 21985// SetUpdateStatus sets the UpdateStatus field's value. 21986func (s *UpdateDataSourceOutput) SetUpdateStatus(v string) *UpdateDataSourceOutput { 21987 s.UpdateStatus = &v 21988 return s 21989} 21990 21991type UpdateDataSourcePermissionsInput struct { 21992 _ struct{} `type:"structure"` 21993 21994 // The AWS account ID. 21995 // 21996 // AwsAccountId is a required field 21997 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 21998 21999 // The ID of the data source. This ID is unique per AWS Region for each AWS 22000 // account. 22001 // 22002 // DataSourceId is a required field 22003 DataSourceId *string `location:"uri" locationName:"DataSourceId" type:"string" required:"true"` 22004 22005 // A list of resource permissions that you want to grant on the data source. 22006 GrantPermissions []*ResourcePermission `min:"1" type:"list"` 22007 22008 // A list of resource permissions that you want to revoke on the data source. 22009 RevokePermissions []*ResourcePermission `min:"1" type:"list"` 22010} 22011 22012// String returns the string representation 22013func (s UpdateDataSourcePermissionsInput) String() string { 22014 return awsutil.Prettify(s) 22015} 22016 22017// GoString returns the string representation 22018func (s UpdateDataSourcePermissionsInput) GoString() string { 22019 return s.String() 22020} 22021 22022// Validate inspects the fields of the type to determine if they are valid. 22023func (s *UpdateDataSourcePermissionsInput) Validate() error { 22024 invalidParams := request.ErrInvalidParams{Context: "UpdateDataSourcePermissionsInput"} 22025 if s.AwsAccountId == nil { 22026 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 22027 } 22028 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 22029 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 22030 } 22031 if s.DataSourceId == nil { 22032 invalidParams.Add(request.NewErrParamRequired("DataSourceId")) 22033 } 22034 if s.DataSourceId != nil && len(*s.DataSourceId) < 1 { 22035 invalidParams.Add(request.NewErrParamMinLen("DataSourceId", 1)) 22036 } 22037 if s.GrantPermissions != nil && len(s.GrantPermissions) < 1 { 22038 invalidParams.Add(request.NewErrParamMinLen("GrantPermissions", 1)) 22039 } 22040 if s.RevokePermissions != nil && len(s.RevokePermissions) < 1 { 22041 invalidParams.Add(request.NewErrParamMinLen("RevokePermissions", 1)) 22042 } 22043 if s.GrantPermissions != nil { 22044 for i, v := range s.GrantPermissions { 22045 if v == nil { 22046 continue 22047 } 22048 if err := v.Validate(); err != nil { 22049 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GrantPermissions", i), err.(request.ErrInvalidParams)) 22050 } 22051 } 22052 } 22053 if s.RevokePermissions != nil { 22054 for i, v := range s.RevokePermissions { 22055 if v == nil { 22056 continue 22057 } 22058 if err := v.Validate(); err != nil { 22059 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RevokePermissions", i), err.(request.ErrInvalidParams)) 22060 } 22061 } 22062 } 22063 22064 if invalidParams.Len() > 0 { 22065 return invalidParams 22066 } 22067 return nil 22068} 22069 22070// SetAwsAccountId sets the AwsAccountId field's value. 22071func (s *UpdateDataSourcePermissionsInput) SetAwsAccountId(v string) *UpdateDataSourcePermissionsInput { 22072 s.AwsAccountId = &v 22073 return s 22074} 22075 22076// SetDataSourceId sets the DataSourceId field's value. 22077func (s *UpdateDataSourcePermissionsInput) SetDataSourceId(v string) *UpdateDataSourcePermissionsInput { 22078 s.DataSourceId = &v 22079 return s 22080} 22081 22082// SetGrantPermissions sets the GrantPermissions field's value. 22083func (s *UpdateDataSourcePermissionsInput) SetGrantPermissions(v []*ResourcePermission) *UpdateDataSourcePermissionsInput { 22084 s.GrantPermissions = v 22085 return s 22086} 22087 22088// SetRevokePermissions sets the RevokePermissions field's value. 22089func (s *UpdateDataSourcePermissionsInput) SetRevokePermissions(v []*ResourcePermission) *UpdateDataSourcePermissionsInput { 22090 s.RevokePermissions = v 22091 return s 22092} 22093 22094type UpdateDataSourcePermissionsOutput struct { 22095 _ struct{} `type:"structure"` 22096 22097 // The Amazon Resource Name (ARN) of the data source. 22098 DataSourceArn *string `type:"string"` 22099 22100 // The ID of the data source. This ID is unique per AWS Region for each AWS 22101 // account. 22102 DataSourceId *string `type:"string"` 22103 22104 // The AWS request ID for this operation. 22105 RequestId *string `type:"string"` 22106 22107 // The HTTP status of the request. 22108 Status *int64 `location:"statusCode" type:"integer"` 22109} 22110 22111// String returns the string representation 22112func (s UpdateDataSourcePermissionsOutput) String() string { 22113 return awsutil.Prettify(s) 22114} 22115 22116// GoString returns the string representation 22117func (s UpdateDataSourcePermissionsOutput) GoString() string { 22118 return s.String() 22119} 22120 22121// SetDataSourceArn sets the DataSourceArn field's value. 22122func (s *UpdateDataSourcePermissionsOutput) SetDataSourceArn(v string) *UpdateDataSourcePermissionsOutput { 22123 s.DataSourceArn = &v 22124 return s 22125} 22126 22127// SetDataSourceId sets the DataSourceId field's value. 22128func (s *UpdateDataSourcePermissionsOutput) SetDataSourceId(v string) *UpdateDataSourcePermissionsOutput { 22129 s.DataSourceId = &v 22130 return s 22131} 22132 22133// SetRequestId sets the RequestId field's value. 22134func (s *UpdateDataSourcePermissionsOutput) SetRequestId(v string) *UpdateDataSourcePermissionsOutput { 22135 s.RequestId = &v 22136 return s 22137} 22138 22139// SetStatus sets the Status field's value. 22140func (s *UpdateDataSourcePermissionsOutput) SetStatus(v int64) *UpdateDataSourcePermissionsOutput { 22141 s.Status = &v 22142 return s 22143} 22144 22145type UpdateGroupInput struct { 22146 _ struct{} `type:"structure"` 22147 22148 // The ID for the AWS account that the group is in. Currently, you use the ID 22149 // for the AWS account that contains your Amazon QuickSight account. 22150 // 22151 // AwsAccountId is a required field 22152 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 22153 22154 // The description for the group that you want to update. 22155 Description *string `min:"1" type:"string"` 22156 22157 // The name of the group that you want to update. 22158 // 22159 // GroupName is a required field 22160 GroupName *string `location:"uri" locationName:"GroupName" min:"1" type:"string" required:"true"` 22161 22162 // The namespace. Currently, you should set this to default. 22163 // 22164 // Namespace is a required field 22165 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 22166} 22167 22168// String returns the string representation 22169func (s UpdateGroupInput) String() string { 22170 return awsutil.Prettify(s) 22171} 22172 22173// GoString returns the string representation 22174func (s UpdateGroupInput) GoString() string { 22175 return s.String() 22176} 22177 22178// Validate inspects the fields of the type to determine if they are valid. 22179func (s *UpdateGroupInput) Validate() error { 22180 invalidParams := request.ErrInvalidParams{Context: "UpdateGroupInput"} 22181 if s.AwsAccountId == nil { 22182 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 22183 } 22184 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 22185 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 22186 } 22187 if s.Description != nil && len(*s.Description) < 1 { 22188 invalidParams.Add(request.NewErrParamMinLen("Description", 1)) 22189 } 22190 if s.GroupName == nil { 22191 invalidParams.Add(request.NewErrParamRequired("GroupName")) 22192 } 22193 if s.GroupName != nil && len(*s.GroupName) < 1 { 22194 invalidParams.Add(request.NewErrParamMinLen("GroupName", 1)) 22195 } 22196 if s.Namespace == nil { 22197 invalidParams.Add(request.NewErrParamRequired("Namespace")) 22198 } 22199 if s.Namespace != nil && len(*s.Namespace) < 1 { 22200 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 22201 } 22202 22203 if invalidParams.Len() > 0 { 22204 return invalidParams 22205 } 22206 return nil 22207} 22208 22209// SetAwsAccountId sets the AwsAccountId field's value. 22210func (s *UpdateGroupInput) SetAwsAccountId(v string) *UpdateGroupInput { 22211 s.AwsAccountId = &v 22212 return s 22213} 22214 22215// SetDescription sets the Description field's value. 22216func (s *UpdateGroupInput) SetDescription(v string) *UpdateGroupInput { 22217 s.Description = &v 22218 return s 22219} 22220 22221// SetGroupName sets the GroupName field's value. 22222func (s *UpdateGroupInput) SetGroupName(v string) *UpdateGroupInput { 22223 s.GroupName = &v 22224 return s 22225} 22226 22227// SetNamespace sets the Namespace field's value. 22228func (s *UpdateGroupInput) SetNamespace(v string) *UpdateGroupInput { 22229 s.Namespace = &v 22230 return s 22231} 22232 22233type UpdateGroupOutput struct { 22234 _ struct{} `type:"structure"` 22235 22236 // The name of the group. 22237 Group *Group `type:"structure"` 22238 22239 // The AWS request ID for this operation. 22240 RequestId *string `type:"string"` 22241 22242 // The HTTP status of the request. 22243 Status *int64 `location:"statusCode" type:"integer"` 22244} 22245 22246// String returns the string representation 22247func (s UpdateGroupOutput) String() string { 22248 return awsutil.Prettify(s) 22249} 22250 22251// GoString returns the string representation 22252func (s UpdateGroupOutput) GoString() string { 22253 return s.String() 22254} 22255 22256// SetGroup sets the Group field's value. 22257func (s *UpdateGroupOutput) SetGroup(v *Group) *UpdateGroupOutput { 22258 s.Group = v 22259 return s 22260} 22261 22262// SetRequestId sets the RequestId field's value. 22263func (s *UpdateGroupOutput) SetRequestId(v string) *UpdateGroupOutput { 22264 s.RequestId = &v 22265 return s 22266} 22267 22268// SetStatus sets the Status field's value. 22269func (s *UpdateGroupOutput) SetStatus(v int64) *UpdateGroupOutput { 22270 s.Status = &v 22271 return s 22272} 22273 22274type UpdateIAMPolicyAssignmentInput struct { 22275 _ struct{} `type:"structure"` 22276 22277 // The name of the assignment. This name must be unique within an AWS account. 22278 // 22279 // AssignmentName is a required field 22280 AssignmentName *string `location:"uri" locationName:"AssignmentName" min:"1" type:"string" required:"true"` 22281 22282 // The status of the assignment. Possible values are as follows: 22283 // 22284 // * ENABLED - Anything specified in this assignment is used when creating 22285 // the data source. 22286 // 22287 // * DISABLED - This assignment isn't used when creating the data source. 22288 // 22289 // * DRAFT - This assignment is an unfinished draft and isn't used when creating 22290 // the data source. 22291 AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` 22292 22293 // The ID of the AWS account that contains the IAM policy assignment. 22294 // 22295 // AwsAccountId is a required field 22296 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 22297 22298 // The QuickSight users, groups, or both that you want to assign the policy 22299 // to. 22300 Identities map[string][]*string `type:"map"` 22301 22302 // The namespace of the assignment. 22303 // 22304 // Namespace is a required field 22305 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 22306 22307 // The ARN for the IAM policy to apply to the QuickSight users and groups specified 22308 // in this assignment. 22309 PolicyArn *string `type:"string"` 22310} 22311 22312// String returns the string representation 22313func (s UpdateIAMPolicyAssignmentInput) String() string { 22314 return awsutil.Prettify(s) 22315} 22316 22317// GoString returns the string representation 22318func (s UpdateIAMPolicyAssignmentInput) GoString() string { 22319 return s.String() 22320} 22321 22322// Validate inspects the fields of the type to determine if they are valid. 22323func (s *UpdateIAMPolicyAssignmentInput) Validate() error { 22324 invalidParams := request.ErrInvalidParams{Context: "UpdateIAMPolicyAssignmentInput"} 22325 if s.AssignmentName == nil { 22326 invalidParams.Add(request.NewErrParamRequired("AssignmentName")) 22327 } 22328 if s.AssignmentName != nil && len(*s.AssignmentName) < 1 { 22329 invalidParams.Add(request.NewErrParamMinLen("AssignmentName", 1)) 22330 } 22331 if s.AwsAccountId == nil { 22332 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 22333 } 22334 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 22335 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 22336 } 22337 if s.Namespace == nil { 22338 invalidParams.Add(request.NewErrParamRequired("Namespace")) 22339 } 22340 if s.Namespace != nil && len(*s.Namespace) < 1 { 22341 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 22342 } 22343 22344 if invalidParams.Len() > 0 { 22345 return invalidParams 22346 } 22347 return nil 22348} 22349 22350// SetAssignmentName sets the AssignmentName field's value. 22351func (s *UpdateIAMPolicyAssignmentInput) SetAssignmentName(v string) *UpdateIAMPolicyAssignmentInput { 22352 s.AssignmentName = &v 22353 return s 22354} 22355 22356// SetAssignmentStatus sets the AssignmentStatus field's value. 22357func (s *UpdateIAMPolicyAssignmentInput) SetAssignmentStatus(v string) *UpdateIAMPolicyAssignmentInput { 22358 s.AssignmentStatus = &v 22359 return s 22360} 22361 22362// SetAwsAccountId sets the AwsAccountId field's value. 22363func (s *UpdateIAMPolicyAssignmentInput) SetAwsAccountId(v string) *UpdateIAMPolicyAssignmentInput { 22364 s.AwsAccountId = &v 22365 return s 22366} 22367 22368// SetIdentities sets the Identities field's value. 22369func (s *UpdateIAMPolicyAssignmentInput) SetIdentities(v map[string][]*string) *UpdateIAMPolicyAssignmentInput { 22370 s.Identities = v 22371 return s 22372} 22373 22374// SetNamespace sets the Namespace field's value. 22375func (s *UpdateIAMPolicyAssignmentInput) SetNamespace(v string) *UpdateIAMPolicyAssignmentInput { 22376 s.Namespace = &v 22377 return s 22378} 22379 22380// SetPolicyArn sets the PolicyArn field's value. 22381func (s *UpdateIAMPolicyAssignmentInput) SetPolicyArn(v string) *UpdateIAMPolicyAssignmentInput { 22382 s.PolicyArn = &v 22383 return s 22384} 22385 22386type UpdateIAMPolicyAssignmentOutput struct { 22387 _ struct{} `type:"structure"` 22388 22389 // The ID of the assignment. 22390 AssignmentId *string `type:"string"` 22391 22392 // The name of the assignment. 22393 AssignmentName *string `min:"1" type:"string"` 22394 22395 // The status of the assignment. Possible values are as follows: 22396 // 22397 // * ENABLED - Anything specified in this assignment is used when creating 22398 // the data source. 22399 // 22400 // * DISABLED - This assignment isn't used when creating the data source. 22401 // 22402 // * DRAFT - This assignment is an unfinished draft and isn't used when creating 22403 // the data source. 22404 AssignmentStatus *string `type:"string" enum:"AssignmentStatus"` 22405 22406 // The QuickSight users, groups, or both that the IAM policy is assigned to. 22407 Identities map[string][]*string `type:"map"` 22408 22409 // The ARN for the IAM policy applied to the QuickSight users and groups specified 22410 // in this assignment. 22411 PolicyArn *string `type:"string"` 22412 22413 // The AWS request ID for this operation. 22414 RequestId *string `type:"string"` 22415 22416 // The HTTP status of the request. 22417 Status *int64 `location:"statusCode" type:"integer"` 22418} 22419 22420// String returns the string representation 22421func (s UpdateIAMPolicyAssignmentOutput) String() string { 22422 return awsutil.Prettify(s) 22423} 22424 22425// GoString returns the string representation 22426func (s UpdateIAMPolicyAssignmentOutput) GoString() string { 22427 return s.String() 22428} 22429 22430// SetAssignmentId sets the AssignmentId field's value. 22431func (s *UpdateIAMPolicyAssignmentOutput) SetAssignmentId(v string) *UpdateIAMPolicyAssignmentOutput { 22432 s.AssignmentId = &v 22433 return s 22434} 22435 22436// SetAssignmentName sets the AssignmentName field's value. 22437func (s *UpdateIAMPolicyAssignmentOutput) SetAssignmentName(v string) *UpdateIAMPolicyAssignmentOutput { 22438 s.AssignmentName = &v 22439 return s 22440} 22441 22442// SetAssignmentStatus sets the AssignmentStatus field's value. 22443func (s *UpdateIAMPolicyAssignmentOutput) SetAssignmentStatus(v string) *UpdateIAMPolicyAssignmentOutput { 22444 s.AssignmentStatus = &v 22445 return s 22446} 22447 22448// SetIdentities sets the Identities field's value. 22449func (s *UpdateIAMPolicyAssignmentOutput) SetIdentities(v map[string][]*string) *UpdateIAMPolicyAssignmentOutput { 22450 s.Identities = v 22451 return s 22452} 22453 22454// SetPolicyArn sets the PolicyArn field's value. 22455func (s *UpdateIAMPolicyAssignmentOutput) SetPolicyArn(v string) *UpdateIAMPolicyAssignmentOutput { 22456 s.PolicyArn = &v 22457 return s 22458} 22459 22460// SetRequestId sets the RequestId field's value. 22461func (s *UpdateIAMPolicyAssignmentOutput) SetRequestId(v string) *UpdateIAMPolicyAssignmentOutput { 22462 s.RequestId = &v 22463 return s 22464} 22465 22466// SetStatus sets the Status field's value. 22467func (s *UpdateIAMPolicyAssignmentOutput) SetStatus(v int64) *UpdateIAMPolicyAssignmentOutput { 22468 s.Status = &v 22469 return s 22470} 22471 22472type UpdateTemplateAliasInput struct { 22473 _ struct{} `type:"structure"` 22474 22475 // The alias of the template that you want to update. If you name a specific 22476 // alias, you update the version that the alias points to. You can specify the 22477 // latest version of the template by providing the keyword $LATEST in the AliasName 22478 // parameter. The keyword $PUBLISHED doesn't apply to templates. 22479 // 22480 // AliasName is a required field 22481 AliasName *string `location:"uri" locationName:"AliasName" min:"1" type:"string" required:"true"` 22482 22483 // The ID of the AWS account that contains the template alias that you're updating. 22484 // 22485 // AwsAccountId is a required field 22486 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 22487 22488 // The ID for the template. 22489 // 22490 // TemplateId is a required field 22491 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 22492 22493 // The version number of the template. 22494 // 22495 // TemplateVersionNumber is a required field 22496 TemplateVersionNumber *int64 `min:"1" type:"long" required:"true"` 22497} 22498 22499// String returns the string representation 22500func (s UpdateTemplateAliasInput) String() string { 22501 return awsutil.Prettify(s) 22502} 22503 22504// GoString returns the string representation 22505func (s UpdateTemplateAliasInput) GoString() string { 22506 return s.String() 22507} 22508 22509// Validate inspects the fields of the type to determine if they are valid. 22510func (s *UpdateTemplateAliasInput) Validate() error { 22511 invalidParams := request.ErrInvalidParams{Context: "UpdateTemplateAliasInput"} 22512 if s.AliasName == nil { 22513 invalidParams.Add(request.NewErrParamRequired("AliasName")) 22514 } 22515 if s.AliasName != nil && len(*s.AliasName) < 1 { 22516 invalidParams.Add(request.NewErrParamMinLen("AliasName", 1)) 22517 } 22518 if s.AwsAccountId == nil { 22519 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 22520 } 22521 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 22522 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 22523 } 22524 if s.TemplateId == nil { 22525 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 22526 } 22527 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 22528 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 22529 } 22530 if s.TemplateVersionNumber == nil { 22531 invalidParams.Add(request.NewErrParamRequired("TemplateVersionNumber")) 22532 } 22533 if s.TemplateVersionNumber != nil && *s.TemplateVersionNumber < 1 { 22534 invalidParams.Add(request.NewErrParamMinValue("TemplateVersionNumber", 1)) 22535 } 22536 22537 if invalidParams.Len() > 0 { 22538 return invalidParams 22539 } 22540 return nil 22541} 22542 22543// SetAliasName sets the AliasName field's value. 22544func (s *UpdateTemplateAliasInput) SetAliasName(v string) *UpdateTemplateAliasInput { 22545 s.AliasName = &v 22546 return s 22547} 22548 22549// SetAwsAccountId sets the AwsAccountId field's value. 22550func (s *UpdateTemplateAliasInput) SetAwsAccountId(v string) *UpdateTemplateAliasInput { 22551 s.AwsAccountId = &v 22552 return s 22553} 22554 22555// SetTemplateId sets the TemplateId field's value. 22556func (s *UpdateTemplateAliasInput) SetTemplateId(v string) *UpdateTemplateAliasInput { 22557 s.TemplateId = &v 22558 return s 22559} 22560 22561// SetTemplateVersionNumber sets the TemplateVersionNumber field's value. 22562func (s *UpdateTemplateAliasInput) SetTemplateVersionNumber(v int64) *UpdateTemplateAliasInput { 22563 s.TemplateVersionNumber = &v 22564 return s 22565} 22566 22567type UpdateTemplateAliasOutput struct { 22568 _ struct{} `type:"structure"` 22569 22570 // The AWS request ID for this operation. 22571 RequestId *string `type:"string"` 22572 22573 // The HTTP status of the request. 22574 Status *int64 `location:"statusCode" type:"integer"` 22575 22576 // The template alias. 22577 TemplateAlias *TemplateAlias `type:"structure"` 22578} 22579 22580// String returns the string representation 22581func (s UpdateTemplateAliasOutput) String() string { 22582 return awsutil.Prettify(s) 22583} 22584 22585// GoString returns the string representation 22586func (s UpdateTemplateAliasOutput) GoString() string { 22587 return s.String() 22588} 22589 22590// SetRequestId sets the RequestId field's value. 22591func (s *UpdateTemplateAliasOutput) SetRequestId(v string) *UpdateTemplateAliasOutput { 22592 s.RequestId = &v 22593 return s 22594} 22595 22596// SetStatus sets the Status field's value. 22597func (s *UpdateTemplateAliasOutput) SetStatus(v int64) *UpdateTemplateAliasOutput { 22598 s.Status = &v 22599 return s 22600} 22601 22602// SetTemplateAlias sets the TemplateAlias field's value. 22603func (s *UpdateTemplateAliasOutput) SetTemplateAlias(v *TemplateAlias) *UpdateTemplateAliasOutput { 22604 s.TemplateAlias = v 22605 return s 22606} 22607 22608type UpdateTemplateInput struct { 22609 _ struct{} `type:"structure"` 22610 22611 // The ID of the AWS account that contains the template that you're updating. 22612 // 22613 // AwsAccountId is a required field 22614 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 22615 22616 // The name for the template. 22617 Name *string `min:"1" type:"string"` 22618 22619 // The source QuickSight entity from which this template is being updated. You 22620 // can currently update templates from an Analysis or another template. 22621 // 22622 // SourceEntity is a required field 22623 SourceEntity *TemplateSourceEntity `type:"structure" required:"true"` 22624 22625 // The ID for the template. 22626 // 22627 // TemplateId is a required field 22628 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 22629 22630 // A description of the current template version that is being updated. Every 22631 // time you call UpdateTemplate, you create a new version of the template. Each 22632 // version of the template maintains a description of the version in the VersionDescription 22633 // field. 22634 VersionDescription *string `min:"1" type:"string"` 22635} 22636 22637// String returns the string representation 22638func (s UpdateTemplateInput) String() string { 22639 return awsutil.Prettify(s) 22640} 22641 22642// GoString returns the string representation 22643func (s UpdateTemplateInput) GoString() string { 22644 return s.String() 22645} 22646 22647// Validate inspects the fields of the type to determine if they are valid. 22648func (s *UpdateTemplateInput) Validate() error { 22649 invalidParams := request.ErrInvalidParams{Context: "UpdateTemplateInput"} 22650 if s.AwsAccountId == nil { 22651 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 22652 } 22653 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 22654 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 22655 } 22656 if s.Name != nil && len(*s.Name) < 1 { 22657 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 22658 } 22659 if s.SourceEntity == nil { 22660 invalidParams.Add(request.NewErrParamRequired("SourceEntity")) 22661 } 22662 if s.TemplateId == nil { 22663 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 22664 } 22665 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 22666 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 22667 } 22668 if s.VersionDescription != nil && len(*s.VersionDescription) < 1 { 22669 invalidParams.Add(request.NewErrParamMinLen("VersionDescription", 1)) 22670 } 22671 if s.SourceEntity != nil { 22672 if err := s.SourceEntity.Validate(); err != nil { 22673 invalidParams.AddNested("SourceEntity", err.(request.ErrInvalidParams)) 22674 } 22675 } 22676 22677 if invalidParams.Len() > 0 { 22678 return invalidParams 22679 } 22680 return nil 22681} 22682 22683// SetAwsAccountId sets the AwsAccountId field's value. 22684func (s *UpdateTemplateInput) SetAwsAccountId(v string) *UpdateTemplateInput { 22685 s.AwsAccountId = &v 22686 return s 22687} 22688 22689// SetName sets the Name field's value. 22690func (s *UpdateTemplateInput) SetName(v string) *UpdateTemplateInput { 22691 s.Name = &v 22692 return s 22693} 22694 22695// SetSourceEntity sets the SourceEntity field's value. 22696func (s *UpdateTemplateInput) SetSourceEntity(v *TemplateSourceEntity) *UpdateTemplateInput { 22697 s.SourceEntity = v 22698 return s 22699} 22700 22701// SetTemplateId sets the TemplateId field's value. 22702func (s *UpdateTemplateInput) SetTemplateId(v string) *UpdateTemplateInput { 22703 s.TemplateId = &v 22704 return s 22705} 22706 22707// SetVersionDescription sets the VersionDescription field's value. 22708func (s *UpdateTemplateInput) SetVersionDescription(v string) *UpdateTemplateInput { 22709 s.VersionDescription = &v 22710 return s 22711} 22712 22713type UpdateTemplateOutput struct { 22714 _ struct{} `type:"structure"` 22715 22716 // The Amazon Resource Name (ARN) for the template. 22717 Arn *string `type:"string"` 22718 22719 // The creation status of the template. 22720 CreationStatus *string `type:"string" enum:"ResourceStatus"` 22721 22722 // The AWS request ID for this operation. 22723 RequestId *string `type:"string"` 22724 22725 // The HTTP status of the request. 22726 Status *int64 `location:"statusCode" type:"integer"` 22727 22728 // The ID for the template. 22729 TemplateId *string `min:"1" type:"string"` 22730 22731 // The ARN for the template, including the version information of the first 22732 // version. 22733 VersionArn *string `type:"string"` 22734} 22735 22736// String returns the string representation 22737func (s UpdateTemplateOutput) String() string { 22738 return awsutil.Prettify(s) 22739} 22740 22741// GoString returns the string representation 22742func (s UpdateTemplateOutput) GoString() string { 22743 return s.String() 22744} 22745 22746// SetArn sets the Arn field's value. 22747func (s *UpdateTemplateOutput) SetArn(v string) *UpdateTemplateOutput { 22748 s.Arn = &v 22749 return s 22750} 22751 22752// SetCreationStatus sets the CreationStatus field's value. 22753func (s *UpdateTemplateOutput) SetCreationStatus(v string) *UpdateTemplateOutput { 22754 s.CreationStatus = &v 22755 return s 22756} 22757 22758// SetRequestId sets the RequestId field's value. 22759func (s *UpdateTemplateOutput) SetRequestId(v string) *UpdateTemplateOutput { 22760 s.RequestId = &v 22761 return s 22762} 22763 22764// SetStatus sets the Status field's value. 22765func (s *UpdateTemplateOutput) SetStatus(v int64) *UpdateTemplateOutput { 22766 s.Status = &v 22767 return s 22768} 22769 22770// SetTemplateId sets the TemplateId field's value. 22771func (s *UpdateTemplateOutput) SetTemplateId(v string) *UpdateTemplateOutput { 22772 s.TemplateId = &v 22773 return s 22774} 22775 22776// SetVersionArn sets the VersionArn field's value. 22777func (s *UpdateTemplateOutput) SetVersionArn(v string) *UpdateTemplateOutput { 22778 s.VersionArn = &v 22779 return s 22780} 22781 22782type UpdateTemplatePermissionsInput struct { 22783 _ struct{} `type:"structure"` 22784 22785 // The ID of the AWS account that contains the template. 22786 // 22787 // AwsAccountId is a required field 22788 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 22789 22790 // A list of resource permissions to be granted on the template. 22791 GrantPermissions []*ResourcePermission `min:"1" type:"list"` 22792 22793 // A list of resource permissions to be revoked from the template. 22794 RevokePermissions []*ResourcePermission `min:"1" type:"list"` 22795 22796 // The ID for the template. 22797 // 22798 // TemplateId is a required field 22799 TemplateId *string `location:"uri" locationName:"TemplateId" min:"1" type:"string" required:"true"` 22800} 22801 22802// String returns the string representation 22803func (s UpdateTemplatePermissionsInput) String() string { 22804 return awsutil.Prettify(s) 22805} 22806 22807// GoString returns the string representation 22808func (s UpdateTemplatePermissionsInput) GoString() string { 22809 return s.String() 22810} 22811 22812// Validate inspects the fields of the type to determine if they are valid. 22813func (s *UpdateTemplatePermissionsInput) Validate() error { 22814 invalidParams := request.ErrInvalidParams{Context: "UpdateTemplatePermissionsInput"} 22815 if s.AwsAccountId == nil { 22816 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 22817 } 22818 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 22819 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 22820 } 22821 if s.GrantPermissions != nil && len(s.GrantPermissions) < 1 { 22822 invalidParams.Add(request.NewErrParamMinLen("GrantPermissions", 1)) 22823 } 22824 if s.RevokePermissions != nil && len(s.RevokePermissions) < 1 { 22825 invalidParams.Add(request.NewErrParamMinLen("RevokePermissions", 1)) 22826 } 22827 if s.TemplateId == nil { 22828 invalidParams.Add(request.NewErrParamRequired("TemplateId")) 22829 } 22830 if s.TemplateId != nil && len(*s.TemplateId) < 1 { 22831 invalidParams.Add(request.NewErrParamMinLen("TemplateId", 1)) 22832 } 22833 if s.GrantPermissions != nil { 22834 for i, v := range s.GrantPermissions { 22835 if v == nil { 22836 continue 22837 } 22838 if err := v.Validate(); err != nil { 22839 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GrantPermissions", i), err.(request.ErrInvalidParams)) 22840 } 22841 } 22842 } 22843 if s.RevokePermissions != nil { 22844 for i, v := range s.RevokePermissions { 22845 if v == nil { 22846 continue 22847 } 22848 if err := v.Validate(); err != nil { 22849 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RevokePermissions", i), err.(request.ErrInvalidParams)) 22850 } 22851 } 22852 } 22853 22854 if invalidParams.Len() > 0 { 22855 return invalidParams 22856 } 22857 return nil 22858} 22859 22860// SetAwsAccountId sets the AwsAccountId field's value. 22861func (s *UpdateTemplatePermissionsInput) SetAwsAccountId(v string) *UpdateTemplatePermissionsInput { 22862 s.AwsAccountId = &v 22863 return s 22864} 22865 22866// SetGrantPermissions sets the GrantPermissions field's value. 22867func (s *UpdateTemplatePermissionsInput) SetGrantPermissions(v []*ResourcePermission) *UpdateTemplatePermissionsInput { 22868 s.GrantPermissions = v 22869 return s 22870} 22871 22872// SetRevokePermissions sets the RevokePermissions field's value. 22873func (s *UpdateTemplatePermissionsInput) SetRevokePermissions(v []*ResourcePermission) *UpdateTemplatePermissionsInput { 22874 s.RevokePermissions = v 22875 return s 22876} 22877 22878// SetTemplateId sets the TemplateId field's value. 22879func (s *UpdateTemplatePermissionsInput) SetTemplateId(v string) *UpdateTemplatePermissionsInput { 22880 s.TemplateId = &v 22881 return s 22882} 22883 22884type UpdateTemplatePermissionsOutput struct { 22885 _ struct{} `type:"structure"` 22886 22887 // A list of resource permissions to be set on the template. 22888 Permissions []*ResourcePermission `min:"1" type:"list"` 22889 22890 // The AWS request ID for this operation. 22891 RequestId *string `type:"string"` 22892 22893 // The HTTP status of the request. 22894 Status *int64 `location:"statusCode" type:"integer"` 22895 22896 // The Amazon Resource Name (ARN) of the template. 22897 TemplateArn *string `type:"string"` 22898 22899 // The ID for the template. 22900 TemplateId *string `min:"1" type:"string"` 22901} 22902 22903// String returns the string representation 22904func (s UpdateTemplatePermissionsOutput) String() string { 22905 return awsutil.Prettify(s) 22906} 22907 22908// GoString returns the string representation 22909func (s UpdateTemplatePermissionsOutput) GoString() string { 22910 return s.String() 22911} 22912 22913// SetPermissions sets the Permissions field's value. 22914func (s *UpdateTemplatePermissionsOutput) SetPermissions(v []*ResourcePermission) *UpdateTemplatePermissionsOutput { 22915 s.Permissions = v 22916 return s 22917} 22918 22919// SetRequestId sets the RequestId field's value. 22920func (s *UpdateTemplatePermissionsOutput) SetRequestId(v string) *UpdateTemplatePermissionsOutput { 22921 s.RequestId = &v 22922 return s 22923} 22924 22925// SetStatus sets the Status field's value. 22926func (s *UpdateTemplatePermissionsOutput) SetStatus(v int64) *UpdateTemplatePermissionsOutput { 22927 s.Status = &v 22928 return s 22929} 22930 22931// SetTemplateArn sets the TemplateArn field's value. 22932func (s *UpdateTemplatePermissionsOutput) SetTemplateArn(v string) *UpdateTemplatePermissionsOutput { 22933 s.TemplateArn = &v 22934 return s 22935} 22936 22937// SetTemplateId sets the TemplateId field's value. 22938func (s *UpdateTemplatePermissionsOutput) SetTemplateId(v string) *UpdateTemplatePermissionsOutput { 22939 s.TemplateId = &v 22940 return s 22941} 22942 22943type UpdateUserInput struct { 22944 _ struct{} `type:"structure"` 22945 22946 // The ID for the AWS account that the user is in. Currently, you use the ID 22947 // for the AWS account that contains your Amazon QuickSight account. 22948 // 22949 // AwsAccountId is a required field 22950 AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` 22951 22952 // The email address of the user that you want to update. 22953 // 22954 // Email is a required field 22955 Email *string `type:"string" required:"true"` 22956 22957 // The namespace. Currently, you should set this to default. 22958 // 22959 // Namespace is a required field 22960 Namespace *string `location:"uri" locationName:"Namespace" type:"string" required:"true"` 22961 22962 // The Amazon QuickSight role of the user. The user role can be one of the following: 22963 // 22964 // * READER: A user who has read-only access to dashboards. 22965 // 22966 // * AUTHOR: A user who can create data sources, datasets, analyses, and 22967 // dashboards. 22968 // 22969 // * ADMIN: A user who is an author, who can also manage Amazon QuickSight 22970 // settings. 22971 // 22972 // Role is a required field 22973 Role *string `type:"string" required:"true" enum:"UserRole"` 22974 22975 // The Amazon QuickSight user name that you want to update. 22976 // 22977 // UserName is a required field 22978 UserName *string `location:"uri" locationName:"UserName" min:"1" type:"string" required:"true"` 22979} 22980 22981// String returns the string representation 22982func (s UpdateUserInput) String() string { 22983 return awsutil.Prettify(s) 22984} 22985 22986// GoString returns the string representation 22987func (s UpdateUserInput) GoString() string { 22988 return s.String() 22989} 22990 22991// Validate inspects the fields of the type to determine if they are valid. 22992func (s *UpdateUserInput) Validate() error { 22993 invalidParams := request.ErrInvalidParams{Context: "UpdateUserInput"} 22994 if s.AwsAccountId == nil { 22995 invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) 22996 } 22997 if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { 22998 invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) 22999 } 23000 if s.Email == nil { 23001 invalidParams.Add(request.NewErrParamRequired("Email")) 23002 } 23003 if s.Namespace == nil { 23004 invalidParams.Add(request.NewErrParamRequired("Namespace")) 23005 } 23006 if s.Namespace != nil && len(*s.Namespace) < 1 { 23007 invalidParams.Add(request.NewErrParamMinLen("Namespace", 1)) 23008 } 23009 if s.Role == nil { 23010 invalidParams.Add(request.NewErrParamRequired("Role")) 23011 } 23012 if s.UserName == nil { 23013 invalidParams.Add(request.NewErrParamRequired("UserName")) 23014 } 23015 if s.UserName != nil && len(*s.UserName) < 1 { 23016 invalidParams.Add(request.NewErrParamMinLen("UserName", 1)) 23017 } 23018 23019 if invalidParams.Len() > 0 { 23020 return invalidParams 23021 } 23022 return nil 23023} 23024 23025// SetAwsAccountId sets the AwsAccountId field's value. 23026func (s *UpdateUserInput) SetAwsAccountId(v string) *UpdateUserInput { 23027 s.AwsAccountId = &v 23028 return s 23029} 23030 23031// SetEmail sets the Email field's value. 23032func (s *UpdateUserInput) SetEmail(v string) *UpdateUserInput { 23033 s.Email = &v 23034 return s 23035} 23036 23037// SetNamespace sets the Namespace field's value. 23038func (s *UpdateUserInput) SetNamespace(v string) *UpdateUserInput { 23039 s.Namespace = &v 23040 return s 23041} 23042 23043// SetRole sets the Role field's value. 23044func (s *UpdateUserInput) SetRole(v string) *UpdateUserInput { 23045 s.Role = &v 23046 return s 23047} 23048 23049// SetUserName sets the UserName field's value. 23050func (s *UpdateUserInput) SetUserName(v string) *UpdateUserInput { 23051 s.UserName = &v 23052 return s 23053} 23054 23055type UpdateUserOutput struct { 23056 _ struct{} `type:"structure"` 23057 23058 // The AWS request ID for this operation. 23059 RequestId *string `type:"string"` 23060 23061 // The HTTP status of the request. 23062 Status *int64 `location:"statusCode" type:"integer"` 23063 23064 // The Amazon QuickSight user. 23065 User *User `type:"structure"` 23066} 23067 23068// String returns the string representation 23069func (s UpdateUserOutput) String() string { 23070 return awsutil.Prettify(s) 23071} 23072 23073// GoString returns the string representation 23074func (s UpdateUserOutput) GoString() string { 23075 return s.String() 23076} 23077 23078// SetRequestId sets the RequestId field's value. 23079func (s *UpdateUserOutput) SetRequestId(v string) *UpdateUserOutput { 23080 s.RequestId = &v 23081 return s 23082} 23083 23084// SetStatus sets the Status field's value. 23085func (s *UpdateUserOutput) SetStatus(v int64) *UpdateUserOutput { 23086 s.Status = &v 23087 return s 23088} 23089 23090// SetUser sets the User field's value. 23091func (s *UpdateUserOutput) SetUser(v *User) *UpdateUserOutput { 23092 s.User = v 23093 return s 23094} 23095 23096// Information about the format for a source file or files. 23097type UploadSettings struct { 23098 _ struct{} `type:"structure"` 23099 23100 // Whether the file has a header row, or the files each have a header row. 23101 ContainsHeader *bool `type:"boolean"` 23102 23103 // The delimiter between values in the file. 23104 Delimiter *string `min:"1" type:"string"` 23105 23106 // File format. 23107 Format *string `type:"string" enum:"FileFormat"` 23108 23109 // A row number to start reading data from. 23110 StartFromRow *int64 `min:"1" type:"integer"` 23111 23112 // Text qualifier. 23113 TextQualifier *string `type:"string" enum:"TextQualifier"` 23114} 23115 23116// String returns the string representation 23117func (s UploadSettings) String() string { 23118 return awsutil.Prettify(s) 23119} 23120 23121// GoString returns the string representation 23122func (s UploadSettings) GoString() string { 23123 return s.String() 23124} 23125 23126// Validate inspects the fields of the type to determine if they are valid. 23127func (s *UploadSettings) Validate() error { 23128 invalidParams := request.ErrInvalidParams{Context: "UploadSettings"} 23129 if s.Delimiter != nil && len(*s.Delimiter) < 1 { 23130 invalidParams.Add(request.NewErrParamMinLen("Delimiter", 1)) 23131 } 23132 if s.StartFromRow != nil && *s.StartFromRow < 1 { 23133 invalidParams.Add(request.NewErrParamMinValue("StartFromRow", 1)) 23134 } 23135 23136 if invalidParams.Len() > 0 { 23137 return invalidParams 23138 } 23139 return nil 23140} 23141 23142// SetContainsHeader sets the ContainsHeader field's value. 23143func (s *UploadSettings) SetContainsHeader(v bool) *UploadSettings { 23144 s.ContainsHeader = &v 23145 return s 23146} 23147 23148// SetDelimiter sets the Delimiter field's value. 23149func (s *UploadSettings) SetDelimiter(v string) *UploadSettings { 23150 s.Delimiter = &v 23151 return s 23152} 23153 23154// SetFormat sets the Format field's value. 23155func (s *UploadSettings) SetFormat(v string) *UploadSettings { 23156 s.Format = &v 23157 return s 23158} 23159 23160// SetStartFromRow sets the StartFromRow field's value. 23161func (s *UploadSettings) SetStartFromRow(v int64) *UploadSettings { 23162 s.StartFromRow = &v 23163 return s 23164} 23165 23166// SetTextQualifier sets the TextQualifier field's value. 23167func (s *UploadSettings) SetTextQualifier(v string) *UploadSettings { 23168 s.TextQualifier = &v 23169 return s 23170} 23171 23172// A registered user of Amazon QuickSight. Currently, an Amazon QuickSight subscription 23173// can't contain more than 20 million users. 23174type User struct { 23175 _ struct{} `type:"structure"` 23176 23177 // The active status of user. When you create an Amazon QuickSight user that’s 23178 // not an IAM user or an Active Directory user, that user is inactive until 23179 // they sign in and provide a password. 23180 Active *bool `type:"boolean"` 23181 23182 // The Amazon Resource Name (ARN) for the user. 23183 Arn *string `type:"string"` 23184 23185 // The user's email address. 23186 Email *string `type:"string"` 23187 23188 // The type of identity authentication used by the user. 23189 IdentityType *string `type:"string" enum:"IdentityType"` 23190 23191 // The principal ID of the user. 23192 PrincipalId *string `type:"string"` 23193 23194 // The Amazon QuickSight role for the user. The user role can be one of the 23195 // following:. 23196 // 23197 // * READER: A user who has read-only access to dashboards. 23198 // 23199 // * AUTHOR: A user who can create data sources, datasets, analyses, and 23200 // dashboards. 23201 // 23202 // * ADMIN: A user who is an author, who can also manage Amazon QuickSight 23203 // settings. 23204 // 23205 // * RESTRICTED_READER: This role isn't currently available for use. 23206 // 23207 // * RESTRICTED_AUTHOR: This role isn't currently available for use. 23208 Role *string `type:"string" enum:"UserRole"` 23209 23210 // The user's user name. 23211 UserName *string `min:"1" type:"string"` 23212} 23213 23214// String returns the string representation 23215func (s User) String() string { 23216 return awsutil.Prettify(s) 23217} 23218 23219// GoString returns the string representation 23220func (s User) GoString() string { 23221 return s.String() 23222} 23223 23224// SetActive sets the Active field's value. 23225func (s *User) SetActive(v bool) *User { 23226 s.Active = &v 23227 return s 23228} 23229 23230// SetArn sets the Arn field's value. 23231func (s *User) SetArn(v string) *User { 23232 s.Arn = &v 23233 return s 23234} 23235 23236// SetEmail sets the Email field's value. 23237func (s *User) SetEmail(v string) *User { 23238 s.Email = &v 23239 return s 23240} 23241 23242// SetIdentityType sets the IdentityType field's value. 23243func (s *User) SetIdentityType(v string) *User { 23244 s.IdentityType = &v 23245 return s 23246} 23247 23248// SetPrincipalId sets the PrincipalId field's value. 23249func (s *User) SetPrincipalId(v string) *User { 23250 s.PrincipalId = &v 23251 return s 23252} 23253 23254// SetRole sets the Role field's value. 23255func (s *User) SetRole(v string) *User { 23256 s.Role = &v 23257 return s 23258} 23259 23260// SetUserName sets the UserName field's value. 23261func (s *User) SetUserName(v string) *User { 23262 s.UserName = &v 23263 return s 23264} 23265 23266// The user with the provided name isn't found. This error can happen in any 23267// operation that requires finding a user based on a provided user name, such 23268// as DeleteUser, DescribeUser, and so on. 23269type UserNotFoundException struct { 23270 _ struct{} `type:"structure"` 23271 respMetadata protocol.ResponseMetadata 23272 23273 Message_ *string `locationName:"Message" type:"string"` 23274 23275 // The AWS request ID for this request. 23276 RequestId *string `type:"string"` 23277} 23278 23279// String returns the string representation 23280func (s UserNotFoundException) String() string { 23281 return awsutil.Prettify(s) 23282} 23283 23284// GoString returns the string representation 23285func (s UserNotFoundException) GoString() string { 23286 return s.String() 23287} 23288 23289func newErrorUserNotFoundException(v protocol.ResponseMetadata) error { 23290 return &UserNotFoundException{ 23291 respMetadata: v, 23292 } 23293} 23294 23295// Code returns the exception type name. 23296func (s UserNotFoundException) Code() string { 23297 return "QuickSightUserNotFoundException" 23298} 23299 23300// Message returns the exception's message. 23301func (s UserNotFoundException) Message() string { 23302 if s.Message_ != nil { 23303 return *s.Message_ 23304 } 23305 return "" 23306} 23307 23308// OrigErr always returns nil, satisfies awserr.Error interface. 23309func (s UserNotFoundException) OrigErr() error { 23310 return nil 23311} 23312 23313func (s UserNotFoundException) Error() string { 23314 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 23315} 23316 23317// Status code returns the HTTP status code for the request's response error. 23318func (s UserNotFoundException) StatusCode() int { 23319 return s.respMetadata.StatusCode 23320} 23321 23322// RequestID returns the service's response RequestID for request. 23323func (s UserNotFoundException) RequestID() string { 23324 return s.respMetadata.RequestID 23325} 23326 23327// VPC connection properties. 23328type VpcConnectionProperties struct { 23329 _ struct{} `type:"structure"` 23330 23331 // The Amazon Resource Name (ARN) for the VPC connection. 23332 // 23333 // VpcConnectionArn is a required field 23334 VpcConnectionArn *string `type:"string" required:"true"` 23335} 23336 23337// String returns the string representation 23338func (s VpcConnectionProperties) String() string { 23339 return awsutil.Prettify(s) 23340} 23341 23342// GoString returns the string representation 23343func (s VpcConnectionProperties) GoString() string { 23344 return s.String() 23345} 23346 23347// Validate inspects the fields of the type to determine if they are valid. 23348func (s *VpcConnectionProperties) Validate() error { 23349 invalidParams := request.ErrInvalidParams{Context: "VpcConnectionProperties"} 23350 if s.VpcConnectionArn == nil { 23351 invalidParams.Add(request.NewErrParamRequired("VpcConnectionArn")) 23352 } 23353 23354 if invalidParams.Len() > 0 { 23355 return invalidParams 23356 } 23357 return nil 23358} 23359 23360// SetVpcConnectionArn sets the VpcConnectionArn field's value. 23361func (s *VpcConnectionProperties) SetVpcConnectionArn(v string) *VpcConnectionProperties { 23362 s.VpcConnectionArn = &v 23363 return s 23364} 23365 23366const ( 23367 // AssignmentStatusEnabled is a AssignmentStatus enum value 23368 AssignmentStatusEnabled = "ENABLED" 23369 23370 // AssignmentStatusDraft is a AssignmentStatus enum value 23371 AssignmentStatusDraft = "DRAFT" 23372 23373 // AssignmentStatusDisabled is a AssignmentStatus enum value 23374 AssignmentStatusDisabled = "DISABLED" 23375) 23376 23377const ( 23378 // ColumnDataTypeString is a ColumnDataType enum value 23379 ColumnDataTypeString = "STRING" 23380 23381 // ColumnDataTypeInteger is a ColumnDataType enum value 23382 ColumnDataTypeInteger = "INTEGER" 23383 23384 // ColumnDataTypeDecimal is a ColumnDataType enum value 23385 ColumnDataTypeDecimal = "DECIMAL" 23386 23387 // ColumnDataTypeDatetime is a ColumnDataType enum value 23388 ColumnDataTypeDatetime = "DATETIME" 23389) 23390 23391const ( 23392 // DashboardBehaviorEnabled is a DashboardBehavior enum value 23393 DashboardBehaviorEnabled = "ENABLED" 23394 23395 // DashboardBehaviorDisabled is a DashboardBehavior enum value 23396 DashboardBehaviorDisabled = "DISABLED" 23397) 23398 23399const ( 23400 // DashboardErrorTypeDataSetNotFound is a DashboardErrorType enum value 23401 DashboardErrorTypeDataSetNotFound = "DATA_SET_NOT_FOUND" 23402 23403 // DashboardErrorTypeInternalFailure is a DashboardErrorType enum value 23404 DashboardErrorTypeInternalFailure = "INTERNAL_FAILURE" 23405 23406 // DashboardErrorTypeParameterValueIncompatible is a DashboardErrorType enum value 23407 DashboardErrorTypeParameterValueIncompatible = "PARAMETER_VALUE_INCOMPATIBLE" 23408 23409 // DashboardErrorTypeParameterTypeInvalid is a DashboardErrorType enum value 23410 DashboardErrorTypeParameterTypeInvalid = "PARAMETER_TYPE_INVALID" 23411 23412 // DashboardErrorTypeParameterNotFound is a DashboardErrorType enum value 23413 DashboardErrorTypeParameterNotFound = "PARAMETER_NOT_FOUND" 23414 23415 // DashboardErrorTypeColumnTypeMismatch is a DashboardErrorType enum value 23416 DashboardErrorTypeColumnTypeMismatch = "COLUMN_TYPE_MISMATCH" 23417 23418 // DashboardErrorTypeColumnGeographicRoleMismatch is a DashboardErrorType enum value 23419 DashboardErrorTypeColumnGeographicRoleMismatch = "COLUMN_GEOGRAPHIC_ROLE_MISMATCH" 23420 23421 // DashboardErrorTypeColumnReplacementMissing is a DashboardErrorType enum value 23422 DashboardErrorTypeColumnReplacementMissing = "COLUMN_REPLACEMENT_MISSING" 23423) 23424 23425const ( 23426 // DashboardFilterAttributeQuicksightUser is a DashboardFilterAttribute enum value 23427 DashboardFilterAttributeQuicksightUser = "QUICKSIGHT_USER" 23428) 23429 23430const ( 23431 // DashboardUIStateExpanded is a DashboardUIState enum value 23432 DashboardUIStateExpanded = "EXPANDED" 23433 23434 // DashboardUIStateCollapsed is a DashboardUIState enum value 23435 DashboardUIStateCollapsed = "COLLAPSED" 23436) 23437 23438const ( 23439 // DataSetImportModeSpice is a DataSetImportMode enum value 23440 DataSetImportModeSpice = "SPICE" 23441 23442 // DataSetImportModeDirectQuery is a DataSetImportMode enum value 23443 DataSetImportModeDirectQuery = "DIRECT_QUERY" 23444) 23445 23446const ( 23447 // DataSourceErrorInfoTypeTimeout is a DataSourceErrorInfoType enum value 23448 DataSourceErrorInfoTypeTimeout = "TIMEOUT" 23449 23450 // DataSourceErrorInfoTypeEngineVersionNotSupported is a DataSourceErrorInfoType enum value 23451 DataSourceErrorInfoTypeEngineVersionNotSupported = "ENGINE_VERSION_NOT_SUPPORTED" 23452 23453 // DataSourceErrorInfoTypeUnknownHost is a DataSourceErrorInfoType enum value 23454 DataSourceErrorInfoTypeUnknownHost = "UNKNOWN_HOST" 23455 23456 // DataSourceErrorInfoTypeGenericSqlFailure is a DataSourceErrorInfoType enum value 23457 DataSourceErrorInfoTypeGenericSqlFailure = "GENERIC_SQL_FAILURE" 23458 23459 // DataSourceErrorInfoTypeConflict is a DataSourceErrorInfoType enum value 23460 DataSourceErrorInfoTypeConflict = "CONFLICT" 23461 23462 // DataSourceErrorInfoTypeUnknown is a DataSourceErrorInfoType enum value 23463 DataSourceErrorInfoTypeUnknown = "UNKNOWN" 23464) 23465 23466const ( 23467 // DataSourceTypeAdobeAnalytics is a DataSourceType enum value 23468 DataSourceTypeAdobeAnalytics = "ADOBE_ANALYTICS" 23469 23470 // DataSourceTypeAmazonElasticsearch is a DataSourceType enum value 23471 DataSourceTypeAmazonElasticsearch = "AMAZON_ELASTICSEARCH" 23472 23473 // DataSourceTypeAthena is a DataSourceType enum value 23474 DataSourceTypeAthena = "ATHENA" 23475 23476 // DataSourceTypeAurora is a DataSourceType enum value 23477 DataSourceTypeAurora = "AURORA" 23478 23479 // DataSourceTypeAuroraPostgresql is a DataSourceType enum value 23480 DataSourceTypeAuroraPostgresql = "AURORA_POSTGRESQL" 23481 23482 // DataSourceTypeAwsIotAnalytics is a DataSourceType enum value 23483 DataSourceTypeAwsIotAnalytics = "AWS_IOT_ANALYTICS" 23484 23485 // DataSourceTypeGithub is a DataSourceType enum value 23486 DataSourceTypeGithub = "GITHUB" 23487 23488 // DataSourceTypeJira is a DataSourceType enum value 23489 DataSourceTypeJira = "JIRA" 23490 23491 // DataSourceTypeMariadb is a DataSourceType enum value 23492 DataSourceTypeMariadb = "MARIADB" 23493 23494 // DataSourceTypeMysql is a DataSourceType enum value 23495 DataSourceTypeMysql = "MYSQL" 23496 23497 // DataSourceTypePostgresql is a DataSourceType enum value 23498 DataSourceTypePostgresql = "POSTGRESQL" 23499 23500 // DataSourceTypePresto is a DataSourceType enum value 23501 DataSourceTypePresto = "PRESTO" 23502 23503 // DataSourceTypeRedshift is a DataSourceType enum value 23504 DataSourceTypeRedshift = "REDSHIFT" 23505 23506 // DataSourceTypeS3 is a DataSourceType enum value 23507 DataSourceTypeS3 = "S3" 23508 23509 // DataSourceTypeSalesforce is a DataSourceType enum value 23510 DataSourceTypeSalesforce = "SALESFORCE" 23511 23512 // DataSourceTypeServicenow is a DataSourceType enum value 23513 DataSourceTypeServicenow = "SERVICENOW" 23514 23515 // DataSourceTypeSnowflake is a DataSourceType enum value 23516 DataSourceTypeSnowflake = "SNOWFLAKE" 23517 23518 // DataSourceTypeSpark is a DataSourceType enum value 23519 DataSourceTypeSpark = "SPARK" 23520 23521 // DataSourceTypeSqlserver is a DataSourceType enum value 23522 DataSourceTypeSqlserver = "SQLSERVER" 23523 23524 // DataSourceTypeTeradata is a DataSourceType enum value 23525 DataSourceTypeTeradata = "TERADATA" 23526 23527 // DataSourceTypeTwitter is a DataSourceType enum value 23528 DataSourceTypeTwitter = "TWITTER" 23529) 23530 23531const ( 23532 // ExceptionResourceTypeUser is a ExceptionResourceType enum value 23533 ExceptionResourceTypeUser = "USER" 23534 23535 // ExceptionResourceTypeGroup is a ExceptionResourceType enum value 23536 ExceptionResourceTypeGroup = "GROUP" 23537 23538 // ExceptionResourceTypeNamespace is a ExceptionResourceType enum value 23539 ExceptionResourceTypeNamespace = "NAMESPACE" 23540 23541 // ExceptionResourceTypeAccountSettings is a ExceptionResourceType enum value 23542 ExceptionResourceTypeAccountSettings = "ACCOUNT_SETTINGS" 23543 23544 // ExceptionResourceTypeIampolicyAssignment is a ExceptionResourceType enum value 23545 ExceptionResourceTypeIampolicyAssignment = "IAMPOLICY_ASSIGNMENT" 23546 23547 // ExceptionResourceTypeDataSource is a ExceptionResourceType enum value 23548 ExceptionResourceTypeDataSource = "DATA_SOURCE" 23549 23550 // ExceptionResourceTypeDataSet is a ExceptionResourceType enum value 23551 ExceptionResourceTypeDataSet = "DATA_SET" 23552 23553 // ExceptionResourceTypeVpcConnection is a ExceptionResourceType enum value 23554 ExceptionResourceTypeVpcConnection = "VPC_CONNECTION" 23555 23556 // ExceptionResourceTypeIngestion is a ExceptionResourceType enum value 23557 ExceptionResourceTypeIngestion = "INGESTION" 23558) 23559 23560const ( 23561 // FileFormatCsv is a FileFormat enum value 23562 FileFormatCsv = "CSV" 23563 23564 // FileFormatTsv is a FileFormat enum value 23565 FileFormatTsv = "TSV" 23566 23567 // FileFormatClf is a FileFormat enum value 23568 FileFormatClf = "CLF" 23569 23570 // FileFormatElf is a FileFormat enum value 23571 FileFormatElf = "ELF" 23572 23573 // FileFormatXlsx is a FileFormat enum value 23574 FileFormatXlsx = "XLSX" 23575 23576 // FileFormatJson is a FileFormat enum value 23577 FileFormatJson = "JSON" 23578) 23579 23580const ( 23581 // FilterOperatorStringEquals is a FilterOperator enum value 23582 FilterOperatorStringEquals = "StringEquals" 23583) 23584 23585const ( 23586 // GeoSpatialCountryCodeUs is a GeoSpatialCountryCode enum value 23587 GeoSpatialCountryCodeUs = "US" 23588) 23589 23590const ( 23591 // GeoSpatialDataRoleCountry is a GeoSpatialDataRole enum value 23592 GeoSpatialDataRoleCountry = "COUNTRY" 23593 23594 // GeoSpatialDataRoleState is a GeoSpatialDataRole enum value 23595 GeoSpatialDataRoleState = "STATE" 23596 23597 // GeoSpatialDataRoleCounty is a GeoSpatialDataRole enum value 23598 GeoSpatialDataRoleCounty = "COUNTY" 23599 23600 // GeoSpatialDataRoleCity is a GeoSpatialDataRole enum value 23601 GeoSpatialDataRoleCity = "CITY" 23602 23603 // GeoSpatialDataRolePostcode is a GeoSpatialDataRole enum value 23604 GeoSpatialDataRolePostcode = "POSTCODE" 23605 23606 // GeoSpatialDataRoleLongitude is a GeoSpatialDataRole enum value 23607 GeoSpatialDataRoleLongitude = "LONGITUDE" 23608 23609 // GeoSpatialDataRoleLatitude is a GeoSpatialDataRole enum value 23610 GeoSpatialDataRoleLatitude = "LATITUDE" 23611) 23612 23613const ( 23614 // IdentityTypeIam is a IdentityType enum value 23615 IdentityTypeIam = "IAM" 23616 23617 // IdentityTypeQuicksight is a IdentityType enum value 23618 IdentityTypeQuicksight = "QUICKSIGHT" 23619) 23620 23621const ( 23622 // IngestionErrorTypeFailureToAssumeRole is a IngestionErrorType enum value 23623 IngestionErrorTypeFailureToAssumeRole = "FAILURE_TO_ASSUME_ROLE" 23624 23625 // IngestionErrorTypeIngestionSuperseded is a IngestionErrorType enum value 23626 IngestionErrorTypeIngestionSuperseded = "INGESTION_SUPERSEDED" 23627 23628 // IngestionErrorTypeIngestionCanceled is a IngestionErrorType enum value 23629 IngestionErrorTypeIngestionCanceled = "INGESTION_CANCELED" 23630 23631 // IngestionErrorTypeDataSetDeleted is a IngestionErrorType enum value 23632 IngestionErrorTypeDataSetDeleted = "DATA_SET_DELETED" 23633 23634 // IngestionErrorTypeDataSetNotSpice is a IngestionErrorType enum value 23635 IngestionErrorTypeDataSetNotSpice = "DATA_SET_NOT_SPICE" 23636 23637 // IngestionErrorTypeS3UploadedFileDeleted is a IngestionErrorType enum value 23638 IngestionErrorTypeS3UploadedFileDeleted = "S3_UPLOADED_FILE_DELETED" 23639 23640 // IngestionErrorTypeS3ManifestError is a IngestionErrorType enum value 23641 IngestionErrorTypeS3ManifestError = "S3_MANIFEST_ERROR" 23642 23643 // IngestionErrorTypeDataToleranceException is a IngestionErrorType enum value 23644 IngestionErrorTypeDataToleranceException = "DATA_TOLERANCE_EXCEPTION" 23645 23646 // IngestionErrorTypeSpiceTableNotFound is a IngestionErrorType enum value 23647 IngestionErrorTypeSpiceTableNotFound = "SPICE_TABLE_NOT_FOUND" 23648 23649 // IngestionErrorTypeDataSetSizeLimitExceeded is a IngestionErrorType enum value 23650 IngestionErrorTypeDataSetSizeLimitExceeded = "DATA_SET_SIZE_LIMIT_EXCEEDED" 23651 23652 // IngestionErrorTypeRowSizeLimitExceeded is a IngestionErrorType enum value 23653 IngestionErrorTypeRowSizeLimitExceeded = "ROW_SIZE_LIMIT_EXCEEDED" 23654 23655 // IngestionErrorTypeAccountCapacityLimitExceeded is a IngestionErrorType enum value 23656 IngestionErrorTypeAccountCapacityLimitExceeded = "ACCOUNT_CAPACITY_LIMIT_EXCEEDED" 23657 23658 // IngestionErrorTypeCustomerError is a IngestionErrorType enum value 23659 IngestionErrorTypeCustomerError = "CUSTOMER_ERROR" 23660 23661 // IngestionErrorTypeDataSourceNotFound is a IngestionErrorType enum value 23662 IngestionErrorTypeDataSourceNotFound = "DATA_SOURCE_NOT_FOUND" 23663 23664 // IngestionErrorTypeIamRoleNotAvailable is a IngestionErrorType enum value 23665 IngestionErrorTypeIamRoleNotAvailable = "IAM_ROLE_NOT_AVAILABLE" 23666 23667 // IngestionErrorTypeConnectionFailure is a IngestionErrorType enum value 23668 IngestionErrorTypeConnectionFailure = "CONNECTION_FAILURE" 23669 23670 // IngestionErrorTypeSqlTableNotFound is a IngestionErrorType enum value 23671 IngestionErrorTypeSqlTableNotFound = "SQL_TABLE_NOT_FOUND" 23672 23673 // IngestionErrorTypePermissionDenied is a IngestionErrorType enum value 23674 IngestionErrorTypePermissionDenied = "PERMISSION_DENIED" 23675 23676 // IngestionErrorTypeSslCertificateValidationFailure is a IngestionErrorType enum value 23677 IngestionErrorTypeSslCertificateValidationFailure = "SSL_CERTIFICATE_VALIDATION_FAILURE" 23678 23679 // IngestionErrorTypeOauthTokenFailure is a IngestionErrorType enum value 23680 IngestionErrorTypeOauthTokenFailure = "OAUTH_TOKEN_FAILURE" 23681 23682 // IngestionErrorTypeSourceApiLimitExceededFailure is a IngestionErrorType enum value 23683 IngestionErrorTypeSourceApiLimitExceededFailure = "SOURCE_API_LIMIT_EXCEEDED_FAILURE" 23684 23685 // IngestionErrorTypePasswordAuthenticationFailure is a IngestionErrorType enum value 23686 IngestionErrorTypePasswordAuthenticationFailure = "PASSWORD_AUTHENTICATION_FAILURE" 23687 23688 // IngestionErrorTypeSqlSchemaMismatchError is a IngestionErrorType enum value 23689 IngestionErrorTypeSqlSchemaMismatchError = "SQL_SCHEMA_MISMATCH_ERROR" 23690 23691 // IngestionErrorTypeInvalidDateFormat is a IngestionErrorType enum value 23692 IngestionErrorTypeInvalidDateFormat = "INVALID_DATE_FORMAT" 23693 23694 // IngestionErrorTypeInvalidDataprepSyntax is a IngestionErrorType enum value 23695 IngestionErrorTypeInvalidDataprepSyntax = "INVALID_DATAPREP_SYNTAX" 23696 23697 // IngestionErrorTypeSourceResourceLimitExceeded is a IngestionErrorType enum value 23698 IngestionErrorTypeSourceResourceLimitExceeded = "SOURCE_RESOURCE_LIMIT_EXCEEDED" 23699 23700 // IngestionErrorTypeSqlInvalidParameterValue is a IngestionErrorType enum value 23701 IngestionErrorTypeSqlInvalidParameterValue = "SQL_INVALID_PARAMETER_VALUE" 23702 23703 // IngestionErrorTypeQueryTimeout is a IngestionErrorType enum value 23704 IngestionErrorTypeQueryTimeout = "QUERY_TIMEOUT" 23705 23706 // IngestionErrorTypeSqlNumericOverflow is a IngestionErrorType enum value 23707 IngestionErrorTypeSqlNumericOverflow = "SQL_NUMERIC_OVERFLOW" 23708 23709 // IngestionErrorTypeUnresolvableHost is a IngestionErrorType enum value 23710 IngestionErrorTypeUnresolvableHost = "UNRESOLVABLE_HOST" 23711 23712 // IngestionErrorTypeUnroutableHost is a IngestionErrorType enum value 23713 IngestionErrorTypeUnroutableHost = "UNROUTABLE_HOST" 23714 23715 // IngestionErrorTypeSqlException is a IngestionErrorType enum value 23716 IngestionErrorTypeSqlException = "SQL_EXCEPTION" 23717 23718 // IngestionErrorTypeS3FileInaccessible is a IngestionErrorType enum value 23719 IngestionErrorTypeS3FileInaccessible = "S3_FILE_INACCESSIBLE" 23720 23721 // IngestionErrorTypeIotFileNotFound is a IngestionErrorType enum value 23722 IngestionErrorTypeIotFileNotFound = "IOT_FILE_NOT_FOUND" 23723 23724 // IngestionErrorTypeIotDataSetFileEmpty is a IngestionErrorType enum value 23725 IngestionErrorTypeIotDataSetFileEmpty = "IOT_DATA_SET_FILE_EMPTY" 23726 23727 // IngestionErrorTypeInvalidDataSourceConfig is a IngestionErrorType enum value 23728 IngestionErrorTypeInvalidDataSourceConfig = "INVALID_DATA_SOURCE_CONFIG" 23729 23730 // IngestionErrorTypeDataSourceAuthFailed is a IngestionErrorType enum value 23731 IngestionErrorTypeDataSourceAuthFailed = "DATA_SOURCE_AUTH_FAILED" 23732 23733 // IngestionErrorTypeDataSourceConnectionFailed is a IngestionErrorType enum value 23734 IngestionErrorTypeDataSourceConnectionFailed = "DATA_SOURCE_CONNECTION_FAILED" 23735 23736 // IngestionErrorTypeFailureToProcessJsonFile is a IngestionErrorType enum value 23737 IngestionErrorTypeFailureToProcessJsonFile = "FAILURE_TO_PROCESS_JSON_FILE" 23738 23739 // IngestionErrorTypeInternalServiceError is a IngestionErrorType enum value 23740 IngestionErrorTypeInternalServiceError = "INTERNAL_SERVICE_ERROR" 23741) 23742 23743const ( 23744 // IngestionRequestSourceManual is a IngestionRequestSource enum value 23745 IngestionRequestSourceManual = "MANUAL" 23746 23747 // IngestionRequestSourceScheduled is a IngestionRequestSource enum value 23748 IngestionRequestSourceScheduled = "SCHEDULED" 23749) 23750 23751const ( 23752 // IngestionRequestTypeInitialIngestion is a IngestionRequestType enum value 23753 IngestionRequestTypeInitialIngestion = "INITIAL_INGESTION" 23754 23755 // IngestionRequestTypeEdit is a IngestionRequestType enum value 23756 IngestionRequestTypeEdit = "EDIT" 23757 23758 // IngestionRequestTypeIncrementalRefresh is a IngestionRequestType enum value 23759 IngestionRequestTypeIncrementalRefresh = "INCREMENTAL_REFRESH" 23760 23761 // IngestionRequestTypeFullRefresh is a IngestionRequestType enum value 23762 IngestionRequestTypeFullRefresh = "FULL_REFRESH" 23763) 23764 23765const ( 23766 // IngestionStatusInitialized is a IngestionStatus enum value 23767 IngestionStatusInitialized = "INITIALIZED" 23768 23769 // IngestionStatusQueued is a IngestionStatus enum value 23770 IngestionStatusQueued = "QUEUED" 23771 23772 // IngestionStatusRunning is a IngestionStatus enum value 23773 IngestionStatusRunning = "RUNNING" 23774 23775 // IngestionStatusFailed is a IngestionStatus enum value 23776 IngestionStatusFailed = "FAILED" 23777 23778 // IngestionStatusCompleted is a IngestionStatus enum value 23779 IngestionStatusCompleted = "COMPLETED" 23780 23781 // IngestionStatusCancelled is a IngestionStatus enum value 23782 IngestionStatusCancelled = "CANCELLED" 23783) 23784 23785const ( 23786 // InputColumnDataTypeString is a InputColumnDataType enum value 23787 InputColumnDataTypeString = "STRING" 23788 23789 // InputColumnDataTypeInteger is a InputColumnDataType enum value 23790 InputColumnDataTypeInteger = "INTEGER" 23791 23792 // InputColumnDataTypeDecimal is a InputColumnDataType enum value 23793 InputColumnDataTypeDecimal = "DECIMAL" 23794 23795 // InputColumnDataTypeDatetime is a InputColumnDataType enum value 23796 InputColumnDataTypeDatetime = "DATETIME" 23797 23798 // InputColumnDataTypeBit is a InputColumnDataType enum value 23799 InputColumnDataTypeBit = "BIT" 23800 23801 // InputColumnDataTypeBoolean is a InputColumnDataType enum value 23802 InputColumnDataTypeBoolean = "BOOLEAN" 23803 23804 // InputColumnDataTypeJson is a InputColumnDataType enum value 23805 InputColumnDataTypeJson = "JSON" 23806) 23807 23808const ( 23809 // JoinTypeInner is a JoinType enum value 23810 JoinTypeInner = "INNER" 23811 23812 // JoinTypeOuter is a JoinType enum value 23813 JoinTypeOuter = "OUTER" 23814 23815 // JoinTypeLeft is a JoinType enum value 23816 JoinTypeLeft = "LEFT" 23817 23818 // JoinTypeRight is a JoinType enum value 23819 JoinTypeRight = "RIGHT" 23820) 23821 23822const ( 23823 // ResourceStatusCreationInProgress is a ResourceStatus enum value 23824 ResourceStatusCreationInProgress = "CREATION_IN_PROGRESS" 23825 23826 // ResourceStatusCreationSuccessful is a ResourceStatus enum value 23827 ResourceStatusCreationSuccessful = "CREATION_SUCCESSFUL" 23828 23829 // ResourceStatusCreationFailed is a ResourceStatus enum value 23830 ResourceStatusCreationFailed = "CREATION_FAILED" 23831 23832 // ResourceStatusUpdateInProgress is a ResourceStatus enum value 23833 ResourceStatusUpdateInProgress = "UPDATE_IN_PROGRESS" 23834 23835 // ResourceStatusUpdateSuccessful is a ResourceStatus enum value 23836 ResourceStatusUpdateSuccessful = "UPDATE_SUCCESSFUL" 23837 23838 // ResourceStatusUpdateFailed is a ResourceStatus enum value 23839 ResourceStatusUpdateFailed = "UPDATE_FAILED" 23840) 23841 23842const ( 23843 // RowLevelPermissionPolicyGrantAccess is a RowLevelPermissionPolicy enum value 23844 RowLevelPermissionPolicyGrantAccess = "GRANT_ACCESS" 23845 23846 // RowLevelPermissionPolicyDenyAccess is a RowLevelPermissionPolicy enum value 23847 RowLevelPermissionPolicyDenyAccess = "DENY_ACCESS" 23848) 23849 23850const ( 23851 // TemplateErrorTypeDataSetNotFound is a TemplateErrorType enum value 23852 TemplateErrorTypeDataSetNotFound = "DATA_SET_NOT_FOUND" 23853 23854 // TemplateErrorTypeInternalFailure is a TemplateErrorType enum value 23855 TemplateErrorTypeInternalFailure = "INTERNAL_FAILURE" 23856) 23857 23858const ( 23859 // TextQualifierDoubleQuote is a TextQualifier enum value 23860 TextQualifierDoubleQuote = "DOUBLE_QUOTE" 23861 23862 // TextQualifierSingleQuote is a TextQualifier enum value 23863 TextQualifierSingleQuote = "SINGLE_QUOTE" 23864) 23865 23866const ( 23867 // UserRoleAdmin is a UserRole enum value 23868 UserRoleAdmin = "ADMIN" 23869 23870 // UserRoleAuthor is a UserRole enum value 23871 UserRoleAuthor = "AUTHOR" 23872 23873 // UserRoleReader is a UserRole enum value 23874 UserRoleReader = "READER" 23875 23876 // UserRoleRestrictedAuthor is a UserRole enum value 23877 UserRoleRestrictedAuthor = "RESTRICTED_AUTHOR" 23878 23879 // UserRoleRestrictedReader is a UserRole enum value 23880 UserRoleRestrictedReader = "RESTRICTED_READER" 23881) 23882