From 55b073d012db91fcd64a3ff60d928eaba59e2aff Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Fri, 18 Nov 2022 14:52:47 -0800 Subject: [PATCH] Release v1.44.142 (2022-11-18) (#4630) Release v1.44.142 (2022-11-18) === --- CHANGELOG.md | 3 + aws/version.go | 2 +- service/appflow/api.go | 225 +- service/appflow/appflowiface/interface.go | 4 + service/auditmanager/api.go | 296 +- service/chimesdkvoice/api.go | 16885 ++++++++++++++++ .../chimesdkvoiceiface/interface.go | 384 + service/chimesdkvoice/doc.go | 26 + service/chimesdkvoice/errors.go | 63 + service/chimesdkvoice/service.go | 106 + service/cloudfront/api.go | 2258 ++- .../cloudfront/cloudfrontiface/interface.go | 28 + service/cloudfront/errors.go | 6 + service/connect/api.go | 65 +- service/dynamodb/api.go | 380 +- service/dynamodb/errors.go | 19 +- service/dynamodbstreams/api.go | 34 +- service/dynamodbstreams/errors.go | 17 +- service/ec2/api.go | 47 +- service/glue/api.go | 41 +- service/iotroborunner/api.go | 6062 ++++++ service/iotroborunner/doc.go | 29 + service/iotroborunner/errors.go | 63 + .../iotroborunneriface/interface.go | 156 + service/iotroborunner/service.go | 106 + service/quicksight/api.go | 1677 +- service/quicksight/errors.go | 8 + .../quicksight/quicksightiface/interface.go | 18 + service/sagemaker/api.go | 27 +- service/servicecatalog/api.go | 640 +- service/servicecatalog/doc.go | 2 +- service/sfn/api.go | 218 +- service/sfn/doc.go | 14 +- service/sfn/errors.go | 2 +- service/transfer/api.go | 51 +- 35 files changed, 29481 insertions(+), 481 deletions(-) create mode 100644 service/chimesdkvoice/api.go create mode 100644 service/chimesdkvoice/chimesdkvoiceiface/interface.go create mode 100644 service/chimesdkvoice/doc.go create mode 100644 service/chimesdkvoice/errors.go create mode 100644 service/chimesdkvoice/service.go create mode 100644 service/iotroborunner/api.go create mode 100644 service/iotroborunner/doc.go create mode 100644 service/iotroborunner/errors.go create mode 100644 service/iotroborunner/iotroborunneriface/interface.go create mode 100644 service/iotroborunner/service.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cd40bc097..414ea2b2cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +Release v1.44.142 (2022-11-18) +=== + Release v1.44.141 (2022-11-18) === diff --git a/aws/version.go b/aws/version.go index 7c07d959b6..5233e22748 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.141" +const SDKVersion = "1.44.142" diff --git a/service/appflow/api.go b/service/appflow/api.go index 5084f5577e..06fe56f1b2 100644 --- a/service/appflow/api.go +++ b/service/appflow/api.go @@ -1610,8 +1610,9 @@ func (c *Appflow) RegisterConnectorRequest(input *RegisterConnectorInput) (req * // RegisterConnector API operation for Amazon Appflow. // -// Registers a new connector with your Amazon Web Services account. Before you -// can register the connector, you must deploy lambda in your account. +// Registers a new custom connector with your Amazon Web Services account. Before +// you can register the connector, you must deploy the associated AWS lambda +// function in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1999,7 +2000,7 @@ func (c *Appflow) UnregisterConnectorRequest(input *UnregisterConnectorInput) (r // UnregisterConnector API operation for Amazon Appflow. // // Unregisters the custom connector registered in your account that matches -// the connectorLabel provided in the request. +// the connector label provided in the request. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2228,6 +2229,121 @@ func (c *Appflow) UpdateConnectorProfileWithContext(ctx aws.Context, input *Upda return out, req.Send() } +const opUpdateConnectorRegistration = "UpdateConnectorRegistration" + +// UpdateConnectorRegistrationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateConnectorRegistration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateConnectorRegistration for more information on using the UpdateConnectorRegistration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateConnectorRegistrationRequest method. +// req, resp := client.UpdateConnectorRegistrationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration +func (c *Appflow) UpdateConnectorRegistrationRequest(input *UpdateConnectorRegistrationInput) (req *request.Request, output *UpdateConnectorRegistrationOutput) { + op := &request.Operation{ + Name: opUpdateConnectorRegistration, + HTTPMethod: "POST", + HTTPPath: "/update-connector-registration", + } + + if input == nil { + input = &UpdateConnectorRegistrationInput{} + } + + output = &UpdateConnectorRegistrationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateConnectorRegistration API operation for Amazon Appflow. +// +// Updates a custom connector that you've previously registered. This operation +// updates the connector with one of the following: +// +// - The latest version of the AWS Lambda function that's assigned to the +// connector +// +// - A new AWS Lambda function that you specify +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Appflow's +// API operation UpdateConnectorRegistration for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// The request has invalid or missing parameters. +// +// - ConflictException +// There was a conflict when processing the request (for example, a flow with +// the given name already exists within the account. Check for conflicting resource +// names and try again. +// +// - AccessDeniedException +// AppFlow/Requester has invalid or missing permissions. +// +// - ResourceNotFoundException +// The resource specified in the request (such as the source or destination +// connector profile) is not found. +// +// - ServiceQuotaExceededException +// The request would cause a service quota (such as the number of flows) to +// be exceeded. +// +// - ThrottlingException +// API calls have exceeded the maximum allowed API request rate per account +// and per Region. +// +// - InternalServerException +// An internal service error occurred during the processing of your request. +// Try again later. +// +// - ConnectorServerException +// An error occurred when retrieving data from the connector endpoint. +// +// - ConnectorAuthenticationException +// An error occurred when authenticating with the connector endpoint. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/appflow-2020-08-23/UpdateConnectorRegistration +func (c *Appflow) UpdateConnectorRegistration(input *UpdateConnectorRegistrationInput) (*UpdateConnectorRegistrationOutput, error) { + req, out := c.UpdateConnectorRegistrationRequest(input) + return out, req.Send() +} + +// UpdateConnectorRegistrationWithContext is the same as UpdateConnectorRegistration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateConnectorRegistration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Appflow) UpdateConnectorRegistrationWithContext(ctx aws.Context, input *UpdateConnectorRegistrationInput, opts ...request.Option) (*UpdateConnectorRegistrationOutput, error) { + req, out := c.UpdateConnectorRegistrationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateFlow = "UpdateFlow" // UpdateFlowRequest generates a "aws/request.Request" representing the @@ -11860,7 +11976,7 @@ type SalesforceSourceProperties struct { // ensure that your flow writes consistent output, but you decrease performance // for large data transfers that are better suited for Bulk API 2.0. In some // cases, if your flow attempts to transfer a vary large set of data, it might - // fail with a timed out error. + // fail wituh a timed out error. DataTransferApi *string `locationName:"dataTransferApi" type:"string" enum:"SalesforceDataTransferApi"` // The flag that enables dynamic fetching of new (recently added) fields in @@ -14489,6 +14605,107 @@ func (s *UpdateConnectorProfileOutput) SetConnectorProfileArn(v string) *UpdateC return s } +type UpdateConnectorRegistrationInput struct { + _ struct{} `type:"structure"` + + // The name of the connector. The name is unique for each connector registration + // in your AWS account. + // + // ConnectorLabel is a required field + ConnectorLabel *string `locationName:"connectorLabel" type:"string" required:"true"` + + // Contains information about the configuration of the connector being registered. + ConnectorProvisioningConfig *ConnectorProvisioningConfig `locationName:"connectorProvisioningConfig" type:"structure"` + + // A description about the update that you're applying to the connector. + Description *string `locationName:"description" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateConnectorRegistrationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateConnectorRegistrationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateConnectorRegistrationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateConnectorRegistrationInput"} + if s.ConnectorLabel == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectorLabel")) + } + if s.ConnectorProvisioningConfig != nil { + if err := s.ConnectorProvisioningConfig.Validate(); err != nil { + invalidParams.AddNested("ConnectorProvisioningConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectorLabel sets the ConnectorLabel field's value. +func (s *UpdateConnectorRegistrationInput) SetConnectorLabel(v string) *UpdateConnectorRegistrationInput { + s.ConnectorLabel = &v + return s +} + +// SetConnectorProvisioningConfig sets the ConnectorProvisioningConfig field's value. +func (s *UpdateConnectorRegistrationInput) SetConnectorProvisioningConfig(v *ConnectorProvisioningConfig) *UpdateConnectorRegistrationInput { + s.ConnectorProvisioningConfig = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateConnectorRegistrationInput) SetDescription(v string) *UpdateConnectorRegistrationInput { + s.Description = &v + return s +} + +type UpdateConnectorRegistrationOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the connector being updated. + ConnectorArn *string `locationName:"connectorArn" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateConnectorRegistrationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateConnectorRegistrationOutput) GoString() string { + return s.String() +} + +// SetConnectorArn sets the ConnectorArn field's value. +func (s *UpdateConnectorRegistrationOutput) SetConnectorArn(v string) *UpdateConnectorRegistrationOutput { + s.ConnectorArn = &v + return s +} + type UpdateFlowInput struct { _ struct{} `type:"structure"` diff --git a/service/appflow/appflowiface/interface.go b/service/appflow/appflowiface/interface.go index e4e70ee867..b5868951cc 100644 --- a/service/appflow/appflowiface/interface.go +++ b/service/appflow/appflowiface/interface.go @@ -159,6 +159,10 @@ type AppflowAPI interface { UpdateConnectorProfileWithContext(aws.Context, *appflow.UpdateConnectorProfileInput, ...request.Option) (*appflow.UpdateConnectorProfileOutput, error) UpdateConnectorProfileRequest(*appflow.UpdateConnectorProfileInput) (*request.Request, *appflow.UpdateConnectorProfileOutput) + UpdateConnectorRegistration(*appflow.UpdateConnectorRegistrationInput) (*appflow.UpdateConnectorRegistrationOutput, error) + UpdateConnectorRegistrationWithContext(aws.Context, *appflow.UpdateConnectorRegistrationInput, ...request.Option) (*appflow.UpdateConnectorRegistrationOutput, error) + UpdateConnectorRegistrationRequest(*appflow.UpdateConnectorRegistrationInput) (*request.Request, *appflow.UpdateConnectorRegistrationOutput) + UpdateFlow(*appflow.UpdateFlowInput) (*appflow.UpdateFlowOutput, error) UpdateFlowWithContext(aws.Context, *appflow.UpdateFlowInput, ...request.Option) (*appflow.UpdateFlowOutput, error) UpdateFlowRequest(*appflow.UpdateFlowInput) (*request.Request, *appflow.UpdateFlowOutput) diff --git a/service/auditmanager/api.go b/service/auditmanager/api.go index 2222f1d7b4..9e7dfdef31 100644 --- a/service/auditmanager/api.go +++ b/service/auditmanager/api.go @@ -510,6 +510,26 @@ func (c *AuditManager) BatchImportEvidenceToAssessmentControlRequest(input *Batc // BatchImportEvidenceToAssessmentControl API operation for AWS Audit Manager. // // Uploads one or more pieces of evidence to a control in an Audit Manager assessment. +// You can upload manual evidence from any Amazon Simple Storage Service (Amazon +// S3) bucket by specifying the S3 URI of the evidence. +// +// You must upload manual evidence to your S3 bucket before you can upload it +// to your assessment. For instructions, see CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html) +// and PutObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html) +// in the Amazon Simple Storage Service API Reference. +// +// The following restrictions apply to this action: +// +// - Maximum size of an individual evidence file: 100 MB +// +// - Number of daily manual evidence uploads per control: 100 +// +// - Supported file formats: See Supported file types for manual evidence +// (https://docs.aws.amazon.com/audit-manager/latest/userguide/upload-evidence.html#supported-manual-evidence-files) +// in the Audit Manager User Guide +// +// For more information about Audit Manager service restrictions, see Quotas +// and restrictions for Audit Manager (https://docs.aws.amazon.com/audit-manager/latest/userguide/service-quotas.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1588,6 +1608,23 @@ func (c *AuditManager) DeregisterOrganizationAdminAccountRequest(input *Deregist // administrator from Organizations. However, Audit Manager will stop collecting // and attaching evidence to that delegated administrator account moving forward. // +// Keep in mind the following cleanup task if you use evidence finder: +// +// Before you use your management account to remove a delegated administrator, +// make sure that the current delegated administrator account signs in to Audit +// Manager and disables evidence finder first. Disabling evidence finder automatically +// deletes the event data store that was created in their account when they +// enabled evidence finder. If this task isn’t completed, the event data store +// remains in their account. In this case, we recommend that the original delegated +// administrator goes to CloudTrail Lake and manually deletes the event data +// store (https://docs.aws.amazon.com/userguide/awscloudtrail/latest/userguide/query-eds-disable-termination.html). +// +// This cleanup task is necessary to ensure that you don't end up with multiple +// event data stores. Audit Manager will ignore an unused event data store after +// you remove or change a delegated administrator account. However, the unused +// event data store continues to incur storage costs from CloudTrail Lake if +// you don't delete it. +// // When you deregister a delegated administrator account for Audit Manager, // the data for that account isn’t deleted. If you want to delete resource // data for a delegated administrator account, you must perform that task separately @@ -3417,7 +3454,10 @@ func (c *AuditManager) GetServicesInScopeRequest(input *GetServicesInScopeInput) // GetServicesInScope API operation for AWS Audit Manager. // -// Returns a list of the in-scope Amazon Web Services for the specified assessment. +// Returns a list of all of the Amazon Web Services that you can choose to include +// in your assessment. When you create an assessment (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_CreateAssessment.html), +// specify which of these services you want to include to narrow the assessment's +// scope (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Scope.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -7864,15 +7904,15 @@ func (s *AssessmentReport) SetStatus(v string) *AssessmentReport { return s } -// An error entity for the AssessmentReportEvidence API. This is used to provide +// An error entity for assessment report evidence errors. This is used to provide // more meaningful errors than a simple string message. type AssessmentReportEvidenceError struct { _ struct{} `type:"structure"` - // The error code that the AssessmentReportEvidence API returned. + // The error code that was returned. ErrorCode *string `locationName:"errorCode" min:"3" type:"string"` - // The error message that the AssessmentReportEvidence API returned. + // The error message that was returned. ErrorMessage *string `locationName:"errorMessage" type:"string"` // The identifier for the evidence. @@ -8985,8 +9025,8 @@ type Control struct { // The data mapping sources for the control. ControlMappingSources []*ControlMappingSource `locationName:"controlMappingSources" min:"1" type:"list"` - // The data source that determines where Audit Manager collects evidence from - // for the control. + // The data source types that determine where Audit Manager collects evidence + // from for the control. ControlSources *string `locationName:"controlSources" min:"1" type:"string"` // Specifies when the control was created. @@ -10116,6 +10156,23 @@ type CreateAssessmentReportInput struct { // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // A SQL statement that represents an evidence finder query. + // + // Provide this parameter when you want to generate an assessment report from + // the results of an evidence finder search query. When you use this parameter, + // Audit Manager generates a one-time report using only the evidence from the + // query output. This report does not include any assessment evidence that was + // manually added to a report using the console (https://docs.aws.amazon.com/userguide/generate-assessment-report.html#generate-assessment-report-include-evidence), + // or associated with a report using the API (https://docs.aws.amazon.com/APIReference-evidenceFinder/API_BatchAssociateAssessmentReportEvidence.html). + // + // To use this parameter, the enablementStatus (https://docs.aws.amazon.com/APIReference-evidenceFinder/API_EvidenceFinderSetup.html#auditmanager-Type-EvidenceFinderSetup-enablementStatus) + // of evidence finder must be ENABLED. + // + // For examples and help resolving queryStatement validation exceptions, see + // Troubleshooting evidence finder issues (https://docs.aws.amazon.com/audit-manager/latest/userguide/evidence-finder-issues.html#querystatement-exceptions) + // in the AWS Audit Manager User Guide. + QueryStatement *string `locationName:"queryStatement" min:"1" type:"string"` } // String returns the string representation. @@ -10151,6 +10208,9 @@ func (s *CreateAssessmentReportInput) Validate() error { if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.QueryStatement != nil && len(*s.QueryStatement) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryStatement", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -10176,6 +10236,12 @@ func (s *CreateAssessmentReportInput) SetName(v string) *CreateAssessmentReportI return s } +// SetQueryStatement sets the QueryStatement field's value. +func (s *CreateAssessmentReportInput) SetQueryStatement(v string) *CreateAssessmentReportInput { + s.QueryStatement = &v + return s +} + type CreateAssessmentReportOutput struct { _ struct{} `type:"structure"` @@ -11389,10 +11455,21 @@ type Evidence struct { // its organization path. AwsOrganization *string `locationName:"awsOrganization" type:"string"` - // The evaluation status for evidence that falls under the compliance check - // category. For evidence collected from Security Hub, a Pass or Fail result - // is shown. For evidence collected from Config, a Compliant or Noncompliant - // result is shown. + // The evaluation status for automated evidence that falls under the compliance + // check category. + // + // * Audit Manager classes evidence as non-compliant if Security Hub reports + // a Fail result, or if Config reports a Non-compliant result. + // + // * Audit Manager classes evidence as compliant if Security Hub reports + // a Pass result, or if Config reports a Compliant result. + // + // * If a compliance check isn't available or applicable, then no compliance + // evaluation can be made for that evidence. This is the case if the evidence + // uses Config or Security Hub as the underlying data source type, but those + // services aren't enabled. This is also the case if the evidence uses an + // underlying data source type that doesn't support compliance checks (such + // as manual evidence, Amazon Web Services API calls, or CloudTrail). ComplianceCheck *string `locationName:"complianceCheck" type:"string"` // The data source where the evidence was collected from. @@ -11535,6 +11612,99 @@ func (s *Evidence) SetTime(v time.Time) *Evidence { return s } +// The settings object that specifies whether evidence finder is enabled. This +// object also describes the related event data store, and the backfill status +// for populating the event data store with evidence data. +type EvidenceFinderEnablement struct { + _ struct{} `type:"structure"` + + // The current status of the evidence data backfill process. + // + // The backfill starts after you enable evidence finder. During this task, Audit + // Manager populates an event data store with your past evidence data so that + // your evidence can be queried. + // + // * NOT_STARTED means that the backfill hasn’t started yet. + // + // * IN_PROGRESS means that the backfill is in progress. This can take up + // to 24 hours to complete, depending on the amount of evidence data. + // + // * COMPLETED means that the backfill is complete. All of your past evidence + // is now queryable. + BackfillStatus *string `locationName:"backfillStatus" type:"string" enum:"EvidenceFinderBackfillStatus"` + + // The current status of the evidence finder feature and the related event data + // store. + // + // * ENABLE_IN_PROGRESS means that you requested to enable evidence finder. + // An event data store is currently being created to support evidence finder + // queries. + // + // * ENABLED means that an event data store was successfully created and + // evidence finder is enabled. We recommend that you wait 24 hours until + // the event data store is backfilled with your past evidence data. You can + // use evidence finder in the meantime, but not all data might be available + // until the backfill is complete. + // + // * DISABLE_IN_PROGRESS means that you requested to disable evidence finder, + // and your request is pending the deletion of the event data store. + // + // * DISABLED means that you have permanently disabled evidence finder and + // the event data store has been deleted. You can't re-enable evidence finder + // after this point. + EnablementStatus *string `locationName:"enablementStatus" type:"string" enum:"EvidenceFinderEnablementStatus"` + + // Represents any errors that occurred when enabling or disabling evidence finder. + Error *string `locationName:"error" type:"string"` + + // The Amazon Resource Name (ARN) of the CloudTrail Lake event data store that’s + // used by evidence finder. The event data store is the lake of evidence data + // that evidence finder runs queries against. + EventDataStoreArn *string `locationName:"eventDataStoreArn" min:"20" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EvidenceFinderEnablement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EvidenceFinderEnablement) GoString() string { + return s.String() +} + +// SetBackfillStatus sets the BackfillStatus field's value. +func (s *EvidenceFinderEnablement) SetBackfillStatus(v string) *EvidenceFinderEnablement { + s.BackfillStatus = &v + return s +} + +// SetEnablementStatus sets the EnablementStatus field's value. +func (s *EvidenceFinderEnablement) SetEnablementStatus(v string) *EvidenceFinderEnablement { + s.EnablementStatus = &v + return s +} + +// SetError sets the Error field's value. +func (s *EvidenceFinderEnablement) SetError(v string) *EvidenceFinderEnablement { + s.Error = &v + return s +} + +// SetEventDataStoreArn sets the EventDataStoreArn field's value. +func (s *EvidenceFinderEnablement) SetEventDataStoreArn(v string) *EvidenceFinderEnablement { + s.EventDataStoreArn = &v + return s +} + // A breakdown of the latest compliance check status for the evidence in your // Audit Manager assessments. type EvidenceInsights struct { @@ -15336,6 +15506,23 @@ type Resource struct { // The Amazon Resource Name (ARN) for the resource. Arn *string `locationName:"arn" min:"20" type:"string"` + // The evaluation status for a resource that was assessed when collecting compliance + // check evidence. + // + // * Audit Manager classes the resource as non-compliant if Security Hub + // reports a Fail result, or if Config reports a Non-compliant result. + // + // * Audit Manager classes the resource as compliant if Security Hub reports + // a Pass result, or if Config reports a Compliant result. + // + // * If a compliance check isn't available or applicable, then no compliance + // evaluation can be made for that resource. This is the case if a resource + // assessment uses Config or Security Hub as the underlying data source type, + // but those services aren't enabled. This is also the case if the resource + // assessment uses an underlying data source type that doesn't support compliance + // checks (such as manual evidence, Amazon Web Services API calls, or CloudTrail). + ComplianceCheck *string `locationName:"complianceCheck" type:"string"` + // The value of the resource. Value *string `locationName:"value" type:"string"` } @@ -15364,6 +15551,12 @@ func (s *Resource) SetArn(v string) *Resource { return s } +// SetComplianceCheck sets the ComplianceCheck field's value. +func (s *Resource) SetComplianceCheck(v string) *Resource { + s.ComplianceCheck = &v + return s +} + // SetValue sets the Value field's value. func (s *Resource) SetValue(v string) *Resource { s.Value = &v @@ -15725,6 +15918,9 @@ type Settings struct { // The designated default audit owners. DefaultProcessOwners []*Role `locationName:"defaultProcessOwners" type:"list"` + // The current evidence finder status and event data store details. + EvidenceFinderEnablement *EvidenceFinderEnablement `locationName:"evidenceFinderEnablement" type:"structure"` + // Specifies whether Organizations is enabled. IsAwsOrgEnabled *bool `locationName:"isAwsOrgEnabled" type:"boolean"` @@ -15765,6 +15961,12 @@ func (s *Settings) SetDefaultProcessOwners(v []*Role) *Settings { return s } +// SetEvidenceFinderEnablement sets the EvidenceFinderEnablement field's value. +func (s *Settings) SetEvidenceFinderEnablement(v *EvidenceFinderEnablement) *Settings { + s.EvidenceFinderEnablement = v + return s +} + // SetIsAwsOrgEnabled sets the IsAwsOrgEnabled field's value. func (s *Settings) SetIsAwsOrgEnabled(v bool) *Settings { s.IsAwsOrgEnabled = &v @@ -15826,9 +16028,8 @@ type SourceKeyword struct { // In addition, you remove the suffix ID that appears at the end of the rule // name. Service-linked rule name: CustomRuleForAccount-conformance-pack-szsm1uv0w // keywordValue: Custom_CustomRuleForAccount-conformance-pack Service-linked - // rule name: securityhub-api-gw-cache-encrypted-101104e1 keywordValue: Custom_securityhub-api-gw-cache-encrypted - // Service-linked rule name: OrgConfigRule-s3-bucket-versioning-enabled-dbgzf8ba - // keywordValue: Custom_OrgConfigRule-s3-bucket-versioning-enabled + // rule name: OrgConfigRule-s3-bucket-versioning-enabled-dbgzf8ba keywordValue: + // Custom_OrgConfigRule-s3-bucket-versioning-enabled KeywordValue *string `locationName:"keywordValue" min:"1" type:"string"` } @@ -17296,6 +17497,21 @@ type UpdateSettingsInput struct { // A list of the default audit owners. DefaultProcessOwners []*Role `locationName:"defaultProcessOwners" type:"list"` + // Specifies whether the evidence finder feature is enabled. Change this attribute + // to enable or disable evidence finder. + // + // When you use this attribute to disable evidence finder, Audit Manager deletes + // the event data store that’s used to query your evidence data. As a result, + // you can’t re-enable evidence finder and use the feature again. Your only + // alternative is to deregister (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeregisterAccount.html) + // and then re-register (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_RegisterAccount.html) + // Audit Manager. + // + // Disabling evidence finder is permanent, so consider this decision carefully + // before you proceed. If you’re using Audit Manager as a delegated administrator, + // keep in mind that this action applies to all member accounts in your organization. + EvidenceFinderEnabled *bool `locationName:"evidenceFinderEnabled" type:"boolean"` + // The KMS key details. KmsKey *string `locationName:"kmsKey" min:"7" type:"string"` @@ -17365,6 +17581,12 @@ func (s *UpdateSettingsInput) SetDefaultProcessOwners(v []*Role) *UpdateSettings return s } +// SetEvidenceFinderEnabled sets the EvidenceFinderEnabled field's value. +func (s *UpdateSettingsInput) SetEvidenceFinderEnabled(v bool) *UpdateSettingsInput { + s.EvidenceFinderEnabled = &v + return s +} + // SetKmsKey sets the KmsKey field's value. func (s *UpdateSettingsInput) SetKmsKey(v string) *UpdateSettingsInput { s.KmsKey = &v @@ -17849,6 +18071,50 @@ func DelegationStatus_Values() []string { } } +const ( + // EvidenceFinderBackfillStatusNotStarted is a EvidenceFinderBackfillStatus enum value + EvidenceFinderBackfillStatusNotStarted = "NOT_STARTED" + + // EvidenceFinderBackfillStatusInProgress is a EvidenceFinderBackfillStatus enum value + EvidenceFinderBackfillStatusInProgress = "IN_PROGRESS" + + // EvidenceFinderBackfillStatusCompleted is a EvidenceFinderBackfillStatus enum value + EvidenceFinderBackfillStatusCompleted = "COMPLETED" +) + +// EvidenceFinderBackfillStatus_Values returns all elements of the EvidenceFinderBackfillStatus enum +func EvidenceFinderBackfillStatus_Values() []string { + return []string{ + EvidenceFinderBackfillStatusNotStarted, + EvidenceFinderBackfillStatusInProgress, + EvidenceFinderBackfillStatusCompleted, + } +} + +const ( + // EvidenceFinderEnablementStatusEnabled is a EvidenceFinderEnablementStatus enum value + EvidenceFinderEnablementStatusEnabled = "ENABLED" + + // EvidenceFinderEnablementStatusDisabled is a EvidenceFinderEnablementStatus enum value + EvidenceFinderEnablementStatusDisabled = "DISABLED" + + // EvidenceFinderEnablementStatusEnableInProgress is a EvidenceFinderEnablementStatus enum value + EvidenceFinderEnablementStatusEnableInProgress = "ENABLE_IN_PROGRESS" + + // EvidenceFinderEnablementStatusDisableInProgress is a EvidenceFinderEnablementStatus enum value + EvidenceFinderEnablementStatusDisableInProgress = "DISABLE_IN_PROGRESS" +) + +// EvidenceFinderEnablementStatus_Values returns all elements of the EvidenceFinderEnablementStatus enum +func EvidenceFinderEnablementStatus_Values() []string { + return []string{ + EvidenceFinderEnablementStatusEnabled, + EvidenceFinderEnablementStatusDisabled, + EvidenceFinderEnablementStatusEnableInProgress, + EvidenceFinderEnablementStatusDisableInProgress, + } +} + const ( // FrameworkTypeStandard is a FrameworkType enum value FrameworkTypeStandard = "Standard" @@ -17936,6 +18202,9 @@ const ( // SettingAttributeDefaultProcessOwners is a SettingAttribute enum value SettingAttributeDefaultProcessOwners = "DEFAULT_PROCESS_OWNERS" + + // SettingAttributeEvidenceFinderEnablement is a SettingAttribute enum value + SettingAttributeEvidenceFinderEnablement = "EVIDENCE_FINDER_ENABLEMENT" ) // SettingAttribute_Values returns all elements of the SettingAttribute enum @@ -17946,6 +18215,7 @@ func SettingAttribute_Values() []string { SettingAttributeSnsTopic, SettingAttributeDefaultAssessmentReportsDestination, SettingAttributeDefaultProcessOwners, + SettingAttributeEvidenceFinderEnablement, } } diff --git a/service/chimesdkvoice/api.go b/service/chimesdkvoice/api.go new file mode 100644 index 0000000000..03b7c264f0 --- /dev/null +++ b/service/chimesdkvoice/api.go @@ -0,0 +1,16885 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chimesdkvoice + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +const opAssociatePhoneNumbersWithVoiceConnector = "AssociatePhoneNumbersWithVoiceConnector" + +// AssociatePhoneNumbersWithVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the AssociatePhoneNumbersWithVoiceConnector operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociatePhoneNumbersWithVoiceConnector for more information on using the AssociatePhoneNumbersWithVoiceConnector +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the AssociatePhoneNumbersWithVoiceConnectorRequest method. +// req, resp := client.AssociatePhoneNumbersWithVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/AssociatePhoneNumbersWithVoiceConnector +func (c *ChimeSDKVoice) AssociatePhoneNumbersWithVoiceConnectorRequest(input *AssociatePhoneNumbersWithVoiceConnectorInput) (req *request.Request, output *AssociatePhoneNumbersWithVoiceConnectorOutput) { + op := &request.Operation{ + Name: opAssociatePhoneNumbersWithVoiceConnector, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=associate-phone-numbers", + } + + if input == nil { + input = &AssociatePhoneNumbersWithVoiceConnectorInput{} + } + + output = &AssociatePhoneNumbersWithVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociatePhoneNumbersWithVoiceConnector API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation AssociatePhoneNumbersWithVoiceConnector for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - AccessDeniedException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/AssociatePhoneNumbersWithVoiceConnector +func (c *ChimeSDKVoice) AssociatePhoneNumbersWithVoiceConnector(input *AssociatePhoneNumbersWithVoiceConnectorInput) (*AssociatePhoneNumbersWithVoiceConnectorOutput, error) { + req, out := c.AssociatePhoneNumbersWithVoiceConnectorRequest(input) + return out, req.Send() +} + +// AssociatePhoneNumbersWithVoiceConnectorWithContext is the same as AssociatePhoneNumbersWithVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See AssociatePhoneNumbersWithVoiceConnector for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) AssociatePhoneNumbersWithVoiceConnectorWithContext(ctx aws.Context, input *AssociatePhoneNumbersWithVoiceConnectorInput, opts ...request.Option) (*AssociatePhoneNumbersWithVoiceConnectorOutput, error) { + req, out := c.AssociatePhoneNumbersWithVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opAssociatePhoneNumbersWithVoiceConnectorGroup = "AssociatePhoneNumbersWithVoiceConnectorGroup" + +// AssociatePhoneNumbersWithVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the AssociatePhoneNumbersWithVoiceConnectorGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociatePhoneNumbersWithVoiceConnectorGroup for more information on using the AssociatePhoneNumbersWithVoiceConnectorGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the AssociatePhoneNumbersWithVoiceConnectorGroupRequest method. +// req, resp := client.AssociatePhoneNumbersWithVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/AssociatePhoneNumbersWithVoiceConnectorGroup +func (c *ChimeSDKVoice) AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input *AssociatePhoneNumbersWithVoiceConnectorGroupInput) (req *request.Request, output *AssociatePhoneNumbersWithVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opAssociatePhoneNumbersWithVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}?operation=associate-phone-numbers", + } + + if input == nil { + input = &AssociatePhoneNumbersWithVoiceConnectorGroupInput{} + } + + output = &AssociatePhoneNumbersWithVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// AssociatePhoneNumbersWithVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation AssociatePhoneNumbersWithVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - AccessDeniedException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/AssociatePhoneNumbersWithVoiceConnectorGroup +func (c *ChimeSDKVoice) AssociatePhoneNumbersWithVoiceConnectorGroup(input *AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) { + req, out := c.AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// AssociatePhoneNumbersWithVoiceConnectorGroupWithContext is the same as AssociatePhoneNumbersWithVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See AssociatePhoneNumbersWithVoiceConnectorGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) AssociatePhoneNumbersWithVoiceConnectorGroupWithContext(ctx aws.Context, input *AssociatePhoneNumbersWithVoiceConnectorGroupInput, opts ...request.Option) (*AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) { + req, out := c.AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchDeletePhoneNumber = "BatchDeletePhoneNumber" + +// BatchDeletePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the BatchDeletePhoneNumber operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchDeletePhoneNumber for more information on using the BatchDeletePhoneNumber +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchDeletePhoneNumberRequest method. +// req, resp := client.BatchDeletePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/BatchDeletePhoneNumber +func (c *ChimeSDKVoice) BatchDeletePhoneNumberRequest(input *BatchDeletePhoneNumberInput) (req *request.Request, output *BatchDeletePhoneNumberOutput) { + op := &request.Operation{ + Name: opBatchDeletePhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-numbers?operation=batch-delete", + } + + if input == nil { + input = &BatchDeletePhoneNumberInput{} + } + + output = &BatchDeletePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchDeletePhoneNumber API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation BatchDeletePhoneNumber for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/BatchDeletePhoneNumber +func (c *ChimeSDKVoice) BatchDeletePhoneNumber(input *BatchDeletePhoneNumberInput) (*BatchDeletePhoneNumberOutput, error) { + req, out := c.BatchDeletePhoneNumberRequest(input) + return out, req.Send() +} + +// BatchDeletePhoneNumberWithContext is the same as BatchDeletePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See BatchDeletePhoneNumber for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) BatchDeletePhoneNumberWithContext(ctx aws.Context, input *BatchDeletePhoneNumberInput, opts ...request.Option) (*BatchDeletePhoneNumberOutput, error) { + req, out := c.BatchDeletePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchUpdatePhoneNumber = "BatchUpdatePhoneNumber" + +// BatchUpdatePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the BatchUpdatePhoneNumber operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchUpdatePhoneNumber for more information on using the BatchUpdatePhoneNumber +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the BatchUpdatePhoneNumberRequest method. +// req, resp := client.BatchUpdatePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/BatchUpdatePhoneNumber +func (c *ChimeSDKVoice) BatchUpdatePhoneNumberRequest(input *BatchUpdatePhoneNumberInput) (req *request.Request, output *BatchUpdatePhoneNumberOutput) { + op := &request.Operation{ + Name: opBatchUpdatePhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-numbers?operation=batch-update", + } + + if input == nil { + input = &BatchUpdatePhoneNumberInput{} + } + + output = &BatchUpdatePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchUpdatePhoneNumber API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation BatchUpdatePhoneNumber for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/BatchUpdatePhoneNumber +func (c *ChimeSDKVoice) BatchUpdatePhoneNumber(input *BatchUpdatePhoneNumberInput) (*BatchUpdatePhoneNumberOutput, error) { + req, out := c.BatchUpdatePhoneNumberRequest(input) + return out, req.Send() +} + +// BatchUpdatePhoneNumberWithContext is the same as BatchUpdatePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See BatchUpdatePhoneNumber for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) BatchUpdatePhoneNumberWithContext(ctx aws.Context, input *BatchUpdatePhoneNumberInput, opts ...request.Option) (*BatchUpdatePhoneNumberOutput, error) { + req, out := c.BatchUpdatePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreatePhoneNumberOrder = "CreatePhoneNumberOrder" + +// CreatePhoneNumberOrderRequest generates a "aws/request.Request" representing the +// client's request for the CreatePhoneNumberOrder operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreatePhoneNumberOrder for more information on using the CreatePhoneNumberOrder +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreatePhoneNumberOrderRequest method. +// req, resp := client.CreatePhoneNumberOrderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreatePhoneNumberOrder +func (c *ChimeSDKVoice) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput) (req *request.Request, output *CreatePhoneNumberOrderOutput) { + op := &request.Operation{ + Name: opCreatePhoneNumberOrder, + HTTPMethod: "POST", + HTTPPath: "/phone-number-orders", + } + + if input == nil { + input = &CreatePhoneNumberOrderInput{} + } + + output = &CreatePhoneNumberOrderOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreatePhoneNumberOrder API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation CreatePhoneNumberOrder for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreatePhoneNumberOrder +func (c *ChimeSDKVoice) CreatePhoneNumberOrder(input *CreatePhoneNumberOrderInput) (*CreatePhoneNumberOrderOutput, error) { + req, out := c.CreatePhoneNumberOrderRequest(input) + return out, req.Send() +} + +// CreatePhoneNumberOrderWithContext is the same as CreatePhoneNumberOrder with the addition of +// the ability to pass a context and additional request options. +// +// See CreatePhoneNumberOrder for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) CreatePhoneNumberOrderWithContext(ctx aws.Context, input *CreatePhoneNumberOrderInput, opts ...request.Option) (*CreatePhoneNumberOrderOutput, error) { + req, out := c.CreatePhoneNumberOrderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateProxySession = "CreateProxySession" + +// CreateProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the CreateProxySession operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateProxySession for more information on using the CreateProxySession +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateProxySessionRequest method. +// req, resp := client.CreateProxySessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateProxySession +func (c *ChimeSDKVoice) CreateProxySessionRequest(input *CreateProxySessionInput) (req *request.Request, output *CreateProxySessionOutput) { + op := &request.Operation{ + Name: opCreateProxySession, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions", + } + + if input == nil { + input = &CreateProxySessionInput{} + } + + output = &CreateProxySessionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateProxySession API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation CreateProxySession for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateProxySession +func (c *ChimeSDKVoice) CreateProxySession(input *CreateProxySessionInput) (*CreateProxySessionOutput, error) { + req, out := c.CreateProxySessionRequest(input) + return out, req.Send() +} + +// CreateProxySessionWithContext is the same as CreateProxySession with the addition of +// the ability to pass a context and additional request options. +// +// See CreateProxySession for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) CreateProxySessionWithContext(ctx aws.Context, input *CreateProxySessionInput, opts ...request.Option) (*CreateProxySessionOutput, error) { + req, out := c.CreateProxySessionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSipMediaApplication = "CreateSipMediaApplication" + +// CreateSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the CreateSipMediaApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSipMediaApplication for more information on using the CreateSipMediaApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateSipMediaApplicationRequest method. +// req, resp := client.CreateSipMediaApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateSipMediaApplication +func (c *ChimeSDKVoice) CreateSipMediaApplicationRequest(input *CreateSipMediaApplicationInput) (req *request.Request, output *CreateSipMediaApplicationOutput) { + op := &request.Operation{ + Name: opCreateSipMediaApplication, + HTTPMethod: "POST", + HTTPPath: "/sip-media-applications", + } + + if input == nil { + input = &CreateSipMediaApplicationInput{} + } + + output = &CreateSipMediaApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSipMediaApplication API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation CreateSipMediaApplication for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ConflictException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateSipMediaApplication +func (c *ChimeSDKVoice) CreateSipMediaApplication(input *CreateSipMediaApplicationInput) (*CreateSipMediaApplicationOutput, error) { + req, out := c.CreateSipMediaApplicationRequest(input) + return out, req.Send() +} + +// CreateSipMediaApplicationWithContext is the same as CreateSipMediaApplication with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSipMediaApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) CreateSipMediaApplicationWithContext(ctx aws.Context, input *CreateSipMediaApplicationInput, opts ...request.Option) (*CreateSipMediaApplicationOutput, error) { + req, out := c.CreateSipMediaApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSipMediaApplicationCall = "CreateSipMediaApplicationCall" + +// CreateSipMediaApplicationCallRequest generates a "aws/request.Request" representing the +// client's request for the CreateSipMediaApplicationCall operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSipMediaApplicationCall for more information on using the CreateSipMediaApplicationCall +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateSipMediaApplicationCallRequest method. +// req, resp := client.CreateSipMediaApplicationCallRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateSipMediaApplicationCall +func (c *ChimeSDKVoice) CreateSipMediaApplicationCallRequest(input *CreateSipMediaApplicationCallInput) (req *request.Request, output *CreateSipMediaApplicationCallOutput) { + op := &request.Operation{ + Name: opCreateSipMediaApplicationCall, + HTTPMethod: "POST", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/calls", + } + + if input == nil { + input = &CreateSipMediaApplicationCallInput{} + } + + output = &CreateSipMediaApplicationCallOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSipMediaApplicationCall API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation CreateSipMediaApplicationCall for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - ResourceLimitExceededException +// +// - ThrottledClientException +// +// - UnauthorizedClientException +// +// - AccessDeniedException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateSipMediaApplicationCall +func (c *ChimeSDKVoice) CreateSipMediaApplicationCall(input *CreateSipMediaApplicationCallInput) (*CreateSipMediaApplicationCallOutput, error) { + req, out := c.CreateSipMediaApplicationCallRequest(input) + return out, req.Send() +} + +// CreateSipMediaApplicationCallWithContext is the same as CreateSipMediaApplicationCall with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSipMediaApplicationCall for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) CreateSipMediaApplicationCallWithContext(ctx aws.Context, input *CreateSipMediaApplicationCallInput, opts ...request.Option) (*CreateSipMediaApplicationCallOutput, error) { + req, out := c.CreateSipMediaApplicationCallRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSipRule = "CreateSipRule" + +// CreateSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the CreateSipRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSipRule for more information on using the CreateSipRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateSipRuleRequest method. +// req, resp := client.CreateSipRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateSipRule +func (c *ChimeSDKVoice) CreateSipRuleRequest(input *CreateSipRuleInput) (req *request.Request, output *CreateSipRuleOutput) { + op := &request.Operation{ + Name: opCreateSipRule, + HTTPMethod: "POST", + HTTPPath: "/sip-rules", + } + + if input == nil { + input = &CreateSipRuleInput{} + } + + output = &CreateSipRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSipRule API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation CreateSipRule for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ConflictException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateSipRule +func (c *ChimeSDKVoice) CreateSipRule(input *CreateSipRuleInput) (*CreateSipRuleOutput, error) { + req, out := c.CreateSipRuleRequest(input) + return out, req.Send() +} + +// CreateSipRuleWithContext is the same as CreateSipRule with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSipRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) CreateSipRuleWithContext(ctx aws.Context, input *CreateSipRuleInput, opts ...request.Option) (*CreateSipRuleOutput, error) { + req, out := c.CreateSipRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateVoiceConnector = "CreateVoiceConnector" + +// CreateVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the CreateVoiceConnector operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateVoiceConnector for more information on using the CreateVoiceConnector +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateVoiceConnectorRequest method. +// req, resp := client.CreateVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceConnector +func (c *ChimeSDKVoice) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (req *request.Request, output *CreateVoiceConnectorOutput) { + op := &request.Operation{ + Name: opCreateVoiceConnector, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors", + } + + if input == nil { + input = &CreateVoiceConnectorInput{} + } + + output = &CreateVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVoiceConnector API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation CreateVoiceConnector for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceConnector +func (c *ChimeSDKVoice) CreateVoiceConnector(input *CreateVoiceConnectorInput) (*CreateVoiceConnectorOutput, error) { + req, out := c.CreateVoiceConnectorRequest(input) + return out, req.Send() +} + +// CreateVoiceConnectorWithContext is the same as CreateVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVoiceConnector for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) CreateVoiceConnectorWithContext(ctx aws.Context, input *CreateVoiceConnectorInput, opts ...request.Option) (*CreateVoiceConnectorOutput, error) { + req, out := c.CreateVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateVoiceConnectorGroup = "CreateVoiceConnectorGroup" + +// CreateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateVoiceConnectorGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateVoiceConnectorGroup for more information on using the CreateVoiceConnectorGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateVoiceConnectorGroupRequest method. +// req, resp := client.CreateVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceConnectorGroup +func (c *ChimeSDKVoice) CreateVoiceConnectorGroupRequest(input *CreateVoiceConnectorGroupInput) (req *request.Request, output *CreateVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opCreateVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups", + } + + if input == nil { + input = &CreateVoiceConnectorGroupInput{} + } + + output = &CreateVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation CreateVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/CreateVoiceConnectorGroup +func (c *ChimeSDKVoice) CreateVoiceConnectorGroup(input *CreateVoiceConnectorGroupInput) (*CreateVoiceConnectorGroupOutput, error) { + req, out := c.CreateVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// CreateVoiceConnectorGroupWithContext is the same as CreateVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See CreateVoiceConnectorGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) CreateVoiceConnectorGroupWithContext(ctx aws.Context, input *CreateVoiceConnectorGroupInput, opts ...request.Option) (*CreateVoiceConnectorGroupOutput, error) { + req, out := c.CreateVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeletePhoneNumber = "DeletePhoneNumber" + +// DeletePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the DeletePhoneNumber operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeletePhoneNumber for more information on using the DeletePhoneNumber +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeletePhoneNumberRequest method. +// req, resp := client.DeletePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeletePhoneNumber +func (c *ChimeSDKVoice) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *request.Request, output *DeletePhoneNumberOutput) { + op := &request.Operation{ + Name: opDeletePhoneNumber, + HTTPMethod: "DELETE", + HTTPPath: "/phone-numbers/{phoneNumberId}", + } + + if input == nil { + input = &DeletePhoneNumberInput{} + } + + output = &DeletePhoneNumberOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeletePhoneNumber API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeletePhoneNumber for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeletePhoneNumber +func (c *ChimeSDKVoice) DeletePhoneNumber(input *DeletePhoneNumberInput) (*DeletePhoneNumberOutput, error) { + req, out := c.DeletePhoneNumberRequest(input) + return out, req.Send() +} + +// DeletePhoneNumberWithContext is the same as DeletePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See DeletePhoneNumber for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeletePhoneNumberWithContext(ctx aws.Context, input *DeletePhoneNumberInput, opts ...request.Option) (*DeletePhoneNumberOutput, error) { + req, out := c.DeletePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteProxySession = "DeleteProxySession" + +// DeleteProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProxySession operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteProxySession for more information on using the DeleteProxySession +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteProxySessionRequest method. +// req, resp := client.DeleteProxySessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteProxySession +func (c *ChimeSDKVoice) DeleteProxySessionRequest(input *DeleteProxySessionInput) (req *request.Request, output *DeleteProxySessionOutput) { + op := &request.Operation{ + Name: opDeleteProxySession, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + } + + if input == nil { + input = &DeleteProxySessionInput{} + } + + output = &DeleteProxySessionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteProxySession API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteProxySession for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteProxySession +func (c *ChimeSDKVoice) DeleteProxySession(input *DeleteProxySessionInput) (*DeleteProxySessionOutput, error) { + req, out := c.DeleteProxySessionRequest(input) + return out, req.Send() +} + +// DeleteProxySessionWithContext is the same as DeleteProxySession with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteProxySession for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteProxySessionWithContext(ctx aws.Context, input *DeleteProxySessionInput, opts ...request.Option) (*DeleteProxySessionOutput, error) { + req, out := c.DeleteProxySessionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSipMediaApplication = "DeleteSipMediaApplication" + +// DeleteSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSipMediaApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSipMediaApplication for more information on using the DeleteSipMediaApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteSipMediaApplicationRequest method. +// req, resp := client.DeleteSipMediaApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteSipMediaApplication +func (c *ChimeSDKVoice) DeleteSipMediaApplicationRequest(input *DeleteSipMediaApplicationInput) (req *request.Request, output *DeleteSipMediaApplicationOutput) { + op := &request.Operation{ + Name: opDeleteSipMediaApplication, + HTTPMethod: "DELETE", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + } + + if input == nil { + input = &DeleteSipMediaApplicationInput{} + } + + output = &DeleteSipMediaApplicationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSipMediaApplication API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteSipMediaApplication for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteSipMediaApplication +func (c *ChimeSDKVoice) DeleteSipMediaApplication(input *DeleteSipMediaApplicationInput) (*DeleteSipMediaApplicationOutput, error) { + req, out := c.DeleteSipMediaApplicationRequest(input) + return out, req.Send() +} + +// DeleteSipMediaApplicationWithContext is the same as DeleteSipMediaApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSipMediaApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteSipMediaApplicationWithContext(ctx aws.Context, input *DeleteSipMediaApplicationInput, opts ...request.Option) (*DeleteSipMediaApplicationOutput, error) { + req, out := c.DeleteSipMediaApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSipRule = "DeleteSipRule" + +// DeleteSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSipRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSipRule for more information on using the DeleteSipRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteSipRuleRequest method. +// req, resp := client.DeleteSipRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteSipRule +func (c *ChimeSDKVoice) DeleteSipRuleRequest(input *DeleteSipRuleInput) (req *request.Request, output *DeleteSipRuleOutput) { + op := &request.Operation{ + Name: opDeleteSipRule, + HTTPMethod: "DELETE", + HTTPPath: "/sip-rules/{sipRuleId}", + } + + if input == nil { + input = &DeleteSipRuleInput{} + } + + output = &DeleteSipRuleOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSipRule API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteSipRule for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteSipRule +func (c *ChimeSDKVoice) DeleteSipRule(input *DeleteSipRuleInput) (*DeleteSipRuleOutput, error) { + req, out := c.DeleteSipRuleRequest(input) + return out, req.Send() +} + +// DeleteSipRuleWithContext is the same as DeleteSipRule with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSipRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteSipRuleWithContext(ctx aws.Context, input *DeleteSipRuleInput, opts ...request.Option) (*DeleteSipRuleOutput, error) { + req, out := c.DeleteSipRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnector = "DeleteVoiceConnector" + +// DeleteVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnector operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnector for more information on using the DeleteVoiceConnector +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorRequest method. +// req, resp := client.DeleteVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnector +func (c *ChimeSDKVoice) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (req *request.Request, output *DeleteVoiceConnectorOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnector, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}", + } + + if input == nil { + input = &DeleteVoiceConnectorInput{} + } + + output = &DeleteVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnector API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnector for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnector +func (c *ChimeSDKVoice) DeleteVoiceConnector(input *DeleteVoiceConnectorInput) (*DeleteVoiceConnectorOutput, error) { + req, out := c.DeleteVoiceConnectorRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorWithContext is the same as DeleteVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnector for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorWithContext(ctx aws.Context, input *DeleteVoiceConnectorInput, opts ...request.Option) (*DeleteVoiceConnectorOutput, error) { + req, out := c.DeleteVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorEmergencyCallingConfiguration = "DeleteVoiceConnectorEmergencyCallingConfiguration" + +// DeleteVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorEmergencyCallingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnectorEmergencyCallingConfiguration for more information on using the DeleteVoiceConnectorEmergencyCallingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorEmergencyCallingConfigurationRequest method. +// req, resp := client.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorEmergencyCallingConfiguration +func (c *ChimeSDKVoice) DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input *DeleteVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *DeleteVoiceConnectorEmergencyCallingConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorEmergencyCallingConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", + } + + if input == nil { + input = &DeleteVoiceConnectorEmergencyCallingConfigurationInput{} + } + + output = &DeleteVoiceConnectorEmergencyCallingConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnectorEmergencyCallingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorEmergencyCallingConfiguration +func (c *ChimeSDKVoice) DeleteVoiceConnectorEmergencyCallingConfiguration(input *DeleteVoiceConnectorEmergencyCallingConfigurationInput) (*DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorEmergencyCallingConfigurationWithContext is the same as DeleteVoiceConnectorEmergencyCallingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorEmergencyCallingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *DeleteVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorGroup = "DeleteVoiceConnectorGroup" + +// DeleteVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnectorGroup for more information on using the DeleteVoiceConnectorGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorGroupRequest method. +// req, resp := client.DeleteVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorGroup +func (c *ChimeSDKVoice) DeleteVoiceConnectorGroupRequest(input *DeleteVoiceConnectorGroupInput) (req *request.Request, output *DeleteVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorGroup, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + } + + if input == nil { + input = &DeleteVoiceConnectorGroupInput{} + } + + output = &DeleteVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorGroup +func (c *ChimeSDKVoice) DeleteVoiceConnectorGroup(input *DeleteVoiceConnectorGroupInput) (*DeleteVoiceConnectorGroupOutput, error) { + req, out := c.DeleteVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorGroupWithContext is the same as DeleteVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorGroupWithContext(ctx aws.Context, input *DeleteVoiceConnectorGroupInput, opts ...request.Option) (*DeleteVoiceConnectorGroupOutput, error) { + req, out := c.DeleteVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorOrigination = "DeleteVoiceConnectorOrigination" + +// DeleteVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorOrigination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnectorOrigination for more information on using the DeleteVoiceConnectorOrigination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorOriginationRequest method. +// req, resp := client.DeleteVoiceConnectorOriginationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorOrigination +func (c *ChimeSDKVoice) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnectorOriginationInput) (req *request.Request, output *DeleteVoiceConnectorOriginationOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorOrigination, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + } + + if input == nil { + input = &DeleteVoiceConnectorOriginationInput{} + } + + output = &DeleteVoiceConnectorOriginationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorOrigination API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnectorOrigination for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorOrigination +func (c *ChimeSDKVoice) DeleteVoiceConnectorOrigination(input *DeleteVoiceConnectorOriginationInput) (*DeleteVoiceConnectorOriginationOutput, error) { + req, out := c.DeleteVoiceConnectorOriginationRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorOriginationWithContext is the same as DeleteVoiceConnectorOrigination with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorOrigination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorOriginationWithContext(ctx aws.Context, input *DeleteVoiceConnectorOriginationInput, opts ...request.Option) (*DeleteVoiceConnectorOriginationOutput, error) { + req, out := c.DeleteVoiceConnectorOriginationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorProxy = "DeleteVoiceConnectorProxy" + +// DeleteVoiceConnectorProxyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorProxy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnectorProxy for more information on using the DeleteVoiceConnectorProxy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorProxyRequest method. +// req, resp := client.DeleteVoiceConnectorProxyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorProxy +func (c *ChimeSDKVoice) DeleteVoiceConnectorProxyRequest(input *DeleteVoiceConnectorProxyInput) (req *request.Request, output *DeleteVoiceConnectorProxyOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorProxy, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", + } + + if input == nil { + input = &DeleteVoiceConnectorProxyInput{} + } + + output = &DeleteVoiceConnectorProxyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorProxy API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnectorProxy for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorProxy +func (c *ChimeSDKVoice) DeleteVoiceConnectorProxy(input *DeleteVoiceConnectorProxyInput) (*DeleteVoiceConnectorProxyOutput, error) { + req, out := c.DeleteVoiceConnectorProxyRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorProxyWithContext is the same as DeleteVoiceConnectorProxy with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorProxy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorProxyWithContext(ctx aws.Context, input *DeleteVoiceConnectorProxyInput, opts ...request.Option) (*DeleteVoiceConnectorProxyOutput, error) { + req, out := c.DeleteVoiceConnectorProxyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorStreamingConfiguration = "DeleteVoiceConnectorStreamingConfiguration" + +// DeleteVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorStreamingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnectorStreamingConfiguration for more information on using the DeleteVoiceConnectorStreamingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.DeleteVoiceConnectorStreamingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorStreamingConfiguration +func (c *ChimeSDKVoice) DeleteVoiceConnectorStreamingConfigurationRequest(input *DeleteVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *DeleteVoiceConnectorStreamingConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorStreamingConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + } + + if input == nil { + input = &DeleteVoiceConnectorStreamingConfigurationInput{} + } + + output = &DeleteVoiceConnectorStreamingConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorStreamingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnectorStreamingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorStreamingConfiguration +func (c *ChimeSDKVoice) DeleteVoiceConnectorStreamingConfiguration(input *DeleteVoiceConnectorStreamingConfigurationInput) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorStreamingConfigurationWithContext is the same as DeleteVoiceConnectorStreamingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorStreamingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *DeleteVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorTermination = "DeleteVoiceConnectorTermination" + +// DeleteVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorTermination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnectorTermination for more information on using the DeleteVoiceConnectorTermination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorTerminationRequest method. +// req, resp := client.DeleteVoiceConnectorTerminationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorTermination +func (c *ChimeSDKVoice) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnectorTerminationInput) (req *request.Request, output *DeleteVoiceConnectorTerminationOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorTermination, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + } + + if input == nil { + input = &DeleteVoiceConnectorTerminationInput{} + } + + output = &DeleteVoiceConnectorTerminationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorTermination API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnectorTermination for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorTermination +func (c *ChimeSDKVoice) DeleteVoiceConnectorTermination(input *DeleteVoiceConnectorTerminationInput) (*DeleteVoiceConnectorTerminationOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorTerminationWithContext is the same as DeleteVoiceConnectorTermination with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorTermination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorTerminationWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteVoiceConnectorTerminationCredentials = "DeleteVoiceConnectorTerminationCredentials" + +// DeleteVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorTerminationCredentials operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteVoiceConnectorTerminationCredentials for more information on using the DeleteVoiceConnectorTerminationCredentials +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteVoiceConnectorTerminationCredentialsRequest method. +// req, resp := client.DeleteVoiceConnectorTerminationCredentialsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorTerminationCredentials +func (c *ChimeSDKVoice) DeleteVoiceConnectorTerminationCredentialsRequest(input *DeleteVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *DeleteVoiceConnectorTerminationCredentialsOutput) { + op := &request.Operation{ + Name: opDeleteVoiceConnectorTerminationCredentials, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials?operation=delete", + } + + if input == nil { + input = &DeleteVoiceConnectorTerminationCredentialsInput{} + } + + output = &DeleteVoiceConnectorTerminationCredentialsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteVoiceConnectorTerminationCredentials API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DeleteVoiceConnectorTerminationCredentials for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DeleteVoiceConnectorTerminationCredentials +func (c *ChimeSDKVoice) DeleteVoiceConnectorTerminationCredentials(input *DeleteVoiceConnectorTerminationCredentialsInput) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input) + return out, req.Send() +} + +// DeleteVoiceConnectorTerminationCredentialsWithContext is the same as DeleteVoiceConnectorTerminationCredentials with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteVoiceConnectorTerminationCredentials for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DeleteVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociatePhoneNumbersFromVoiceConnector = "DisassociatePhoneNumbersFromVoiceConnector" + +// DisassociatePhoneNumbersFromVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumbersFromVoiceConnector operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociatePhoneNumbersFromVoiceConnector for more information on using the DisassociatePhoneNumbersFromVoiceConnector +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DisassociatePhoneNumbersFromVoiceConnectorRequest method. +// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnector +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorOutput) { + op := &request.Operation{ + Name: opDisassociatePhoneNumbersFromVoiceConnector, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers", + } + + if input == nil { + input = &DisassociatePhoneNumbersFromVoiceConnectorInput{} + } + + output = &DisassociatePhoneNumbersFromVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociatePhoneNumbersFromVoiceConnector API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DisassociatePhoneNumbersFromVoiceConnector for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnector +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnector(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) + return out, req.Send() +} + +// DisassociatePhoneNumbersFromVoiceConnectorWithContext is the same as DisassociatePhoneNumbersFromVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociatePhoneNumbersFromVoiceConnector for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociatePhoneNumbersFromVoiceConnectorGroup = "DisassociatePhoneNumbersFromVoiceConnectorGroup" + +// DisassociatePhoneNumbersFromVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumbersFromVoiceConnectorGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociatePhoneNumbersFromVoiceConnectorGroup for more information on using the DisassociatePhoneNumbersFromVoiceConnectorGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DisassociatePhoneNumbersFromVoiceConnectorGroupRequest method. +// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opDisassociatePhoneNumbersFromVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}?operation=disassociate-phone-numbers", + } + + if input == nil { + input = &DisassociatePhoneNumbersFromVoiceConnectorGroupInput{} + } + + output = &DisassociatePhoneNumbersFromVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// DisassociatePhoneNumbersFromVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation DisassociatePhoneNumbersFromVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorGroup(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext is the same as DisassociatePhoneNumbersFromVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociatePhoneNumbersFromVoiceConnectorGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetGlobalSettings = "GetGlobalSettings" + +// GetGlobalSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetGlobalSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetGlobalSettings for more information on using the GetGlobalSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetGlobalSettingsRequest method. +// req, resp := client.GetGlobalSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetGlobalSettings +func (c *ChimeSDKVoice) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *request.Request, output *GetGlobalSettingsOutput) { + op := &request.Operation{ + Name: opGetGlobalSettings, + HTTPMethod: "GET", + HTTPPath: "/settings", + } + + if input == nil { + input = &GetGlobalSettingsInput{} + } + + output = &GetGlobalSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGlobalSettings API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetGlobalSettings for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetGlobalSettings +func (c *ChimeSDKVoice) GetGlobalSettings(input *GetGlobalSettingsInput) (*GetGlobalSettingsOutput, error) { + req, out := c.GetGlobalSettingsRequest(input) + return out, req.Send() +} + +// GetGlobalSettingsWithContext is the same as GetGlobalSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetGlobalSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetGlobalSettingsWithContext(ctx aws.Context, input *GetGlobalSettingsInput, opts ...request.Option) (*GetGlobalSettingsOutput, error) { + req, out := c.GetGlobalSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPhoneNumber = "GetPhoneNumber" + +// GetPhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the GetPhoneNumber operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetPhoneNumber for more information on using the GetPhoneNumber +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetPhoneNumberRequest method. +// req, resp := client.GetPhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetPhoneNumber +func (c *ChimeSDKVoice) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request.Request, output *GetPhoneNumberOutput) { + op := &request.Operation{ + Name: opGetPhoneNumber, + HTTPMethod: "GET", + HTTPPath: "/phone-numbers/{phoneNumberId}", + } + + if input == nil { + input = &GetPhoneNumberInput{} + } + + output = &GetPhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPhoneNumber API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetPhoneNumber for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetPhoneNumber +func (c *ChimeSDKVoice) GetPhoneNumber(input *GetPhoneNumberInput) (*GetPhoneNumberOutput, error) { + req, out := c.GetPhoneNumberRequest(input) + return out, req.Send() +} + +// GetPhoneNumberWithContext is the same as GetPhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See GetPhoneNumber for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetPhoneNumberWithContext(ctx aws.Context, input *GetPhoneNumberInput, opts ...request.Option) (*GetPhoneNumberOutput, error) { + req, out := c.GetPhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPhoneNumberOrder = "GetPhoneNumberOrder" + +// GetPhoneNumberOrderRequest generates a "aws/request.Request" representing the +// client's request for the GetPhoneNumberOrder operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetPhoneNumberOrder for more information on using the GetPhoneNumberOrder +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetPhoneNumberOrderRequest method. +// req, resp := client.GetPhoneNumberOrderRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetPhoneNumberOrder +func (c *ChimeSDKVoice) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req *request.Request, output *GetPhoneNumberOrderOutput) { + op := &request.Operation{ + Name: opGetPhoneNumberOrder, + HTTPMethod: "GET", + HTTPPath: "/phone-number-orders/{phoneNumberOrderId}", + } + + if input == nil { + input = &GetPhoneNumberOrderInput{} + } + + output = &GetPhoneNumberOrderOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPhoneNumberOrder API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetPhoneNumberOrder for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetPhoneNumberOrder +func (c *ChimeSDKVoice) GetPhoneNumberOrder(input *GetPhoneNumberOrderInput) (*GetPhoneNumberOrderOutput, error) { + req, out := c.GetPhoneNumberOrderRequest(input) + return out, req.Send() +} + +// GetPhoneNumberOrderWithContext is the same as GetPhoneNumberOrder with the addition of +// the ability to pass a context and additional request options. +// +// See GetPhoneNumberOrder for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetPhoneNumberOrderWithContext(ctx aws.Context, input *GetPhoneNumberOrderInput, opts ...request.Option) (*GetPhoneNumberOrderOutput, error) { + req, out := c.GetPhoneNumberOrderRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPhoneNumberSettings = "GetPhoneNumberSettings" + +// GetPhoneNumberSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetPhoneNumberSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetPhoneNumberSettings for more information on using the GetPhoneNumberSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetPhoneNumberSettingsRequest method. +// req, resp := client.GetPhoneNumberSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetPhoneNumberSettings +func (c *ChimeSDKVoice) GetPhoneNumberSettingsRequest(input *GetPhoneNumberSettingsInput) (req *request.Request, output *GetPhoneNumberSettingsOutput) { + op := &request.Operation{ + Name: opGetPhoneNumberSettings, + HTTPMethod: "GET", + HTTPPath: "/settings/phone-number", + } + + if input == nil { + input = &GetPhoneNumberSettingsInput{} + } + + output = &GetPhoneNumberSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPhoneNumberSettings API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetPhoneNumberSettings for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetPhoneNumberSettings +func (c *ChimeSDKVoice) GetPhoneNumberSettings(input *GetPhoneNumberSettingsInput) (*GetPhoneNumberSettingsOutput, error) { + req, out := c.GetPhoneNumberSettingsRequest(input) + return out, req.Send() +} + +// GetPhoneNumberSettingsWithContext is the same as GetPhoneNumberSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetPhoneNumberSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetPhoneNumberSettingsWithContext(ctx aws.Context, input *GetPhoneNumberSettingsInput, opts ...request.Option) (*GetPhoneNumberSettingsOutput, error) { + req, out := c.GetPhoneNumberSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetProxySession = "GetProxySession" + +// GetProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the GetProxySession operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetProxySession for more information on using the GetProxySession +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetProxySessionRequest method. +// req, resp := client.GetProxySessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetProxySession +func (c *ChimeSDKVoice) GetProxySessionRequest(input *GetProxySessionInput) (req *request.Request, output *GetProxySessionOutput) { + op := &request.Operation{ + Name: opGetProxySession, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + } + + if input == nil { + input = &GetProxySessionInput{} + } + + output = &GetProxySessionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetProxySession API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetProxySession for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetProxySession +func (c *ChimeSDKVoice) GetProxySession(input *GetProxySessionInput) (*GetProxySessionOutput, error) { + req, out := c.GetProxySessionRequest(input) + return out, req.Send() +} + +// GetProxySessionWithContext is the same as GetProxySession with the addition of +// the ability to pass a context and additional request options. +// +// See GetProxySession for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetProxySessionWithContext(ctx aws.Context, input *GetProxySessionInput, opts ...request.Option) (*GetProxySessionOutput, error) { + req, out := c.GetProxySessionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetSipMediaApplication = "GetSipMediaApplication" + +// GetSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the GetSipMediaApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetSipMediaApplication for more information on using the GetSipMediaApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetSipMediaApplicationRequest method. +// req, resp := client.GetSipMediaApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipMediaApplication +func (c *ChimeSDKVoice) GetSipMediaApplicationRequest(input *GetSipMediaApplicationInput) (req *request.Request, output *GetSipMediaApplicationOutput) { + op := &request.Operation{ + Name: opGetSipMediaApplication, + HTTPMethod: "GET", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + } + + if input == nil { + input = &GetSipMediaApplicationInput{} + } + + output = &GetSipMediaApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSipMediaApplication API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetSipMediaApplication for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipMediaApplication +func (c *ChimeSDKVoice) GetSipMediaApplication(input *GetSipMediaApplicationInput) (*GetSipMediaApplicationOutput, error) { + req, out := c.GetSipMediaApplicationRequest(input) + return out, req.Send() +} + +// GetSipMediaApplicationWithContext is the same as GetSipMediaApplication with the addition of +// the ability to pass a context and additional request options. +// +// See GetSipMediaApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetSipMediaApplicationWithContext(ctx aws.Context, input *GetSipMediaApplicationInput, opts ...request.Option) (*GetSipMediaApplicationOutput, error) { + req, out := c.GetSipMediaApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetSipMediaApplicationAlexaSkillConfiguration = "GetSipMediaApplicationAlexaSkillConfiguration" + +// GetSipMediaApplicationAlexaSkillConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetSipMediaApplicationAlexaSkillConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetSipMediaApplicationAlexaSkillConfiguration for more information on using the GetSipMediaApplicationAlexaSkillConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetSipMediaApplicationAlexaSkillConfigurationRequest method. +// req, resp := client.GetSipMediaApplicationAlexaSkillConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipMediaApplicationAlexaSkillConfiguration +func (c *ChimeSDKVoice) GetSipMediaApplicationAlexaSkillConfigurationRequest(input *GetSipMediaApplicationAlexaSkillConfigurationInput) (req *request.Request, output *GetSipMediaApplicationAlexaSkillConfigurationOutput) { + op := &request.Operation{ + Name: opGetSipMediaApplicationAlexaSkillConfiguration, + HTTPMethod: "GET", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/alexa-skill-configuration", + } + + if input == nil { + input = &GetSipMediaApplicationAlexaSkillConfigurationInput{} + } + + output = &GetSipMediaApplicationAlexaSkillConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSipMediaApplicationAlexaSkillConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetSipMediaApplicationAlexaSkillConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipMediaApplicationAlexaSkillConfiguration +func (c *ChimeSDKVoice) GetSipMediaApplicationAlexaSkillConfiguration(input *GetSipMediaApplicationAlexaSkillConfigurationInput) (*GetSipMediaApplicationAlexaSkillConfigurationOutput, error) { + req, out := c.GetSipMediaApplicationAlexaSkillConfigurationRequest(input) + return out, req.Send() +} + +// GetSipMediaApplicationAlexaSkillConfigurationWithContext is the same as GetSipMediaApplicationAlexaSkillConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetSipMediaApplicationAlexaSkillConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetSipMediaApplicationAlexaSkillConfigurationWithContext(ctx aws.Context, input *GetSipMediaApplicationAlexaSkillConfigurationInput, opts ...request.Option) (*GetSipMediaApplicationAlexaSkillConfigurationOutput, error) { + req, out := c.GetSipMediaApplicationAlexaSkillConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetSipMediaApplicationLoggingConfiguration = "GetSipMediaApplicationLoggingConfiguration" + +// GetSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetSipMediaApplicationLoggingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetSipMediaApplicationLoggingConfiguration for more information on using the GetSipMediaApplicationLoggingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetSipMediaApplicationLoggingConfigurationRequest method. +// req, resp := client.GetSipMediaApplicationLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipMediaApplicationLoggingConfiguration +func (c *ChimeSDKVoice) GetSipMediaApplicationLoggingConfigurationRequest(input *GetSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *GetSipMediaApplicationLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opGetSipMediaApplicationLoggingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", + } + + if input == nil { + input = &GetSipMediaApplicationLoggingConfigurationInput{} + } + + output = &GetSipMediaApplicationLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSipMediaApplicationLoggingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetSipMediaApplicationLoggingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipMediaApplicationLoggingConfiguration +func (c *ChimeSDKVoice) GetSipMediaApplicationLoggingConfiguration(input *GetSipMediaApplicationLoggingConfigurationInput) (*GetSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.GetSipMediaApplicationLoggingConfigurationRequest(input) + return out, req.Send() +} + +// GetSipMediaApplicationLoggingConfigurationWithContext is the same as GetSipMediaApplicationLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetSipMediaApplicationLoggingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *GetSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*GetSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.GetSipMediaApplicationLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetSipRule = "GetSipRule" + +// GetSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the GetSipRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetSipRule for more information on using the GetSipRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetSipRuleRequest method. +// req, resp := client.GetSipRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipRule +func (c *ChimeSDKVoice) GetSipRuleRequest(input *GetSipRuleInput) (req *request.Request, output *GetSipRuleOutput) { + op := &request.Operation{ + Name: opGetSipRule, + HTTPMethod: "GET", + HTTPPath: "/sip-rules/{sipRuleId}", + } + + if input == nil { + input = &GetSipRuleInput{} + } + + output = &GetSipRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSipRule API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetSipRule for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetSipRule +func (c *ChimeSDKVoice) GetSipRule(input *GetSipRuleInput) (*GetSipRuleOutput, error) { + req, out := c.GetSipRuleRequest(input) + return out, req.Send() +} + +// GetSipRuleWithContext is the same as GetSipRule with the addition of +// the ability to pass a context and additional request options. +// +// See GetSipRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetSipRuleWithContext(ctx aws.Context, input *GetSipRuleInput, opts ...request.Option) (*GetSipRuleOutput, error) { + req, out := c.GetSipRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnector = "GetVoiceConnector" + +// GetVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnector operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnector for more information on using the GetVoiceConnector +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorRequest method. +// req, resp := client.GetVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnector +func (c *ChimeSDKVoice) GetVoiceConnectorRequest(input *GetVoiceConnectorInput) (req *request.Request, output *GetVoiceConnectorOutput) { + op := &request.Operation{ + Name: opGetVoiceConnector, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}", + } + + if input == nil { + input = &GetVoiceConnectorInput{} + } + + output = &GetVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnector API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnector for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnector +func (c *ChimeSDKVoice) GetVoiceConnector(input *GetVoiceConnectorInput) (*GetVoiceConnectorOutput, error) { + req, out := c.GetVoiceConnectorRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorWithContext is the same as GetVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnector for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorWithContext(ctx aws.Context, input *GetVoiceConnectorInput, opts ...request.Option) (*GetVoiceConnectorOutput, error) { + req, out := c.GetVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorEmergencyCallingConfiguration = "GetVoiceConnectorEmergencyCallingConfiguration" + +// GetVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorEmergencyCallingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorEmergencyCallingConfiguration for more information on using the GetVoiceConnectorEmergencyCallingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorEmergencyCallingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorEmergencyCallingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorEmergencyCallingConfiguration +func (c *ChimeSDKVoice) GetVoiceConnectorEmergencyCallingConfigurationRequest(input *GetVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *GetVoiceConnectorEmergencyCallingConfigurationOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorEmergencyCallingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", + } + + if input == nil { + input = &GetVoiceConnectorEmergencyCallingConfigurationInput{} + } + + output = &GetVoiceConnectorEmergencyCallingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorEmergencyCallingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorEmergencyCallingConfiguration +func (c *ChimeSDKVoice) GetVoiceConnectorEmergencyCallingConfiguration(input *GetVoiceConnectorEmergencyCallingConfigurationInput) (*GetVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorEmergencyCallingConfigurationRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorEmergencyCallingConfigurationWithContext is the same as GetVoiceConnectorEmergencyCallingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorEmergencyCallingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorEmergencyCallingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorGroup = "GetVoiceConnectorGroup" + +// GetVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorGroup for more information on using the GetVoiceConnectorGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorGroupRequest method. +// req, resp := client.GetVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorGroup +func (c *ChimeSDKVoice) GetVoiceConnectorGroupRequest(input *GetVoiceConnectorGroupInput) (req *request.Request, output *GetVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorGroup, + HTTPMethod: "GET", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + } + + if input == nil { + input = &GetVoiceConnectorGroupInput{} + } + + output = &GetVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorGroup +func (c *ChimeSDKVoice) GetVoiceConnectorGroup(input *GetVoiceConnectorGroupInput) (*GetVoiceConnectorGroupOutput, error) { + req, out := c.GetVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorGroupWithContext is the same as GetVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorGroupWithContext(ctx aws.Context, input *GetVoiceConnectorGroupInput, opts ...request.Option) (*GetVoiceConnectorGroupOutput, error) { + req, out := c.GetVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorLoggingConfiguration = "GetVoiceConnectorLoggingConfiguration" + +// GetVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorLoggingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorLoggingConfiguration for more information on using the GetVoiceConnectorLoggingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorLoggingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorLoggingConfiguration +func (c *ChimeSDKVoice) GetVoiceConnectorLoggingConfigurationRequest(input *GetVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *GetVoiceConnectorLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorLoggingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", + } + + if input == nil { + input = &GetVoiceConnectorLoggingConfigurationInput{} + } + + output = &GetVoiceConnectorLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorLoggingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorLoggingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorLoggingConfiguration +func (c *ChimeSDKVoice) GetVoiceConnectorLoggingConfiguration(input *GetVoiceConnectorLoggingConfigurationInput) (*GetVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorLoggingConfigurationWithContext is the same as GetVoiceConnectorLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorLoggingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorOrigination = "GetVoiceConnectorOrigination" + +// GetVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorOrigination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorOrigination for more information on using the GetVoiceConnectorOrigination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorOriginationRequest method. +// req, resp := client.GetVoiceConnectorOriginationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorOrigination +func (c *ChimeSDKVoice) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOriginationInput) (req *request.Request, output *GetVoiceConnectorOriginationOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorOrigination, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + } + + if input == nil { + input = &GetVoiceConnectorOriginationInput{} + } + + output = &GetVoiceConnectorOriginationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorOrigination API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorOrigination for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorOrigination +func (c *ChimeSDKVoice) GetVoiceConnectorOrigination(input *GetVoiceConnectorOriginationInput) (*GetVoiceConnectorOriginationOutput, error) { + req, out := c.GetVoiceConnectorOriginationRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorOriginationWithContext is the same as GetVoiceConnectorOrigination with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorOrigination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorOriginationWithContext(ctx aws.Context, input *GetVoiceConnectorOriginationInput, opts ...request.Option) (*GetVoiceConnectorOriginationOutput, error) { + req, out := c.GetVoiceConnectorOriginationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorProxy = "GetVoiceConnectorProxy" + +// GetVoiceConnectorProxyRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorProxy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorProxy for more information on using the GetVoiceConnectorProxy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorProxyRequest method. +// req, resp := client.GetVoiceConnectorProxyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorProxy +func (c *ChimeSDKVoice) GetVoiceConnectorProxyRequest(input *GetVoiceConnectorProxyInput) (req *request.Request, output *GetVoiceConnectorProxyOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorProxy, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", + } + + if input == nil { + input = &GetVoiceConnectorProxyInput{} + } + + output = &GetVoiceConnectorProxyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorProxy API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorProxy for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorProxy +func (c *ChimeSDKVoice) GetVoiceConnectorProxy(input *GetVoiceConnectorProxyInput) (*GetVoiceConnectorProxyOutput, error) { + req, out := c.GetVoiceConnectorProxyRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorProxyWithContext is the same as GetVoiceConnectorProxy with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorProxy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorProxyWithContext(ctx aws.Context, input *GetVoiceConnectorProxyInput, opts ...request.Option) (*GetVoiceConnectorProxyOutput, error) { + req, out := c.GetVoiceConnectorProxyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorStreamingConfiguration = "GetVoiceConnectorStreamingConfiguration" + +// GetVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorStreamingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorStreamingConfiguration for more information on using the GetVoiceConnectorStreamingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorStreamingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorStreamingConfiguration +func (c *ChimeSDKVoice) GetVoiceConnectorStreamingConfigurationRequest(input *GetVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *GetVoiceConnectorStreamingConfigurationOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorStreamingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + } + + if input == nil { + input = &GetVoiceConnectorStreamingConfigurationInput{} + } + + output = &GetVoiceConnectorStreamingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorStreamingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorStreamingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorStreamingConfiguration +func (c *ChimeSDKVoice) GetVoiceConnectorStreamingConfiguration(input *GetVoiceConnectorStreamingConfigurationInput) (*GetVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorStreamingConfigurationWithContext is the same as GetVoiceConnectorStreamingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorStreamingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorTermination = "GetVoiceConnectorTermination" + +// GetVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorTermination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorTermination for more information on using the GetVoiceConnectorTermination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorTerminationRequest method. +// req, resp := client.GetVoiceConnectorTerminationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorTermination +func (c *ChimeSDKVoice) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerminationInput) (req *request.Request, output *GetVoiceConnectorTerminationOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorTermination, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + } + + if input == nil { + input = &GetVoiceConnectorTerminationInput{} + } + + output = &GetVoiceConnectorTerminationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorTermination API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorTermination for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorTermination +func (c *ChimeSDKVoice) GetVoiceConnectorTermination(input *GetVoiceConnectorTerminationInput) (*GetVoiceConnectorTerminationOutput, error) { + req, out := c.GetVoiceConnectorTerminationRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorTerminationWithContext is the same as GetVoiceConnectorTermination with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorTermination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorTerminationWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationInput, opts ...request.Option) (*GetVoiceConnectorTerminationOutput, error) { + req, out := c.GetVoiceConnectorTerminationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetVoiceConnectorTerminationHealth = "GetVoiceConnectorTerminationHealth" + +// GetVoiceConnectorTerminationHealthRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorTerminationHealth operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetVoiceConnectorTerminationHealth for more information on using the GetVoiceConnectorTerminationHealth +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetVoiceConnectorTerminationHealthRequest method. +// req, resp := client.GetVoiceConnectorTerminationHealthRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorTerminationHealth +func (c *ChimeSDKVoice) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnectorTerminationHealthInput) (req *request.Request, output *GetVoiceConnectorTerminationHealthOutput) { + op := &request.Operation{ + Name: opGetVoiceConnectorTerminationHealth, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/health", + } + + if input == nil { + input = &GetVoiceConnectorTerminationHealthInput{} + } + + output = &GetVoiceConnectorTerminationHealthOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetVoiceConnectorTerminationHealth API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation GetVoiceConnectorTerminationHealth for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/GetVoiceConnectorTerminationHealth +func (c *ChimeSDKVoice) GetVoiceConnectorTerminationHealth(input *GetVoiceConnectorTerminationHealthInput) (*GetVoiceConnectorTerminationHealthOutput, error) { + req, out := c.GetVoiceConnectorTerminationHealthRequest(input) + return out, req.Send() +} + +// GetVoiceConnectorTerminationHealthWithContext is the same as GetVoiceConnectorTerminationHealth with the addition of +// the ability to pass a context and additional request options. +// +// See GetVoiceConnectorTerminationHealth for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) GetVoiceConnectorTerminationHealthWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationHealthInput, opts ...request.Option) (*GetVoiceConnectorTerminationHealthOutput, error) { + req, out := c.GetVoiceConnectorTerminationHealthRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAvailableVoiceConnectorRegions = "ListAvailableVoiceConnectorRegions" + +// ListAvailableVoiceConnectorRegionsRequest generates a "aws/request.Request" representing the +// client's request for the ListAvailableVoiceConnectorRegions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAvailableVoiceConnectorRegions for more information on using the ListAvailableVoiceConnectorRegions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListAvailableVoiceConnectorRegionsRequest method. +// req, resp := client.ListAvailableVoiceConnectorRegionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListAvailableVoiceConnectorRegions +func (c *ChimeSDKVoice) ListAvailableVoiceConnectorRegionsRequest(input *ListAvailableVoiceConnectorRegionsInput) (req *request.Request, output *ListAvailableVoiceConnectorRegionsOutput) { + op := &request.Operation{ + Name: opListAvailableVoiceConnectorRegions, + HTTPMethod: "GET", + HTTPPath: "/voice-connector-regions", + } + + if input == nil { + input = &ListAvailableVoiceConnectorRegionsInput{} + } + + output = &ListAvailableVoiceConnectorRegionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAvailableVoiceConnectorRegions API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListAvailableVoiceConnectorRegions for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListAvailableVoiceConnectorRegions +func (c *ChimeSDKVoice) ListAvailableVoiceConnectorRegions(input *ListAvailableVoiceConnectorRegionsInput) (*ListAvailableVoiceConnectorRegionsOutput, error) { + req, out := c.ListAvailableVoiceConnectorRegionsRequest(input) + return out, req.Send() +} + +// ListAvailableVoiceConnectorRegionsWithContext is the same as ListAvailableVoiceConnectorRegions with the addition of +// the ability to pass a context and additional request options. +// +// See ListAvailableVoiceConnectorRegions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListAvailableVoiceConnectorRegionsWithContext(ctx aws.Context, input *ListAvailableVoiceConnectorRegionsInput, opts ...request.Option) (*ListAvailableVoiceConnectorRegionsOutput, error) { + req, out := c.ListAvailableVoiceConnectorRegionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListPhoneNumberOrders = "ListPhoneNumberOrders" + +// ListPhoneNumberOrdersRequest generates a "aws/request.Request" representing the +// client's request for the ListPhoneNumberOrders operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListPhoneNumberOrders for more information on using the ListPhoneNumberOrders +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListPhoneNumberOrdersRequest method. +// req, resp := client.ListPhoneNumberOrdersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListPhoneNumberOrders +func (c *ChimeSDKVoice) ListPhoneNumberOrdersRequest(input *ListPhoneNumberOrdersInput) (req *request.Request, output *ListPhoneNumberOrdersOutput) { + op := &request.Operation{ + Name: opListPhoneNumberOrders, + HTTPMethod: "GET", + HTTPPath: "/phone-number-orders", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPhoneNumberOrdersInput{} + } + + output = &ListPhoneNumberOrdersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPhoneNumberOrders API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListPhoneNumberOrders for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListPhoneNumberOrders +func (c *ChimeSDKVoice) ListPhoneNumberOrders(input *ListPhoneNumberOrdersInput) (*ListPhoneNumberOrdersOutput, error) { + req, out := c.ListPhoneNumberOrdersRequest(input) + return out, req.Send() +} + +// ListPhoneNumberOrdersWithContext is the same as ListPhoneNumberOrders with the addition of +// the ability to pass a context and additional request options. +// +// See ListPhoneNumberOrders for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListPhoneNumberOrdersWithContext(ctx aws.Context, input *ListPhoneNumberOrdersInput, opts ...request.Option) (*ListPhoneNumberOrdersOutput, error) { + req, out := c.ListPhoneNumberOrdersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListPhoneNumberOrdersPages iterates over the pages of a ListPhoneNumberOrders operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPhoneNumberOrders method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListPhoneNumberOrders operation. +// pageNum := 0 +// err := client.ListPhoneNumberOrdersPages(params, +// func(page *chimesdkvoice.ListPhoneNumberOrdersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListPhoneNumberOrdersPages(input *ListPhoneNumberOrdersInput, fn func(*ListPhoneNumberOrdersOutput, bool) bool) error { + return c.ListPhoneNumberOrdersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPhoneNumberOrdersPagesWithContext same as ListPhoneNumberOrdersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListPhoneNumberOrdersPagesWithContext(ctx aws.Context, input *ListPhoneNumberOrdersInput, fn func(*ListPhoneNumberOrdersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPhoneNumberOrdersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPhoneNumberOrdersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPhoneNumberOrdersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListPhoneNumbers = "ListPhoneNumbers" + +// ListPhoneNumbersRequest generates a "aws/request.Request" representing the +// client's request for the ListPhoneNumbers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListPhoneNumbers for more information on using the ListPhoneNumbers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListPhoneNumbersRequest method. +// req, resp := client.ListPhoneNumbersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListPhoneNumbers +func (c *ChimeSDKVoice) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *request.Request, output *ListPhoneNumbersOutput) { + op := &request.Operation{ + Name: opListPhoneNumbers, + HTTPMethod: "GET", + HTTPPath: "/phone-numbers", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPhoneNumbersInput{} + } + + output = &ListPhoneNumbersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPhoneNumbers API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListPhoneNumbers for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - NotFoundException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListPhoneNumbers +func (c *ChimeSDKVoice) ListPhoneNumbers(input *ListPhoneNumbersInput) (*ListPhoneNumbersOutput, error) { + req, out := c.ListPhoneNumbersRequest(input) + return out, req.Send() +} + +// ListPhoneNumbersWithContext is the same as ListPhoneNumbers with the addition of +// the ability to pass a context and additional request options. +// +// See ListPhoneNumbers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListPhoneNumbersWithContext(ctx aws.Context, input *ListPhoneNumbersInput, opts ...request.Option) (*ListPhoneNumbersOutput, error) { + req, out := c.ListPhoneNumbersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListPhoneNumbersPages iterates over the pages of a ListPhoneNumbers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPhoneNumbers method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListPhoneNumbers operation. +// pageNum := 0 +// err := client.ListPhoneNumbersPages(params, +// func(page *chimesdkvoice.ListPhoneNumbersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListPhoneNumbersPages(input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool) error { + return c.ListPhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPhoneNumbersPagesWithContext same as ListPhoneNumbersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListPhoneNumbersPagesWithContext(ctx aws.Context, input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPhoneNumbersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPhoneNumbersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListProxySessions = "ListProxySessions" + +// ListProxySessionsRequest generates a "aws/request.Request" representing the +// client's request for the ListProxySessions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListProxySessions for more information on using the ListProxySessions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListProxySessionsRequest method. +// req, resp := client.ListProxySessionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListProxySessions +func (c *ChimeSDKVoice) ListProxySessionsRequest(input *ListProxySessionsInput) (req *request.Request, output *ListProxySessionsOutput) { + op := &request.Operation{ + Name: opListProxySessions, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListProxySessionsInput{} + } + + output = &ListProxySessionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListProxySessions API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListProxySessions for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListProxySessions +func (c *ChimeSDKVoice) ListProxySessions(input *ListProxySessionsInput) (*ListProxySessionsOutput, error) { + req, out := c.ListProxySessionsRequest(input) + return out, req.Send() +} + +// ListProxySessionsWithContext is the same as ListProxySessions with the addition of +// the ability to pass a context and additional request options. +// +// See ListProxySessions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListProxySessionsWithContext(ctx aws.Context, input *ListProxySessionsInput, opts ...request.Option) (*ListProxySessionsOutput, error) { + req, out := c.ListProxySessionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListProxySessionsPages iterates over the pages of a ListProxySessions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListProxySessions method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListProxySessions operation. +// pageNum := 0 +// err := client.ListProxySessionsPages(params, +// func(page *chimesdkvoice.ListProxySessionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListProxySessionsPages(input *ListProxySessionsInput, fn func(*ListProxySessionsOutput, bool) bool) error { + return c.ListProxySessionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListProxySessionsPagesWithContext same as ListProxySessionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListProxySessionsPagesWithContext(ctx aws.Context, input *ListProxySessionsInput, fn func(*ListProxySessionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListProxySessionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListProxySessionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListProxySessionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSipMediaApplications = "ListSipMediaApplications" + +// ListSipMediaApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListSipMediaApplications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSipMediaApplications for more information on using the ListSipMediaApplications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListSipMediaApplicationsRequest method. +// req, resp := client.ListSipMediaApplicationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListSipMediaApplications +func (c *ChimeSDKVoice) ListSipMediaApplicationsRequest(input *ListSipMediaApplicationsInput) (req *request.Request, output *ListSipMediaApplicationsOutput) { + op := &request.Operation{ + Name: opListSipMediaApplications, + HTTPMethod: "GET", + HTTPPath: "/sip-media-applications", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListSipMediaApplicationsInput{} + } + + output = &ListSipMediaApplicationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSipMediaApplications API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListSipMediaApplications for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListSipMediaApplications +func (c *ChimeSDKVoice) ListSipMediaApplications(input *ListSipMediaApplicationsInput) (*ListSipMediaApplicationsOutput, error) { + req, out := c.ListSipMediaApplicationsRequest(input) + return out, req.Send() +} + +// ListSipMediaApplicationsWithContext is the same as ListSipMediaApplications with the addition of +// the ability to pass a context and additional request options. +// +// See ListSipMediaApplications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListSipMediaApplicationsWithContext(ctx aws.Context, input *ListSipMediaApplicationsInput, opts ...request.Option) (*ListSipMediaApplicationsOutput, error) { + req, out := c.ListSipMediaApplicationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListSipMediaApplicationsPages iterates over the pages of a ListSipMediaApplications operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSipMediaApplications method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListSipMediaApplications operation. +// pageNum := 0 +// err := client.ListSipMediaApplicationsPages(params, +// func(page *chimesdkvoice.ListSipMediaApplicationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListSipMediaApplicationsPages(input *ListSipMediaApplicationsInput, fn func(*ListSipMediaApplicationsOutput, bool) bool) error { + return c.ListSipMediaApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSipMediaApplicationsPagesWithContext same as ListSipMediaApplicationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListSipMediaApplicationsPagesWithContext(ctx aws.Context, input *ListSipMediaApplicationsInput, fn func(*ListSipMediaApplicationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSipMediaApplicationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSipMediaApplicationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSipMediaApplicationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSipRules = "ListSipRules" + +// ListSipRulesRequest generates a "aws/request.Request" representing the +// client's request for the ListSipRules operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSipRules for more information on using the ListSipRules +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListSipRulesRequest method. +// req, resp := client.ListSipRulesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListSipRules +func (c *ChimeSDKVoice) ListSipRulesRequest(input *ListSipRulesInput) (req *request.Request, output *ListSipRulesOutput) { + op := &request.Operation{ + Name: opListSipRules, + HTTPMethod: "GET", + HTTPPath: "/sip-rules", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListSipRulesInput{} + } + + output = &ListSipRulesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSipRules API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListSipRules for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListSipRules +func (c *ChimeSDKVoice) ListSipRules(input *ListSipRulesInput) (*ListSipRulesOutput, error) { + req, out := c.ListSipRulesRequest(input) + return out, req.Send() +} + +// ListSipRulesWithContext is the same as ListSipRules with the addition of +// the ability to pass a context and additional request options. +// +// See ListSipRules for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListSipRulesWithContext(ctx aws.Context, input *ListSipRulesInput, opts ...request.Option) (*ListSipRulesOutput, error) { + req, out := c.ListSipRulesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListSipRulesPages iterates over the pages of a ListSipRules operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSipRules method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListSipRules operation. +// pageNum := 0 +// err := client.ListSipRulesPages(params, +// func(page *chimesdkvoice.ListSipRulesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListSipRulesPages(input *ListSipRulesInput, fn func(*ListSipRulesOutput, bool) bool) error { + return c.ListSipRulesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSipRulesPagesWithContext same as ListSipRulesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListSipRulesPagesWithContext(ctx aws.Context, input *ListSipRulesInput, fn func(*ListSipRulesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSipRulesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSipRulesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSipRulesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSupportedPhoneNumberCountries = "ListSupportedPhoneNumberCountries" + +// ListSupportedPhoneNumberCountriesRequest generates a "aws/request.Request" representing the +// client's request for the ListSupportedPhoneNumberCountries operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSupportedPhoneNumberCountries for more information on using the ListSupportedPhoneNumberCountries +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListSupportedPhoneNumberCountriesRequest method. +// req, resp := client.ListSupportedPhoneNumberCountriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListSupportedPhoneNumberCountries +func (c *ChimeSDKVoice) ListSupportedPhoneNumberCountriesRequest(input *ListSupportedPhoneNumberCountriesInput) (req *request.Request, output *ListSupportedPhoneNumberCountriesOutput) { + op := &request.Operation{ + Name: opListSupportedPhoneNumberCountries, + HTTPMethod: "GET", + HTTPPath: "/phone-number-countries", + } + + if input == nil { + input = &ListSupportedPhoneNumberCountriesInput{} + } + + output = &ListSupportedPhoneNumberCountriesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSupportedPhoneNumberCountries API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListSupportedPhoneNumberCountries for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListSupportedPhoneNumberCountries +func (c *ChimeSDKVoice) ListSupportedPhoneNumberCountries(input *ListSupportedPhoneNumberCountriesInput) (*ListSupportedPhoneNumberCountriesOutput, error) { + req, out := c.ListSupportedPhoneNumberCountriesRequest(input) + return out, req.Send() +} + +// ListSupportedPhoneNumberCountriesWithContext is the same as ListSupportedPhoneNumberCountries with the addition of +// the ability to pass a context and additional request options. +// +// See ListSupportedPhoneNumberCountries for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListSupportedPhoneNumberCountriesWithContext(ctx aws.Context, input *ListSupportedPhoneNumberCountriesInput, opts ...request.Option) (*ListSupportedPhoneNumberCountriesOutput, error) { + req, out := c.ListSupportedPhoneNumberCountriesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListVoiceConnectorGroups = "ListVoiceConnectorGroups" + +// ListVoiceConnectorGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceConnectorGroups operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListVoiceConnectorGroups for more information on using the ListVoiceConnectorGroups +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListVoiceConnectorGroupsRequest method. +// req, resp := client.ListVoiceConnectorGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectorGroups +func (c *ChimeSDKVoice) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsInput) (req *request.Request, output *ListVoiceConnectorGroupsOutput) { + op := &request.Operation{ + Name: opListVoiceConnectorGroups, + HTTPMethod: "GET", + HTTPPath: "/voice-connector-groups", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListVoiceConnectorGroupsInput{} + } + + output = &ListVoiceConnectorGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVoiceConnectorGroups API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListVoiceConnectorGroups for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectorGroups +func (c *ChimeSDKVoice) ListVoiceConnectorGroups(input *ListVoiceConnectorGroupsInput) (*ListVoiceConnectorGroupsOutput, error) { + req, out := c.ListVoiceConnectorGroupsRequest(input) + return out, req.Send() +} + +// ListVoiceConnectorGroupsWithContext is the same as ListVoiceConnectorGroups with the addition of +// the ability to pass a context and additional request options. +// +// See ListVoiceConnectorGroups for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListVoiceConnectorGroupsWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, opts ...request.Option) (*ListVoiceConnectorGroupsOutput, error) { + req, out := c.ListVoiceConnectorGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListVoiceConnectorGroupsPages iterates over the pages of a ListVoiceConnectorGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVoiceConnectorGroups method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListVoiceConnectorGroups operation. +// pageNum := 0 +// err := client.ListVoiceConnectorGroupsPages(params, +// func(page *chimesdkvoice.ListVoiceConnectorGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListVoiceConnectorGroupsPages(input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool) error { + return c.ListVoiceConnectorGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListVoiceConnectorGroupsPagesWithContext same as ListVoiceConnectorGroupsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListVoiceConnectorGroupsPagesWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVoiceConnectorGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVoiceConnectorGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListVoiceConnectorGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListVoiceConnectorTerminationCredentials = "ListVoiceConnectorTerminationCredentials" + +// ListVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceConnectorTerminationCredentials operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListVoiceConnectorTerminationCredentials for more information on using the ListVoiceConnectorTerminationCredentials +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListVoiceConnectorTerminationCredentialsRequest method. +// req, resp := client.ListVoiceConnectorTerminationCredentialsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectorTerminationCredentials +func (c *ChimeSDKVoice) ListVoiceConnectorTerminationCredentialsRequest(input *ListVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *ListVoiceConnectorTerminationCredentialsOutput) { + op := &request.Operation{ + Name: opListVoiceConnectorTerminationCredentials, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials", + } + + if input == nil { + input = &ListVoiceConnectorTerminationCredentialsInput{} + } + + output = &ListVoiceConnectorTerminationCredentialsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVoiceConnectorTerminationCredentials API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListVoiceConnectorTerminationCredentials for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectorTerminationCredentials +func (c *ChimeSDKVoice) ListVoiceConnectorTerminationCredentials(input *ListVoiceConnectorTerminationCredentialsInput) (*ListVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.ListVoiceConnectorTerminationCredentialsRequest(input) + return out, req.Send() +} + +// ListVoiceConnectorTerminationCredentialsWithContext is the same as ListVoiceConnectorTerminationCredentials with the addition of +// the ability to pass a context and additional request options. +// +// See ListVoiceConnectorTerminationCredentials for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *ListVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*ListVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.ListVoiceConnectorTerminationCredentialsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListVoiceConnectors = "ListVoiceConnectors" + +// ListVoiceConnectorsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceConnectors operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListVoiceConnectors for more information on using the ListVoiceConnectors +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListVoiceConnectorsRequest method. +// req, resp := client.ListVoiceConnectorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectors +func (c *ChimeSDKVoice) ListVoiceConnectorsRequest(input *ListVoiceConnectorsInput) (req *request.Request, output *ListVoiceConnectorsOutput) { + op := &request.Operation{ + Name: opListVoiceConnectors, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListVoiceConnectorsInput{} + } + + output = &ListVoiceConnectorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVoiceConnectors API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ListVoiceConnectors for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ListVoiceConnectors +func (c *ChimeSDKVoice) ListVoiceConnectors(input *ListVoiceConnectorsInput) (*ListVoiceConnectorsOutput, error) { + req, out := c.ListVoiceConnectorsRequest(input) + return out, req.Send() +} + +// ListVoiceConnectorsWithContext is the same as ListVoiceConnectors with the addition of +// the ability to pass a context and additional request options. +// +// See ListVoiceConnectors for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListVoiceConnectorsWithContext(ctx aws.Context, input *ListVoiceConnectorsInput, opts ...request.Option) (*ListVoiceConnectorsOutput, error) { + req, out := c.ListVoiceConnectorsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListVoiceConnectorsPages iterates over the pages of a ListVoiceConnectors operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVoiceConnectors method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListVoiceConnectors operation. +// pageNum := 0 +// err := client.ListVoiceConnectorsPages(params, +// func(page *chimesdkvoice.ListVoiceConnectorsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) ListVoiceConnectorsPages(input *ListVoiceConnectorsInput, fn func(*ListVoiceConnectorsOutput, bool) bool) error { + return c.ListVoiceConnectorsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListVoiceConnectorsPagesWithContext same as ListVoiceConnectorsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ListVoiceConnectorsPagesWithContext(ctx aws.Context, input *ListVoiceConnectorsInput, fn func(*ListVoiceConnectorsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVoiceConnectorsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVoiceConnectorsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListVoiceConnectorsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutSipMediaApplicationAlexaSkillConfiguration = "PutSipMediaApplicationAlexaSkillConfiguration" + +// PutSipMediaApplicationAlexaSkillConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutSipMediaApplicationAlexaSkillConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutSipMediaApplicationAlexaSkillConfiguration for more information on using the PutSipMediaApplicationAlexaSkillConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutSipMediaApplicationAlexaSkillConfigurationRequest method. +// req, resp := client.PutSipMediaApplicationAlexaSkillConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationAlexaSkillConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfigurationRequest(input *PutSipMediaApplicationAlexaSkillConfigurationInput) (req *request.Request, output *PutSipMediaApplicationAlexaSkillConfigurationOutput) { + op := &request.Operation{ + Name: opPutSipMediaApplicationAlexaSkillConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/alexa-skill-configuration", + } + + if input == nil { + input = &PutSipMediaApplicationAlexaSkillConfigurationInput{} + } + + output = &PutSipMediaApplicationAlexaSkillConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutSipMediaApplicationAlexaSkillConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutSipMediaApplicationAlexaSkillConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationAlexaSkillConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfiguration(input *PutSipMediaApplicationAlexaSkillConfigurationInput) (*PutSipMediaApplicationAlexaSkillConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationAlexaSkillConfigurationRequest(input) + return out, req.Send() +} + +// PutSipMediaApplicationAlexaSkillConfigurationWithContext is the same as PutSipMediaApplicationAlexaSkillConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutSipMediaApplicationAlexaSkillConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutSipMediaApplicationAlexaSkillConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationAlexaSkillConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationAlexaSkillConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationAlexaSkillConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutSipMediaApplicationLoggingConfiguration = "PutSipMediaApplicationLoggingConfiguration" + +// PutSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutSipMediaApplicationLoggingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutSipMediaApplicationLoggingConfiguration for more information on using the PutSipMediaApplicationLoggingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutSipMediaApplicationLoggingConfigurationRequest method. +// req, resp := client.PutSipMediaApplicationLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationLoggingConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfigurationRequest(input *PutSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *PutSipMediaApplicationLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opPutSipMediaApplicationLoggingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", + } + + if input == nil { + input = &PutSipMediaApplicationLoggingConfigurationInput{} + } + + output = &PutSipMediaApplicationLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutSipMediaApplicationLoggingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutSipMediaApplicationLoggingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutSipMediaApplicationLoggingConfiguration +func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfiguration(input *PutSipMediaApplicationLoggingConfigurationInput) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) + return out, req.Send() +} + +// PutSipMediaApplicationLoggingConfigurationWithContext is the same as PutSipMediaApplicationLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutSipMediaApplicationLoggingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorEmergencyCallingConfiguration = "PutVoiceConnectorEmergencyCallingConfiguration" + +// PutVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorEmergencyCallingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutVoiceConnectorEmergencyCallingConfiguration for more information on using the PutVoiceConnectorEmergencyCallingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutVoiceConnectorEmergencyCallingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorEmergencyCallingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorEmergencyCallingConfiguration +func (c *ChimeSDKVoice) PutVoiceConnectorEmergencyCallingConfigurationRequest(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *PutVoiceConnectorEmergencyCallingConfigurationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorEmergencyCallingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", + } + + if input == nil { + input = &PutVoiceConnectorEmergencyCallingConfigurationInput{} + } + + output = &PutVoiceConnectorEmergencyCallingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutVoiceConnectorEmergencyCallingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorEmergencyCallingConfiguration +func (c *ChimeSDKVoice) PutVoiceConnectorEmergencyCallingConfiguration(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (*PutVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorEmergencyCallingConfigurationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorEmergencyCallingConfigurationWithContext is the same as PutVoiceConnectorEmergencyCallingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorEmergencyCallingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorEmergencyCallingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorLoggingConfiguration = "PutVoiceConnectorLoggingConfiguration" + +// PutVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorLoggingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutVoiceConnectorLoggingConfiguration for more information on using the PutVoiceConnectorLoggingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutVoiceConnectorLoggingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorLoggingConfiguration +func (c *ChimeSDKVoice) PutVoiceConnectorLoggingConfigurationRequest(input *PutVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *PutVoiceConnectorLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorLoggingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", + } + + if input == nil { + input = &PutVoiceConnectorLoggingConfigurationInput{} + } + + output = &PutVoiceConnectorLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorLoggingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutVoiceConnectorLoggingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorLoggingConfiguration +func (c *ChimeSDKVoice) PutVoiceConnectorLoggingConfiguration(input *PutVoiceConnectorLoggingConfigurationInput) (*PutVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorLoggingConfigurationWithContext is the same as PutVoiceConnectorLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorLoggingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorOrigination = "PutVoiceConnectorOrigination" + +// PutVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorOrigination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutVoiceConnectorOrigination for more information on using the PutVoiceConnectorOrigination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutVoiceConnectorOriginationRequest method. +// req, resp := client.PutVoiceConnectorOriginationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorOrigination +func (c *ChimeSDKVoice) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOriginationInput) (req *request.Request, output *PutVoiceConnectorOriginationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorOrigination, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + } + + if input == nil { + input = &PutVoiceConnectorOriginationInput{} + } + + output = &PutVoiceConnectorOriginationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorOrigination API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutVoiceConnectorOrigination for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorOrigination +func (c *ChimeSDKVoice) PutVoiceConnectorOrigination(input *PutVoiceConnectorOriginationInput) (*PutVoiceConnectorOriginationOutput, error) { + req, out := c.PutVoiceConnectorOriginationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorOriginationWithContext is the same as PutVoiceConnectorOrigination with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorOrigination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutVoiceConnectorOriginationWithContext(ctx aws.Context, input *PutVoiceConnectorOriginationInput, opts ...request.Option) (*PutVoiceConnectorOriginationOutput, error) { + req, out := c.PutVoiceConnectorOriginationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorProxy = "PutVoiceConnectorProxy" + +// PutVoiceConnectorProxyRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorProxy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutVoiceConnectorProxy for more information on using the PutVoiceConnectorProxy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutVoiceConnectorProxyRequest method. +// req, resp := client.PutVoiceConnectorProxyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorProxy +func (c *ChimeSDKVoice) PutVoiceConnectorProxyRequest(input *PutVoiceConnectorProxyInput) (req *request.Request, output *PutVoiceConnectorProxyOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorProxy, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", + } + + if input == nil { + input = &PutVoiceConnectorProxyInput{} + } + + output = &PutVoiceConnectorProxyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorProxy API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutVoiceConnectorProxy for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - AccessDeniedException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorProxy +func (c *ChimeSDKVoice) PutVoiceConnectorProxy(input *PutVoiceConnectorProxyInput) (*PutVoiceConnectorProxyOutput, error) { + req, out := c.PutVoiceConnectorProxyRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorProxyWithContext is the same as PutVoiceConnectorProxy with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorProxy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutVoiceConnectorProxyWithContext(ctx aws.Context, input *PutVoiceConnectorProxyInput, opts ...request.Option) (*PutVoiceConnectorProxyOutput, error) { + req, out := c.PutVoiceConnectorProxyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorStreamingConfiguration = "PutVoiceConnectorStreamingConfiguration" + +// PutVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorStreamingConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutVoiceConnectorStreamingConfiguration for more information on using the PutVoiceConnectorStreamingConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorStreamingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorStreamingConfiguration +func (c *ChimeSDKVoice) PutVoiceConnectorStreamingConfigurationRequest(input *PutVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *PutVoiceConnectorStreamingConfigurationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorStreamingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + } + + if input == nil { + input = &PutVoiceConnectorStreamingConfigurationInput{} + } + + output = &PutVoiceConnectorStreamingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorStreamingConfiguration API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutVoiceConnectorStreamingConfiguration for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorStreamingConfiguration +func (c *ChimeSDKVoice) PutVoiceConnectorStreamingConfiguration(input *PutVoiceConnectorStreamingConfigurationInput) (*PutVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorStreamingConfigurationWithContext is the same as PutVoiceConnectorStreamingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorStreamingConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorTermination = "PutVoiceConnectorTermination" + +// PutVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorTermination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutVoiceConnectorTermination for more information on using the PutVoiceConnectorTermination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutVoiceConnectorTerminationRequest method. +// req, resp := client.PutVoiceConnectorTerminationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorTermination +func (c *ChimeSDKVoice) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerminationInput) (req *request.Request, output *PutVoiceConnectorTerminationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorTermination, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + } + + if input == nil { + input = &PutVoiceConnectorTerminationInput{} + } + + output = &PutVoiceConnectorTerminationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorTermination API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutVoiceConnectorTermination for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - AccessDeniedException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorTermination +func (c *ChimeSDKVoice) PutVoiceConnectorTermination(input *PutVoiceConnectorTerminationInput) (*PutVoiceConnectorTerminationOutput, error) { + req, out := c.PutVoiceConnectorTerminationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorTerminationWithContext is the same as PutVoiceConnectorTermination with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorTermination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutVoiceConnectorTerminationWithContext(ctx aws.Context, input *PutVoiceConnectorTerminationInput, opts ...request.Option) (*PutVoiceConnectorTerminationOutput, error) { + req, out := c.PutVoiceConnectorTerminationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorTerminationCredentials = "PutVoiceConnectorTerminationCredentials" + +// PutVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorTerminationCredentials operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutVoiceConnectorTerminationCredentials for more information on using the PutVoiceConnectorTerminationCredentials +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutVoiceConnectorTerminationCredentialsRequest method. +// req, resp := client.PutVoiceConnectorTerminationCredentialsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorTerminationCredentials +func (c *ChimeSDKVoice) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *PutVoiceConnectorTerminationCredentialsOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorTerminationCredentials, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials?operation=put", + } + + if input == nil { + input = &PutVoiceConnectorTerminationCredentialsInput{} + } + + output = &PutVoiceConnectorTerminationCredentialsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// PutVoiceConnectorTerminationCredentials API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation PutVoiceConnectorTerminationCredentials for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/PutVoiceConnectorTerminationCredentials +func (c *ChimeSDKVoice) PutVoiceConnectorTerminationCredentials(input *PutVoiceConnectorTerminationCredentialsInput) (*PutVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.PutVoiceConnectorTerminationCredentialsRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorTerminationCredentialsWithContext is the same as PutVoiceConnectorTerminationCredentials with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorTerminationCredentials for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) PutVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *PutVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*PutVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.PutVoiceConnectorTerminationCredentialsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRestorePhoneNumber = "RestorePhoneNumber" + +// RestorePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the RestorePhoneNumber operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RestorePhoneNumber for more information on using the RestorePhoneNumber +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the RestorePhoneNumberRequest method. +// req, resp := client.RestorePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/RestorePhoneNumber +func (c *ChimeSDKVoice) RestorePhoneNumberRequest(input *RestorePhoneNumberInput) (req *request.Request, output *RestorePhoneNumberOutput) { + op := &request.Operation{ + Name: opRestorePhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-numbers/{phoneNumberId}?operation=restore", + } + + if input == nil { + input = &RestorePhoneNumberInput{} + } + + output = &RestorePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// RestorePhoneNumber API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation RestorePhoneNumber for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/RestorePhoneNumber +func (c *ChimeSDKVoice) RestorePhoneNumber(input *RestorePhoneNumberInput) (*RestorePhoneNumberOutput, error) { + req, out := c.RestorePhoneNumberRequest(input) + return out, req.Send() +} + +// RestorePhoneNumberWithContext is the same as RestorePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See RestorePhoneNumber for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) RestorePhoneNumberWithContext(ctx aws.Context, input *RestorePhoneNumberInput, opts ...request.Option) (*RestorePhoneNumberOutput, error) { + req, out := c.RestorePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSearchAvailablePhoneNumbers = "SearchAvailablePhoneNumbers" + +// SearchAvailablePhoneNumbersRequest generates a "aws/request.Request" representing the +// client's request for the SearchAvailablePhoneNumbers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SearchAvailablePhoneNumbers for more information on using the SearchAvailablePhoneNumbers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the SearchAvailablePhoneNumbersRequest method. +// req, resp := client.SearchAvailablePhoneNumbersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/SearchAvailablePhoneNumbers +func (c *ChimeSDKVoice) SearchAvailablePhoneNumbersRequest(input *SearchAvailablePhoneNumbersInput) (req *request.Request, output *SearchAvailablePhoneNumbersOutput) { + op := &request.Operation{ + Name: opSearchAvailablePhoneNumbers, + HTTPMethod: "GET", + HTTPPath: "/search?type=phone-numbers", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &SearchAvailablePhoneNumbersInput{} + } + + output = &SearchAvailablePhoneNumbersOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchAvailablePhoneNumbers API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation SearchAvailablePhoneNumbers for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - ForbiddenException +// +// - AccessDeniedException +// +// - UnauthorizedClientException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/SearchAvailablePhoneNumbers +func (c *ChimeSDKVoice) SearchAvailablePhoneNumbers(input *SearchAvailablePhoneNumbersInput) (*SearchAvailablePhoneNumbersOutput, error) { + req, out := c.SearchAvailablePhoneNumbersRequest(input) + return out, req.Send() +} + +// SearchAvailablePhoneNumbersWithContext is the same as SearchAvailablePhoneNumbers with the addition of +// the ability to pass a context and additional request options. +// +// See SearchAvailablePhoneNumbers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) SearchAvailablePhoneNumbersWithContext(ctx aws.Context, input *SearchAvailablePhoneNumbersInput, opts ...request.Option) (*SearchAvailablePhoneNumbersOutput, error) { + req, out := c.SearchAvailablePhoneNumbersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// SearchAvailablePhoneNumbersPages iterates over the pages of a SearchAvailablePhoneNumbers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchAvailablePhoneNumbers method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a SearchAvailablePhoneNumbers operation. +// pageNum := 0 +// err := client.SearchAvailablePhoneNumbersPages(params, +// func(page *chimesdkvoice.SearchAvailablePhoneNumbersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *ChimeSDKVoice) SearchAvailablePhoneNumbersPages(input *SearchAvailablePhoneNumbersInput, fn func(*SearchAvailablePhoneNumbersOutput, bool) bool) error { + return c.SearchAvailablePhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchAvailablePhoneNumbersPagesWithContext same as SearchAvailablePhoneNumbersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) SearchAvailablePhoneNumbersPagesWithContext(ctx aws.Context, input *SearchAvailablePhoneNumbersInput, fn func(*SearchAvailablePhoneNumbersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchAvailablePhoneNumbersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchAvailablePhoneNumbersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*SearchAvailablePhoneNumbersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opUpdateGlobalSettings = "UpdateGlobalSettings" + +// UpdateGlobalSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGlobalSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGlobalSettings for more information on using the UpdateGlobalSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateGlobalSettingsRequest method. +// req, resp := client.UpdateGlobalSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateGlobalSettings +func (c *ChimeSDKVoice) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (req *request.Request, output *UpdateGlobalSettingsOutput) { + op := &request.Operation{ + Name: opUpdateGlobalSettings, + HTTPMethod: "PUT", + HTTPPath: "/settings", + } + + if input == nil { + input = &UpdateGlobalSettingsInput{} + } + + output = &UpdateGlobalSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateGlobalSettings API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdateGlobalSettings for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateGlobalSettings +func (c *ChimeSDKVoice) UpdateGlobalSettings(input *UpdateGlobalSettingsInput) (*UpdateGlobalSettingsOutput, error) { + req, out := c.UpdateGlobalSettingsRequest(input) + return out, req.Send() +} + +// UpdateGlobalSettingsWithContext is the same as UpdateGlobalSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGlobalSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdateGlobalSettingsWithContext(ctx aws.Context, input *UpdateGlobalSettingsInput, opts ...request.Option) (*UpdateGlobalSettingsOutput, error) { + req, out := c.UpdateGlobalSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdatePhoneNumber = "UpdatePhoneNumber" + +// UpdatePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePhoneNumber operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdatePhoneNumber for more information on using the UpdatePhoneNumber +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdatePhoneNumberRequest method. +// req, resp := client.UpdatePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumber +func (c *ChimeSDKVoice) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *request.Request, output *UpdatePhoneNumberOutput) { + op := &request.Operation{ + Name: opUpdatePhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-numbers/{phoneNumberId}", + } + + if input == nil { + input = &UpdatePhoneNumberInput{} + } + + output = &UpdatePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdatePhoneNumber API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdatePhoneNumber for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ConflictException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumber +func (c *ChimeSDKVoice) UpdatePhoneNumber(input *UpdatePhoneNumberInput) (*UpdatePhoneNumberOutput, error) { + req, out := c.UpdatePhoneNumberRequest(input) + return out, req.Send() +} + +// UpdatePhoneNumberWithContext is the same as UpdatePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePhoneNumber for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdatePhoneNumberWithContext(ctx aws.Context, input *UpdatePhoneNumberInput, opts ...request.Option) (*UpdatePhoneNumberOutput, error) { + req, out := c.UpdatePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdatePhoneNumberSettings = "UpdatePhoneNumberSettings" + +// UpdatePhoneNumberSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePhoneNumberSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdatePhoneNumberSettings for more information on using the UpdatePhoneNumberSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdatePhoneNumberSettingsRequest method. +// req, resp := client.UpdatePhoneNumberSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumberSettings +func (c *ChimeSDKVoice) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumberSettingsInput) (req *request.Request, output *UpdatePhoneNumberSettingsOutput) { + op := &request.Operation{ + Name: opUpdatePhoneNumberSettings, + HTTPMethod: "PUT", + HTTPPath: "/settings/phone-number", + } + + if input == nil { + input = &UpdatePhoneNumberSettingsInput{} + } + + output = &UpdatePhoneNumberSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdatePhoneNumberSettings API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdatePhoneNumberSettings for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdatePhoneNumberSettings +func (c *ChimeSDKVoice) UpdatePhoneNumberSettings(input *UpdatePhoneNumberSettingsInput) (*UpdatePhoneNumberSettingsOutput, error) { + req, out := c.UpdatePhoneNumberSettingsRequest(input) + return out, req.Send() +} + +// UpdatePhoneNumberSettingsWithContext is the same as UpdatePhoneNumberSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePhoneNumberSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdatePhoneNumberSettingsWithContext(ctx aws.Context, input *UpdatePhoneNumberSettingsInput, opts ...request.Option) (*UpdatePhoneNumberSettingsOutput, error) { + req, out := c.UpdatePhoneNumberSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateProxySession = "UpdateProxySession" + +// UpdateProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProxySession operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateProxySession for more information on using the UpdateProxySession +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateProxySessionRequest method. +// req, resp := client.UpdateProxySessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateProxySession +func (c *ChimeSDKVoice) UpdateProxySessionRequest(input *UpdateProxySessionInput) (req *request.Request, output *UpdateProxySessionOutput) { + op := &request.Operation{ + Name: opUpdateProxySession, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + } + + if input == nil { + input = &UpdateProxySessionInput{} + } + + output = &UpdateProxySessionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProxySession API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdateProxySession for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateProxySession +func (c *ChimeSDKVoice) UpdateProxySession(input *UpdateProxySessionInput) (*UpdateProxySessionOutput, error) { + req, out := c.UpdateProxySessionRequest(input) + return out, req.Send() +} + +// UpdateProxySessionWithContext is the same as UpdateProxySession with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateProxySession for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdateProxySessionWithContext(ctx aws.Context, input *UpdateProxySessionInput, opts ...request.Option) (*UpdateProxySessionOutput, error) { + req, out := c.UpdateProxySessionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSipMediaApplication = "UpdateSipMediaApplication" + +// UpdateSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipMediaApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSipMediaApplication for more information on using the UpdateSipMediaApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateSipMediaApplicationRequest method. +// req, resp := client.UpdateSipMediaApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplication +func (c *ChimeSDKVoice) UpdateSipMediaApplicationRequest(input *UpdateSipMediaApplicationInput) (req *request.Request, output *UpdateSipMediaApplicationOutput) { + op := &request.Operation{ + Name: opUpdateSipMediaApplication, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + } + + if input == nil { + input = &UpdateSipMediaApplicationInput{} + } + + output = &UpdateSipMediaApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSipMediaApplication API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdateSipMediaApplication for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplication +func (c *ChimeSDKVoice) UpdateSipMediaApplication(input *UpdateSipMediaApplicationInput) (*UpdateSipMediaApplicationOutput, error) { + req, out := c.UpdateSipMediaApplicationRequest(input) + return out, req.Send() +} + +// UpdateSipMediaApplicationWithContext is the same as UpdateSipMediaApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipMediaApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdateSipMediaApplicationWithContext(ctx aws.Context, input *UpdateSipMediaApplicationInput, opts ...request.Option) (*UpdateSipMediaApplicationOutput, error) { + req, out := c.UpdateSipMediaApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSipMediaApplicationCall = "UpdateSipMediaApplicationCall" + +// UpdateSipMediaApplicationCallRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipMediaApplicationCall operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSipMediaApplicationCall for more information on using the UpdateSipMediaApplicationCall +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateSipMediaApplicationCallRequest method. +// req, resp := client.UpdateSipMediaApplicationCallRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplicationCall +func (c *ChimeSDKVoice) UpdateSipMediaApplicationCallRequest(input *UpdateSipMediaApplicationCallInput) (req *request.Request, output *UpdateSipMediaApplicationCallOutput) { + op := &request.Operation{ + Name: opUpdateSipMediaApplicationCall, + HTTPMethod: "POST", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/calls/{transactionId}", + } + + if input == nil { + input = &UpdateSipMediaApplicationCallInput{} + } + + output = &UpdateSipMediaApplicationCallOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSipMediaApplicationCall API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdateSipMediaApplicationCall for usage and error information. +// +// Returned Error Types: +// +// - BadRequestException +// +// - NotFoundException +// +// - ForbiddenException +// +// - ResourceLimitExceededException +// +// - ThrottledClientException +// +// - UnauthorizedClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipMediaApplicationCall +func (c *ChimeSDKVoice) UpdateSipMediaApplicationCall(input *UpdateSipMediaApplicationCallInput) (*UpdateSipMediaApplicationCallOutput, error) { + req, out := c.UpdateSipMediaApplicationCallRequest(input) + return out, req.Send() +} + +// UpdateSipMediaApplicationCallWithContext is the same as UpdateSipMediaApplicationCall with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipMediaApplicationCall for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdateSipMediaApplicationCallWithContext(ctx aws.Context, input *UpdateSipMediaApplicationCallInput, opts ...request.Option) (*UpdateSipMediaApplicationCallOutput, error) { + req, out := c.UpdateSipMediaApplicationCallRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSipRule = "UpdateSipRule" + +// UpdateSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipRule operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSipRule for more information on using the UpdateSipRule +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateSipRuleRequest method. +// req, resp := client.UpdateSipRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipRule +func (c *ChimeSDKVoice) UpdateSipRuleRequest(input *UpdateSipRuleInput) (req *request.Request, output *UpdateSipRuleOutput) { + op := &request.Operation{ + Name: opUpdateSipRule, + HTTPMethod: "PUT", + HTTPPath: "/sip-rules/{sipRuleId}", + } + + if input == nil { + input = &UpdateSipRuleInput{} + } + + output = &UpdateSipRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSipRule API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdateSipRule for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ResourceLimitExceededException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateSipRule +func (c *ChimeSDKVoice) UpdateSipRule(input *UpdateSipRuleInput) (*UpdateSipRuleOutput, error) { + req, out := c.UpdateSipRuleRequest(input) + return out, req.Send() +} + +// UpdateSipRuleWithContext is the same as UpdateSipRule with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipRule for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdateSipRuleWithContext(ctx aws.Context, input *UpdateSipRuleInput, opts ...request.Option) (*UpdateSipRuleOutput, error) { + req, out := c.UpdateSipRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVoiceConnector = "UpdateVoiceConnector" + +// UpdateVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceConnector operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateVoiceConnector for more information on using the UpdateVoiceConnector +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateVoiceConnectorRequest method. +// req, resp := client.UpdateVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnector +func (c *ChimeSDKVoice) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (req *request.Request, output *UpdateVoiceConnectorOutput) { + op := &request.Operation{ + Name: opUpdateVoiceConnector, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}", + } + + if input == nil { + input = &UpdateVoiceConnectorInput{} + } + + output = &UpdateVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceConnector API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdateVoiceConnector for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnector +func (c *ChimeSDKVoice) UpdateVoiceConnector(input *UpdateVoiceConnectorInput) (*UpdateVoiceConnectorOutput, error) { + req, out := c.UpdateVoiceConnectorRequest(input) + return out, req.Send() +} + +// UpdateVoiceConnectorWithContext is the same as UpdateVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceConnector for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdateVoiceConnectorWithContext(ctx aws.Context, input *UpdateVoiceConnectorInput, opts ...request.Option) (*UpdateVoiceConnectorOutput, error) { + req, out := c.UpdateVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVoiceConnectorGroup = "UpdateVoiceConnectorGroup" + +// UpdateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceConnectorGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateVoiceConnectorGroup for more information on using the UpdateVoiceConnectorGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateVoiceConnectorGroupRequest method. +// req, resp := client.UpdateVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnectorGroup +func (c *ChimeSDKVoice) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGroupInput) (req *request.Request, output *UpdateVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opUpdateVoiceConnectorGroup, + HTTPMethod: "PUT", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + } + + if input == nil { + input = &UpdateVoiceConnectorGroupInput{} + } + + output = &UpdateVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceConnectorGroup API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation UpdateVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ConflictException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/UpdateVoiceConnectorGroup +func (c *ChimeSDKVoice) UpdateVoiceConnectorGroup(input *UpdateVoiceConnectorGroupInput) (*UpdateVoiceConnectorGroupOutput, error) { + req, out := c.UpdateVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// UpdateVoiceConnectorGroupWithContext is the same as UpdateVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceConnectorGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) UpdateVoiceConnectorGroupWithContext(ctx aws.Context, input *UpdateVoiceConnectorGroupInput, opts ...request.Option) (*UpdateVoiceConnectorGroupOutput, error) { + req, out := c.UpdateVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opValidateE911Address = "ValidateE911Address" + +// ValidateE911AddressRequest generates a "aws/request.Request" representing the +// client's request for the ValidateE911Address operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ValidateE911Address for more information on using the ValidateE911Address +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ValidateE911AddressRequest method. +// req, resp := client.ValidateE911AddressRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ValidateE911Address +func (c *ChimeSDKVoice) ValidateE911AddressRequest(input *ValidateE911AddressInput) (req *request.Request, output *ValidateE911AddressOutput) { + op := &request.Operation{ + Name: opValidateE911Address, + HTTPMethod: "POST", + HTTPPath: "/emergency-calling/address", + } + + if input == nil { + input = &ValidateE911AddressInput{} + } + + output = &ValidateE911AddressOutput{} + req = c.newRequest(op, input, output) + return +} + +// ValidateE911Address API operation for Amazon Chime SDK Voice. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Voice's +// API operation ValidateE911Address for usage and error information. +// +// Returned Error Types: +// +// - UnauthorizedClientException +// +// - NotFoundException +// +// - ForbiddenException +// +// - BadRequestException +// +// - ThrottledClientException +// +// - ServiceUnavailableException +// +// - ServiceFailureException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03/ValidateE911Address +func (c *ChimeSDKVoice) ValidateE911Address(input *ValidateE911AddressInput) (*ValidateE911AddressOutput, error) { + req, out := c.ValidateE911AddressRequest(input) + return out, req.Send() +} + +// ValidateE911AddressWithContext is the same as ValidateE911Address with the addition of +// the ability to pass a context and additional request options. +// +// See ValidateE911Address for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKVoice) ValidateE911AddressWithContext(ctx aws.Context, input *ValidateE911AddressInput, opts ...request.Option) (*ValidateE911AddressOutput, error) { + req, out := c.ValidateE911AddressRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +type Address struct { + _ struct{} `type:"structure"` + + // City is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + City *string `locationName:"city" type:"string" sensitive:"true"` + + // Country is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + Country *string `locationName:"country" type:"string" sensitive:"true"` + + // PostDirectional is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PostDirectional *string `locationName:"postDirectional" type:"string" sensitive:"true"` + + // PostalCode is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PostalCode *string `locationName:"postalCode" type:"string" sensitive:"true"` + + // PostalCodePlus4 is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PostalCodePlus4 *string `locationName:"postalCodePlus4" type:"string" sensitive:"true"` + + // PreDirectional is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + PreDirectional *string `locationName:"preDirectional" type:"string" sensitive:"true"` + + // State is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + State *string `locationName:"state" type:"string" sensitive:"true"` + + // StreetName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + StreetName *string `locationName:"streetName" type:"string" sensitive:"true"` + + // StreetNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + StreetNumber *string `locationName:"streetNumber" type:"string" sensitive:"true"` + + // StreetSuffix is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Address's + // String and GoString methods. + StreetSuffix *string `locationName:"streetSuffix" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Address) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Address) GoString() string { + return s.String() +} + +// SetCity sets the City field's value. +func (s *Address) SetCity(v string) *Address { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *Address) SetCountry(v string) *Address { + s.Country = &v + return s +} + +// SetPostDirectional sets the PostDirectional field's value. +func (s *Address) SetPostDirectional(v string) *Address { + s.PostDirectional = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *Address) SetPostalCode(v string) *Address { + s.PostalCode = &v + return s +} + +// SetPostalCodePlus4 sets the PostalCodePlus4 field's value. +func (s *Address) SetPostalCodePlus4(v string) *Address { + s.PostalCodePlus4 = &v + return s +} + +// SetPreDirectional sets the PreDirectional field's value. +func (s *Address) SetPreDirectional(v string) *Address { + s.PreDirectional = &v + return s +} + +// SetState sets the State field's value. +func (s *Address) SetState(v string) *Address { + s.State = &v + return s +} + +// SetStreetName sets the StreetName field's value. +func (s *Address) SetStreetName(v string) *Address { + s.StreetName = &v + return s +} + +// SetStreetNumber sets the StreetNumber field's value. +func (s *Address) SetStreetNumber(v string) *Address { + s.StreetNumber = &v + return s +} + +// SetStreetSuffix sets the StreetSuffix field's value. +func (s *Address) SetStreetSuffix(v string) *Address { + s.StreetSuffix = &v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + ForceAssociate *bool `type:"boolean"` + + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorGroupInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.E164PhoneNumbers = v + return s +} + +// SetForceAssociate sets the ForceAssociate field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.ForceAssociate = &v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorGroupOutput { + s.PhoneNumberErrors = v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorInput struct { + _ struct{} `type:"structure"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + ForceAssociate *bool `type:"boolean"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.E164PhoneNumbers = v + return s +} + +// SetForceAssociate sets the ForceAssociate field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.ForceAssociate = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetVoiceConnectorId(v string) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.VoiceConnectorId = &v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociatePhoneNumbersWithVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorOutput { + s.PhoneNumberErrors = v + return s +} + +type BadRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s *BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BadRequestException) OrigErr() error { + return nil +} + +func (s *BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *BadRequestException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BadRequestException) RequestID() string { + return s.RespMetadata.RequestID +} + +type BatchDeletePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // PhoneNumberIds is a required field + PhoneNumberIds []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDeletePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDeletePhoneNumberInput"} + if s.PhoneNumberIds == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberIds")) + } + if s.PhoneNumberIds != nil && len(s.PhoneNumberIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberIds sets the PhoneNumberIds field's value. +func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput { + s.PhoneNumberIds = v + return s +} + +type BatchDeletePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchDeletePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *BatchDeletePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchDeletePhoneNumberOutput { + s.PhoneNumberErrors = v + return s +} + +type BatchUpdatePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // UpdatePhoneNumberRequestItems is a required field + UpdatePhoneNumberRequestItems []*UpdatePhoneNumberRequestItem `type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdatePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdatePhoneNumberInput"} + if s.UpdatePhoneNumberRequestItems == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatePhoneNumberRequestItems")) + } + if s.UpdatePhoneNumberRequestItems != nil { + for i, v := range s.UpdatePhoneNumberRequestItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdatePhoneNumberRequestItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUpdatePhoneNumberRequestItems sets the UpdatePhoneNumberRequestItems field's value. +func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput { + s.UpdatePhoneNumberRequestItems = v + return s +} + +type BatchUpdatePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdatePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *BatchUpdatePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchUpdatePhoneNumberOutput { + s.PhoneNumberErrors = v + return s +} + +type CandidateAddress struct { + _ struct{} `type:"structure"` + + // City is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + City *string `locationName:"city" type:"string" sensitive:"true"` + + // Country is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + Country *string `locationName:"country" type:"string" sensitive:"true"` + + // PostalCode is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + PostalCode *string `locationName:"postalCode" type:"string" sensitive:"true"` + + // PostalCodePlus4 is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + PostalCodePlus4 *string `locationName:"postalCodePlus4" type:"string" sensitive:"true"` + + // State is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + State *string `locationName:"state" type:"string" sensitive:"true"` + + // StreetInfo is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + StreetInfo *string `locationName:"streetInfo" type:"string" sensitive:"true"` + + // StreetNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CandidateAddress's + // String and GoString methods. + StreetNumber *string `locationName:"streetNumber" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CandidateAddress) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CandidateAddress) GoString() string { + return s.String() +} + +// SetCity sets the City field's value. +func (s *CandidateAddress) SetCity(v string) *CandidateAddress { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *CandidateAddress) SetCountry(v string) *CandidateAddress { + s.Country = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *CandidateAddress) SetPostalCode(v string) *CandidateAddress { + s.PostalCode = &v + return s +} + +// SetPostalCodePlus4 sets the PostalCodePlus4 field's value. +func (s *CandidateAddress) SetPostalCodePlus4(v string) *CandidateAddress { + s.PostalCodePlus4 = &v + return s +} + +// SetState sets the State field's value. +func (s *CandidateAddress) SetState(v string) *CandidateAddress { + s.State = &v + return s +} + +// SetStreetInfo sets the StreetInfo field's value. +func (s *CandidateAddress) SetStreetInfo(v string) *CandidateAddress { + s.StreetInfo = &v + return s +} + +// SetStreetNumber sets the StreetNumber field's value. +func (s *CandidateAddress) SetStreetNumber(v string) *CandidateAddress { + s.StreetNumber = &v + return s +} + +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreatePhoneNumberOrderInput struct { + _ struct{} `type:"structure"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // ProductType is a required field + ProductType *string `type:"string" required:"true" enum:"PhoneNumberProductType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePhoneNumberOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePhoneNumberOrderInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.ProductType == nil { + invalidParams.Add(request.NewErrParamRequired("ProductType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *CreatePhoneNumberOrderInput) SetE164PhoneNumbers(v []*string) *CreatePhoneNumberOrderInput { + s.E164PhoneNumbers = v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *CreatePhoneNumberOrderInput) SetProductType(v string) *CreatePhoneNumberOrderInput { + s.ProductType = &v + return s +} + +type CreatePhoneNumberOrderOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberOrder *PhoneNumberOrder `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreatePhoneNumberOrderOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. +func (s *CreatePhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *CreatePhoneNumberOrderOutput { + s.PhoneNumberOrder = v + return s +} + +type CreateProxySessionInput struct { + _ struct{} `type:"structure"` + + // Capabilities is a required field + Capabilities []*string `type:"list" required:"true" enum:"Capability"` + + ExpiryMinutes *int64 `min:"1" type:"integer"` + + GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` + + GeoMatchParams *GeoMatchParams `type:"structure"` + + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateProxySessionInput's + // String and GoString methods. + Name *string `type:"string" sensitive:"true"` + + NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` + + // ParticipantPhoneNumbers is a required field + ParticipantPhoneNumbers []*string `min:"2" type:"list" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProxySessionInput"} + if s.Capabilities == nil { + invalidParams.Add(request.NewErrParamRequired("Capabilities")) + } + if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { + invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) + } + if s.ParticipantPhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("ParticipantPhoneNumbers")) + } + if s.ParticipantPhoneNumbers != nil && len(s.ParticipantPhoneNumbers) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ParticipantPhoneNumbers", 2)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.GeoMatchParams != nil { + if err := s.GeoMatchParams.Validate(); err != nil { + invalidParams.AddNested("GeoMatchParams", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapabilities sets the Capabilities field's value. +func (s *CreateProxySessionInput) SetCapabilities(v []*string) *CreateProxySessionInput { + s.Capabilities = v + return s +} + +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *CreateProxySessionInput) SetExpiryMinutes(v int64) *CreateProxySessionInput { + s.ExpiryMinutes = &v + return s +} + +// SetGeoMatchLevel sets the GeoMatchLevel field's value. +func (s *CreateProxySessionInput) SetGeoMatchLevel(v string) *CreateProxySessionInput { + s.GeoMatchLevel = &v + return s +} + +// SetGeoMatchParams sets the GeoMatchParams field's value. +func (s *CreateProxySessionInput) SetGeoMatchParams(v *GeoMatchParams) *CreateProxySessionInput { + s.GeoMatchParams = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateProxySessionInput) SetName(v string) *CreateProxySessionInput { + s.Name = &v + return s +} + +// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. +func (s *CreateProxySessionInput) SetNumberSelectionBehavior(v string) *CreateProxySessionInput { + s.NumberSelectionBehavior = &v + return s +} + +// SetParticipantPhoneNumbers sets the ParticipantPhoneNumbers field's value. +func (s *CreateProxySessionInput) SetParticipantPhoneNumbers(v []*string) *CreateProxySessionInput { + s.ParticipantPhoneNumbers = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *CreateProxySessionInput) SetVoiceConnectorId(v string) *CreateProxySessionInput { + s.VoiceConnectorId = &v + return s +} + +type CreateProxySessionOutput struct { + _ struct{} `type:"structure"` + + ProxySession *ProxySession `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateProxySessionOutput) GoString() string { + return s.String() +} + +// SetProxySession sets the ProxySession field's value. +func (s *CreateProxySessionOutput) SetProxySession(v *ProxySession) *CreateProxySessionOutput { + s.ProxySession = v + return s +} + +type CreateSipMediaApplicationCallInput struct { + _ struct{} `type:"structure"` + + ArgumentsMap map[string]*string `type:"map"` + + // FromPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateSipMediaApplicationCallInput's + // String and GoString methods. + // FromPhoneNumber is a required field + FromPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + + SipHeaders map[string]*string `type:"map"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + + // ToPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateSipMediaApplicationCallInput's + // String and GoString methods. + // ToPhoneNumber is a required field + ToPhoneNumber *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipMediaApplicationCallInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationCallInput"} + if s.FromPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("FromPhoneNumber")) + } + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + if s.ToPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("ToPhoneNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArgumentsMap sets the ArgumentsMap field's value. +func (s *CreateSipMediaApplicationCallInput) SetArgumentsMap(v map[string]*string) *CreateSipMediaApplicationCallInput { + s.ArgumentsMap = v + return s +} + +// SetFromPhoneNumber sets the FromPhoneNumber field's value. +func (s *CreateSipMediaApplicationCallInput) SetFromPhoneNumber(v string) *CreateSipMediaApplicationCallInput { + s.FromPhoneNumber = &v + return s +} + +// SetSipHeaders sets the SipHeaders field's value. +func (s *CreateSipMediaApplicationCallInput) SetSipHeaders(v map[string]*string) *CreateSipMediaApplicationCallInput { + s.SipHeaders = v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *CreateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *CreateSipMediaApplicationCallInput { + s.SipMediaApplicationId = &v + return s +} + +// SetToPhoneNumber sets the ToPhoneNumber field's value. +func (s *CreateSipMediaApplicationCallInput) SetToPhoneNumber(v string) *CreateSipMediaApplicationCallInput { + s.ToPhoneNumber = &v + return s +} + +type CreateSipMediaApplicationCallOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationCallOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. +func (s *CreateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *CreateSipMediaApplicationCallOutput { + s.SipMediaApplicationCall = v + return s +} + +type CreateSipMediaApplicationInput struct { + _ struct{} `type:"structure"` + + // AwsRegion is a required field + AwsRegion *string `type:"string" required:"true"` + + // Endpoints is a required field + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list" required:"true"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationInput"} + if s.AwsRegion == nil { + invalidParams.Add(request.NewErrParamRequired("AwsRegion")) + } + if s.Endpoints == nil { + invalidParams.Add(request.NewErrParamRequired("Endpoints")) + } + if s.Endpoints != nil && len(s.Endpoints) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *CreateSipMediaApplicationInput) SetAwsRegion(v string) *CreateSipMediaApplicationInput { + s.AwsRegion = &v + return s +} + +// SetEndpoints sets the Endpoints field's value. +func (s *CreateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *CreateSipMediaApplicationInput { + s.Endpoints = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSipMediaApplicationInput) SetName(v string) *CreateSipMediaApplicationInput { + s.Name = &v + return s +} + +type CreateSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplication *SipMediaApplication `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipMediaApplicationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *CreateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *CreateSipMediaApplicationOutput { + s.SipMediaApplication = v + return s +} + +type CreateSipRuleInput struct { + _ struct{} `type:"structure"` + + Disabled *bool `type:"boolean"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` + + // TriggerType is a required field + TriggerType *string `type:"string" required:"true" enum:"SipRuleTriggerType"` + + // TriggerValue is a required field + TriggerValue *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipRuleInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.TargetApplications != nil && len(s.TargetApplications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) + } + if s.TriggerType == nil { + invalidParams.Add(request.NewErrParamRequired("TriggerType")) + } + if s.TriggerValue == nil { + invalidParams.Add(request.NewErrParamRequired("TriggerValue")) + } + if s.TargetApplications != nil { + for i, v := range s.TargetApplications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisabled sets the Disabled field's value. +func (s *CreateSipRuleInput) SetDisabled(v bool) *CreateSipRuleInput { + s.Disabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSipRuleInput) SetName(v string) *CreateSipRuleInput { + s.Name = &v + return s +} + +// SetTargetApplications sets the TargetApplications field's value. +func (s *CreateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *CreateSipRuleInput { + s.TargetApplications = v + return s +} + +// SetTriggerType sets the TriggerType field's value. +func (s *CreateSipRuleInput) SetTriggerType(v string) *CreateSipRuleInput { + s.TriggerType = &v + return s +} + +// SetTriggerValue sets the TriggerValue field's value. +func (s *CreateSipRuleInput) SetTriggerValue(v string) *CreateSipRuleInput { + s.TriggerValue = &v + return s +} + +type CreateSipRuleOutput struct { + _ struct{} `type:"structure"` + + SipRule *SipRule `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSipRuleOutput) GoString() string { + return s.String() +} + +// SetSipRule sets the SipRule field's value. +func (s *CreateSipRuleOutput) SetSipRule(v *SipRule) *CreateSipRuleOutput { + s.SipRule = v + return s +} + +type CreateVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + VoiceConnectorItems []*VoiceConnectorItem `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorGroupInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.VoiceConnectorItems != nil { + for i, v := range s.VoiceConnectorItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VoiceConnectorItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateVoiceConnectorGroupInput) SetName(v string) *CreateVoiceConnectorGroupInput { + s.Name = &v + return s +} + +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *CreateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *CreateVoiceConnectorGroupInput { + s.VoiceConnectorItems = v + return s +} + +type CreateVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *CreateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *CreateVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v + return s +} + +type CreateVoiceConnectorInput struct { + _ struct{} `type:"structure"` + + AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // RequireEncryption is a required field + RequireEncryption *bool `type:"boolean" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.RequireEncryption == nil { + invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *CreateVoiceConnectorInput) SetAwsRegion(v string) *CreateVoiceConnectorInput { + s.AwsRegion = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateVoiceConnectorInput) SetName(v string) *CreateVoiceConnectorInput { + s.Name = &v + return s +} + +// SetRequireEncryption sets the RequireEncryption field's value. +func (s *CreateVoiceConnectorInput) SetRequireEncryption(v bool) *CreateVoiceConnectorInput { + s.RequireEncryption = &v + return s +} + +type CreateVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + VoiceConnector *VoiceConnector `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *CreateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *CreateVoiceConnectorOutput { + s.VoiceConnector = v + return s +} + +type Credential struct { + _ struct{} `type:"structure"` + + // Password is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Credential's + // String and GoString methods. + Password *string `type:"string" sensitive:"true"` + + // Username is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Credential's + // String and GoString methods. + Username *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Credential) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Credential) GoString() string { + return s.String() +} + +// SetPassword sets the Password field's value. +func (s *Credential) SetPassword(v string) *Credential { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *Credential) SetUsername(v string) *Credential { + s.Username = &v + return s +} + +type DNISEmergencyCallingConfiguration struct { + _ struct{} `type:"structure"` + + // CallingCountry is a required field + CallingCountry *string `type:"string" required:"true"` + + // EmergencyPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DNISEmergencyCallingConfiguration's + // String and GoString methods. + // EmergencyPhoneNumber is a required field + EmergencyPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + + // TestPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DNISEmergencyCallingConfiguration's + // String and GoString methods. + TestPhoneNumber *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DNISEmergencyCallingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DNISEmergencyCallingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DNISEmergencyCallingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DNISEmergencyCallingConfiguration"} + if s.CallingCountry == nil { + invalidParams.Add(request.NewErrParamRequired("CallingCountry")) + } + if s.EmergencyPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("EmergencyPhoneNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingCountry sets the CallingCountry field's value. +func (s *DNISEmergencyCallingConfiguration) SetCallingCountry(v string) *DNISEmergencyCallingConfiguration { + s.CallingCountry = &v + return s +} + +// SetEmergencyPhoneNumber sets the EmergencyPhoneNumber field's value. +func (s *DNISEmergencyCallingConfiguration) SetEmergencyPhoneNumber(v string) *DNISEmergencyCallingConfiguration { + s.EmergencyPhoneNumber = &v + return s +} + +// SetTestPhoneNumber sets the TestPhoneNumber field's value. +func (s *DNISEmergencyCallingConfiguration) SetTestPhoneNumber(v string) *DNISEmergencyCallingConfiguration { + s.TestPhoneNumber = &v + return s +} + +type DeletePhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DeletePhoneNumberInput's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *DeletePhoneNumberInput) SetPhoneNumberId(v string) *DeletePhoneNumberInput { + s.PhoneNumberId = &v + return s +} + +type DeletePhoneNumberOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeletePhoneNumberOutput) GoString() string { + return s.String() +} + +type DeleteProxySessionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // ProxySessionId is a required field + ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteProxySessionInput"} + if s.ProxySessionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) + } + if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProxySessionId sets the ProxySessionId field's value. +func (s *DeleteProxySessionInput) SetProxySessionId(v string) *DeleteProxySessionInput { + s.ProxySessionId = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteProxySessionInput) SetVoiceConnectorId(v string) *DeleteProxySessionInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteProxySessionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteProxySessionOutput) GoString() string { + return s.String() +} + +type DeleteSipMediaApplicationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSipMediaApplicationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *DeleteSipMediaApplicationInput) SetSipMediaApplicationId(v string) *DeleteSipMediaApplicationInput { + s.SipMediaApplicationId = &v + return s +} + +type DeleteSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipMediaApplicationOutput) GoString() string { + return s.String() +} + +type DeleteSipRuleInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSipRuleInput"} + if s.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) + } + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipRuleId sets the SipRuleId field's value. +func (s *DeleteSipRuleInput) SetSipRuleId(v string) *DeleteSipRuleInput { + s.SipRuleId = &v + return s +} + +type DeleteSipRuleOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSipRuleOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorEmergencyCallingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorEmergencyCallingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorEmergencyCallingConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorGroupInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorGroupInput"} + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *DeleteVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DeleteVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type DeleteVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOriginationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOriginationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorOriginationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOriginationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOriginationOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorProxyInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorProxyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorProxyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorProxyInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorProxyInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorProxyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorProxyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorProxyOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorStreamingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorStreamingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorStreamingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorStreamingConfigurationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorTerminationCredentialsInput struct { + _ struct{} `type:"structure"` + + // Usernames is a required field + Usernames []*string `type:"list" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationCredentialsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationCredentialsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationCredentialsInput"} + if s.Usernames == nil { + invalidParams.Add(request.NewErrParamRequired("Usernames")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUsernames sets the Usernames field's value. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetUsernames(v []*string) *DeleteVoiceConnectorTerminationCredentialsInput { + s.Usernames = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorTerminationCredentialsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationCredentialsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationCredentialsOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorTerminationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v + return s +} + +type DeleteVoiceConnectorTerminationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteVoiceConnectorTerminationOutput) GoString() string { + return s.String() +} + +type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorGroupInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.E164PhoneNumbers = v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput { + s.PhoneNumberErrors = v + return s +} + +type DisassociatePhoneNumbersFromVoiceConnectorInput struct { + _ struct{} `type:"structure"` + + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorInput { + s.E164PhoneNumbers = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetVoiceConnectorId(v string) *DisassociatePhoneNumbersFromVoiceConnectorInput { + s.VoiceConnectorId = &v + return s +} + +type DisassociatePhoneNumbersFromVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorOutput { + s.PhoneNumberErrors = v + return s +} + +type EmergencyCallingConfiguration struct { + _ struct{} `type:"structure"` + + DNIS []*DNISEmergencyCallingConfiguration `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EmergencyCallingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s EmergencyCallingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EmergencyCallingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EmergencyCallingConfiguration"} + if s.DNIS != nil { + for i, v := range s.DNIS { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DNIS", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDNIS sets the DNIS field's value. +func (s *EmergencyCallingConfiguration) SetDNIS(v []*DNISEmergencyCallingConfiguration) *EmergencyCallingConfiguration { + s.DNIS = v + return s +} + +type ForbiddenException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s *ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ForbiddenException) OrigErr() error { + return nil +} + +func (s *ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ForbiddenException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ForbiddenException) RequestID() string { + return s.RespMetadata.RequestID +} + +type GeoMatchParams struct { + _ struct{} `type:"structure"` + + // AreaCode is a required field + AreaCode *string `type:"string" required:"true"` + + // Country is a required field + Country *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GeoMatchParams) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GeoMatchParams) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GeoMatchParams) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GeoMatchParams"} + if s.AreaCode == nil { + invalidParams.Add(request.NewErrParamRequired("AreaCode")) + } + if s.Country == nil { + invalidParams.Add(request.NewErrParamRequired("Country")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAreaCode sets the AreaCode field's value. +func (s *GeoMatchParams) SetAreaCode(v string) *GeoMatchParams { + s.AreaCode = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *GeoMatchParams) SetCountry(v string) *GeoMatchParams { + s.Country = &v + return s +} + +type GetGlobalSettingsInput struct { + _ struct{} `type:"structure" nopayload:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGlobalSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGlobalSettingsInput) GoString() string { + return s.String() +} + +type GetGlobalSettingsOutput struct { + _ struct{} `type:"structure"` + + VoiceConnector *VoiceConnectorSettings `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGlobalSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGlobalSettingsOutput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *GetGlobalSettingsOutput) SetVoiceConnector(v *VoiceConnectorSettings) *GetGlobalSettingsOutput { + s.VoiceConnector = v + return s +} + +type GetPhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GetPhoneNumberInput's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *GetPhoneNumberInput) SetPhoneNumberId(v string) *GetPhoneNumberInput { + s.PhoneNumberId = &v + return s +} + +type GetPhoneNumberOrderInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // PhoneNumberOrderId is a required field + PhoneNumberOrderId *string `location:"uri" locationName:"phoneNumberOrderId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPhoneNumberOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberOrderInput"} + if s.PhoneNumberOrderId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberOrderId")) + } + if s.PhoneNumberOrderId != nil && len(*s.PhoneNumberOrderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberOrderId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. +func (s *GetPhoneNumberOrderInput) SetPhoneNumberOrderId(v string) *GetPhoneNumberOrderInput { + s.PhoneNumberOrderId = &v + return s +} + +type GetPhoneNumberOrderOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberOrder *PhoneNumberOrder `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberOrderOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. +func (s *GetPhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *GetPhoneNumberOrderOutput { + s.PhoneNumberOrder = v + return s +} + +type GetPhoneNumberOutput struct { + _ struct{} `type:"structure"` + + PhoneNumber *PhoneNumber `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *GetPhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *GetPhoneNumberOutput { + s.PhoneNumber = v + return s +} + +type GetPhoneNumberSettingsInput struct { + _ struct{} `type:"structure" nopayload:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberSettingsInput) GoString() string { + return s.String() +} + +type GetPhoneNumberSettingsOutput struct { + _ struct{} `type:"structure"` + + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GetPhoneNumberSettingsOutput's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` + + CallingNameUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetPhoneNumberSettingsOutput) GoString() string { + return s.String() +} + +// SetCallingName sets the CallingName field's value. +func (s *GetPhoneNumberSettingsOutput) SetCallingName(v string) *GetPhoneNumberSettingsOutput { + s.CallingName = &v + return s +} + +// SetCallingNameUpdatedTimestamp sets the CallingNameUpdatedTimestamp field's value. +func (s *GetPhoneNumberSettingsOutput) SetCallingNameUpdatedTimestamp(v time.Time) *GetPhoneNumberSettingsOutput { + s.CallingNameUpdatedTimestamp = &v + return s +} + +type GetProxySessionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // ProxySessionId is a required field + ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetProxySessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetProxySessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetProxySessionInput"} + if s.ProxySessionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) + } + if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProxySessionId sets the ProxySessionId field's value. +func (s *GetProxySessionInput) SetProxySessionId(v string) *GetProxySessionInput { + s.ProxySessionId = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetProxySessionInput) SetVoiceConnectorId(v string) *GetProxySessionInput { + s.VoiceConnectorId = &v + return s +} + +type GetProxySessionOutput struct { + _ struct{} `type:"structure"` + + ProxySession *ProxySession `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetProxySessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetProxySessionOutput) GoString() string { + return s.String() +} + +// SetProxySession sets the ProxySession field's value. +func (s *GetProxySessionOutput) SetProxySession(v *ProxySession) *GetProxySessionOutput { + s.ProxySession = v + return s +} + +type GetSipMediaApplicationAlexaSkillConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationAlexaSkillConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationAlexaSkillConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationAlexaSkillConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *GetSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationAlexaSkillConfigurationInput { + s.SipMediaApplicationId = &v + return s +} + +type GetSipMediaApplicationAlexaSkillConfigurationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationAlexaSkillConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationAlexaSkillConfigurationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. +func (s *GetSipMediaApplicationAlexaSkillConfigurationOutput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *GetSipMediaApplicationAlexaSkillConfigurationOutput { + s.SipMediaApplicationAlexaSkillConfiguration = v + return s +} + +type GetSipMediaApplicationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *GetSipMediaApplicationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationInput { + s.SipMediaApplicationId = &v + return s +} + +type GetSipMediaApplicationLoggingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationLoggingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSipMediaApplicationLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationLoggingConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *GetSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationId = &v + return s +} + +type GetSipMediaApplicationLoggingConfigurationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationLoggingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationLoggingConfigurationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *GetSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *GetSipMediaApplicationLoggingConfigurationOutput { + s.SipMediaApplicationLoggingConfiguration = v + return s +} + +type GetSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplication *SipMediaApplication `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipMediaApplicationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *GetSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *GetSipMediaApplicationOutput { + s.SipMediaApplication = v + return s +} + +type GetSipRuleInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipRuleInput"} + if s.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) + } + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipRuleId sets the SipRuleId field's value. +func (s *GetSipRuleInput) SetSipRuleId(v string) *GetSipRuleInput { + s.SipRuleId = &v + return s +} + +type GetSipRuleOutput struct { + _ struct{} `type:"structure"` + + SipRule *SipRule `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSipRuleOutput) GoString() string { + return s.String() +} + +// SetSipRule sets the SipRule field's value. +func (s *GetSipRuleOutput) SetSipRule(v *SipRule) *GetSipRuleOutput { + s.SipRule = v + return s +} + +type GetVoiceConnectorEmergencyCallingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorEmergencyCallingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorEmergencyCallingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorEmergencyCallingConfigurationOutput struct { + _ struct{} `type:"structure"` + + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { + return s.String() +} + +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *GetVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *GetVoiceConnectorEmergencyCallingConfigurationOutput { + s.EmergencyCallingConfiguration = v + return s +} + +type GetVoiceConnectorGroupInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorGroupInput"} + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *GetVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *GetVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type GetVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *GetVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *GetVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v + return s +} + +type GetVoiceConnectorInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorInput) SetVoiceConnectorId(v string) *GetVoiceConnectorInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorLoggingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorLoggingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorLoggingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorLoggingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorLoggingConfigurationOutput struct { + _ struct{} `type:"structure"` + + LoggingConfiguration *LoggingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorLoggingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorLoggingConfigurationOutput) GoString() string { + return s.String() +} + +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *GetVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *GetVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v + return s +} + +type GetVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorOriginationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorOriginationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorOriginationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` + + Origination *Origination `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorOriginationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorOriginationOutput) GoString() string { + return s.String() +} + +// SetOrigination sets the Origination field's value. +func (s *GetVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *GetVoiceConnectorOriginationOutput { + s.Origination = v + return s +} + +type GetVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + VoiceConnector *VoiceConnector `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *GetVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *GetVoiceConnectorOutput { + s.VoiceConnector = v + return s +} + +type GetVoiceConnectorProxyInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorProxyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorProxyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorProxyInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *GetVoiceConnectorProxyInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorProxyOutput struct { + _ struct{} `type:"structure"` + + Proxy *Proxy `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorProxyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorProxyOutput) GoString() string { + return s.String() +} + +// SetProxy sets the Proxy field's value. +func (s *GetVoiceConnectorProxyOutput) SetProxy(v *Proxy) *GetVoiceConnectorProxyOutput { + s.Proxy = v + return s +} + +type GetVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorStreamingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorStreamingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorStreamingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorStreamingConfigurationOutput struct { + _ struct{} `type:"structure"` + + StreamingConfiguration *StreamingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() +} + +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *GetVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *GetVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v + return s +} + +type GetVoiceConnectorTerminationHealthInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationHealthInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationHealthInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorTerminationHealthInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationHealthInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorTerminationHealthInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationHealthInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorTerminationHealthOutput struct { + _ struct{} `type:"structure"` + + TerminationHealth *TerminationHealth `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationHealthOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationHealthOutput) GoString() string { + return s.String() +} + +// SetTerminationHealth sets the TerminationHealth field's value. +func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput { + s.TerminationHealth = v + return s +} + +type GetVoiceConnectorTerminationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v + return s +} + +type GetVoiceConnectorTerminationOutput struct { + _ struct{} `type:"structure"` + + Termination *Termination `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetVoiceConnectorTerminationOutput) GoString() string { + return s.String() +} + +// SetTermination sets the Termination field's value. +func (s *GetVoiceConnectorTerminationOutput) SetTermination(v *Termination) *GetVoiceConnectorTerminationOutput { + s.Termination = v + return s +} + +type ListAvailableVoiceConnectorRegionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAvailableVoiceConnectorRegionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAvailableVoiceConnectorRegionsInput) GoString() string { + return s.String() +} + +type ListAvailableVoiceConnectorRegionsOutput struct { + _ struct{} `type:"structure"` + + VoiceConnectorRegions []*string `type:"list" enum:"VoiceConnectorAwsRegion"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAvailableVoiceConnectorRegionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListAvailableVoiceConnectorRegionsOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorRegions sets the VoiceConnectorRegions field's value. +func (s *ListAvailableVoiceConnectorRegionsOutput) SetVoiceConnectorRegions(v []*string) *ListAvailableVoiceConnectorRegionsOutput { + s.VoiceConnectorRegions = v + return s +} + +type ListPhoneNumberOrdersInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumberOrdersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumberOrdersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPhoneNumberOrdersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumberOrdersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPhoneNumberOrdersInput) SetMaxResults(v int64) *ListPhoneNumberOrdersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumberOrdersInput) SetNextToken(v string) *ListPhoneNumberOrdersInput { + s.NextToken = &v + return s +} + +type ListPhoneNumberOrdersOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + PhoneNumberOrders []*PhoneNumberOrder `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumberOrdersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumberOrdersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumberOrdersOutput) SetNextToken(v string) *ListPhoneNumberOrdersOutput { + s.NextToken = &v + return s +} + +// SetPhoneNumberOrders sets the PhoneNumberOrders field's value. +func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput { + s.PhoneNumberOrders = v + return s +} + +type ListPhoneNumbersInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + FilterName *string `location:"querystring" locationName:"filter-name" type:"string" enum:"PhoneNumberAssociationName"` + + FilterValue *string `location:"querystring" locationName:"filter-value" type:"string"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + ProductType *string `location:"querystring" locationName:"product-type" type:"string" enum:"PhoneNumberProductType"` + + Status *string `location:"querystring" locationName:"status" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumbersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumbersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumbersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilterName sets the FilterName field's value. +func (s *ListPhoneNumbersInput) SetFilterName(v string) *ListPhoneNumbersInput { + s.FilterName = &v + return s +} + +// SetFilterValue sets the FilterValue field's value. +func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput { + s.FilterValue = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPhoneNumbersInput) SetMaxResults(v int64) *ListPhoneNumbersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersInput) SetNextToken(v string) *ListPhoneNumbersInput { + s.NextToken = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *ListPhoneNumbersInput) SetProductType(v string) *ListPhoneNumbersInput { + s.ProductType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListPhoneNumbersInput) SetStatus(v string) *ListPhoneNumbersInput { + s.Status = &v + return s +} + +type ListPhoneNumbersOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + PhoneNumbers []*PhoneNumber `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumbersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListPhoneNumbersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOutput) SetNextToken(v string) *ListPhoneNumbersOutput { + s.NextToken = &v + return s +} + +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *ListPhoneNumbersOutput) SetPhoneNumbers(v []*PhoneNumber) *ListPhoneNumbersOutput { + s.PhoneNumbers = v + return s +} + +type ListProxySessionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + Status *string `location:"querystring" locationName:"status" type:"string" enum:"ProxySessionStatus"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListProxySessionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListProxySessionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListProxySessionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProxySessionsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListProxySessionsInput) SetMaxResults(v int64) *ListProxySessionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProxySessionsInput) SetNextToken(v string) *ListProxySessionsInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListProxySessionsInput) SetStatus(v string) *ListProxySessionsInput { + s.Status = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *ListProxySessionsInput) SetVoiceConnectorId(v string) *ListProxySessionsInput { + s.VoiceConnectorId = &v + return s +} + +type ListProxySessionsOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + ProxySessions []*ProxySession `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListProxySessionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListProxySessionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProxySessionsOutput) SetNextToken(v string) *ListProxySessionsOutput { + s.NextToken = &v + return s +} + +// SetProxySessions sets the ProxySessions field's value. +func (s *ListProxySessionsOutput) SetProxySessions(v []*ProxySession) *ListProxySessionsOutput { + s.ProxySessions = v + return s +} + +type ListSipMediaApplicationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipMediaApplicationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipMediaApplicationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSipMediaApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSipMediaApplicationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSipMediaApplicationsInput) SetMaxResults(v int64) *ListSipMediaApplicationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSipMediaApplicationsInput) SetNextToken(v string) *ListSipMediaApplicationsInput { + s.NextToken = &v + return s +} + +type ListSipMediaApplicationsOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + SipMediaApplications []*SipMediaApplication `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipMediaApplicationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipMediaApplicationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSipMediaApplicationsOutput) SetNextToken(v string) *ListSipMediaApplicationsOutput { + s.NextToken = &v + return s +} + +// SetSipMediaApplications sets the SipMediaApplications field's value. +func (s *ListSipMediaApplicationsOutput) SetSipMediaApplications(v []*SipMediaApplication) *ListSipMediaApplicationsOutput { + s.SipMediaApplications = v + return s +} + +type ListSipRulesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + SipMediaApplicationId *string `location:"querystring" locationName:"sip-media-application" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipRulesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipRulesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSipRulesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSipRulesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSipRulesInput) SetMaxResults(v int64) *ListSipRulesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSipRulesInput) SetNextToken(v string) *ListSipRulesInput { + s.NextToken = &v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *ListSipRulesInput) SetSipMediaApplicationId(v string) *ListSipRulesInput { + s.SipMediaApplicationId = &v + return s +} + +type ListSipRulesOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + SipRules []*SipRule `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipRulesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSipRulesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSipRulesOutput) SetNextToken(v string) *ListSipRulesOutput { + s.NextToken = &v + return s +} + +// SetSipRules sets the SipRules field's value. +func (s *ListSipRulesOutput) SetSipRules(v []*SipRule) *ListSipRulesOutput { + s.SipRules = v + return s +} + +type ListSupportedPhoneNumberCountriesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // ProductType is a required field + ProductType *string `location:"querystring" locationName:"product-type" type:"string" required:"true" enum:"PhoneNumberProductType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSupportedPhoneNumberCountriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSupportedPhoneNumberCountriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSupportedPhoneNumberCountriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSupportedPhoneNumberCountriesInput"} + if s.ProductType == nil { + invalidParams.Add(request.NewErrParamRequired("ProductType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetProductType sets the ProductType field's value. +func (s *ListSupportedPhoneNumberCountriesInput) SetProductType(v string) *ListSupportedPhoneNumberCountriesInput { + s.ProductType = &v + return s +} + +type ListSupportedPhoneNumberCountriesOutput struct { + _ struct{} `type:"structure"` + + PhoneNumberCountries []*PhoneNumberCountry `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSupportedPhoneNumberCountriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSupportedPhoneNumberCountriesOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. +func (s *ListSupportedPhoneNumberCountriesOutput) SetPhoneNumberCountries(v []*PhoneNumberCountry) *ListSupportedPhoneNumberCountriesOutput { + s.PhoneNumberCountries = v + return s +} + +type ListVoiceConnectorGroupsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListVoiceConnectorGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorGroupsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListVoiceConnectorGroupsInput) SetMaxResults(v int64) *ListVoiceConnectorGroupsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorGroupsInput) SetNextToken(v string) *ListVoiceConnectorGroupsInput { + s.NextToken = &v + return s +} + +type ListVoiceConnectorGroupsOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + VoiceConnectorGroups []*VoiceConnectorGroup `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorGroupsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorGroupsOutput) SetNextToken(v string) *ListVoiceConnectorGroupsOutput { + s.NextToken = &v + return s +} + +// SetVoiceConnectorGroups sets the VoiceConnectorGroups field's value. +func (s *ListVoiceConnectorGroupsOutput) SetVoiceConnectorGroups(v []*VoiceConnectorGroup) *ListVoiceConnectorGroupsOutput { + s.VoiceConnectorGroups = v + return s +} + +type ListVoiceConnectorTerminationCredentialsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorTerminationCredentialsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorTerminationCredentialsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorTerminationCredentialsInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *ListVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *ListVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v + return s +} + +type ListVoiceConnectorTerminationCredentialsOutput struct { + _ struct{} `type:"structure"` + + Usernames []*string `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorTerminationCredentialsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorTerminationCredentialsOutput) GoString() string { + return s.String() +} + +// SetUsernames sets the Usernames field's value. +func (s *ListVoiceConnectorTerminationCredentialsOutput) SetUsernames(v []*string) *ListVoiceConnectorTerminationCredentialsOutput { + s.Usernames = v + return s +} + +type ListVoiceConnectorsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListVoiceConnectorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListVoiceConnectorsInput) SetMaxResults(v int64) *ListVoiceConnectorsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorsInput) SetNextToken(v string) *ListVoiceConnectorsInput { + s.NextToken = &v + return s +} + +type ListVoiceConnectorsOutput struct { + _ struct{} `type:"structure"` + + NextToken *string `type:"string"` + + VoiceConnectors []*VoiceConnector `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListVoiceConnectorsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorsOutput) SetNextToken(v string) *ListVoiceConnectorsOutput { + s.NextToken = &v + return s +} + +// SetVoiceConnectors sets the VoiceConnectors field's value. +func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput { + s.VoiceConnectors = v + return s +} + +type LoggingConfiguration struct { + _ struct{} `type:"structure"` + + EnableSIPLogs *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LoggingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LoggingConfiguration) GoString() string { + return s.String() +} + +// SetEnableSIPLogs sets the EnableSIPLogs field's value. +func (s *LoggingConfiguration) SetEnableSIPLogs(v bool) *LoggingConfiguration { + s.EnableSIPLogs = &v + return s +} + +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { + return nil +} + +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +type OrderedPhoneNumber struct { + _ struct{} `type:"structure"` + + // E164PhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by OrderedPhoneNumber's + // String and GoString methods. + E164PhoneNumber *string `type:"string" sensitive:"true"` + + Status *string `type:"string" enum:"OrderedPhoneNumberStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OrderedPhoneNumber) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OrderedPhoneNumber) GoString() string { + return s.String() +} + +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *OrderedPhoneNumber) SetE164PhoneNumber(v string) *OrderedPhoneNumber { + s.E164PhoneNumber = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *OrderedPhoneNumber) SetStatus(v string) *OrderedPhoneNumber { + s.Status = &v + return s +} + +type Origination struct { + _ struct{} `type:"structure"` + + Disabled *bool `type:"boolean"` + + Routes []*OriginationRoute `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Origination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Origination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Origination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Origination"} + if s.Routes != nil { + for i, v := range s.Routes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Routes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisabled sets the Disabled field's value. +func (s *Origination) SetDisabled(v bool) *Origination { + s.Disabled = &v + return s +} + +// SetRoutes sets the Routes field's value. +func (s *Origination) SetRoutes(v []*OriginationRoute) *Origination { + s.Routes = v + return s +} + +type OriginationRoute struct { + _ struct{} `type:"structure"` + + Host *string `type:"string"` + + Port *int64 `type:"integer"` + + Priority *int64 `min:"1" type:"integer"` + + Protocol *string `type:"string" enum:"OriginationRouteProtocol"` + + Weight *int64 `min:"1" type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OriginationRoute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OriginationRoute) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *OriginationRoute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginationRoute"} + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) + } + if s.Weight != nil && *s.Weight < 1 { + invalidParams.Add(request.NewErrParamMinValue("Weight", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHost sets the Host field's value. +func (s *OriginationRoute) SetHost(v string) *OriginationRoute { + s.Host = &v + return s +} + +// SetPort sets the Port field's value. +func (s *OriginationRoute) SetPort(v int64) *OriginationRoute { + s.Port = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *OriginationRoute) SetPriority(v int64) *OriginationRoute { + s.Priority = &v + return s +} + +// SetProtocol sets the Protocol field's value. +func (s *OriginationRoute) SetProtocol(v string) *OriginationRoute { + s.Protocol = &v + return s +} + +// SetWeight sets the Weight field's value. +func (s *OriginationRoute) SetWeight(v int64) *OriginationRoute { + s.Weight = &v + return s +} + +type Participant struct { + _ struct{} `type:"structure"` + + // PhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Participant's + // String and GoString methods. + PhoneNumber *string `type:"string" sensitive:"true"` + + // ProxyPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Participant's + // String and GoString methods. + ProxyPhoneNumber *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Participant) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Participant) GoString() string { + return s.String() +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *Participant) SetPhoneNumber(v string) *Participant { + s.PhoneNumber = &v + return s +} + +// SetProxyPhoneNumber sets the ProxyPhoneNumber field's value. +func (s *Participant) SetProxyPhoneNumber(v string) *Participant { + s.ProxyPhoneNumber = &v + return s +} + +type PhoneNumber struct { + _ struct{} `type:"structure"` + + Associations []*PhoneNumberAssociation `type:"list"` + + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` + + CallingNameStatus *string `type:"string" enum:"CallingNameStatus"` + + Capabilities *PhoneNumberCapabilities `type:"structure"` + + Country *string `type:"string"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + DeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // E164PhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + E164PhoneNumber *string `type:"string" sensitive:"true"` + + OrderId *string `type:"string"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumber's + // String and GoString methods. + PhoneNumberId *string `type:"string" sensitive:"true"` + + ProductType *string `type:"string" enum:"PhoneNumberProductType"` + + Status *string `type:"string" enum:"PhoneNumberStatus"` + + Type *string `type:"string" enum:"PhoneNumberType"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumber) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumber) GoString() string { + return s.String() +} + +// SetAssociations sets the Associations field's value. +func (s *PhoneNumber) SetAssociations(v []*PhoneNumberAssociation) *PhoneNumber { + s.Associations = v + return s +} + +// SetCallingName sets the CallingName field's value. +func (s *PhoneNumber) SetCallingName(v string) *PhoneNumber { + s.CallingName = &v + return s +} + +// SetCallingNameStatus sets the CallingNameStatus field's value. +func (s *PhoneNumber) SetCallingNameStatus(v string) *PhoneNumber { + s.CallingNameStatus = &v + return s +} + +// SetCapabilities sets the Capabilities field's value. +func (s *PhoneNumber) SetCapabilities(v *PhoneNumberCapabilities) *PhoneNumber { + s.Capabilities = v + return s +} + +// SetCountry sets the Country field's value. +func (s *PhoneNumber) SetCountry(v string) *PhoneNumber { + s.Country = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *PhoneNumber) SetCreatedTimestamp(v time.Time) *PhoneNumber { + s.CreatedTimestamp = &v + return s +} + +// SetDeletionTimestamp sets the DeletionTimestamp field's value. +func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber { + s.DeletionTimestamp = &v + return s +} + +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *PhoneNumber) SetE164PhoneNumber(v string) *PhoneNumber { + s.E164PhoneNumber = &v + return s +} + +// SetOrderId sets the OrderId field's value. +func (s *PhoneNumber) SetOrderId(v string) *PhoneNumber { + s.OrderId = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *PhoneNumber) SetPhoneNumberId(v string) *PhoneNumber { + s.PhoneNumberId = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *PhoneNumber) SetProductType(v string) *PhoneNumber { + s.ProductType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *PhoneNumber) SetStatus(v string) *PhoneNumber { + s.Status = &v + return s +} + +// SetType sets the Type field's value. +func (s *PhoneNumber) SetType(v string) *PhoneNumber { + s.Type = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *PhoneNumber) SetUpdatedTimestamp(v time.Time) *PhoneNumber { + s.UpdatedTimestamp = &v + return s +} + +type PhoneNumberAssociation struct { + _ struct{} `type:"structure"` + + AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Name *string `type:"string" enum:"PhoneNumberAssociationName"` + + Value *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberAssociation) GoString() string { + return s.String() +} + +// SetAssociatedTimestamp sets the AssociatedTimestamp field's value. +func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation { + s.AssociatedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *PhoneNumberAssociation) SetName(v string) *PhoneNumberAssociation { + s.Name = &v + return s +} + +// SetValue sets the Value field's value. +func (s *PhoneNumberAssociation) SetValue(v string) *PhoneNumberAssociation { + s.Value = &v + return s +} + +type PhoneNumberCapabilities struct { + _ struct{} `type:"structure"` + + InboundCall *bool `type:"boolean"` + + InboundMMS *bool `type:"boolean"` + + InboundSMS *bool `type:"boolean"` + + OutboundCall *bool `type:"boolean"` + + OutboundMMS *bool `type:"boolean"` + + OutboundSMS *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberCapabilities) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberCapabilities) GoString() string { + return s.String() +} + +// SetInboundCall sets the InboundCall field's value. +func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities { + s.InboundCall = &v + return s +} + +// SetInboundMMS sets the InboundMMS field's value. +func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities { + s.InboundMMS = &v + return s +} + +// SetInboundSMS sets the InboundSMS field's value. +func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities { + s.InboundSMS = &v + return s +} + +// SetOutboundCall sets the OutboundCall field's value. +func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities { + s.OutboundCall = &v + return s +} + +// SetOutboundMMS sets the OutboundMMS field's value. +func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities { + s.OutboundMMS = &v + return s +} + +// SetOutboundSMS sets the OutboundSMS field's value. +func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities { + s.OutboundSMS = &v + return s +} + +type PhoneNumberCountry struct { + _ struct{} `type:"structure"` + + CountryCode *string `type:"string"` + + SupportedPhoneNumberTypes []*string `type:"list" enum:"PhoneNumberType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberCountry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberCountry) GoString() string { + return s.String() +} + +// SetCountryCode sets the CountryCode field's value. +func (s *PhoneNumberCountry) SetCountryCode(v string) *PhoneNumberCountry { + s.CountryCode = &v + return s +} + +// SetSupportedPhoneNumberTypes sets the SupportedPhoneNumberTypes field's value. +func (s *PhoneNumberCountry) SetSupportedPhoneNumberTypes(v []*string) *PhoneNumberCountry { + s.SupportedPhoneNumberTypes = v + return s +} + +type PhoneNumberError struct { + _ struct{} `type:"structure"` + + ErrorCode *string `type:"string" enum:"ErrorCode"` + + ErrorMessage *string `type:"string"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PhoneNumberError's + // String and GoString methods. + PhoneNumberId *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *PhoneNumberError) SetErrorCode(v string) *PhoneNumberError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PhoneNumberError) SetErrorMessage(v string) *PhoneNumberError { + s.ErrorMessage = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *PhoneNumberError) SetPhoneNumberId(v string) *PhoneNumberError { + s.PhoneNumberId = &v + return s +} + +type PhoneNumberOrder struct { + _ struct{} `type:"structure"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + OrderType *string `type:"string" enum:"PhoneNumberOrderType"` + + OrderedPhoneNumbers []*OrderedPhoneNumber `type:"list"` + + PhoneNumberOrderId *string `type:"string"` + + ProductType *string `type:"string" enum:"PhoneNumberProductType"` + + Status *string `type:"string" enum:"PhoneNumberOrderStatus"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberOrder) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PhoneNumberOrder) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *PhoneNumberOrder) SetCreatedTimestamp(v time.Time) *PhoneNumberOrder { + s.CreatedTimestamp = &v + return s +} + +// SetOrderType sets the OrderType field's value. +func (s *PhoneNumberOrder) SetOrderType(v string) *PhoneNumberOrder { + s.OrderType = &v + return s +} + +// SetOrderedPhoneNumbers sets the OrderedPhoneNumbers field's value. +func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder { + s.OrderedPhoneNumbers = v + return s +} + +// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. +func (s *PhoneNumberOrder) SetPhoneNumberOrderId(v string) *PhoneNumberOrder { + s.PhoneNumberOrderId = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *PhoneNumberOrder) SetProductType(v string) *PhoneNumberOrder { + s.ProductType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *PhoneNumberOrder) SetStatus(v string) *PhoneNumberOrder { + s.Status = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *PhoneNumberOrder) SetUpdatedTimestamp(v time.Time) *PhoneNumberOrder { + s.UpdatedTimestamp = &v + return s +} + +type Proxy struct { + _ struct{} `type:"structure"` + + DefaultSessionExpiryMinutes *int64 `type:"integer"` + + Disabled *bool `type:"boolean"` + + // FallBackPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Proxy's + // String and GoString methods. + FallBackPhoneNumber *string `type:"string" sensitive:"true"` + + PhoneNumberCountries []*string `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Proxy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Proxy) GoString() string { + return s.String() +} + +// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. +func (s *Proxy) SetDefaultSessionExpiryMinutes(v int64) *Proxy { + s.DefaultSessionExpiryMinutes = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *Proxy) SetDisabled(v bool) *Proxy { + s.Disabled = &v + return s +} + +// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. +func (s *Proxy) SetFallBackPhoneNumber(v string) *Proxy { + s.FallBackPhoneNumber = &v + return s +} + +// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. +func (s *Proxy) SetPhoneNumberCountries(v []*string) *Proxy { + s.PhoneNumberCountries = v + return s +} + +type ProxySession struct { + _ struct{} `type:"structure"` + + Capabilities []*string `type:"list" enum:"Capability"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + EndedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + ExpiryMinutes *int64 `min:"1" type:"integer"` + + GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` + + GeoMatchParams *GeoMatchParams `type:"structure"` + + Name *string `type:"string"` + + NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` + + Participants []*Participant `type:"list"` + + ProxySessionId *string `min:"1" type:"string"` + + Status *string `type:"string" enum:"ProxySessionStatus"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + VoiceConnectorId *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ProxySession) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ProxySession) GoString() string { + return s.String() +} + +// SetCapabilities sets the Capabilities field's value. +func (s *ProxySession) SetCapabilities(v []*string) *ProxySession { + s.Capabilities = v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ProxySession) SetCreatedTimestamp(v time.Time) *ProxySession { + s.CreatedTimestamp = &v + return s +} + +// SetEndedTimestamp sets the EndedTimestamp field's value. +func (s *ProxySession) SetEndedTimestamp(v time.Time) *ProxySession { + s.EndedTimestamp = &v + return s +} + +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *ProxySession) SetExpiryMinutes(v int64) *ProxySession { + s.ExpiryMinutes = &v + return s +} + +// SetGeoMatchLevel sets the GeoMatchLevel field's value. +func (s *ProxySession) SetGeoMatchLevel(v string) *ProxySession { + s.GeoMatchLevel = &v + return s +} + +// SetGeoMatchParams sets the GeoMatchParams field's value. +func (s *ProxySession) SetGeoMatchParams(v *GeoMatchParams) *ProxySession { + s.GeoMatchParams = v + return s +} + +// SetName sets the Name field's value. +func (s *ProxySession) SetName(v string) *ProxySession { + s.Name = &v + return s +} + +// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. +func (s *ProxySession) SetNumberSelectionBehavior(v string) *ProxySession { + s.NumberSelectionBehavior = &v + return s +} + +// SetParticipants sets the Participants field's value. +func (s *ProxySession) SetParticipants(v []*Participant) *ProxySession { + s.Participants = v + return s +} + +// SetProxySessionId sets the ProxySessionId field's value. +func (s *ProxySession) SetProxySessionId(v string) *ProxySession { + s.ProxySessionId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ProxySession) SetStatus(v string) *ProxySession { + s.Status = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *ProxySession) SetUpdatedTimestamp(v time.Time) *ProxySession { + s.UpdatedTimestamp = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *ProxySession) SetVoiceConnectorId(v string) *ProxySession { + s.VoiceConnectorId = &v + return s +} + +type PutSipMediaApplicationAlexaSkillConfigurationInput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationAlexaSkillConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationAlexaSkillConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationAlexaSkillConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + if s.SipMediaApplicationAlexaSkillConfiguration != nil { + if err := s.SipMediaApplicationAlexaSkillConfiguration.Validate(); err != nil { + invalidParams.AddNested("SipMediaApplicationAlexaSkillConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. +func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *PutSipMediaApplicationAlexaSkillConfigurationInput { + s.SipMediaApplicationAlexaSkillConfiguration = v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *PutSipMediaApplicationAlexaSkillConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationAlexaSkillConfigurationInput { + s.SipMediaApplicationId = &v + return s +} + +type PutSipMediaApplicationAlexaSkillConfigurationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationAlexaSkillConfiguration *SipMediaApplicationAlexaSkillConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationAlexaSkillConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationAlexaSkillConfigurationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationAlexaSkillConfiguration sets the SipMediaApplicationAlexaSkillConfiguration field's value. +func (s *PutSipMediaApplicationAlexaSkillConfigurationOutput) SetSipMediaApplicationAlexaSkillConfiguration(v *SipMediaApplicationAlexaSkillConfiguration) *PutSipMediaApplicationAlexaSkillConfigurationOutput { + s.SipMediaApplicationAlexaSkillConfiguration = v + return s +} + +type PutSipMediaApplicationLoggingConfigurationInput struct { + _ struct{} `type:"structure"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationLoggingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutSipMediaApplicationLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationLoggingConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationId = &v + return s +} + +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationLoggingConfiguration = v + return s +} + +type PutSipMediaApplicationLoggingConfigurationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationLoggingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutSipMediaApplicationLoggingConfigurationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *PutSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationOutput { + s.SipMediaApplicationLoggingConfiguration = v + return s +} + +type PutVoiceConnectorEmergencyCallingConfigurationInput struct { + _ struct{} `type:"structure"` + + // EmergencyCallingConfiguration is a required field + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorEmergencyCallingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorEmergencyCallingConfigurationInput"} + if s.EmergencyCallingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("EmergencyCallingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.EmergencyCallingConfiguration != nil { + if err := s.EmergencyCallingConfiguration.Validate(); err != nil { + invalidParams.AddNested("EmergencyCallingConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationInput { + s.EmergencyCallingConfiguration = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorEmergencyCallingConfigurationOutput struct { + _ struct{} `type:"structure"` + + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { + return s.String() +} + +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationOutput { + s.EmergencyCallingConfiguration = v + return s +} + +type PutVoiceConnectorLoggingConfigurationInput struct { + _ struct{} `type:"structure"` + + // LoggingConfiguration is a required field + LoggingConfiguration *LoggingConfiguration `type:"structure" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorLoggingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorLoggingConfigurationInput"} + if s.LoggingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("LoggingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationInput { + s.LoggingConfiguration = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorLoggingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorLoggingConfigurationOutput struct { + _ struct{} `type:"structure"` + + LoggingConfiguration *LoggingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorLoggingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorLoggingConfigurationOutput) GoString() string { + return s.String() +} + +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v + return s +} + +type PutVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure"` + + // Origination is a required field + Origination *Origination `type:"structure" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorOriginationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorOriginationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorOriginationInput"} + if s.Origination == nil { + invalidParams.Add(request.NewErrParamRequired("Origination")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.Origination != nil { + if err := s.Origination.Validate(); err != nil { + invalidParams.AddNested("Origination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOrigination sets the Origination field's value. +func (s *PutVoiceConnectorOriginationInput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationInput { + s.Origination = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` + + Origination *Origination `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorOriginationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorOriginationOutput) GoString() string { + return s.String() +} + +// SetOrigination sets the Origination field's value. +func (s *PutVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationOutput { + s.Origination = v + return s +} + +type PutVoiceConnectorProxyInput struct { + _ struct{} `type:"structure"` + + // DefaultSessionExpiryMinutes is a required field + DefaultSessionExpiryMinutes *int64 `type:"integer" required:"true"` + + Disabled *bool `type:"boolean"` + + // FallBackPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PutVoiceConnectorProxyInput's + // String and GoString methods. + FallBackPhoneNumber *string `type:"string" sensitive:"true"` + + // PhoneNumberPoolCountries is a required field + PhoneNumberPoolCountries []*string `min:"1" type:"list" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorProxyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorProxyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorProxyInput"} + if s.DefaultSessionExpiryMinutes == nil { + invalidParams.Add(request.NewErrParamRequired("DefaultSessionExpiryMinutes")) + } + if s.PhoneNumberPoolCountries == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberPoolCountries")) + } + if s.PhoneNumberPoolCountries != nil && len(s.PhoneNumberPoolCountries) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberPoolCountries", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. +func (s *PutVoiceConnectorProxyInput) SetDefaultSessionExpiryMinutes(v int64) *PutVoiceConnectorProxyInput { + s.DefaultSessionExpiryMinutes = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *PutVoiceConnectorProxyInput) SetDisabled(v bool) *PutVoiceConnectorProxyInput { + s.Disabled = &v + return s +} + +// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. +func (s *PutVoiceConnectorProxyInput) SetFallBackPhoneNumber(v string) *PutVoiceConnectorProxyInput { + s.FallBackPhoneNumber = &v + return s +} + +// SetPhoneNumberPoolCountries sets the PhoneNumberPoolCountries field's value. +func (s *PutVoiceConnectorProxyInput) SetPhoneNumberPoolCountries(v []*string) *PutVoiceConnectorProxyInput { + s.PhoneNumberPoolCountries = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *PutVoiceConnectorProxyInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorProxyOutput struct { + _ struct{} `type:"structure"` + + Proxy *Proxy `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorProxyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorProxyOutput) GoString() string { + return s.String() +} + +// SetProxy sets the Proxy field's value. +func (s *PutVoiceConnectorProxyOutput) SetProxy(v *Proxy) *PutVoiceConnectorProxyOutput { + s.Proxy = v + return s +} + +type PutVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure"` + + // StreamingConfiguration is a required field + StreamingConfiguration *StreamingConfiguration `type:"structure" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorStreamingConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorStreamingConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorStreamingConfigurationInput"} + if s.StreamingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("StreamingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.StreamingConfiguration != nil { + if err := s.StreamingConfiguration.Validate(); err != nil { + invalidParams.AddNested("StreamingConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *PutVoiceConnectorStreamingConfigurationInput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationInput { + s.StreamingConfiguration = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorStreamingConfigurationOutput struct { + _ struct{} `type:"structure"` + + StreamingConfiguration *StreamingConfiguration `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() +} + +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *PutVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v + return s +} + +type PutVoiceConnectorTerminationCredentialsInput struct { + _ struct{} `type:"structure"` + + Credentials []*Credential `type:"list"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationCredentialsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationCredentialsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationCredentialsInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCredentials sets the Credentials field's value. +func (s *PutVoiceConnectorTerminationCredentialsInput) SetCredentials(v []*Credential) *PutVoiceConnectorTerminationCredentialsInput { + s.Credentials = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorTerminationCredentialsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationCredentialsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationCredentialsOutput) GoString() string { + return s.String() +} + +type PutVoiceConnectorTerminationInput struct { + _ struct{} `type:"structure"` + + // Termination is a required field + Termination *Termination `type:"structure" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationInput"} + if s.Termination == nil { + invalidParams.Add(request.NewErrParamRequired("Termination")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.Termination != nil { + if err := s.Termination.Validate(); err != nil { + invalidParams.AddNested("Termination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTermination sets the Termination field's value. +func (s *PutVoiceConnectorTerminationInput) SetTermination(v *Termination) *PutVoiceConnectorTerminationInput { + s.Termination = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v + return s +} + +type PutVoiceConnectorTerminationOutput struct { + _ struct{} `type:"structure"` + + Termination *Termination `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutVoiceConnectorTerminationOutput) GoString() string { + return s.String() +} + +// SetTermination sets the Termination field's value. +func (s *PutVoiceConnectorTerminationOutput) SetTermination(v *Termination) *PutVoiceConnectorTerminationOutput { + s.Termination = v + return s +} + +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s *ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s *ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceLimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceLimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +type RestorePhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by RestorePhoneNumberInput's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestorePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestorePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestorePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestorePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *RestorePhoneNumberInput) SetPhoneNumberId(v string) *RestorePhoneNumberInput { + s.PhoneNumberId = &v + return s +} + +type RestorePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + PhoneNumber *PhoneNumber `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestorePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestorePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *RestorePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *RestorePhoneNumberOutput { + s.PhoneNumber = v + return s +} + +type SearchAvailablePhoneNumbersInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + AreaCode *string `location:"querystring" locationName:"area-code" type:"string"` + + City *string `location:"querystring" locationName:"city" type:"string"` + + Country *string `location:"querystring" locationName:"country" type:"string"` + + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + PhoneNumberType *string `location:"querystring" locationName:"phone-number-type" type:"string" enum:"PhoneNumberType"` + + State *string `location:"querystring" locationName:"state" type:"string"` + + TollFreePrefix *string `location:"querystring" locationName:"toll-free-prefix" min:"3" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchAvailablePhoneNumbersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchAvailablePhoneNumbersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchAvailablePhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchAvailablePhoneNumbersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.TollFreePrefix != nil && len(*s.TollFreePrefix) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TollFreePrefix", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAreaCode sets the AreaCode field's value. +func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput { + s.AreaCode = &v + return s +} + +// SetCity sets the City field's value. +func (s *SearchAvailablePhoneNumbersInput) SetCity(v string) *SearchAvailablePhoneNumbersInput { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *SearchAvailablePhoneNumbersInput) SetCountry(v string) *SearchAvailablePhoneNumbersInput { + s.Country = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchAvailablePhoneNumbersInput) SetMaxResults(v int64) *SearchAvailablePhoneNumbersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchAvailablePhoneNumbersInput) SetNextToken(v string) *SearchAvailablePhoneNumbersInput { + s.NextToken = &v + return s +} + +// SetPhoneNumberType sets the PhoneNumberType field's value. +func (s *SearchAvailablePhoneNumbersInput) SetPhoneNumberType(v string) *SearchAvailablePhoneNumbersInput { + s.PhoneNumberType = &v + return s +} + +// SetState sets the State field's value. +func (s *SearchAvailablePhoneNumbersInput) SetState(v string) *SearchAvailablePhoneNumbersInput { + s.State = &v + return s +} + +// SetTollFreePrefix sets the TollFreePrefix field's value. +func (s *SearchAvailablePhoneNumbersInput) SetTollFreePrefix(v string) *SearchAvailablePhoneNumbersInput { + s.TollFreePrefix = &v + return s +} + +type SearchAvailablePhoneNumbersOutput struct { + _ struct{} `type:"structure"` + + E164PhoneNumbers []*string `type:"list"` + + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchAvailablePhoneNumbersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchAvailablePhoneNumbersOutput) GoString() string { + return s.String() +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *SearchAvailablePhoneNumbersOutput) SetE164PhoneNumbers(v []*string) *SearchAvailablePhoneNumbersOutput { + s.E164PhoneNumbers = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchAvailablePhoneNumbersOutput) SetNextToken(v string) *SearchAvailablePhoneNumbersOutput { + s.NextToken = &v + return s +} + +type ServiceFailureException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceFailureException) GoString() string { + return s.String() +} + +func newErrorServiceFailureException(v protocol.ResponseMetadata) error { + return &ServiceFailureException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceFailureException) Code() string { + return "ServiceFailureException" +} + +// Message returns the exception's message. +func (s *ServiceFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceFailureException) OrigErr() error { + return nil +} + +func (s *ServiceFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceFailureException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceFailureException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s *ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s *ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceUnavailableException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceUnavailableException) RequestID() string { + return s.RespMetadata.RequestID +} + +type SipMediaApplication struct { + _ struct{} `type:"structure"` + + AwsRegion *string `type:"string"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` + + Name *string `min:"1" type:"string"` + + SipMediaApplicationId *string `type:"string"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplication) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplication) GoString() string { + return s.String() +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *SipMediaApplication) SetAwsRegion(v string) *SipMediaApplication { + s.AwsRegion = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SipMediaApplication) SetCreatedTimestamp(v time.Time) *SipMediaApplication { + s.CreatedTimestamp = &v + return s +} + +// SetEndpoints sets the Endpoints field's value. +func (s *SipMediaApplication) SetEndpoints(v []*SipMediaApplicationEndpoint) *SipMediaApplication { + s.Endpoints = v + return s +} + +// SetName sets the Name field's value. +func (s *SipMediaApplication) SetName(v string) *SipMediaApplication { + s.Name = &v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *SipMediaApplication) SetSipMediaApplicationId(v string) *SipMediaApplication { + s.SipMediaApplicationId = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *SipMediaApplication) SetUpdatedTimestamp(v time.Time) *SipMediaApplication { + s.UpdatedTimestamp = &v + return s +} + +type SipMediaApplicationAlexaSkillConfiguration struct { + _ struct{} `type:"structure"` + + // AlexaSkillIds is a required field + AlexaSkillIds []*string `min:"1" type:"list" required:"true"` + + // AlexaSkillStatus is a required field + AlexaSkillStatus *string `type:"string" required:"true" enum:"AlexaSkillStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationAlexaSkillConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationAlexaSkillConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SipMediaApplicationAlexaSkillConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SipMediaApplicationAlexaSkillConfiguration"} + if s.AlexaSkillIds == nil { + invalidParams.Add(request.NewErrParamRequired("AlexaSkillIds")) + } + if s.AlexaSkillIds != nil && len(s.AlexaSkillIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AlexaSkillIds", 1)) + } + if s.AlexaSkillStatus == nil { + invalidParams.Add(request.NewErrParamRequired("AlexaSkillStatus")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlexaSkillIds sets the AlexaSkillIds field's value. +func (s *SipMediaApplicationAlexaSkillConfiguration) SetAlexaSkillIds(v []*string) *SipMediaApplicationAlexaSkillConfiguration { + s.AlexaSkillIds = v + return s +} + +// SetAlexaSkillStatus sets the AlexaSkillStatus field's value. +func (s *SipMediaApplicationAlexaSkillConfiguration) SetAlexaSkillStatus(v string) *SipMediaApplicationAlexaSkillConfiguration { + s.AlexaSkillStatus = &v + return s +} + +type SipMediaApplicationCall struct { + _ struct{} `type:"structure"` + + TransactionId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationCall) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationCall) GoString() string { + return s.String() +} + +// SetTransactionId sets the TransactionId field's value. +func (s *SipMediaApplicationCall) SetTransactionId(v string) *SipMediaApplicationCall { + s.TransactionId = &v + return s +} + +type SipMediaApplicationEndpoint struct { + _ struct{} `type:"structure"` + + // LambdaArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SipMediaApplicationEndpoint's + // String and GoString methods. + LambdaArn *string `type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationEndpoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationEndpoint) GoString() string { + return s.String() +} + +// SetLambdaArn sets the LambdaArn field's value. +func (s *SipMediaApplicationEndpoint) SetLambdaArn(v string) *SipMediaApplicationEndpoint { + s.LambdaArn = &v + return s +} + +type SipMediaApplicationLoggingConfiguration struct { + _ struct{} `type:"structure"` + + EnableSipMediaApplicationMessageLogs *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationLoggingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipMediaApplicationLoggingConfiguration) GoString() string { + return s.String() +} + +// SetEnableSipMediaApplicationMessageLogs sets the EnableSipMediaApplicationMessageLogs field's value. +func (s *SipMediaApplicationLoggingConfiguration) SetEnableSipMediaApplicationMessageLogs(v bool) *SipMediaApplicationLoggingConfiguration { + s.EnableSipMediaApplicationMessageLogs = &v + return s +} + +type SipRule struct { + _ struct{} `type:"structure"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Disabled *bool `type:"boolean"` + + Name *string `min:"1" type:"string"` + + SipRuleId *string `type:"string"` + + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` + + TriggerType *string `type:"string" enum:"SipRuleTriggerType"` + + TriggerValue *string `type:"string"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipRule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipRule) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SipRule) SetCreatedTimestamp(v time.Time) *SipRule { + s.CreatedTimestamp = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *SipRule) SetDisabled(v bool) *SipRule { + s.Disabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *SipRule) SetName(v string) *SipRule { + s.Name = &v + return s +} + +// SetSipRuleId sets the SipRuleId field's value. +func (s *SipRule) SetSipRuleId(v string) *SipRule { + s.SipRuleId = &v + return s +} + +// SetTargetApplications sets the TargetApplications field's value. +func (s *SipRule) SetTargetApplications(v []*SipRuleTargetApplication) *SipRule { + s.TargetApplications = v + return s +} + +// SetTriggerType sets the TriggerType field's value. +func (s *SipRule) SetTriggerType(v string) *SipRule { + s.TriggerType = &v + return s +} + +// SetTriggerValue sets the TriggerValue field's value. +func (s *SipRule) SetTriggerValue(v string) *SipRule { + s.TriggerValue = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *SipRule) SetUpdatedTimestamp(v time.Time) *SipRule { + s.UpdatedTimestamp = &v + return s +} + +type SipRuleTargetApplication struct { + _ struct{} `type:"structure"` + + AwsRegion *string `type:"string"` + + Priority *int64 `min:"1" type:"integer"` + + SipMediaApplicationId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipRuleTargetApplication) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SipRuleTargetApplication) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SipRuleTargetApplication) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SipRuleTargetApplication"} + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *SipRuleTargetApplication) SetAwsRegion(v string) *SipRuleTargetApplication { + s.AwsRegion = &v + return s +} + +// SetPriority sets the Priority field's value. +func (s *SipRuleTargetApplication) SetPriority(v int64) *SipRuleTargetApplication { + s.Priority = &v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *SipRuleTargetApplication) SetSipMediaApplicationId(v string) *SipRuleTargetApplication { + s.SipMediaApplicationId = &v + return s +} + +type StreamingConfiguration struct { + _ struct{} `type:"structure"` + + // DataRetentionInHours is a required field + DataRetentionInHours *int64 `type:"integer" required:"true"` + + // Disabled is a required field + Disabled *bool `type:"boolean" required:"true"` + + StreamingNotificationTargets []*StreamingNotificationTarget `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StreamingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StreamingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StreamingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StreamingConfiguration"} + if s.DataRetentionInHours == nil { + invalidParams.Add(request.NewErrParamRequired("DataRetentionInHours")) + } + if s.Disabled == nil { + invalidParams.Add(request.NewErrParamRequired("Disabled")) + } + if s.StreamingNotificationTargets != nil && len(s.StreamingNotificationTargets) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamingNotificationTargets", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataRetentionInHours sets the DataRetentionInHours field's value. +func (s *StreamingConfiguration) SetDataRetentionInHours(v int64) *StreamingConfiguration { + s.DataRetentionInHours = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *StreamingConfiguration) SetDisabled(v bool) *StreamingConfiguration { + s.Disabled = &v + return s +} + +// SetStreamingNotificationTargets sets the StreamingNotificationTargets field's value. +func (s *StreamingConfiguration) SetStreamingNotificationTargets(v []*StreamingNotificationTarget) *StreamingConfiguration { + s.StreamingNotificationTargets = v + return s +} + +type StreamingNotificationTarget struct { + _ struct{} `type:"structure"` + + NotificationTarget *string `type:"string" enum:"NotificationTarget"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StreamingNotificationTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StreamingNotificationTarget) GoString() string { + return s.String() +} + +// SetNotificationTarget sets the NotificationTarget field's value. +func (s *StreamingNotificationTarget) SetNotificationTarget(v string) *StreamingNotificationTarget { + s.NotificationTarget = &v + return s +} + +type Termination struct { + _ struct{} `type:"structure"` + + CallingRegions []*string `type:"list"` + + CidrAllowedList []*string `type:"list"` + + CpsLimit *int64 `min:"1" type:"integer"` + + // DefaultPhoneNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Termination's + // String and GoString methods. + DefaultPhoneNumber *string `type:"string" sensitive:"true"` + + Disabled *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Termination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Termination) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Termination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Termination"} + if s.CpsLimit != nil && *s.CpsLimit < 1 { + invalidParams.Add(request.NewErrParamMinValue("CpsLimit", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingRegions sets the CallingRegions field's value. +func (s *Termination) SetCallingRegions(v []*string) *Termination { + s.CallingRegions = v + return s +} + +// SetCidrAllowedList sets the CidrAllowedList field's value. +func (s *Termination) SetCidrAllowedList(v []*string) *Termination { + s.CidrAllowedList = v + return s +} + +// SetCpsLimit sets the CpsLimit field's value. +func (s *Termination) SetCpsLimit(v int64) *Termination { + s.CpsLimit = &v + return s +} + +// SetDefaultPhoneNumber sets the DefaultPhoneNumber field's value. +func (s *Termination) SetDefaultPhoneNumber(v string) *Termination { + s.DefaultPhoneNumber = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *Termination) SetDisabled(v bool) *Termination { + s.Disabled = &v + return s +} + +type TerminationHealth struct { + _ struct{} `type:"structure"` + + Source *string `type:"string"` + + Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TerminationHealth) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TerminationHealth) GoString() string { + return s.String() +} + +// SetSource sets the Source field's value. +func (s *TerminationHealth) SetSource(v string) *TerminationHealth { + s.Source = &v + return s +} + +// SetTimestamp sets the Timestamp field's value. +func (s *TerminationHealth) SetTimestamp(v time.Time) *TerminationHealth { + s.Timestamp = &v + return s +} + +type ThrottledClientException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThrottledClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThrottledClientException) GoString() string { + return s.String() +} + +func newErrorThrottledClientException(v protocol.ResponseMetadata) error { + return &ThrottledClientException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ThrottledClientException) Code() string { + return "ThrottledClientException" +} + +// Message returns the exception's message. +func (s *ThrottledClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottledClientException) OrigErr() error { + return nil +} + +func (s *ThrottledClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ThrottledClientException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ThrottledClientException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UnauthorizedClientException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnauthorizedClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UnauthorizedClientException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { + return &UnauthorizedClientException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnauthorizedClientException) Code() string { + return "UnauthorizedClientException" +} + +// Message returns the exception's message. +func (s *UnauthorizedClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnauthorizedClientException) OrigErr() error { + return nil +} + +func (s *UnauthorizedClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *UnauthorizedClientException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnauthorizedClientException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UpdateGlobalSettingsInput struct { + _ struct{} `type:"structure"` + + VoiceConnector *VoiceConnectorSettings `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGlobalSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGlobalSettingsInput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *UpdateGlobalSettingsInput) SetVoiceConnector(v *VoiceConnectorSettings) *UpdateGlobalSettingsInput { + s.VoiceConnector = v + return s +} + +type UpdateGlobalSettingsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGlobalSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGlobalSettingsOutput) GoString() string { + return s.String() +} + +type UpdatePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberInput's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberInput's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true" sensitive:"true"` + + ProductType *string `type:"string" enum:"PhoneNumberProductType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdatePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberInput) SetCallingName(v string) *UpdatePhoneNumberInput { + s.CallingName = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *UpdatePhoneNumberInput) SetPhoneNumberId(v string) *UpdatePhoneNumberInput { + s.PhoneNumberId = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *UpdatePhoneNumberInput) SetProductType(v string) *UpdatePhoneNumberInput { + s.ProductType = &v + return s +} + +type UpdatePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + PhoneNumber *PhoneNumber `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *UpdatePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *UpdatePhoneNumberOutput { + s.PhoneNumber = v + return s +} + +type UpdatePhoneNumberRequestItem struct { + _ struct{} `type:"structure"` + + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberRequestItem's + // String and GoString methods. + CallingName *string `type:"string" sensitive:"true"` + + // PhoneNumberId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberRequestItem's + // String and GoString methods. + // PhoneNumberId is a required field + PhoneNumberId *string `type:"string" required:"true" sensitive:"true"` + + ProductType *string `type:"string" enum:"PhoneNumberProductType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberRequestItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberRequestItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdatePhoneNumberRequestItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberRequestItem"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberRequestItem) SetCallingName(v string) *UpdatePhoneNumberRequestItem { + s.CallingName = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *UpdatePhoneNumberRequestItem) SetPhoneNumberId(v string) *UpdatePhoneNumberRequestItem { + s.PhoneNumberId = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *UpdatePhoneNumberRequestItem) SetProductType(v string) *UpdatePhoneNumberRequestItem { + s.ProductType = &v + return s +} + +type UpdatePhoneNumberSettingsInput struct { + _ struct{} `type:"structure"` + + // CallingName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdatePhoneNumberSettingsInput's + // String and GoString methods. + // CallingName is a required field + CallingName *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdatePhoneNumberSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberSettingsInput"} + if s.CallingName == nil { + invalidParams.Add(request.NewErrParamRequired("CallingName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingName sets the CallingName field's value. +func (s *UpdatePhoneNumberSettingsInput) SetCallingName(v string) *UpdatePhoneNumberSettingsInput { + s.CallingName = &v + return s +} + +type UpdatePhoneNumberSettingsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdatePhoneNumberSettingsOutput) GoString() string { + return s.String() +} + +type UpdateProxySessionInput struct { + _ struct{} `type:"structure"` + + // Capabilities is a required field + Capabilities []*string `type:"list" required:"true" enum:"Capability"` + + ExpiryMinutes *int64 `min:"1" type:"integer"` + + // ProxySessionId is a required field + ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateProxySessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateProxySessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateProxySessionInput"} + if s.Capabilities == nil { + invalidParams.Add(request.NewErrParamRequired("Capabilities")) + } + if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { + invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) + } + if s.ProxySessionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) + } + if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapabilities sets the Capabilities field's value. +func (s *UpdateProxySessionInput) SetCapabilities(v []*string) *UpdateProxySessionInput { + s.Capabilities = v + return s +} + +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *UpdateProxySessionInput) SetExpiryMinutes(v int64) *UpdateProxySessionInput { + s.ExpiryMinutes = &v + return s +} + +// SetProxySessionId sets the ProxySessionId field's value. +func (s *UpdateProxySessionInput) SetProxySessionId(v string) *UpdateProxySessionInput { + s.ProxySessionId = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *UpdateProxySessionInput) SetVoiceConnectorId(v string) *UpdateProxySessionInput { + s.VoiceConnectorId = &v + return s +} + +type UpdateProxySessionOutput struct { + _ struct{} `type:"structure"` + + ProxySession *ProxySession `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateProxySessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateProxySessionOutput) GoString() string { + return s.String() +} + +// SetProxySession sets the ProxySession field's value. +func (s *UpdateProxySessionOutput) SetProxySession(v *ProxySession) *UpdateProxySessionOutput { + s.ProxySession = v + return s +} + +type UpdateSipMediaApplicationCallInput struct { + _ struct{} `type:"structure"` + + // Arguments is a required field + Arguments map[string]*string `type:"map" required:"true"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + + // TransactionId is a required field + TransactionId *string `location:"uri" locationName:"transactionId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationCallInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationCallInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSipMediaApplicationCallInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSipMediaApplicationCallInput"} + if s.Arguments == nil { + invalidParams.Add(request.NewErrParamRequired("Arguments")) + } + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + if s.TransactionId == nil { + invalidParams.Add(request.NewErrParamRequired("TransactionId")) + } + if s.TransactionId != nil && len(*s.TransactionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TransactionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArguments sets the Arguments field's value. +func (s *UpdateSipMediaApplicationCallInput) SetArguments(v map[string]*string) *UpdateSipMediaApplicationCallInput { + s.Arguments = v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *UpdateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *UpdateSipMediaApplicationCallInput { + s.SipMediaApplicationId = &v + return s +} + +// SetTransactionId sets the TransactionId field's value. +func (s *UpdateSipMediaApplicationCallInput) SetTransactionId(v string) *UpdateSipMediaApplicationCallInput { + s.TransactionId = &v + return s +} + +type UpdateSipMediaApplicationCallOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationCallOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationCallOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. +func (s *UpdateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *UpdateSipMediaApplicationCallOutput { + s.SipMediaApplicationCall = v + return s +} + +type UpdateSipMediaApplicationInput struct { + _ struct{} `type:"structure"` + + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` + + Name *string `min:"1" type:"string"` + + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSipMediaApplicationInput"} + if s.Endpoints != nil && len(s.Endpoints) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpoints sets the Endpoints field's value. +func (s *UpdateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *UpdateSipMediaApplicationInput { + s.Endpoints = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateSipMediaApplicationInput) SetName(v string) *UpdateSipMediaApplicationInput { + s.Name = &v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *UpdateSipMediaApplicationInput) SetSipMediaApplicationId(v string) *UpdateSipMediaApplicationInput { + s.SipMediaApplicationId = &v + return s +} + +type UpdateSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` + + SipMediaApplication *SipMediaApplication `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipMediaApplicationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *UpdateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *UpdateSipMediaApplicationOutput { + s.SipMediaApplication = v + return s +} + +type UpdateSipRuleInput struct { + _ struct{} `type:"structure"` + + Disabled *bool `type:"boolean"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` + + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSipRuleInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) + } + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + } + if s.TargetApplications != nil && len(s.TargetApplications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) + } + if s.TargetApplications != nil { + for i, v := range s.TargetApplications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisabled sets the Disabled field's value. +func (s *UpdateSipRuleInput) SetDisabled(v bool) *UpdateSipRuleInput { + s.Disabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateSipRuleInput) SetName(v string) *UpdateSipRuleInput { + s.Name = &v + return s +} + +// SetSipRuleId sets the SipRuleId field's value. +func (s *UpdateSipRuleInput) SetSipRuleId(v string) *UpdateSipRuleInput { + s.SipRuleId = &v + return s +} + +// SetTargetApplications sets the TargetApplications field's value. +func (s *UpdateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *UpdateSipRuleInput { + s.TargetApplications = v + return s +} + +type UpdateSipRuleOutput struct { + _ struct{} `type:"structure"` + + SipRule *SipRule `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSipRuleOutput) GoString() string { + return s.String() +} + +// SetSipRule sets the SipRule field's value. +func (s *UpdateSipRuleOutput) SetSipRule(v *SipRule) *UpdateSipRuleOutput { + s.SipRule = v + return s +} + +type UpdateVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + + // VoiceConnectorItems is a required field + VoiceConnectorItems []*VoiceConnectorItem `type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceConnectorGroupInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + if s.VoiceConnectorItems == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorItems")) + } + if s.VoiceConnectorItems != nil { + for i, v := range s.VoiceConnectorItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VoiceConnectorItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *UpdateVoiceConnectorGroupInput) SetName(v string) *UpdateVoiceConnectorGroupInput { + s.Name = &v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *UpdateVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *UpdateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *UpdateVoiceConnectorGroupInput { + s.VoiceConnectorItems = v + return s +} + +type UpdateVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *UpdateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *UpdateVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v + return s +} + +type UpdateVoiceConnectorInput struct { + _ struct{} `type:"structure"` + + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // RequireEncryption is a required field + RequireEncryption *bool `type:"boolean" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateVoiceConnectorInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.RequireEncryption == nil { + invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *UpdateVoiceConnectorInput) SetName(v string) *UpdateVoiceConnectorInput { + s.Name = &v + return s +} + +// SetRequireEncryption sets the RequireEncryption field's value. +func (s *UpdateVoiceConnectorInput) SetRequireEncryption(v bool) *UpdateVoiceConnectorInput { + s.RequireEncryption = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *UpdateVoiceConnectorInput) SetVoiceConnectorId(v string) *UpdateVoiceConnectorInput { + s.VoiceConnectorId = &v + return s +} + +type UpdateVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + VoiceConnector *VoiceConnector `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *UpdateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *UpdateVoiceConnectorOutput { + s.VoiceConnector = v + return s +} + +type ValidateE911AddressInput struct { + _ struct{} `type:"structure"` + + // AwsAccountId is a required field + AwsAccountId *string `type:"string" required:"true"` + + // City is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // City is a required field + City *string `type:"string" required:"true" sensitive:"true"` + + // Country is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // Country is a required field + Country *string `type:"string" required:"true" sensitive:"true"` + + // PostalCode is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // PostalCode is a required field + PostalCode *string `type:"string" required:"true" sensitive:"true"` + + // State is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // State is a required field + State *string `type:"string" required:"true" sensitive:"true"` + + // StreetInfo is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // StreetInfo is a required field + StreetInfo *string `type:"string" required:"true" sensitive:"true"` + + // StreetNumber is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ValidateE911AddressInput's + // String and GoString methods. + // StreetNumber is a required field + StreetNumber *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidateE911AddressInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidateE911AddressInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ValidateE911AddressInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ValidateE911AddressInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.City == nil { + invalidParams.Add(request.NewErrParamRequired("City")) + } + if s.Country == nil { + invalidParams.Add(request.NewErrParamRequired("Country")) + } + if s.PostalCode == nil { + invalidParams.Add(request.NewErrParamRequired("PostalCode")) + } + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + if s.StreetInfo == nil { + invalidParams.Add(request.NewErrParamRequired("StreetInfo")) + } + if s.StreetNumber == nil { + invalidParams.Add(request.NewErrParamRequired("StreetNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *ValidateE911AddressInput) SetAwsAccountId(v string) *ValidateE911AddressInput { + s.AwsAccountId = &v + return s +} + +// SetCity sets the City field's value. +func (s *ValidateE911AddressInput) SetCity(v string) *ValidateE911AddressInput { + s.City = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *ValidateE911AddressInput) SetCountry(v string) *ValidateE911AddressInput { + s.Country = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *ValidateE911AddressInput) SetPostalCode(v string) *ValidateE911AddressInput { + s.PostalCode = &v + return s +} + +// SetState sets the State field's value. +func (s *ValidateE911AddressInput) SetState(v string) *ValidateE911AddressInput { + s.State = &v + return s +} + +// SetStreetInfo sets the StreetInfo field's value. +func (s *ValidateE911AddressInput) SetStreetInfo(v string) *ValidateE911AddressInput { + s.StreetInfo = &v + return s +} + +// SetStreetNumber sets the StreetNumber field's value. +func (s *ValidateE911AddressInput) SetStreetNumber(v string) *ValidateE911AddressInput { + s.StreetNumber = &v + return s +} + +type ValidateE911AddressOutput struct { + _ struct{} `type:"structure"` + + Address *Address `type:"structure"` + + AddressExternalId *string `type:"string"` + + CandidateAddressList []*CandidateAddress `type:"list"` + + ValidationResult *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidateE911AddressOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidateE911AddressOutput) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *ValidateE911AddressOutput) SetAddress(v *Address) *ValidateE911AddressOutput { + s.Address = v + return s +} + +// SetAddressExternalId sets the AddressExternalId field's value. +func (s *ValidateE911AddressOutput) SetAddressExternalId(v string) *ValidateE911AddressOutput { + s.AddressExternalId = &v + return s +} + +// SetCandidateAddressList sets the CandidateAddressList field's value. +func (s *ValidateE911AddressOutput) SetCandidateAddressList(v []*CandidateAddress) *ValidateE911AddressOutput { + s.CandidateAddressList = v + return s +} + +// SetValidationResult sets the ValidationResult field's value. +func (s *ValidateE911AddressOutput) SetValidationResult(v int64) *ValidateE911AddressOutput { + s.ValidationResult = &v + return s +} + +type VoiceConnector struct { + _ struct{} `type:"structure"` + + AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Name *string `min:"1" type:"string"` + + OutboundHostName *string `type:"string"` + + RequireEncryption *bool `type:"boolean"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + VoiceConnectorArn *string `type:"string"` + + VoiceConnectorId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnector) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnector) GoString() string { + return s.String() +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *VoiceConnector) SetAwsRegion(v string) *VoiceConnector { + s.AwsRegion = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceConnector) SetCreatedTimestamp(v time.Time) *VoiceConnector { + s.CreatedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *VoiceConnector) SetName(v string) *VoiceConnector { + s.Name = &v + return s +} + +// SetOutboundHostName sets the OutboundHostName field's value. +func (s *VoiceConnector) SetOutboundHostName(v string) *VoiceConnector { + s.OutboundHostName = &v + return s +} + +// SetRequireEncryption sets the RequireEncryption field's value. +func (s *VoiceConnector) SetRequireEncryption(v bool) *VoiceConnector { + s.RequireEncryption = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceConnector) SetUpdatedTimestamp(v time.Time) *VoiceConnector { + s.UpdatedTimestamp = &v + return s +} + +// SetVoiceConnectorArn sets the VoiceConnectorArn field's value. +func (s *VoiceConnector) SetVoiceConnectorArn(v string) *VoiceConnector { + s.VoiceConnectorArn = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *VoiceConnector) SetVoiceConnectorId(v string) *VoiceConnector { + s.VoiceConnectorId = &v + return s +} + +type VoiceConnectorGroup struct { + _ struct{} `type:"structure"` + + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + Name *string `min:"1" type:"string"` + + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + VoiceConnectorGroupArn *string `type:"string"` + + VoiceConnectorGroupId *string `type:"string"` + + VoiceConnectorItems []*VoiceConnectorItem `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorGroup) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *VoiceConnectorGroup) SetCreatedTimestamp(v time.Time) *VoiceConnectorGroup { + s.CreatedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *VoiceConnectorGroup) SetName(v string) *VoiceConnectorGroup { + s.Name = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *VoiceConnectorGroup) SetUpdatedTimestamp(v time.Time) *VoiceConnectorGroup { + s.UpdatedTimestamp = &v + return s +} + +// SetVoiceConnectorGroupArn sets the VoiceConnectorGroupArn field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorGroupArn(v string) *VoiceConnectorGroup { + s.VoiceConnectorGroupArn = &v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorGroupId(v string) *VoiceConnectorGroup { + s.VoiceConnectorGroupId = &v + return s +} + +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *VoiceConnectorGroup) SetVoiceConnectorItems(v []*VoiceConnectorItem) *VoiceConnectorGroup { + s.VoiceConnectorItems = v + return s +} + +type VoiceConnectorItem struct { + _ struct{} `type:"structure"` + + // Priority is a required field + Priority *int64 `min:"1" type:"integer" required:"true"` + + // VoiceConnectorId is a required field + VoiceConnectorId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VoiceConnectorItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VoiceConnectorItem"} + if s.Priority == nil { + invalidParams.Add(request.NewErrParamRequired("Priority")) + } + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPriority sets the Priority field's value. +func (s *VoiceConnectorItem) SetPriority(v int64) *VoiceConnectorItem { + s.Priority = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *VoiceConnectorItem) SetVoiceConnectorId(v string) *VoiceConnectorItem { + s.VoiceConnectorId = &v + return s +} + +type VoiceConnectorSettings struct { + _ struct{} `type:"structure"` + + CdrBucket *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VoiceConnectorSettings) GoString() string { + return s.String() +} + +// SetCdrBucket sets the CdrBucket field's value. +func (s *VoiceConnectorSettings) SetCdrBucket(v string) *VoiceConnectorSettings { + s.CdrBucket = &v + return s +} + +const ( + // AlexaSkillStatusActive is a AlexaSkillStatus enum value + AlexaSkillStatusActive = "ACTIVE" + + // AlexaSkillStatusInactive is a AlexaSkillStatus enum value + AlexaSkillStatusInactive = "INACTIVE" +) + +// AlexaSkillStatus_Values returns all elements of the AlexaSkillStatus enum +func AlexaSkillStatus_Values() []string { + return []string{ + AlexaSkillStatusActive, + AlexaSkillStatusInactive, + } +} + +const ( + // CallingNameStatusUnassigned is a CallingNameStatus enum value + CallingNameStatusUnassigned = "Unassigned" + + // CallingNameStatusUpdateInProgress is a CallingNameStatus enum value + CallingNameStatusUpdateInProgress = "UpdateInProgress" + + // CallingNameStatusUpdateSucceeded is a CallingNameStatus enum value + CallingNameStatusUpdateSucceeded = "UpdateSucceeded" + + // CallingNameStatusUpdateFailed is a CallingNameStatus enum value + CallingNameStatusUpdateFailed = "UpdateFailed" +) + +// CallingNameStatus_Values returns all elements of the CallingNameStatus enum +func CallingNameStatus_Values() []string { + return []string{ + CallingNameStatusUnassigned, + CallingNameStatusUpdateInProgress, + CallingNameStatusUpdateSucceeded, + CallingNameStatusUpdateFailed, + } +} + +const ( + // CapabilityVoice is a Capability enum value + CapabilityVoice = "Voice" + + // CapabilitySms is a Capability enum value + CapabilitySms = "SMS" +) + +// Capability_Values returns all elements of the Capability enum +func Capability_Values() []string { + return []string{ + CapabilityVoice, + CapabilitySms, + } +} + +const ( + // ErrorCodeBadRequest is a ErrorCode enum value + ErrorCodeBadRequest = "BadRequest" + + // ErrorCodeConflict is a ErrorCode enum value + ErrorCodeConflict = "Conflict" + + // ErrorCodeForbidden is a ErrorCode enum value + ErrorCodeForbidden = "Forbidden" + + // ErrorCodeNotFound is a ErrorCode enum value + ErrorCodeNotFound = "NotFound" + + // ErrorCodePreconditionFailed is a ErrorCode enum value + ErrorCodePreconditionFailed = "PreconditionFailed" + + // ErrorCodeResourceLimitExceeded is a ErrorCode enum value + ErrorCodeResourceLimitExceeded = "ResourceLimitExceeded" + + // ErrorCodeServiceFailure is a ErrorCode enum value + ErrorCodeServiceFailure = "ServiceFailure" + + // ErrorCodeAccessDenied is a ErrorCode enum value + ErrorCodeAccessDenied = "AccessDenied" + + // ErrorCodeServiceUnavailable is a ErrorCode enum value + ErrorCodeServiceUnavailable = "ServiceUnavailable" + + // ErrorCodeThrottled is a ErrorCode enum value + ErrorCodeThrottled = "Throttled" + + // ErrorCodeThrottling is a ErrorCode enum value + ErrorCodeThrottling = "Throttling" + + // ErrorCodeUnauthorized is a ErrorCode enum value + ErrorCodeUnauthorized = "Unauthorized" + + // ErrorCodeUnprocessable is a ErrorCode enum value + ErrorCodeUnprocessable = "Unprocessable" + + // ErrorCodeVoiceConnectorGroupAssociationsExist is a ErrorCode enum value + ErrorCodeVoiceConnectorGroupAssociationsExist = "VoiceConnectorGroupAssociationsExist" + + // ErrorCodePhoneNumberAssociationsExist is a ErrorCode enum value + ErrorCodePhoneNumberAssociationsExist = "PhoneNumberAssociationsExist" + + // ErrorCodeGone is a ErrorCode enum value + ErrorCodeGone = "Gone" +) + +// ErrorCode_Values returns all elements of the ErrorCode enum +func ErrorCode_Values() []string { + return []string{ + ErrorCodeBadRequest, + ErrorCodeConflict, + ErrorCodeForbidden, + ErrorCodeNotFound, + ErrorCodePreconditionFailed, + ErrorCodeResourceLimitExceeded, + ErrorCodeServiceFailure, + ErrorCodeAccessDenied, + ErrorCodeServiceUnavailable, + ErrorCodeThrottled, + ErrorCodeThrottling, + ErrorCodeUnauthorized, + ErrorCodeUnprocessable, + ErrorCodeVoiceConnectorGroupAssociationsExist, + ErrorCodePhoneNumberAssociationsExist, + ErrorCodeGone, + } +} + +const ( + // GeoMatchLevelCountry is a GeoMatchLevel enum value + GeoMatchLevelCountry = "Country" + + // GeoMatchLevelAreaCode is a GeoMatchLevel enum value + GeoMatchLevelAreaCode = "AreaCode" +) + +// GeoMatchLevel_Values returns all elements of the GeoMatchLevel enum +func GeoMatchLevel_Values() []string { + return []string{ + GeoMatchLevelCountry, + GeoMatchLevelAreaCode, + } +} + +const ( + // NotificationTargetEventBridge is a NotificationTarget enum value + NotificationTargetEventBridge = "EventBridge" + + // NotificationTargetSns is a NotificationTarget enum value + NotificationTargetSns = "SNS" + + // NotificationTargetSqs is a NotificationTarget enum value + NotificationTargetSqs = "SQS" +) + +// NotificationTarget_Values returns all elements of the NotificationTarget enum +func NotificationTarget_Values() []string { + return []string{ + NotificationTargetEventBridge, + NotificationTargetSns, + NotificationTargetSqs, + } +} + +const ( + // NumberSelectionBehaviorPreferSticky is a NumberSelectionBehavior enum value + NumberSelectionBehaviorPreferSticky = "PreferSticky" + + // NumberSelectionBehaviorAvoidSticky is a NumberSelectionBehavior enum value + NumberSelectionBehaviorAvoidSticky = "AvoidSticky" +) + +// NumberSelectionBehavior_Values returns all elements of the NumberSelectionBehavior enum +func NumberSelectionBehavior_Values() []string { + return []string{ + NumberSelectionBehaviorPreferSticky, + NumberSelectionBehaviorAvoidSticky, + } +} + +const ( + // OrderedPhoneNumberStatusProcessing is a OrderedPhoneNumberStatus enum value + OrderedPhoneNumberStatusProcessing = "Processing" + + // OrderedPhoneNumberStatusAcquired is a OrderedPhoneNumberStatus enum value + OrderedPhoneNumberStatusAcquired = "Acquired" + + // OrderedPhoneNumberStatusFailed is a OrderedPhoneNumberStatus enum value + OrderedPhoneNumberStatusFailed = "Failed" +) + +// OrderedPhoneNumberStatus_Values returns all elements of the OrderedPhoneNumberStatus enum +func OrderedPhoneNumberStatus_Values() []string { + return []string{ + OrderedPhoneNumberStatusProcessing, + OrderedPhoneNumberStatusAcquired, + OrderedPhoneNumberStatusFailed, + } +} + +const ( + // OriginationRouteProtocolTcp is a OriginationRouteProtocol enum value + OriginationRouteProtocolTcp = "TCP" + + // OriginationRouteProtocolUdp is a OriginationRouteProtocol enum value + OriginationRouteProtocolUdp = "UDP" +) + +// OriginationRouteProtocol_Values returns all elements of the OriginationRouteProtocol enum +func OriginationRouteProtocol_Values() []string { + return []string{ + OriginationRouteProtocolTcp, + OriginationRouteProtocolUdp, + } +} + +const ( + // PhoneNumberAssociationNameVoiceConnectorId is a PhoneNumberAssociationName enum value + PhoneNumberAssociationNameVoiceConnectorId = "VoiceConnectorId" + + // PhoneNumberAssociationNameVoiceConnectorGroupId is a PhoneNumberAssociationName enum value + PhoneNumberAssociationNameVoiceConnectorGroupId = "VoiceConnectorGroupId" + + // PhoneNumberAssociationNameSipRuleId is a PhoneNumberAssociationName enum value + PhoneNumberAssociationNameSipRuleId = "SipRuleId" +) + +// PhoneNumberAssociationName_Values returns all elements of the PhoneNumberAssociationName enum +func PhoneNumberAssociationName_Values() []string { + return []string{ + PhoneNumberAssociationNameVoiceConnectorId, + PhoneNumberAssociationNameVoiceConnectorGroupId, + PhoneNumberAssociationNameSipRuleId, + } +} + +const ( + // PhoneNumberOrderStatusProcessing is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusProcessing = "Processing" + + // PhoneNumberOrderStatusSuccessful is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusSuccessful = "Successful" + + // PhoneNumberOrderStatusFailed is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusFailed = "Failed" + + // PhoneNumberOrderStatusPartial is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusPartial = "Partial" + + // PhoneNumberOrderStatusPendingDocuments is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusPendingDocuments = "PendingDocuments" + + // PhoneNumberOrderStatusSubmitted is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusSubmitted = "Submitted" + + // PhoneNumberOrderStatusFoc is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusFoc = "FOC" + + // PhoneNumberOrderStatusChangeRequested is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusChangeRequested = "ChangeRequested" + + // PhoneNumberOrderStatusException is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusException = "Exception" + + // PhoneNumberOrderStatusCancelRequested is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusCancelRequested = "CancelRequested" + + // PhoneNumberOrderStatusCancelled is a PhoneNumberOrderStatus enum value + PhoneNumberOrderStatusCancelled = "Cancelled" +) + +// PhoneNumberOrderStatus_Values returns all elements of the PhoneNumberOrderStatus enum +func PhoneNumberOrderStatus_Values() []string { + return []string{ + PhoneNumberOrderStatusProcessing, + PhoneNumberOrderStatusSuccessful, + PhoneNumberOrderStatusFailed, + PhoneNumberOrderStatusPartial, + PhoneNumberOrderStatusPendingDocuments, + PhoneNumberOrderStatusSubmitted, + PhoneNumberOrderStatusFoc, + PhoneNumberOrderStatusChangeRequested, + PhoneNumberOrderStatusException, + PhoneNumberOrderStatusCancelRequested, + PhoneNumberOrderStatusCancelled, + } +} + +const ( + // PhoneNumberOrderTypeNew is a PhoneNumberOrderType enum value + PhoneNumberOrderTypeNew = "New" + + // PhoneNumberOrderTypePorting is a PhoneNumberOrderType enum value + PhoneNumberOrderTypePorting = "Porting" +) + +// PhoneNumberOrderType_Values returns all elements of the PhoneNumberOrderType enum +func PhoneNumberOrderType_Values() []string { + return []string{ + PhoneNumberOrderTypeNew, + PhoneNumberOrderTypePorting, + } +} + +const ( + // PhoneNumberProductTypeVoiceConnector is a PhoneNumberProductType enum value + PhoneNumberProductTypeVoiceConnector = "VoiceConnector" + + // PhoneNumberProductTypeSipMediaApplicationDialIn is a PhoneNumberProductType enum value + PhoneNumberProductTypeSipMediaApplicationDialIn = "SipMediaApplicationDialIn" +) + +// PhoneNumberProductType_Values returns all elements of the PhoneNumberProductType enum +func PhoneNumberProductType_Values() []string { + return []string{ + PhoneNumberProductTypeVoiceConnector, + PhoneNumberProductTypeSipMediaApplicationDialIn, + } +} + +const ( + // PhoneNumberStatusCancelled is a PhoneNumberStatus enum value + PhoneNumberStatusCancelled = "Cancelled" + + // PhoneNumberStatusPortinCancelRequested is a PhoneNumberStatus enum value + PhoneNumberStatusPortinCancelRequested = "PortinCancelRequested" + + // PhoneNumberStatusPortinInProgress is a PhoneNumberStatus enum value + PhoneNumberStatusPortinInProgress = "PortinInProgress" + + // PhoneNumberStatusAcquireInProgress is a PhoneNumberStatus enum value + PhoneNumberStatusAcquireInProgress = "AcquireInProgress" + + // PhoneNumberStatusAcquireFailed is a PhoneNumberStatus enum value + PhoneNumberStatusAcquireFailed = "AcquireFailed" + + // PhoneNumberStatusUnassigned is a PhoneNumberStatus enum value + PhoneNumberStatusUnassigned = "Unassigned" + + // PhoneNumberStatusAssigned is a PhoneNumberStatus enum value + PhoneNumberStatusAssigned = "Assigned" + + // PhoneNumberStatusReleaseInProgress is a PhoneNumberStatus enum value + PhoneNumberStatusReleaseInProgress = "ReleaseInProgress" + + // PhoneNumberStatusDeleteInProgress is a PhoneNumberStatus enum value + PhoneNumberStatusDeleteInProgress = "DeleteInProgress" + + // PhoneNumberStatusReleaseFailed is a PhoneNumberStatus enum value + PhoneNumberStatusReleaseFailed = "ReleaseFailed" + + // PhoneNumberStatusDeleteFailed is a PhoneNumberStatus enum value + PhoneNumberStatusDeleteFailed = "DeleteFailed" +) + +// PhoneNumberStatus_Values returns all elements of the PhoneNumberStatus enum +func PhoneNumberStatus_Values() []string { + return []string{ + PhoneNumberStatusCancelled, + PhoneNumberStatusPortinCancelRequested, + PhoneNumberStatusPortinInProgress, + PhoneNumberStatusAcquireInProgress, + PhoneNumberStatusAcquireFailed, + PhoneNumberStatusUnassigned, + PhoneNumberStatusAssigned, + PhoneNumberStatusReleaseInProgress, + PhoneNumberStatusDeleteInProgress, + PhoneNumberStatusReleaseFailed, + PhoneNumberStatusDeleteFailed, + } +} + +const ( + // PhoneNumberTypeLocal is a PhoneNumberType enum value + PhoneNumberTypeLocal = "Local" + + // PhoneNumberTypeTollFree is a PhoneNumberType enum value + PhoneNumberTypeTollFree = "TollFree" +) + +// PhoneNumberType_Values returns all elements of the PhoneNumberType enum +func PhoneNumberType_Values() []string { + return []string{ + PhoneNumberTypeLocal, + PhoneNumberTypeTollFree, + } +} + +const ( + // ProxySessionStatusOpen is a ProxySessionStatus enum value + ProxySessionStatusOpen = "Open" + + // ProxySessionStatusInProgress is a ProxySessionStatus enum value + ProxySessionStatusInProgress = "InProgress" + + // ProxySessionStatusClosed is a ProxySessionStatus enum value + ProxySessionStatusClosed = "Closed" +) + +// ProxySessionStatus_Values returns all elements of the ProxySessionStatus enum +func ProxySessionStatus_Values() []string { + return []string{ + ProxySessionStatusOpen, + ProxySessionStatusInProgress, + ProxySessionStatusClosed, + } +} + +const ( + // SipRuleTriggerTypeToPhoneNumber is a SipRuleTriggerType enum value + SipRuleTriggerTypeToPhoneNumber = "ToPhoneNumber" + + // SipRuleTriggerTypeRequestUriHostname is a SipRuleTriggerType enum value + SipRuleTriggerTypeRequestUriHostname = "RequestUriHostname" +) + +// SipRuleTriggerType_Values returns all elements of the SipRuleTriggerType enum +func SipRuleTriggerType_Values() []string { + return []string{ + SipRuleTriggerTypeToPhoneNumber, + SipRuleTriggerTypeRequestUriHostname, + } +} + +const ( + // VoiceConnectorAwsRegionUsEast1 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionUsEast1 = "us-east-1" + + // VoiceConnectorAwsRegionUsWest2 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionUsWest2 = "us-west-2" + + // VoiceConnectorAwsRegionCaCentral1 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionCaCentral1 = "ca-central-1" + + // VoiceConnectorAwsRegionEuCentral1 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionEuCentral1 = "eu-central-1" + + // VoiceConnectorAwsRegionEuWest1 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionEuWest1 = "eu-west-1" + + // VoiceConnectorAwsRegionEuWest2 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionEuWest2 = "eu-west-2" + + // VoiceConnectorAwsRegionApNortheast2 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionApNortheast2 = "ap-northeast-2" + + // VoiceConnectorAwsRegionApNortheast1 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionApNortheast1 = "ap-northeast-1" + + // VoiceConnectorAwsRegionApSoutheast1 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionApSoutheast1 = "ap-southeast-1" + + // VoiceConnectorAwsRegionApSoutheast2 is a VoiceConnectorAwsRegion enum value + VoiceConnectorAwsRegionApSoutheast2 = "ap-southeast-2" +) + +// VoiceConnectorAwsRegion_Values returns all elements of the VoiceConnectorAwsRegion enum +func VoiceConnectorAwsRegion_Values() []string { + return []string{ + VoiceConnectorAwsRegionUsEast1, + VoiceConnectorAwsRegionUsWest2, + VoiceConnectorAwsRegionCaCentral1, + VoiceConnectorAwsRegionEuCentral1, + VoiceConnectorAwsRegionEuWest1, + VoiceConnectorAwsRegionEuWest2, + VoiceConnectorAwsRegionApNortheast2, + VoiceConnectorAwsRegionApNortheast1, + VoiceConnectorAwsRegionApSoutheast1, + VoiceConnectorAwsRegionApSoutheast2, + } +} diff --git a/service/chimesdkvoice/chimesdkvoiceiface/interface.go b/service/chimesdkvoice/chimesdkvoiceiface/interface.go new file mode 100644 index 0000000000..ca1ec2aeb9 --- /dev/null +++ b/service/chimesdkvoice/chimesdkvoiceiface/interface.go @@ -0,0 +1,384 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package chimesdkvoiceiface provides an interface to enable mocking the Amazon Chime SDK Voice service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package chimesdkvoiceiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/chimesdkvoice" +) + +// ChimeSDKVoiceAPI provides an interface to enable mocking the +// chimesdkvoice.ChimeSDKVoice service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Chime SDK Voice. +// func myFunc(svc chimesdkvoiceiface.ChimeSDKVoiceAPI) bool { +// // Make svc.AssociatePhoneNumbersWithVoiceConnector request +// } +// +// func main() { +// sess := session.New() +// svc := chimesdkvoice.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockChimeSDKVoiceClient struct { +// chimesdkvoiceiface.ChimeSDKVoiceAPI +// } +// func (m *mockChimeSDKVoiceClient) AssociatePhoneNumbersWithVoiceConnector(input *chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorInput) (*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockChimeSDKVoiceClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type ChimeSDKVoiceAPI interface { + AssociatePhoneNumbersWithVoiceConnector(*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorInput) (*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorOutput, error) + AssociatePhoneNumbersWithVoiceConnectorWithContext(aws.Context, *chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorInput, ...request.Option) (*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorOutput, error) + AssociatePhoneNumbersWithVoiceConnectorRequest(*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorInput) (*request.Request, *chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorOutput) + + AssociatePhoneNumbersWithVoiceConnectorGroup(*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) + AssociatePhoneNumbersWithVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorGroupOutput, error) + AssociatePhoneNumbersWithVoiceConnectorGroupRequest(*chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.AssociatePhoneNumbersWithVoiceConnectorGroupOutput) + + BatchDeletePhoneNumber(*chimesdkvoice.BatchDeletePhoneNumberInput) (*chimesdkvoice.BatchDeletePhoneNumberOutput, error) + BatchDeletePhoneNumberWithContext(aws.Context, *chimesdkvoice.BatchDeletePhoneNumberInput, ...request.Option) (*chimesdkvoice.BatchDeletePhoneNumberOutput, error) + BatchDeletePhoneNumberRequest(*chimesdkvoice.BatchDeletePhoneNumberInput) (*request.Request, *chimesdkvoice.BatchDeletePhoneNumberOutput) + + BatchUpdatePhoneNumber(*chimesdkvoice.BatchUpdatePhoneNumberInput) (*chimesdkvoice.BatchUpdatePhoneNumberOutput, error) + BatchUpdatePhoneNumberWithContext(aws.Context, *chimesdkvoice.BatchUpdatePhoneNumberInput, ...request.Option) (*chimesdkvoice.BatchUpdatePhoneNumberOutput, error) + BatchUpdatePhoneNumberRequest(*chimesdkvoice.BatchUpdatePhoneNumberInput) (*request.Request, *chimesdkvoice.BatchUpdatePhoneNumberOutput) + + CreatePhoneNumberOrder(*chimesdkvoice.CreatePhoneNumberOrderInput) (*chimesdkvoice.CreatePhoneNumberOrderOutput, error) + CreatePhoneNumberOrderWithContext(aws.Context, *chimesdkvoice.CreatePhoneNumberOrderInput, ...request.Option) (*chimesdkvoice.CreatePhoneNumberOrderOutput, error) + CreatePhoneNumberOrderRequest(*chimesdkvoice.CreatePhoneNumberOrderInput) (*request.Request, *chimesdkvoice.CreatePhoneNumberOrderOutput) + + CreateProxySession(*chimesdkvoice.CreateProxySessionInput) (*chimesdkvoice.CreateProxySessionOutput, error) + CreateProxySessionWithContext(aws.Context, *chimesdkvoice.CreateProxySessionInput, ...request.Option) (*chimesdkvoice.CreateProxySessionOutput, error) + CreateProxySessionRequest(*chimesdkvoice.CreateProxySessionInput) (*request.Request, *chimesdkvoice.CreateProxySessionOutput) + + CreateSipMediaApplication(*chimesdkvoice.CreateSipMediaApplicationInput) (*chimesdkvoice.CreateSipMediaApplicationOutput, error) + CreateSipMediaApplicationWithContext(aws.Context, *chimesdkvoice.CreateSipMediaApplicationInput, ...request.Option) (*chimesdkvoice.CreateSipMediaApplicationOutput, error) + CreateSipMediaApplicationRequest(*chimesdkvoice.CreateSipMediaApplicationInput) (*request.Request, *chimesdkvoice.CreateSipMediaApplicationOutput) + + CreateSipMediaApplicationCall(*chimesdkvoice.CreateSipMediaApplicationCallInput) (*chimesdkvoice.CreateSipMediaApplicationCallOutput, error) + CreateSipMediaApplicationCallWithContext(aws.Context, *chimesdkvoice.CreateSipMediaApplicationCallInput, ...request.Option) (*chimesdkvoice.CreateSipMediaApplicationCallOutput, error) + CreateSipMediaApplicationCallRequest(*chimesdkvoice.CreateSipMediaApplicationCallInput) (*request.Request, *chimesdkvoice.CreateSipMediaApplicationCallOutput) + + CreateSipRule(*chimesdkvoice.CreateSipRuleInput) (*chimesdkvoice.CreateSipRuleOutput, error) + CreateSipRuleWithContext(aws.Context, *chimesdkvoice.CreateSipRuleInput, ...request.Option) (*chimesdkvoice.CreateSipRuleOutput, error) + CreateSipRuleRequest(*chimesdkvoice.CreateSipRuleInput) (*request.Request, *chimesdkvoice.CreateSipRuleOutput) + + CreateVoiceConnector(*chimesdkvoice.CreateVoiceConnectorInput) (*chimesdkvoice.CreateVoiceConnectorOutput, error) + CreateVoiceConnectorWithContext(aws.Context, *chimesdkvoice.CreateVoiceConnectorInput, ...request.Option) (*chimesdkvoice.CreateVoiceConnectorOutput, error) + CreateVoiceConnectorRequest(*chimesdkvoice.CreateVoiceConnectorInput) (*request.Request, *chimesdkvoice.CreateVoiceConnectorOutput) + + CreateVoiceConnectorGroup(*chimesdkvoice.CreateVoiceConnectorGroupInput) (*chimesdkvoice.CreateVoiceConnectorGroupOutput, error) + CreateVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.CreateVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.CreateVoiceConnectorGroupOutput, error) + CreateVoiceConnectorGroupRequest(*chimesdkvoice.CreateVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.CreateVoiceConnectorGroupOutput) + + DeletePhoneNumber(*chimesdkvoice.DeletePhoneNumberInput) (*chimesdkvoice.DeletePhoneNumberOutput, error) + DeletePhoneNumberWithContext(aws.Context, *chimesdkvoice.DeletePhoneNumberInput, ...request.Option) (*chimesdkvoice.DeletePhoneNumberOutput, error) + DeletePhoneNumberRequest(*chimesdkvoice.DeletePhoneNumberInput) (*request.Request, *chimesdkvoice.DeletePhoneNumberOutput) + + DeleteProxySession(*chimesdkvoice.DeleteProxySessionInput) (*chimesdkvoice.DeleteProxySessionOutput, error) + DeleteProxySessionWithContext(aws.Context, *chimesdkvoice.DeleteProxySessionInput, ...request.Option) (*chimesdkvoice.DeleteProxySessionOutput, error) + DeleteProxySessionRequest(*chimesdkvoice.DeleteProxySessionInput) (*request.Request, *chimesdkvoice.DeleteProxySessionOutput) + + DeleteSipMediaApplication(*chimesdkvoice.DeleteSipMediaApplicationInput) (*chimesdkvoice.DeleteSipMediaApplicationOutput, error) + DeleteSipMediaApplicationWithContext(aws.Context, *chimesdkvoice.DeleteSipMediaApplicationInput, ...request.Option) (*chimesdkvoice.DeleteSipMediaApplicationOutput, error) + DeleteSipMediaApplicationRequest(*chimesdkvoice.DeleteSipMediaApplicationInput) (*request.Request, *chimesdkvoice.DeleteSipMediaApplicationOutput) + + DeleteSipRule(*chimesdkvoice.DeleteSipRuleInput) (*chimesdkvoice.DeleteSipRuleOutput, error) + DeleteSipRuleWithContext(aws.Context, *chimesdkvoice.DeleteSipRuleInput, ...request.Option) (*chimesdkvoice.DeleteSipRuleOutput, error) + DeleteSipRuleRequest(*chimesdkvoice.DeleteSipRuleInput) (*request.Request, *chimesdkvoice.DeleteSipRuleOutput) + + DeleteVoiceConnector(*chimesdkvoice.DeleteVoiceConnectorInput) (*chimesdkvoice.DeleteVoiceConnectorOutput, error) + DeleteVoiceConnectorWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorOutput, error) + DeleteVoiceConnectorRequest(*chimesdkvoice.DeleteVoiceConnectorInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorOutput) + + DeleteVoiceConnectorEmergencyCallingConfiguration(*chimesdkvoice.DeleteVoiceConnectorEmergencyCallingConfigurationInput) (*chimesdkvoice.DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) + DeleteVoiceConnectorEmergencyCallingConfigurationWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorEmergencyCallingConfigurationInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) + DeleteVoiceConnectorEmergencyCallingConfigurationRequest(*chimesdkvoice.DeleteVoiceConnectorEmergencyCallingConfigurationInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorEmergencyCallingConfigurationOutput) + + DeleteVoiceConnectorGroup(*chimesdkvoice.DeleteVoiceConnectorGroupInput) (*chimesdkvoice.DeleteVoiceConnectorGroupOutput, error) + DeleteVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorGroupOutput, error) + DeleteVoiceConnectorGroupRequest(*chimesdkvoice.DeleteVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorGroupOutput) + + DeleteVoiceConnectorOrigination(*chimesdkvoice.DeleteVoiceConnectorOriginationInput) (*chimesdkvoice.DeleteVoiceConnectorOriginationOutput, error) + DeleteVoiceConnectorOriginationWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorOriginationInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorOriginationOutput, error) + DeleteVoiceConnectorOriginationRequest(*chimesdkvoice.DeleteVoiceConnectorOriginationInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorOriginationOutput) + + DeleteVoiceConnectorProxy(*chimesdkvoice.DeleteVoiceConnectorProxyInput) (*chimesdkvoice.DeleteVoiceConnectorProxyOutput, error) + DeleteVoiceConnectorProxyWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorProxyInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorProxyOutput, error) + DeleteVoiceConnectorProxyRequest(*chimesdkvoice.DeleteVoiceConnectorProxyInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorProxyOutput) + + DeleteVoiceConnectorStreamingConfiguration(*chimesdkvoice.DeleteVoiceConnectorStreamingConfigurationInput) (*chimesdkvoice.DeleteVoiceConnectorStreamingConfigurationOutput, error) + DeleteVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorStreamingConfigurationOutput, error) + DeleteVoiceConnectorStreamingConfigurationRequest(*chimesdkvoice.DeleteVoiceConnectorStreamingConfigurationInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorStreamingConfigurationOutput) + + DeleteVoiceConnectorTermination(*chimesdkvoice.DeleteVoiceConnectorTerminationInput) (*chimesdkvoice.DeleteVoiceConnectorTerminationOutput, error) + DeleteVoiceConnectorTerminationWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorTerminationInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorTerminationOutput, error) + DeleteVoiceConnectorTerminationRequest(*chimesdkvoice.DeleteVoiceConnectorTerminationInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorTerminationOutput) + + DeleteVoiceConnectorTerminationCredentials(*chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsInput) (*chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsOutput, error) + DeleteVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsOutput, error) + DeleteVoiceConnectorTerminationCredentialsRequest(*chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsInput) (*request.Request, *chimesdkvoice.DeleteVoiceConnectorTerminationCredentialsOutput) + + DisassociatePhoneNumbersFromVoiceConnector(*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorInput) (*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorOutput, error) + DisassociatePhoneNumbersFromVoiceConnectorWithContext(aws.Context, *chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorInput, ...request.Option) (*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorOutput, error) + DisassociatePhoneNumbersFromVoiceConnectorRequest(*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorInput) (*request.Request, *chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorOutput) + + DisassociatePhoneNumbersFromVoiceConnectorGroup(*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) + DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) + DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(*chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) + + GetGlobalSettings(*chimesdkvoice.GetGlobalSettingsInput) (*chimesdkvoice.GetGlobalSettingsOutput, error) + GetGlobalSettingsWithContext(aws.Context, *chimesdkvoice.GetGlobalSettingsInput, ...request.Option) (*chimesdkvoice.GetGlobalSettingsOutput, error) + GetGlobalSettingsRequest(*chimesdkvoice.GetGlobalSettingsInput) (*request.Request, *chimesdkvoice.GetGlobalSettingsOutput) + + GetPhoneNumber(*chimesdkvoice.GetPhoneNumberInput) (*chimesdkvoice.GetPhoneNumberOutput, error) + GetPhoneNumberWithContext(aws.Context, *chimesdkvoice.GetPhoneNumberInput, ...request.Option) (*chimesdkvoice.GetPhoneNumberOutput, error) + GetPhoneNumberRequest(*chimesdkvoice.GetPhoneNumberInput) (*request.Request, *chimesdkvoice.GetPhoneNumberOutput) + + GetPhoneNumberOrder(*chimesdkvoice.GetPhoneNumberOrderInput) (*chimesdkvoice.GetPhoneNumberOrderOutput, error) + GetPhoneNumberOrderWithContext(aws.Context, *chimesdkvoice.GetPhoneNumberOrderInput, ...request.Option) (*chimesdkvoice.GetPhoneNumberOrderOutput, error) + GetPhoneNumberOrderRequest(*chimesdkvoice.GetPhoneNumberOrderInput) (*request.Request, *chimesdkvoice.GetPhoneNumberOrderOutput) + + GetPhoneNumberSettings(*chimesdkvoice.GetPhoneNumberSettingsInput) (*chimesdkvoice.GetPhoneNumberSettingsOutput, error) + GetPhoneNumberSettingsWithContext(aws.Context, *chimesdkvoice.GetPhoneNumberSettingsInput, ...request.Option) (*chimesdkvoice.GetPhoneNumberSettingsOutput, error) + GetPhoneNumberSettingsRequest(*chimesdkvoice.GetPhoneNumberSettingsInput) (*request.Request, *chimesdkvoice.GetPhoneNumberSettingsOutput) + + GetProxySession(*chimesdkvoice.GetProxySessionInput) (*chimesdkvoice.GetProxySessionOutput, error) + GetProxySessionWithContext(aws.Context, *chimesdkvoice.GetProxySessionInput, ...request.Option) (*chimesdkvoice.GetProxySessionOutput, error) + GetProxySessionRequest(*chimesdkvoice.GetProxySessionInput) (*request.Request, *chimesdkvoice.GetProxySessionOutput) + + GetSipMediaApplication(*chimesdkvoice.GetSipMediaApplicationInput) (*chimesdkvoice.GetSipMediaApplicationOutput, error) + GetSipMediaApplicationWithContext(aws.Context, *chimesdkvoice.GetSipMediaApplicationInput, ...request.Option) (*chimesdkvoice.GetSipMediaApplicationOutput, error) + GetSipMediaApplicationRequest(*chimesdkvoice.GetSipMediaApplicationInput) (*request.Request, *chimesdkvoice.GetSipMediaApplicationOutput) + + GetSipMediaApplicationAlexaSkillConfiguration(*chimesdkvoice.GetSipMediaApplicationAlexaSkillConfigurationInput) (*chimesdkvoice.GetSipMediaApplicationAlexaSkillConfigurationOutput, error) + GetSipMediaApplicationAlexaSkillConfigurationWithContext(aws.Context, *chimesdkvoice.GetSipMediaApplicationAlexaSkillConfigurationInput, ...request.Option) (*chimesdkvoice.GetSipMediaApplicationAlexaSkillConfigurationOutput, error) + GetSipMediaApplicationAlexaSkillConfigurationRequest(*chimesdkvoice.GetSipMediaApplicationAlexaSkillConfigurationInput) (*request.Request, *chimesdkvoice.GetSipMediaApplicationAlexaSkillConfigurationOutput) + + GetSipMediaApplicationLoggingConfiguration(*chimesdkvoice.GetSipMediaApplicationLoggingConfigurationInput) (*chimesdkvoice.GetSipMediaApplicationLoggingConfigurationOutput, error) + GetSipMediaApplicationLoggingConfigurationWithContext(aws.Context, *chimesdkvoice.GetSipMediaApplicationLoggingConfigurationInput, ...request.Option) (*chimesdkvoice.GetSipMediaApplicationLoggingConfigurationOutput, error) + GetSipMediaApplicationLoggingConfigurationRequest(*chimesdkvoice.GetSipMediaApplicationLoggingConfigurationInput) (*request.Request, *chimesdkvoice.GetSipMediaApplicationLoggingConfigurationOutput) + + GetSipRule(*chimesdkvoice.GetSipRuleInput) (*chimesdkvoice.GetSipRuleOutput, error) + GetSipRuleWithContext(aws.Context, *chimesdkvoice.GetSipRuleInput, ...request.Option) (*chimesdkvoice.GetSipRuleOutput, error) + GetSipRuleRequest(*chimesdkvoice.GetSipRuleInput) (*request.Request, *chimesdkvoice.GetSipRuleOutput) + + GetVoiceConnector(*chimesdkvoice.GetVoiceConnectorInput) (*chimesdkvoice.GetVoiceConnectorOutput, error) + GetVoiceConnectorWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorOutput, error) + GetVoiceConnectorRequest(*chimesdkvoice.GetVoiceConnectorInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorOutput) + + GetVoiceConnectorEmergencyCallingConfiguration(*chimesdkvoice.GetVoiceConnectorEmergencyCallingConfigurationInput) (*chimesdkvoice.GetVoiceConnectorEmergencyCallingConfigurationOutput, error) + GetVoiceConnectorEmergencyCallingConfigurationWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorEmergencyCallingConfigurationInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorEmergencyCallingConfigurationOutput, error) + GetVoiceConnectorEmergencyCallingConfigurationRequest(*chimesdkvoice.GetVoiceConnectorEmergencyCallingConfigurationInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorEmergencyCallingConfigurationOutput) + + GetVoiceConnectorGroup(*chimesdkvoice.GetVoiceConnectorGroupInput) (*chimesdkvoice.GetVoiceConnectorGroupOutput, error) + GetVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorGroupOutput, error) + GetVoiceConnectorGroupRequest(*chimesdkvoice.GetVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorGroupOutput) + + GetVoiceConnectorLoggingConfiguration(*chimesdkvoice.GetVoiceConnectorLoggingConfigurationInput) (*chimesdkvoice.GetVoiceConnectorLoggingConfigurationOutput, error) + GetVoiceConnectorLoggingConfigurationWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorLoggingConfigurationInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorLoggingConfigurationOutput, error) + GetVoiceConnectorLoggingConfigurationRequest(*chimesdkvoice.GetVoiceConnectorLoggingConfigurationInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorLoggingConfigurationOutput) + + GetVoiceConnectorOrigination(*chimesdkvoice.GetVoiceConnectorOriginationInput) (*chimesdkvoice.GetVoiceConnectorOriginationOutput, error) + GetVoiceConnectorOriginationWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorOriginationInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorOriginationOutput, error) + GetVoiceConnectorOriginationRequest(*chimesdkvoice.GetVoiceConnectorOriginationInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorOriginationOutput) + + GetVoiceConnectorProxy(*chimesdkvoice.GetVoiceConnectorProxyInput) (*chimesdkvoice.GetVoiceConnectorProxyOutput, error) + GetVoiceConnectorProxyWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorProxyInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorProxyOutput, error) + GetVoiceConnectorProxyRequest(*chimesdkvoice.GetVoiceConnectorProxyInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorProxyOutput) + + GetVoiceConnectorStreamingConfiguration(*chimesdkvoice.GetVoiceConnectorStreamingConfigurationInput) (*chimesdkvoice.GetVoiceConnectorStreamingConfigurationOutput, error) + GetVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorStreamingConfigurationOutput, error) + GetVoiceConnectorStreamingConfigurationRequest(*chimesdkvoice.GetVoiceConnectorStreamingConfigurationInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorStreamingConfigurationOutput) + + GetVoiceConnectorTermination(*chimesdkvoice.GetVoiceConnectorTerminationInput) (*chimesdkvoice.GetVoiceConnectorTerminationOutput, error) + GetVoiceConnectorTerminationWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorTerminationInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorTerminationOutput, error) + GetVoiceConnectorTerminationRequest(*chimesdkvoice.GetVoiceConnectorTerminationInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorTerminationOutput) + + GetVoiceConnectorTerminationHealth(*chimesdkvoice.GetVoiceConnectorTerminationHealthInput) (*chimesdkvoice.GetVoiceConnectorTerminationHealthOutput, error) + GetVoiceConnectorTerminationHealthWithContext(aws.Context, *chimesdkvoice.GetVoiceConnectorTerminationHealthInput, ...request.Option) (*chimesdkvoice.GetVoiceConnectorTerminationHealthOutput, error) + GetVoiceConnectorTerminationHealthRequest(*chimesdkvoice.GetVoiceConnectorTerminationHealthInput) (*request.Request, *chimesdkvoice.GetVoiceConnectorTerminationHealthOutput) + + ListAvailableVoiceConnectorRegions(*chimesdkvoice.ListAvailableVoiceConnectorRegionsInput) (*chimesdkvoice.ListAvailableVoiceConnectorRegionsOutput, error) + ListAvailableVoiceConnectorRegionsWithContext(aws.Context, *chimesdkvoice.ListAvailableVoiceConnectorRegionsInput, ...request.Option) (*chimesdkvoice.ListAvailableVoiceConnectorRegionsOutput, error) + ListAvailableVoiceConnectorRegionsRequest(*chimesdkvoice.ListAvailableVoiceConnectorRegionsInput) (*request.Request, *chimesdkvoice.ListAvailableVoiceConnectorRegionsOutput) + + ListPhoneNumberOrders(*chimesdkvoice.ListPhoneNumberOrdersInput) (*chimesdkvoice.ListPhoneNumberOrdersOutput, error) + ListPhoneNumberOrdersWithContext(aws.Context, *chimesdkvoice.ListPhoneNumberOrdersInput, ...request.Option) (*chimesdkvoice.ListPhoneNumberOrdersOutput, error) + ListPhoneNumberOrdersRequest(*chimesdkvoice.ListPhoneNumberOrdersInput) (*request.Request, *chimesdkvoice.ListPhoneNumberOrdersOutput) + + ListPhoneNumberOrdersPages(*chimesdkvoice.ListPhoneNumberOrdersInput, func(*chimesdkvoice.ListPhoneNumberOrdersOutput, bool) bool) error + ListPhoneNumberOrdersPagesWithContext(aws.Context, *chimesdkvoice.ListPhoneNumberOrdersInput, func(*chimesdkvoice.ListPhoneNumberOrdersOutput, bool) bool, ...request.Option) error + + ListPhoneNumbers(*chimesdkvoice.ListPhoneNumbersInput) (*chimesdkvoice.ListPhoneNumbersOutput, error) + ListPhoneNumbersWithContext(aws.Context, *chimesdkvoice.ListPhoneNumbersInput, ...request.Option) (*chimesdkvoice.ListPhoneNumbersOutput, error) + ListPhoneNumbersRequest(*chimesdkvoice.ListPhoneNumbersInput) (*request.Request, *chimesdkvoice.ListPhoneNumbersOutput) + + ListPhoneNumbersPages(*chimesdkvoice.ListPhoneNumbersInput, func(*chimesdkvoice.ListPhoneNumbersOutput, bool) bool) error + ListPhoneNumbersPagesWithContext(aws.Context, *chimesdkvoice.ListPhoneNumbersInput, func(*chimesdkvoice.ListPhoneNumbersOutput, bool) bool, ...request.Option) error + + ListProxySessions(*chimesdkvoice.ListProxySessionsInput) (*chimesdkvoice.ListProxySessionsOutput, error) + ListProxySessionsWithContext(aws.Context, *chimesdkvoice.ListProxySessionsInput, ...request.Option) (*chimesdkvoice.ListProxySessionsOutput, error) + ListProxySessionsRequest(*chimesdkvoice.ListProxySessionsInput) (*request.Request, *chimesdkvoice.ListProxySessionsOutput) + + ListProxySessionsPages(*chimesdkvoice.ListProxySessionsInput, func(*chimesdkvoice.ListProxySessionsOutput, bool) bool) error + ListProxySessionsPagesWithContext(aws.Context, *chimesdkvoice.ListProxySessionsInput, func(*chimesdkvoice.ListProxySessionsOutput, bool) bool, ...request.Option) error + + ListSipMediaApplications(*chimesdkvoice.ListSipMediaApplicationsInput) (*chimesdkvoice.ListSipMediaApplicationsOutput, error) + ListSipMediaApplicationsWithContext(aws.Context, *chimesdkvoice.ListSipMediaApplicationsInput, ...request.Option) (*chimesdkvoice.ListSipMediaApplicationsOutput, error) + ListSipMediaApplicationsRequest(*chimesdkvoice.ListSipMediaApplicationsInput) (*request.Request, *chimesdkvoice.ListSipMediaApplicationsOutput) + + ListSipMediaApplicationsPages(*chimesdkvoice.ListSipMediaApplicationsInput, func(*chimesdkvoice.ListSipMediaApplicationsOutput, bool) bool) error + ListSipMediaApplicationsPagesWithContext(aws.Context, *chimesdkvoice.ListSipMediaApplicationsInput, func(*chimesdkvoice.ListSipMediaApplicationsOutput, bool) bool, ...request.Option) error + + ListSipRules(*chimesdkvoice.ListSipRulesInput) (*chimesdkvoice.ListSipRulesOutput, error) + ListSipRulesWithContext(aws.Context, *chimesdkvoice.ListSipRulesInput, ...request.Option) (*chimesdkvoice.ListSipRulesOutput, error) + ListSipRulesRequest(*chimesdkvoice.ListSipRulesInput) (*request.Request, *chimesdkvoice.ListSipRulesOutput) + + ListSipRulesPages(*chimesdkvoice.ListSipRulesInput, func(*chimesdkvoice.ListSipRulesOutput, bool) bool) error + ListSipRulesPagesWithContext(aws.Context, *chimesdkvoice.ListSipRulesInput, func(*chimesdkvoice.ListSipRulesOutput, bool) bool, ...request.Option) error + + ListSupportedPhoneNumberCountries(*chimesdkvoice.ListSupportedPhoneNumberCountriesInput) (*chimesdkvoice.ListSupportedPhoneNumberCountriesOutput, error) + ListSupportedPhoneNumberCountriesWithContext(aws.Context, *chimesdkvoice.ListSupportedPhoneNumberCountriesInput, ...request.Option) (*chimesdkvoice.ListSupportedPhoneNumberCountriesOutput, error) + ListSupportedPhoneNumberCountriesRequest(*chimesdkvoice.ListSupportedPhoneNumberCountriesInput) (*request.Request, *chimesdkvoice.ListSupportedPhoneNumberCountriesOutput) + + ListVoiceConnectorGroups(*chimesdkvoice.ListVoiceConnectorGroupsInput) (*chimesdkvoice.ListVoiceConnectorGroupsOutput, error) + ListVoiceConnectorGroupsWithContext(aws.Context, *chimesdkvoice.ListVoiceConnectorGroupsInput, ...request.Option) (*chimesdkvoice.ListVoiceConnectorGroupsOutput, error) + ListVoiceConnectorGroupsRequest(*chimesdkvoice.ListVoiceConnectorGroupsInput) (*request.Request, *chimesdkvoice.ListVoiceConnectorGroupsOutput) + + ListVoiceConnectorGroupsPages(*chimesdkvoice.ListVoiceConnectorGroupsInput, func(*chimesdkvoice.ListVoiceConnectorGroupsOutput, bool) bool) error + ListVoiceConnectorGroupsPagesWithContext(aws.Context, *chimesdkvoice.ListVoiceConnectorGroupsInput, func(*chimesdkvoice.ListVoiceConnectorGroupsOutput, bool) bool, ...request.Option) error + + ListVoiceConnectorTerminationCredentials(*chimesdkvoice.ListVoiceConnectorTerminationCredentialsInput) (*chimesdkvoice.ListVoiceConnectorTerminationCredentialsOutput, error) + ListVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chimesdkvoice.ListVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chimesdkvoice.ListVoiceConnectorTerminationCredentialsOutput, error) + ListVoiceConnectorTerminationCredentialsRequest(*chimesdkvoice.ListVoiceConnectorTerminationCredentialsInput) (*request.Request, *chimesdkvoice.ListVoiceConnectorTerminationCredentialsOutput) + + ListVoiceConnectors(*chimesdkvoice.ListVoiceConnectorsInput) (*chimesdkvoice.ListVoiceConnectorsOutput, error) + ListVoiceConnectorsWithContext(aws.Context, *chimesdkvoice.ListVoiceConnectorsInput, ...request.Option) (*chimesdkvoice.ListVoiceConnectorsOutput, error) + ListVoiceConnectorsRequest(*chimesdkvoice.ListVoiceConnectorsInput) (*request.Request, *chimesdkvoice.ListVoiceConnectorsOutput) + + ListVoiceConnectorsPages(*chimesdkvoice.ListVoiceConnectorsInput, func(*chimesdkvoice.ListVoiceConnectorsOutput, bool) bool) error + ListVoiceConnectorsPagesWithContext(aws.Context, *chimesdkvoice.ListVoiceConnectorsInput, func(*chimesdkvoice.ListVoiceConnectorsOutput, bool) bool, ...request.Option) error + + PutSipMediaApplicationAlexaSkillConfiguration(*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationInput) (*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationOutput, error) + PutSipMediaApplicationAlexaSkillConfigurationWithContext(aws.Context, *chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationInput, ...request.Option) (*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationOutput, error) + PutSipMediaApplicationAlexaSkillConfigurationRequest(*chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationInput) (*request.Request, *chimesdkvoice.PutSipMediaApplicationAlexaSkillConfigurationOutput) + + PutSipMediaApplicationLoggingConfiguration(*chimesdkvoice.PutSipMediaApplicationLoggingConfigurationInput) (*chimesdkvoice.PutSipMediaApplicationLoggingConfigurationOutput, error) + PutSipMediaApplicationLoggingConfigurationWithContext(aws.Context, *chimesdkvoice.PutSipMediaApplicationLoggingConfigurationInput, ...request.Option) (*chimesdkvoice.PutSipMediaApplicationLoggingConfigurationOutput, error) + PutSipMediaApplicationLoggingConfigurationRequest(*chimesdkvoice.PutSipMediaApplicationLoggingConfigurationInput) (*request.Request, *chimesdkvoice.PutSipMediaApplicationLoggingConfigurationOutput) + + PutVoiceConnectorEmergencyCallingConfiguration(*chimesdkvoice.PutVoiceConnectorEmergencyCallingConfigurationInput) (*chimesdkvoice.PutVoiceConnectorEmergencyCallingConfigurationOutput, error) + PutVoiceConnectorEmergencyCallingConfigurationWithContext(aws.Context, *chimesdkvoice.PutVoiceConnectorEmergencyCallingConfigurationInput, ...request.Option) (*chimesdkvoice.PutVoiceConnectorEmergencyCallingConfigurationOutput, error) + PutVoiceConnectorEmergencyCallingConfigurationRequest(*chimesdkvoice.PutVoiceConnectorEmergencyCallingConfigurationInput) (*request.Request, *chimesdkvoice.PutVoiceConnectorEmergencyCallingConfigurationOutput) + + PutVoiceConnectorLoggingConfiguration(*chimesdkvoice.PutVoiceConnectorLoggingConfigurationInput) (*chimesdkvoice.PutVoiceConnectorLoggingConfigurationOutput, error) + PutVoiceConnectorLoggingConfigurationWithContext(aws.Context, *chimesdkvoice.PutVoiceConnectorLoggingConfigurationInput, ...request.Option) (*chimesdkvoice.PutVoiceConnectorLoggingConfigurationOutput, error) + PutVoiceConnectorLoggingConfigurationRequest(*chimesdkvoice.PutVoiceConnectorLoggingConfigurationInput) (*request.Request, *chimesdkvoice.PutVoiceConnectorLoggingConfigurationOutput) + + PutVoiceConnectorOrigination(*chimesdkvoice.PutVoiceConnectorOriginationInput) (*chimesdkvoice.PutVoiceConnectorOriginationOutput, error) + PutVoiceConnectorOriginationWithContext(aws.Context, *chimesdkvoice.PutVoiceConnectorOriginationInput, ...request.Option) (*chimesdkvoice.PutVoiceConnectorOriginationOutput, error) + PutVoiceConnectorOriginationRequest(*chimesdkvoice.PutVoiceConnectorOriginationInput) (*request.Request, *chimesdkvoice.PutVoiceConnectorOriginationOutput) + + PutVoiceConnectorProxy(*chimesdkvoice.PutVoiceConnectorProxyInput) (*chimesdkvoice.PutVoiceConnectorProxyOutput, error) + PutVoiceConnectorProxyWithContext(aws.Context, *chimesdkvoice.PutVoiceConnectorProxyInput, ...request.Option) (*chimesdkvoice.PutVoiceConnectorProxyOutput, error) + PutVoiceConnectorProxyRequest(*chimesdkvoice.PutVoiceConnectorProxyInput) (*request.Request, *chimesdkvoice.PutVoiceConnectorProxyOutput) + + PutVoiceConnectorStreamingConfiguration(*chimesdkvoice.PutVoiceConnectorStreamingConfigurationInput) (*chimesdkvoice.PutVoiceConnectorStreamingConfigurationOutput, error) + PutVoiceConnectorStreamingConfigurationWithContext(aws.Context, *chimesdkvoice.PutVoiceConnectorStreamingConfigurationInput, ...request.Option) (*chimesdkvoice.PutVoiceConnectorStreamingConfigurationOutput, error) + PutVoiceConnectorStreamingConfigurationRequest(*chimesdkvoice.PutVoiceConnectorStreamingConfigurationInput) (*request.Request, *chimesdkvoice.PutVoiceConnectorStreamingConfigurationOutput) + + PutVoiceConnectorTermination(*chimesdkvoice.PutVoiceConnectorTerminationInput) (*chimesdkvoice.PutVoiceConnectorTerminationOutput, error) + PutVoiceConnectorTerminationWithContext(aws.Context, *chimesdkvoice.PutVoiceConnectorTerminationInput, ...request.Option) (*chimesdkvoice.PutVoiceConnectorTerminationOutput, error) + PutVoiceConnectorTerminationRequest(*chimesdkvoice.PutVoiceConnectorTerminationInput) (*request.Request, *chimesdkvoice.PutVoiceConnectorTerminationOutput) + + PutVoiceConnectorTerminationCredentials(*chimesdkvoice.PutVoiceConnectorTerminationCredentialsInput) (*chimesdkvoice.PutVoiceConnectorTerminationCredentialsOutput, error) + PutVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chimesdkvoice.PutVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chimesdkvoice.PutVoiceConnectorTerminationCredentialsOutput, error) + PutVoiceConnectorTerminationCredentialsRequest(*chimesdkvoice.PutVoiceConnectorTerminationCredentialsInput) (*request.Request, *chimesdkvoice.PutVoiceConnectorTerminationCredentialsOutput) + + RestorePhoneNumber(*chimesdkvoice.RestorePhoneNumberInput) (*chimesdkvoice.RestorePhoneNumberOutput, error) + RestorePhoneNumberWithContext(aws.Context, *chimesdkvoice.RestorePhoneNumberInput, ...request.Option) (*chimesdkvoice.RestorePhoneNumberOutput, error) + RestorePhoneNumberRequest(*chimesdkvoice.RestorePhoneNumberInput) (*request.Request, *chimesdkvoice.RestorePhoneNumberOutput) + + SearchAvailablePhoneNumbers(*chimesdkvoice.SearchAvailablePhoneNumbersInput) (*chimesdkvoice.SearchAvailablePhoneNumbersOutput, error) + SearchAvailablePhoneNumbersWithContext(aws.Context, *chimesdkvoice.SearchAvailablePhoneNumbersInput, ...request.Option) (*chimesdkvoice.SearchAvailablePhoneNumbersOutput, error) + SearchAvailablePhoneNumbersRequest(*chimesdkvoice.SearchAvailablePhoneNumbersInput) (*request.Request, *chimesdkvoice.SearchAvailablePhoneNumbersOutput) + + SearchAvailablePhoneNumbersPages(*chimesdkvoice.SearchAvailablePhoneNumbersInput, func(*chimesdkvoice.SearchAvailablePhoneNumbersOutput, bool) bool) error + SearchAvailablePhoneNumbersPagesWithContext(aws.Context, *chimesdkvoice.SearchAvailablePhoneNumbersInput, func(*chimesdkvoice.SearchAvailablePhoneNumbersOutput, bool) bool, ...request.Option) error + + UpdateGlobalSettings(*chimesdkvoice.UpdateGlobalSettingsInput) (*chimesdkvoice.UpdateGlobalSettingsOutput, error) + UpdateGlobalSettingsWithContext(aws.Context, *chimesdkvoice.UpdateGlobalSettingsInput, ...request.Option) (*chimesdkvoice.UpdateGlobalSettingsOutput, error) + UpdateGlobalSettingsRequest(*chimesdkvoice.UpdateGlobalSettingsInput) (*request.Request, *chimesdkvoice.UpdateGlobalSettingsOutput) + + UpdatePhoneNumber(*chimesdkvoice.UpdatePhoneNumberInput) (*chimesdkvoice.UpdatePhoneNumberOutput, error) + UpdatePhoneNumberWithContext(aws.Context, *chimesdkvoice.UpdatePhoneNumberInput, ...request.Option) (*chimesdkvoice.UpdatePhoneNumberOutput, error) + UpdatePhoneNumberRequest(*chimesdkvoice.UpdatePhoneNumberInput) (*request.Request, *chimesdkvoice.UpdatePhoneNumberOutput) + + UpdatePhoneNumberSettings(*chimesdkvoice.UpdatePhoneNumberSettingsInput) (*chimesdkvoice.UpdatePhoneNumberSettingsOutput, error) + UpdatePhoneNumberSettingsWithContext(aws.Context, *chimesdkvoice.UpdatePhoneNumberSettingsInput, ...request.Option) (*chimesdkvoice.UpdatePhoneNumberSettingsOutput, error) + UpdatePhoneNumberSettingsRequest(*chimesdkvoice.UpdatePhoneNumberSettingsInput) (*request.Request, *chimesdkvoice.UpdatePhoneNumberSettingsOutput) + + UpdateProxySession(*chimesdkvoice.UpdateProxySessionInput) (*chimesdkvoice.UpdateProxySessionOutput, error) + UpdateProxySessionWithContext(aws.Context, *chimesdkvoice.UpdateProxySessionInput, ...request.Option) (*chimesdkvoice.UpdateProxySessionOutput, error) + UpdateProxySessionRequest(*chimesdkvoice.UpdateProxySessionInput) (*request.Request, *chimesdkvoice.UpdateProxySessionOutput) + + UpdateSipMediaApplication(*chimesdkvoice.UpdateSipMediaApplicationInput) (*chimesdkvoice.UpdateSipMediaApplicationOutput, error) + UpdateSipMediaApplicationWithContext(aws.Context, *chimesdkvoice.UpdateSipMediaApplicationInput, ...request.Option) (*chimesdkvoice.UpdateSipMediaApplicationOutput, error) + UpdateSipMediaApplicationRequest(*chimesdkvoice.UpdateSipMediaApplicationInput) (*request.Request, *chimesdkvoice.UpdateSipMediaApplicationOutput) + + UpdateSipMediaApplicationCall(*chimesdkvoice.UpdateSipMediaApplicationCallInput) (*chimesdkvoice.UpdateSipMediaApplicationCallOutput, error) + UpdateSipMediaApplicationCallWithContext(aws.Context, *chimesdkvoice.UpdateSipMediaApplicationCallInput, ...request.Option) (*chimesdkvoice.UpdateSipMediaApplicationCallOutput, error) + UpdateSipMediaApplicationCallRequest(*chimesdkvoice.UpdateSipMediaApplicationCallInput) (*request.Request, *chimesdkvoice.UpdateSipMediaApplicationCallOutput) + + UpdateSipRule(*chimesdkvoice.UpdateSipRuleInput) (*chimesdkvoice.UpdateSipRuleOutput, error) + UpdateSipRuleWithContext(aws.Context, *chimesdkvoice.UpdateSipRuleInput, ...request.Option) (*chimesdkvoice.UpdateSipRuleOutput, error) + UpdateSipRuleRequest(*chimesdkvoice.UpdateSipRuleInput) (*request.Request, *chimesdkvoice.UpdateSipRuleOutput) + + UpdateVoiceConnector(*chimesdkvoice.UpdateVoiceConnectorInput) (*chimesdkvoice.UpdateVoiceConnectorOutput, error) + UpdateVoiceConnectorWithContext(aws.Context, *chimesdkvoice.UpdateVoiceConnectorInput, ...request.Option) (*chimesdkvoice.UpdateVoiceConnectorOutput, error) + UpdateVoiceConnectorRequest(*chimesdkvoice.UpdateVoiceConnectorInput) (*request.Request, *chimesdkvoice.UpdateVoiceConnectorOutput) + + UpdateVoiceConnectorGroup(*chimesdkvoice.UpdateVoiceConnectorGroupInput) (*chimesdkvoice.UpdateVoiceConnectorGroupOutput, error) + UpdateVoiceConnectorGroupWithContext(aws.Context, *chimesdkvoice.UpdateVoiceConnectorGroupInput, ...request.Option) (*chimesdkvoice.UpdateVoiceConnectorGroupOutput, error) + UpdateVoiceConnectorGroupRequest(*chimesdkvoice.UpdateVoiceConnectorGroupInput) (*request.Request, *chimesdkvoice.UpdateVoiceConnectorGroupOutput) + + ValidateE911Address(*chimesdkvoice.ValidateE911AddressInput) (*chimesdkvoice.ValidateE911AddressOutput, error) + ValidateE911AddressWithContext(aws.Context, *chimesdkvoice.ValidateE911AddressInput, ...request.Option) (*chimesdkvoice.ValidateE911AddressOutput, error) + ValidateE911AddressRequest(*chimesdkvoice.ValidateE911AddressInput) (*request.Request, *chimesdkvoice.ValidateE911AddressOutput) +} + +var _ ChimeSDKVoiceAPI = (*chimesdkvoice.ChimeSDKVoice)(nil) diff --git a/service/chimesdkvoice/doc.go b/service/chimesdkvoice/doc.go new file mode 100644 index 0000000000..0dcc062dce --- /dev/null +++ b/service/chimesdkvoice/doc.go @@ -0,0 +1,26 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package chimesdkvoice provides the client and types for making API +// requests to Amazon Chime SDK Voice. +// +// See https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-voice-2022-08-03 for more information on this service. +// +// See chimesdkvoice package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/chimesdkvoice/ +// +// # Using the Client +// +// To contact Amazon Chime SDK Voice with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Chime SDK Voice client ChimeSDKVoice for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/chimesdkvoice/#New +package chimesdkvoice diff --git a/service/chimesdkvoice/errors.go b/service/chimesdkvoice/errors.go new file mode 100644 index 0000000000..c1fa11937b --- /dev/null +++ b/service/chimesdkvoice/errors.go @@ -0,0 +1,63 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chimesdkvoice + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + ErrCodeConflictException = "ConflictException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeResourceLimitExceededException for service response error code + // "ResourceLimitExceededException". + ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" + + // ErrCodeServiceFailureException for service response error code + // "ServiceFailureException". + ErrCodeServiceFailureException = "ServiceFailureException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeThrottledClientException for service response error code + // "ThrottledClientException". + ErrCodeThrottledClientException = "ThrottledClientException" + + // ErrCodeUnauthorizedClientException for service response error code + // "UnauthorizedClientException". + ErrCodeUnauthorizedClientException = "UnauthorizedClientException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "NotFoundException": newErrorNotFoundException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ServiceFailureException": newErrorServiceFailureException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottledClientException": newErrorThrottledClientException, + "UnauthorizedClientException": newErrorUnauthorizedClientException, +} diff --git a/service/chimesdkvoice/service.go b/service/chimesdkvoice/service.go new file mode 100644 index 0000000000..35327334fd --- /dev/null +++ b/service/chimesdkvoice/service.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chimesdkvoice + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// ChimeSDKVoice provides the API operation methods for making requests to +// Amazon Chime SDK Voice. See this package's package overview docs +// for details on the service. +// +// ChimeSDKVoice methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type ChimeSDKVoice struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "Chime SDK Voice" // Name of service. + EndpointsID = "voice-chime" // ID to lookup a service endpoint with. + ServiceID = "Chime SDK Voice" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the ChimeSDKVoice client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// +// mySession := session.Must(session.NewSession()) +// +// // Create a ChimeSDKVoice client from just a session. +// svc := chimesdkvoice.New(mySession) +// +// // Create a ChimeSDKVoice client with additional configuration +// svc := chimesdkvoice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *ChimeSDKVoice { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "chime" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *ChimeSDKVoice { + svc := &ChimeSDKVoice{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2022-08-03", + ResolvedRegion: resolvedRegion, + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a ChimeSDKVoice operation and runs any +// custom request initialization. +func (c *ChimeSDKVoice) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/cloudfront/api.go b/service/cloudfront/api.go index acb42077f8..470fb7f412 100644 --- a/service/cloudfront/api.go +++ b/service/cloudfront/api.go @@ -118,6 +118,316 @@ func (c *CloudFront) AssociateAliasWithContext(ctx aws.Context, input *Associate return out, req.Send() } +const opCopyDistribution = "CopyDistribution2020_05_31" + +// CopyDistributionRequest generates a "aws/request.Request" representing the +// client's request for the CopyDistribution operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CopyDistribution for more information on using the CopyDistribution +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CopyDistributionRequest method. +// req, resp := client.CopyDistributionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistribution +func (c *CloudFront) CopyDistributionRequest(input *CopyDistributionInput) (req *request.Request, output *CopyDistributionOutput) { + op := &request.Operation{ + Name: opCopyDistribution, + HTTPMethod: "POST", + HTTPPath: "/2020-05-31/distribution/{PrimaryDistributionId}/copy", + } + + if input == nil { + input = &CopyDistributionInput{} + } + + output = &CopyDistributionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CopyDistribution API operation for Amazon CloudFront. +// +// Creates a staging distribution using the configuration of the provided primary +// distribution. A staging distribution is a copy of an existing distribution +// (called the primary distribution) that you can use in a continuous deployment +// workflow. +// +// After you create a staging distribution, you can use UpdateDistribution to +// modify the staging distribution’s configuration. Then you can use CreateContinuousDeploymentPolicy +// to incrementally move traffic to the staging distribution. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CopyDistribution for usage and error information. +// +// Returned Error Codes: +// +// - ErrCodeCNAMEAlreadyExists "CNAMEAlreadyExists" +// The CNAME specified is already defined for CloudFront. +// +// - ErrCodeDistributionAlreadyExists "DistributionAlreadyExists" +// The caller reference you attempted to create the distribution with is associated +// with another distribution. +// +// - ErrCodeInvalidOrigin "InvalidOrigin" +// The Amazon S3 origin server specified does not refer to a valid Amazon S3 +// bucket. +// +// - ErrCodeInvalidOriginAccessIdentity "InvalidOriginAccessIdentity" +// The origin access identity is not valid or doesn't exist. +// +// - ErrCodeInvalidOriginAccessControl "InvalidOriginAccessControl" +// The origin access control is not valid. +// +// - ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" +// The If-Match version is missing or not valid. +// +// - ErrCodeNoSuchDistribution "NoSuchDistribution" +// The specified distribution does not exist. +// +// - ErrCodePreconditionFailed "PreconditionFailed" +// The precondition in one or more of the request fields evaluated to false. +// +// - ErrCodeAccessDenied "AccessDenied" +// Access denied. +// +// - ErrCodeTooManyTrustedSigners "TooManyTrustedSigners" +// Your request contains more trusted signers than are allowed per distribution. +// +// - ErrCodeTrustedSignerDoesNotExist "TrustedSignerDoesNotExist" +// One or more of your trusted signers don't exist. +// +// - ErrCodeInvalidViewerCertificate "InvalidViewerCertificate" +// A viewer certificate specified is not valid. +// +// - ErrCodeInvalidMinimumProtocolVersion "InvalidMinimumProtocolVersion" +// The minimum protocol version specified is not valid. +// +// - ErrCodeMissingBody "MissingBody" +// This operation requires a body. Ensure that the body is present and the Content-Type +// header is set. +// +// - ErrCodeTooManyDistributionCNAMEs "TooManyDistributionCNAMEs" +// Your request contains more CNAMEs than are allowed per distribution. +// +// - ErrCodeTooManyDistributions "TooManyDistributions" +// Processing your request would cause you to exceed the maximum number of distributions +// allowed. +// +// - ErrCodeInvalidDefaultRootObject "InvalidDefaultRootObject" +// The default root object file name is too big or contains an invalid character. +// +// - ErrCodeInvalidRelativePath "InvalidRelativePath" +// The relative path is too big, is not URL-encoded, or does not begin with +// a slash (/). +// +// - ErrCodeInvalidErrorCode "InvalidErrorCode" +// An invalid error code was specified. +// +// - ErrCodeInvalidResponseCode "InvalidResponseCode" +// A response code is not valid. +// +// - ErrCodeInvalidArgument "InvalidArgument" +// An argument is invalid. +// +// - ErrCodeInvalidRequiredProtocol "InvalidRequiredProtocol" +// This operation requires the HTTPS protocol. Ensure that you specify the HTTPS +// protocol in your request, or omit the RequiredProtocols element from your +// distribution configuration. +// +// - ErrCodeNoSuchOrigin "NoSuchOrigin" +// No origin exists with the specified Origin Id. +// +// - ErrCodeTooManyOrigins "TooManyOrigins" +// You cannot create more origins for the distribution. +// +// - ErrCodeTooManyOriginGroupsPerDistribution "TooManyOriginGroupsPerDistribution" +// Processing your request would cause you to exceed the maximum number of origin +// groups allowed. +// +// - ErrCodeTooManyCacheBehaviors "TooManyCacheBehaviors" +// You cannot create more cache behaviors for the distribution. +// +// - ErrCodeTooManyCookieNamesInWhiteList "TooManyCookieNamesInWhiteList" +// Your request contains more cookie names in the whitelist than are allowed +// per cache behavior. +// +// - ErrCodeInvalidForwardCookies "InvalidForwardCookies" +// Your request contains forward cookies option which doesn't match with the +// expectation for the whitelisted list of cookie names. Either list of cookie +// names has been specified when not allowed or list of cookie names is missing +// when expected. +// +// - ErrCodeTooManyHeadersInForwardedValues "TooManyHeadersInForwardedValues" +// Your request contains too many headers in forwarded values. +// +// - ErrCodeInvalidHeadersForS3Origin "InvalidHeadersForS3Origin" +// The headers specified are not valid for an Amazon S3 origin. +// +// - ErrCodeInconsistentQuantities "InconsistentQuantities" +// The value of Quantity and the size of Items don't match. +// +// - ErrCodeTooManyCertificates "TooManyCertificates" +// You cannot create anymore custom SSL/TLS certificates. +// +// - ErrCodeInvalidLocationCode "InvalidLocationCode" +// The location code specified is not valid. +// +// - ErrCodeInvalidGeoRestrictionParameter "InvalidGeoRestrictionParameter" +// The specified geo restriction parameter is not valid. +// +// - ErrCodeInvalidProtocolSettings "InvalidProtocolSettings" +// You cannot specify SSLv3 as the minimum protocol version if you only want +// to support only clients that support Server Name Indication (SNI). +// +// - ErrCodeInvalidTTLOrder "InvalidTTLOrder" +// The TTL order specified is not valid. +// +// - ErrCodeInvalidWebACLId "InvalidWebACLId" +// A web ACL ID specified is not valid. To specify a web ACL created using the +// latest version of WAF, use the ACL ARN, for example arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a. +// To specify a web ACL created using WAF Classic, use the ACL ID, for example +// 473e64fd-f30b-4765-81a0-62ad96dd167a. +// +// - ErrCodeTooManyOriginCustomHeaders "TooManyOriginCustomHeaders" +// Your request contains too many origin custom headers. +// +// - ErrCodeTooManyQueryStringParameters "TooManyQueryStringParameters" +// Your request contains too many query string parameters. +// +// - ErrCodeInvalidQueryStringParameters "InvalidQueryStringParameters" +// The query string parameters specified are not valid. +// +// - ErrCodeTooManyDistributionsWithLambdaAssociations "TooManyDistributionsWithLambdaAssociations" +// Processing your request would cause the maximum number of distributions with +// Lambda@Edge function associations per owner to be exceeded. +// +// - ErrCodeTooManyDistributionsWithSingleFunctionARN "TooManyDistributionsWithSingleFunctionARN" +// The maximum number of distributions have been associated with the specified +// Lambda@Edge function. +// +// - ErrCodeTooManyLambdaFunctionAssociations "TooManyLambdaFunctionAssociations" +// Your request contains more Lambda@Edge function associations than are allowed +// per distribution. +// +// - ErrCodeInvalidLambdaFunctionAssociation "InvalidLambdaFunctionAssociation" +// The specified Lambda@Edge function association is invalid. +// +// - ErrCodeTooManyDistributionsWithFunctionAssociations "TooManyDistributionsWithFunctionAssociations" +// You have reached the maximum number of distributions that are associated +// with a CloudFront function. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// +// - ErrCodeTooManyFunctionAssociations "TooManyFunctionAssociations" +// You have reached the maximum number of CloudFront function associations for +// this distribution. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// +// - ErrCodeInvalidFunctionAssociation "InvalidFunctionAssociation" +// A CloudFront function association is invalid. +// +// - ErrCodeInvalidOriginReadTimeout "InvalidOriginReadTimeout" +// The read timeout specified for the origin is not valid. +// +// - ErrCodeInvalidOriginKeepaliveTimeout "InvalidOriginKeepaliveTimeout" +// The keep alive timeout specified for the origin is not valid. +// +// - ErrCodeNoSuchFieldLevelEncryptionConfig "NoSuchFieldLevelEncryptionConfig" +// The specified configuration for field-level encryption doesn't exist. +// +// - ErrCodeIllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior "IllegalFieldLevelEncryptionConfigAssociationWithCacheBehavior" +// The specified configuration for field-level encryption can't be associated +// with the specified cache behavior. +// +// - ErrCodeTooManyDistributionsAssociatedToFieldLevelEncryptionConfig "TooManyDistributionsAssociatedToFieldLevelEncryptionConfig" +// The maximum number of distributions have been associated with the specified +// configuration for field-level encryption. +// +// - ErrCodeNoSuchCachePolicy "NoSuchCachePolicy" +// The cache policy does not exist. +// +// - ErrCodeTooManyDistributionsAssociatedToCachePolicy "TooManyDistributionsAssociatedToCachePolicy" +// The maximum number of distributions have been associated with the specified +// cache policy. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// +// - ErrCodeNoSuchResponseHeadersPolicy "NoSuchResponseHeadersPolicy" +// The response headers policy does not exist. +// +// - ErrCodeTooManyDistributionsAssociatedToResponseHeadersPolicy "TooManyDistributionsAssociatedToResponseHeadersPolicy" +// The maximum number of distributions have been associated with the specified +// response headers policy. +// +// For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// +// - ErrCodeNoSuchOriginRequestPolicy "NoSuchOriginRequestPolicy" +// The origin request policy does not exist. +// +// - ErrCodeTooManyDistributionsAssociatedToOriginRequestPolicy "TooManyDistributionsAssociatedToOriginRequestPolicy" +// The maximum number of distributions have been associated with the specified +// origin request policy. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// +// - ErrCodeTooManyDistributionsAssociatedToKeyGroup "TooManyDistributionsAssociatedToKeyGroup" +// The number of distributions that reference this key group is more than the +// maximum allowed. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// +// - ErrCodeTooManyKeyGroupsAssociatedToDistribution "TooManyKeyGroupsAssociatedToDistribution" +// The number of key groups referenced by this distribution is more than the +// maximum allowed. For more information, see Quotas (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) +// (formerly known as limits) in the Amazon CloudFront Developer Guide. +// +// - ErrCodeTrustedKeyGroupDoesNotExist "TrustedKeyGroupDoesNotExist" +// The specified key group does not exist. +// +// - ErrCodeNoSuchRealtimeLogConfig "NoSuchRealtimeLogConfig" +// The real-time log configuration does not exist. +// +// - ErrCodeRealtimeLogConfigOwnerMismatch "RealtimeLogConfigOwnerMismatch" +// The specified real-time log configuration belongs to a different Amazon Web +// Services account. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CopyDistribution +func (c *CloudFront) CopyDistribution(input *CopyDistributionInput) (*CopyDistributionOutput, error) { + req, out := c.CopyDistributionRequest(input) + return out, req.Send() +} + +// CopyDistributionWithContext is the same as CopyDistribution with the addition of +// the ability to pass a context and additional request options. +// +// See CopyDistribution for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFront) CopyDistributionWithContext(ctx aws.Context, input *CopyDistributionInput, opts ...request.Option) (*CopyDistributionOutput, error) { + req, out := c.CopyDistributionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateCachePolicy = "CreateCachePolicy2020_05_31" // CreateCachePolicyRequest generates a "aws/request.Request" representing the @@ -350,6 +660,104 @@ func (c *CloudFront) CreateCloudFrontOriginAccessIdentityWithContext(ctx aws.Con return out, req.Send() } +const opCreateContinuousDeploymentPolicy = "CreateContinuousDeploymentPolicy2020_05_31" + +// CreateContinuousDeploymentPolicyRequest generates a "aws/request.Request" representing the +// client's request for the CreateContinuousDeploymentPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateContinuousDeploymentPolicy for more information on using the CreateContinuousDeploymentPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateContinuousDeploymentPolicyRequest method. +// req, resp := client.CreateContinuousDeploymentPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateContinuousDeploymentPolicy +func (c *CloudFront) CreateContinuousDeploymentPolicyRequest(input *CreateContinuousDeploymentPolicyInput) (req *request.Request, output *CreateContinuousDeploymentPolicyOutput) { + op := &request.Operation{ + Name: opCreateContinuousDeploymentPolicy, + HTTPMethod: "POST", + HTTPPath: "/2020-05-31/continuous-deployment-policy", + } + + if input == nil { + input = &CreateContinuousDeploymentPolicyInput{} + } + + output = &CreateContinuousDeploymentPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateContinuousDeploymentPolicy API operation for Amazon CloudFront. +// +// Creates a continuous deployment policy that distributes traffic for a custom +// domain name to two different CloudFront distributions. +// +// To use a continuous deployment policy, first use CopyDistribution to create +// a staging distribution, then use UpdateDistribution to modify the staging +// distribution’s configuration. +// +// After you create and update a staging distribution, you can use a continuous +// deployment policy to incrementally move traffic to the staging distribution. +// This workflow enables you to test changes to a distribution’s configuration +// before moving all of your domain’s production traffic to the new configuration. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation CreateContinuousDeploymentPolicy for usage and error information. +// +// Returned Error Codes: +// +// - ErrCodeAccessDenied "AccessDenied" +// Access denied. +// +// - ErrCodeInvalidArgument "InvalidArgument" +// An argument is invalid. +// +// - ErrCodeInconsistentQuantities "InconsistentQuantities" +// The value of Quantity and the size of Items don't match. +// +// - ErrCodeStagingDistributionInUse "StagingDistributionInUse" +// A continuous deployment policy for this staging distribution already exists. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateContinuousDeploymentPolicy +func (c *CloudFront) CreateContinuousDeploymentPolicy(input *CreateContinuousDeploymentPolicyInput) (*CreateContinuousDeploymentPolicyOutput, error) { + req, out := c.CreateContinuousDeploymentPolicyRequest(input) + return out, req.Send() +} + +// CreateContinuousDeploymentPolicyWithContext is the same as CreateContinuousDeploymentPolicy with the addition of +// the ability to pass a context and additional request options. +// +// See CreateContinuousDeploymentPolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFront) CreateContinuousDeploymentPolicyWithContext(ctx aws.Context, input *CreateContinuousDeploymentPolicyInput, opts ...request.Option) (*CreateContinuousDeploymentPolicyOutput, error) { + req, out := c.CreateContinuousDeploymentPolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateDistribution = "CreateDistribution2020_05_31" // CreateDistributionRequest generates a "aws/request.Request" representing the @@ -393,19 +801,7 @@ func (c *CloudFront) CreateDistributionRequest(input *CreateDistributionInput) ( // CreateDistribution API operation for Amazon CloudFront. // -// Creates a new web distribution. You create a CloudFront distribution to tell -// CloudFront where you want content to be delivered from, and the details about -// how to track and manage content delivery. Send a POST request to the /CloudFront -// API version/distribution/distribution ID resource. -// -// When you update a distribution, there are more required fields than when -// you create a distribution. When you update your distribution by using UpdateDistribution -// (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html), -// follow the steps included in the documentation to get the current configuration -// and then make your updates. This helps to make sure that you include all -// of the required fields. To view a summary, see Required Fields for Create -// Distribution and Update Distribution (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html) -// in the Amazon CloudFront Developer Guide. +// Creates a CloudFront distribution. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2562,6 +2958,99 @@ func (c *CloudFront) DeleteCloudFrontOriginAccessIdentityWithContext(ctx aws.Con return out, req.Send() } +const opDeleteContinuousDeploymentPolicy = "DeleteContinuousDeploymentPolicy2020_05_31" + +// DeleteContinuousDeploymentPolicyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteContinuousDeploymentPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteContinuousDeploymentPolicy for more information on using the DeleteContinuousDeploymentPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteContinuousDeploymentPolicyRequest method. +// req, resp := client.DeleteContinuousDeploymentPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteContinuousDeploymentPolicy +func (c *CloudFront) DeleteContinuousDeploymentPolicyRequest(input *DeleteContinuousDeploymentPolicyInput) (req *request.Request, output *DeleteContinuousDeploymentPolicyOutput) { + op := &request.Operation{ + Name: opDeleteContinuousDeploymentPolicy, + HTTPMethod: "DELETE", + HTTPPath: "/2020-05-31/continuous-deployment-policy/{Id}", + } + + if input == nil { + input = &DeleteContinuousDeploymentPolicyInput{} + } + + output = &DeleteContinuousDeploymentPolicyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteContinuousDeploymentPolicy API operation for Amazon CloudFront. +// +// Deletes a continuous deployment policy. +// +// You cannot delete a continuous deployment policy that’s attached to a primary +// distribution. First update your distribution to remove the continuous deployment +// policy, then you can delete the policy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation DeleteContinuousDeploymentPolicy for usage and error information. +// +// Returned Error Codes: +// +// - ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" +// The If-Match version is missing or not valid. +// +// - ErrCodeInvalidArgument "InvalidArgument" +// An argument is invalid. +// +// - ErrCodeAccessDenied "AccessDenied" +// Access denied. +// +// - ErrCodePreconditionFailed "PreconditionFailed" +// The precondition in one or more of the request fields evaluated to false. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteContinuousDeploymentPolicy +func (c *CloudFront) DeleteContinuousDeploymentPolicy(input *DeleteContinuousDeploymentPolicyInput) (*DeleteContinuousDeploymentPolicyOutput, error) { + req, out := c.DeleteContinuousDeploymentPolicyRequest(input) + return out, req.Send() +} + +// DeleteContinuousDeploymentPolicyWithContext is the same as DeleteContinuousDeploymentPolicy with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteContinuousDeploymentPolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFront) DeleteContinuousDeploymentPolicyWithContext(ctx aws.Context, input *DeleteContinuousDeploymentPolicyInput, opts ...request.Option) (*DeleteContinuousDeploymentPolicyOutput, error) { + req, out := c.DeleteContinuousDeploymentPolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteDistribution = "DeleteDistribution2020_05_31" // DeleteDistributionRequest generates a "aws/request.Request" representing the @@ -4179,6 +4668,163 @@ func (c *CloudFront) GetCloudFrontOriginAccessIdentityConfigWithContext(ctx aws. return out, req.Send() } +const opGetContinuousDeploymentPolicy = "GetContinuousDeploymentPolicy2020_05_31" + +// GetContinuousDeploymentPolicyRequest generates a "aws/request.Request" representing the +// client's request for the GetContinuousDeploymentPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetContinuousDeploymentPolicy for more information on using the GetContinuousDeploymentPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetContinuousDeploymentPolicyRequest method. +// req, resp := client.GetContinuousDeploymentPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicy +func (c *CloudFront) GetContinuousDeploymentPolicyRequest(input *GetContinuousDeploymentPolicyInput) (req *request.Request, output *GetContinuousDeploymentPolicyOutput) { + op := &request.Operation{ + Name: opGetContinuousDeploymentPolicy, + HTTPMethod: "GET", + HTTPPath: "/2020-05-31/continuous-deployment-policy/{Id}", + } + + if input == nil { + input = &GetContinuousDeploymentPolicyInput{} + } + + output = &GetContinuousDeploymentPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetContinuousDeploymentPolicy API operation for Amazon CloudFront. +// +// Gets a continuous deployment policy, including metadata (the policy’s identifier +// and the date and time when the policy was last modified). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetContinuousDeploymentPolicy for usage and error information. +// +// Returned Error Codes: +// - ErrCodeAccessDenied "AccessDenied" +// Access denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicy +func (c *CloudFront) GetContinuousDeploymentPolicy(input *GetContinuousDeploymentPolicyInput) (*GetContinuousDeploymentPolicyOutput, error) { + req, out := c.GetContinuousDeploymentPolicyRequest(input) + return out, req.Send() +} + +// GetContinuousDeploymentPolicyWithContext is the same as GetContinuousDeploymentPolicy with the addition of +// the ability to pass a context and additional request options. +// +// See GetContinuousDeploymentPolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFront) GetContinuousDeploymentPolicyWithContext(ctx aws.Context, input *GetContinuousDeploymentPolicyInput, opts ...request.Option) (*GetContinuousDeploymentPolicyOutput, error) { + req, out := c.GetContinuousDeploymentPolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetContinuousDeploymentPolicyConfig = "GetContinuousDeploymentPolicyConfig2020_05_31" + +// GetContinuousDeploymentPolicyConfigRequest generates a "aws/request.Request" representing the +// client's request for the GetContinuousDeploymentPolicyConfig operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetContinuousDeploymentPolicyConfig for more information on using the GetContinuousDeploymentPolicyConfig +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetContinuousDeploymentPolicyConfigRequest method. +// req, resp := client.GetContinuousDeploymentPolicyConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicyConfig +func (c *CloudFront) GetContinuousDeploymentPolicyConfigRequest(input *GetContinuousDeploymentPolicyConfigInput) (req *request.Request, output *GetContinuousDeploymentPolicyConfigOutput) { + op := &request.Operation{ + Name: opGetContinuousDeploymentPolicyConfig, + HTTPMethod: "GET", + HTTPPath: "/2020-05-31/continuous-deployment-policy/{Id}/config", + } + + if input == nil { + input = &GetContinuousDeploymentPolicyConfigInput{} + } + + output = &GetContinuousDeploymentPolicyConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetContinuousDeploymentPolicyConfig API operation for Amazon CloudFront. +// +// Gets configuration information about a continuous deployment policy. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation GetContinuousDeploymentPolicyConfig for usage and error information. +// +// Returned Error Codes: +// - ErrCodeAccessDenied "AccessDenied" +// Access denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetContinuousDeploymentPolicyConfig +func (c *CloudFront) GetContinuousDeploymentPolicyConfig(input *GetContinuousDeploymentPolicyConfigInput) (*GetContinuousDeploymentPolicyConfigOutput, error) { + req, out := c.GetContinuousDeploymentPolicyConfigRequest(input) + return out, req.Send() +} + +// GetContinuousDeploymentPolicyConfigWithContext is the same as GetContinuousDeploymentPolicyConfig with the addition of +// the ability to pass a context and additional request options. +// +// See GetContinuousDeploymentPolicyConfig for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFront) GetContinuousDeploymentPolicyConfigWithContext(ctx aws.Context, input *GetContinuousDeploymentPolicyConfigInput, opts ...request.Option) (*GetContinuousDeploymentPolicyConfigOutput, error) { + req, out := c.GetContinuousDeploymentPolicyConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetDistribution = "GetDistribution2020_05_31" // GetDistributionRequest generates a "aws/request.Request" representing the @@ -6378,6 +7024,95 @@ func (c *CloudFront) ListConflictingAliasesWithContext(ctx aws.Context, input *L return out, req.Send() } +const opListContinuousDeploymentPolicies = "ListContinuousDeploymentPolicies2020_05_31" + +// ListContinuousDeploymentPoliciesRequest generates a "aws/request.Request" representing the +// client's request for the ListContinuousDeploymentPolicies operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListContinuousDeploymentPolicies for more information on using the ListContinuousDeploymentPolicies +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListContinuousDeploymentPoliciesRequest method. +// req, resp := client.ListContinuousDeploymentPoliciesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListContinuousDeploymentPolicies +func (c *CloudFront) ListContinuousDeploymentPoliciesRequest(input *ListContinuousDeploymentPoliciesInput) (req *request.Request, output *ListContinuousDeploymentPoliciesOutput) { + op := &request.Operation{ + Name: opListContinuousDeploymentPolicies, + HTTPMethod: "GET", + HTTPPath: "/2020-05-31/continuous-deployment-policy", + } + + if input == nil { + input = &ListContinuousDeploymentPoliciesInput{} + } + + output = &ListContinuousDeploymentPoliciesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListContinuousDeploymentPolicies API operation for Amazon CloudFront. +// +// Gets a list of the continuous deployment policies in your Amazon Web Services +// account. +// +// You can optionally specify the maximum number of items to receive in the +// response. If the total number of items in the list exceeds the maximum that +// you specify, or the default maximum, the response is paginated. To get the +// next page of items, send a subsequent request that specifies the NextMarker +// value from the current response as the Marker value in the subsequent request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation ListContinuousDeploymentPolicies for usage and error information. +// +// Returned Error Codes: +// +// - ErrCodeInvalidArgument "InvalidArgument" +// An argument is invalid. +// +// - ErrCodeAccessDenied "AccessDenied" +// Access denied. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListContinuousDeploymentPolicies +func (c *CloudFront) ListContinuousDeploymentPolicies(input *ListContinuousDeploymentPoliciesInput) (*ListContinuousDeploymentPoliciesOutput, error) { + req, out := c.ListContinuousDeploymentPoliciesRequest(input) + return out, req.Send() +} + +// ListContinuousDeploymentPoliciesWithContext is the same as ListContinuousDeploymentPolicies with the addition of +// the ability to pass a context and additional request options. +// +// See ListContinuousDeploymentPolicies for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFront) ListContinuousDeploymentPoliciesWithContext(ctx aws.Context, input *ListContinuousDeploymentPoliciesInput, opts ...request.Option) (*ListContinuousDeploymentPoliciesOutput, error) { + req, out := c.ListContinuousDeploymentPoliciesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListDistributions = "ListDistributions2020_05_31" // ListDistributionsRequest generates a "aws/request.Request" representing the @@ -8805,6 +9540,117 @@ func (c *CloudFront) UpdateCloudFrontOriginAccessIdentityWithContext(ctx aws.Con return out, req.Send() } +const opUpdateContinuousDeploymentPolicy = "UpdateContinuousDeploymentPolicy2020_05_31" + +// UpdateContinuousDeploymentPolicyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateContinuousDeploymentPolicy operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateContinuousDeploymentPolicy for more information on using the UpdateContinuousDeploymentPolicy +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateContinuousDeploymentPolicyRequest method. +// req, resp := client.UpdateContinuousDeploymentPolicyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateContinuousDeploymentPolicy +func (c *CloudFront) UpdateContinuousDeploymentPolicyRequest(input *UpdateContinuousDeploymentPolicyInput) (req *request.Request, output *UpdateContinuousDeploymentPolicyOutput) { + op := &request.Operation{ + Name: opUpdateContinuousDeploymentPolicy, + HTTPMethod: "PUT", + HTTPPath: "/2020-05-31/continuous-deployment-policy/{Id}", + } + + if input == nil { + input = &UpdateContinuousDeploymentPolicyInput{} + } + + output = &UpdateContinuousDeploymentPolicyOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateContinuousDeploymentPolicy API operation for Amazon CloudFront. +// +// Updates a continuous deployment policy. You can update a continuous deployment +// policy to enable or disable it, to change the percentage of traffic that +// it sends to the staging distribution, or to change the staging distribution +// that it sends traffic to. +// +// When you update a continuous deployment policy configuration, all the fields +// are updated with the values that are provided in the request. You cannot +// update some fields independent of others. To update a continuous deployment +// policy configuration: +// +// Use GetContinuousDeploymentPolicyConfig to get the current configuration. +// +// Locally modify the fields in the continuous deployment policy configuration +// that you want to update. +// +// Use UpdateContinuousDeploymentPolicy, providing the entire continuous deployment +// policy configuration, including the fields that you modified and those that +// you didn’t. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CloudFront's +// API operation UpdateContinuousDeploymentPolicy for usage and error information. +// +// Returned Error Codes: +// +// - ErrCodeInvalidIfMatchVersion "InvalidIfMatchVersion" +// The If-Match version is missing or not valid. +// +// - ErrCodeInvalidArgument "InvalidArgument" +// An argument is invalid. +// +// - ErrCodeAccessDenied "AccessDenied" +// Access denied. +// +// - ErrCodeInconsistentQuantities "InconsistentQuantities" +// The value of Quantity and the size of Items don't match. +// +// - ErrCodePreconditionFailed "PreconditionFailed" +// The precondition in one or more of the request fields evaluated to false. +// +// - ErrCodeStagingDistributionInUse "StagingDistributionInUse" +// A continuous deployment policy for this staging distribution already exists. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateContinuousDeploymentPolicy +func (c *CloudFront) UpdateContinuousDeploymentPolicy(input *UpdateContinuousDeploymentPolicyInput) (*UpdateContinuousDeploymentPolicyOutput, error) { + req, out := c.UpdateContinuousDeploymentPolicyRequest(input) + return out, req.Send() +} + +// UpdateContinuousDeploymentPolicyWithContext is the same as UpdateContinuousDeploymentPolicy with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateContinuousDeploymentPolicy for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CloudFront) UpdateContinuousDeploymentPolicyWithContext(ctx aws.Context, input *UpdateContinuousDeploymentPolicyInput, opts ...request.Option) (*UpdateContinuousDeploymentPolicyOutput, error) { + req, out := c.UpdateContinuousDeploymentPolicyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateDistribution = "UpdateDistribution2020_05_31" // UpdateDistributionRequest generates a "aws/request.Request" representing the @@ -8848,70 +9694,30 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // UpdateDistribution API operation for Amazon CloudFront. // -// Updates the configuration for a web distribution. -// -// When you update a distribution, there are more required fields than when -// you create a distribution. When you update your distribution by using this -// API action, follow the steps here to get the current configuration and then -// make your updates, to make sure that you include all of the required fields. -// To view a summary, see Required Fields for Create Distribution and Update -// Distribution (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-overview-required-fields.html) -// in the Amazon CloudFront Developer Guide. +// Updates the configuration for a CloudFront distribution. // // The update process includes getting the current distribution configuration, -// updating the XML document that is returned to make your changes, and then -// submitting an UpdateDistribution request to make the updates. -// -// For information about updating a distribution using the CloudFront console -// instead, see Creating a Distribution (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-creating-console.html) -// in the Amazon CloudFront Developer Guide. +// updating it to make your changes, and then submitting an UpdateDistribution +// request to make the updates. // // # To update a web distribution using the CloudFront API // -// Submit a GetDistributionConfig (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistributionConfig.html) -// request to get the current configuration and an Etag header for the distribution. -// -// If you update the distribution again, you must get a new Etag header. -// -// Update the XML document that was returned in the response to your GetDistributionConfig -// request to include your changes. -// -// When you edit the XML file, be aware of the following: -// -// - You must strip out the ETag parameter that is returned. -// -// - Additional fields are required when you update a distribution. There -// may be fields included in the XML file for features that you haven't configured -// for your distribution. This is expected and required to successfully update -// the distribution. -// -// - You can't change the value of CallerReference. If you try to change -// this value, CloudFront returns an IllegalUpdate error. -// -// - The new configuration replaces the existing configuration; the values -// that you specify in an UpdateDistribution request are not merged into -// your existing configuration. When you add, delete, or replace values in -// an element that allows multiple values (for example, CNAME), you must -// specify all of the values that you want to appear in the updated distribution. -// In addition, you must update the corresponding Quantity element. -// -// Submit an UpdateDistribution request to update the configuration for your -// distribution: +// Use GetDistributionConfig to get the current configuration, including the +// version identifier (ETag). // -// - In the request body, include the XML document that you updated in Step -// 2. The request body must include an XML document with a DistributionConfig -// element. +// Update the distribution configuration that was returned in the response. +// Note the following important requirements and restrictions: // -// - Set the value of the HTTP If-Match header to the value of the ETag header -// that CloudFront returned when you submitted the GetDistributionConfig -// request in Step 1. +// - You must rename the ETag field to IfMatch, leaving the value unchanged. +// (Set the value of IfMatch to the value of ETag, then remove the ETag field.) // -// Review the response to the UpdateDistribution request to confirm that the -// configuration was successfully updated. +// - You can’t change the value of CallerReference. // -// Optional: Submit a GetDistribution (https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GetDistribution.html) -// request to confirm that your changes have propagated. When propagation is -// complete, the value of Status is Deployed. +// Submit an UpdateDistribution request, providing the distribution configuration. +// The new configuration replaces the existing configuration. The values that +// you specify in an UpdateDistribution request are not merged into your existing +// configuration. Make sure to include all fields: the ones that you modified +// and also the ones that you didn’t. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -9136,6 +9942,9 @@ func (c *CloudFront) UpdateDistributionRequest(input *UpdateDistributionInput) ( // The specified real-time log configuration belongs to a different Amazon Web // Services account. // +// - ErrCodeStagingDistributionInUse "StagingDistributionInUse" +// A continuous deployment policy for this staging distribution already exists. +// // - ErrCodeIllegalOriginAccessConfiguration "IllegalOriginAccessConfiguration" // An origin cannot contain both an origin access control (OAC) and an origin // access identity (OAI). @@ -12177,6 +12986,377 @@ func (s *ContentTypeProfiles) SetQuantity(v int64) *ContentTypeProfiles { return s } +// A continuous deployment policy. +type ContinuousDeploymentPolicy struct { + _ struct{} `type:"structure"` + + // Contains the configuration for a continuous deployment policy. + // + // ContinuousDeploymentPolicyConfig is a required field + ContinuousDeploymentPolicyConfig *ContinuousDeploymentPolicyConfig `type:"structure" required:"true"` + + // The identifier of the continuous deployment policy. + // + // Id is a required field + Id *string `type:"string" required:"true"` + + // The date and time the continuous deployment policy was last modified. + // + // LastModifiedTime is a required field + LastModifiedTime *time.Time `type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicy) GoString() string { + return s.String() +} + +// SetContinuousDeploymentPolicyConfig sets the ContinuousDeploymentPolicyConfig field's value. +func (s *ContinuousDeploymentPolicy) SetContinuousDeploymentPolicyConfig(v *ContinuousDeploymentPolicyConfig) *ContinuousDeploymentPolicy { + s.ContinuousDeploymentPolicyConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *ContinuousDeploymentPolicy) SetId(v string) *ContinuousDeploymentPolicy { + s.Id = &v + return s +} + +// SetLastModifiedTime sets the LastModifiedTime field's value. +func (s *ContinuousDeploymentPolicy) SetLastModifiedTime(v time.Time) *ContinuousDeploymentPolicy { + s.LastModifiedTime = &v + return s +} + +// Contains the configuration for a continuous deployment policy. +type ContinuousDeploymentPolicyConfig struct { + _ struct{} `type:"structure"` + + // A Boolean that indicates whether this continuous deployment policy is enabled + // (in effect). When this value is true, this policy is enabled and in effect. + // When this value is false, this policy is not enabled and has no effect. + // + // Enabled is a required field + Enabled *bool `type:"boolean" required:"true"` + + // The CloudFront domain name of the staging distribution. For example: d111111abcdef8.cloudfront.net. + // + // StagingDistributionDnsNames is a required field + StagingDistributionDnsNames *StagingDistributionDnsNames `type:"structure" required:"true"` + + // Contains the parameters for routing production traffic from your primary + // to staging distributions. + TrafficConfig *TrafficConfig `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicyConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicyConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContinuousDeploymentPolicyConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContinuousDeploymentPolicyConfig"} + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) + } + if s.StagingDistributionDnsNames == nil { + invalidParams.Add(request.NewErrParamRequired("StagingDistributionDnsNames")) + } + if s.StagingDistributionDnsNames != nil { + if err := s.StagingDistributionDnsNames.Validate(); err != nil { + invalidParams.AddNested("StagingDistributionDnsNames", err.(request.ErrInvalidParams)) + } + } + if s.TrafficConfig != nil { + if err := s.TrafficConfig.Validate(); err != nil { + invalidParams.AddNested("TrafficConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnabled sets the Enabled field's value. +func (s *ContinuousDeploymentPolicyConfig) SetEnabled(v bool) *ContinuousDeploymentPolicyConfig { + s.Enabled = &v + return s +} + +// SetStagingDistributionDnsNames sets the StagingDistributionDnsNames field's value. +func (s *ContinuousDeploymentPolicyConfig) SetStagingDistributionDnsNames(v *StagingDistributionDnsNames) *ContinuousDeploymentPolicyConfig { + s.StagingDistributionDnsNames = v + return s +} + +// SetTrafficConfig sets the TrafficConfig field's value. +func (s *ContinuousDeploymentPolicyConfig) SetTrafficConfig(v *TrafficConfig) *ContinuousDeploymentPolicyConfig { + s.TrafficConfig = v + return s +} + +// Contains a list of continuous deployment policies. +type ContinuousDeploymentPolicyList struct { + _ struct{} `type:"structure"` + + // A list of continuous deployment policy items. + Items []*ContinuousDeploymentPolicySummary `locationNameList:"ContinuousDeploymentPolicySummary" type:"list"` + + // The maximum number of continuous deployment policies that were specified + // in your request. + // + // MaxItems is a required field + MaxItems *int64 `type:"integer" required:"true"` + + // Indicates the next page of continuous deployment policies. To get the next + // page of the list, use this value in the Marker field of your request. + NextMarker *string `type:"string"` + + // The total number of continuous deployment policies in your Amazon Web Services + // account, regardless of the MaxItems value. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicyList) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicyList) GoString() string { + return s.String() +} + +// SetItems sets the Items field's value. +func (s *ContinuousDeploymentPolicyList) SetItems(v []*ContinuousDeploymentPolicySummary) *ContinuousDeploymentPolicyList { + s.Items = v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ContinuousDeploymentPolicyList) SetMaxItems(v int64) *ContinuousDeploymentPolicyList { + s.MaxItems = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ContinuousDeploymentPolicyList) SetNextMarker(v string) *ContinuousDeploymentPolicyList { + s.NextMarker = &v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *ContinuousDeploymentPolicyList) SetQuantity(v int64) *ContinuousDeploymentPolicyList { + s.Quantity = &v + return s +} + +// A summary of the information about your continuous deployment policies. +type ContinuousDeploymentPolicySummary struct { + _ struct{} `type:"structure"` + + // The continuous deployment policy. + // + // ContinuousDeploymentPolicy is a required field + ContinuousDeploymentPolicy *ContinuousDeploymentPolicy `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicySummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentPolicySummary) GoString() string { + return s.String() +} + +// SetContinuousDeploymentPolicy sets the ContinuousDeploymentPolicy field's value. +func (s *ContinuousDeploymentPolicySummary) SetContinuousDeploymentPolicy(v *ContinuousDeploymentPolicy) *ContinuousDeploymentPolicySummary { + s.ContinuousDeploymentPolicy = v + return s +} + +// This configuration determines which HTTP requests are sent to the staging +// distribution. If the HTTP request contains a header and value that matches +// what you specify here, the request is sent to the staging distribution. Otherwise +// the request is sent to the primary distribution. +type ContinuousDeploymentSingleHeaderConfig struct { + _ struct{} `type:"structure"` + + // The request header name that you want CloudFront to send to your staging + // distribution. + // + // Header is a required field + Header *string `type:"string" required:"true"` + + // The request header value. + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentSingleHeaderConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentSingleHeaderConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContinuousDeploymentSingleHeaderConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContinuousDeploymentSingleHeaderConfig"} + if s.Header == nil { + invalidParams.Add(request.NewErrParamRequired("Header")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHeader sets the Header field's value. +func (s *ContinuousDeploymentSingleHeaderConfig) SetHeader(v string) *ContinuousDeploymentSingleHeaderConfig { + s.Header = &v + return s +} + +// SetValue sets the Value field's value. +func (s *ContinuousDeploymentSingleHeaderConfig) SetValue(v string) *ContinuousDeploymentSingleHeaderConfig { + s.Value = &v + return s +} + +// Contains the percentage of traffic to send to a staging distribution, expressed +// as a decimal number between 0 and 1. +type ContinuousDeploymentSingleWeightConfig struct { + _ struct{} `type:"structure"` + + // Session stickiness provides the ability to define multiple requests from + // a single viewer as a single session. This prevents the potentially inconsistent + // experience of sending some of a given user's requests to your staging distribution, + // while others are sent to your primary distribution. Define the session duration + // using TTL values. + SessionStickinessConfig *SessionStickinessConfig `type:"structure"` + + // The percentage of traffic to send to the staging distribution, expressed + // as a decimal number between 0 and 1. + // + // Weight is a required field + Weight *float64 `type:"float" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentSingleWeightConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ContinuousDeploymentSingleWeightConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ContinuousDeploymentSingleWeightConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ContinuousDeploymentSingleWeightConfig"} + if s.Weight == nil { + invalidParams.Add(request.NewErrParamRequired("Weight")) + } + if s.SessionStickinessConfig != nil { + if err := s.SessionStickinessConfig.Validate(); err != nil { + invalidParams.AddNested("SessionStickinessConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSessionStickinessConfig sets the SessionStickinessConfig field's value. +func (s *ContinuousDeploymentSingleWeightConfig) SetSessionStickinessConfig(v *SessionStickinessConfig) *ContinuousDeploymentSingleWeightConfig { + s.SessionStickinessConfig = v + return s +} + +// SetWeight sets the Weight field's value. +func (s *ContinuousDeploymentSingleWeightConfig) SetWeight(v float64) *ContinuousDeploymentSingleWeightConfig { + s.Weight = &v + return s +} + // Contains a list of cookie names. type CookieNames struct { _ struct{} `type:"structure"` @@ -12347,6 +13527,144 @@ func (s *CookiePreference) SetWhitelistedNames(v *CookieNames) *CookiePreference return s } +type CopyDistributionInput struct { + _ struct{} `locationName:"CopyDistributionRequest" type:"structure" xmlURI:"http://cloudfront.amazonaws.com/doc/2020-05-31/"` + + // A value that uniquely identifies a request to create a resource. This helps + // to prevent CloudFront from creating a duplicate resource if you accidentally + // resubmit an identical request. + // + // CallerReference is a required field + CallerReference *string `type:"string" required:"true"` + + // The version identifier of the primary distribution whose configuration you + // are copying. This is the ETag value returned in the response to GetDistribution + // and GetDistributionConfig. + IfMatch *string `location:"header" locationName:"If-Match" type:"string"` + + // The identifier of the primary distribution whose configuration you are copying. + // To get a distribution ID, use ListDistributions. + // + // PrimaryDistributionId is a required field + PrimaryDistributionId *string `location:"uri" locationName:"PrimaryDistributionId" type:"string" required:"true"` + + // The type of distribution that your primary distribution will be copied to. + // The only valid value is True, indicating that you are copying to a staging + // distribution. + Staging *bool `location:"header" locationName:"Staging" type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CopyDistributionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CopyDistributionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CopyDistributionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CopyDistributionInput"} + if s.CallerReference == nil { + invalidParams.Add(request.NewErrParamRequired("CallerReference")) + } + if s.PrimaryDistributionId == nil { + invalidParams.Add(request.NewErrParamRequired("PrimaryDistributionId")) + } + if s.PrimaryDistributionId != nil && len(*s.PrimaryDistributionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PrimaryDistributionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallerReference sets the CallerReference field's value. +func (s *CopyDistributionInput) SetCallerReference(v string) *CopyDistributionInput { + s.CallerReference = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *CopyDistributionInput) SetIfMatch(v string) *CopyDistributionInput { + s.IfMatch = &v + return s +} + +// SetPrimaryDistributionId sets the PrimaryDistributionId field's value. +func (s *CopyDistributionInput) SetPrimaryDistributionId(v string) *CopyDistributionInput { + s.PrimaryDistributionId = &v + return s +} + +// SetStaging sets the Staging field's value. +func (s *CopyDistributionInput) SetStaging(v bool) *CopyDistributionInput { + s.Staging = &v + return s +} + +type CopyDistributionOutput struct { + _ struct{} `type:"structure" payload:"Distribution"` + + // A distribution tells CloudFront where you want content to be delivered from, + // and the details about how to track and manage content delivery. + Distribution *Distribution `type:"structure"` + + // The version identifier for the current version of the staging distribution. + ETag *string `location:"header" locationName:"ETag" type:"string"` + + // The URL of the staging distribution. + Location *string `location:"header" locationName:"Location" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CopyDistributionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CopyDistributionOutput) GoString() string { + return s.String() +} + +// SetDistribution sets the Distribution field's value. +func (s *CopyDistributionOutput) SetDistribution(v *Distribution) *CopyDistributionOutput { + s.Distribution = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CopyDistributionOutput) SetETag(v string) *CopyDistributionOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CopyDistributionOutput) SetLocation(v string) *CopyDistributionOutput { + s.Location = &v + return s +} + type CreateCachePolicyInput struct { _ struct{} `locationName:"CreateCachePolicyRequest" type:"structure" payload:"CachePolicyConfig"` @@ -12554,6 +13872,107 @@ func (s *CreateCloudFrontOriginAccessIdentityOutput) SetLocation(v string) *Crea return s } +type CreateContinuousDeploymentPolicyInput struct { + _ struct{} `locationName:"CreateContinuousDeploymentPolicyRequest" type:"structure" payload:"ContinuousDeploymentPolicyConfig"` + + // Contains the configuration for a continuous deployment policy. + // + // ContinuousDeploymentPolicyConfig is a required field + ContinuousDeploymentPolicyConfig *ContinuousDeploymentPolicyConfig `locationName:"ContinuousDeploymentPolicyConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2020-05-31/"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateContinuousDeploymentPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateContinuousDeploymentPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateContinuousDeploymentPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateContinuousDeploymentPolicyInput"} + if s.ContinuousDeploymentPolicyConfig == nil { + invalidParams.Add(request.NewErrParamRequired("ContinuousDeploymentPolicyConfig")) + } + if s.ContinuousDeploymentPolicyConfig != nil { + if err := s.ContinuousDeploymentPolicyConfig.Validate(); err != nil { + invalidParams.AddNested("ContinuousDeploymentPolicyConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContinuousDeploymentPolicyConfig sets the ContinuousDeploymentPolicyConfig field's value. +func (s *CreateContinuousDeploymentPolicyInput) SetContinuousDeploymentPolicyConfig(v *ContinuousDeploymentPolicyConfig) *CreateContinuousDeploymentPolicyInput { + s.ContinuousDeploymentPolicyConfig = v + return s +} + +type CreateContinuousDeploymentPolicyOutput struct { + _ struct{} `type:"structure" payload:"ContinuousDeploymentPolicy"` + + // A continuous deployment policy. + ContinuousDeploymentPolicy *ContinuousDeploymentPolicy `type:"structure"` + + // The version identifier for the current version of the continuous deployment + // policy. + ETag *string `location:"header" locationName:"ETag" type:"string"` + + // The location of the continuous deployment policy. + Location *string `location:"header" locationName:"Location" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateContinuousDeploymentPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateContinuousDeploymentPolicyOutput) GoString() string { + return s.String() +} + +// SetContinuousDeploymentPolicy sets the ContinuousDeploymentPolicy field's value. +func (s *CreateContinuousDeploymentPolicyOutput) SetContinuousDeploymentPolicy(v *ContinuousDeploymentPolicy) *CreateContinuousDeploymentPolicyOutput { + s.ContinuousDeploymentPolicy = v + return s +} + +// SetETag sets the ETag field's value. +func (s *CreateContinuousDeploymentPolicyOutput) SetETag(v string) *CreateContinuousDeploymentPolicyOutput { + s.ETag = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *CreateContinuousDeploymentPolicyOutput) SetLocation(v string) *CreateContinuousDeploymentPolicyOutput { + s.Location = &v + return s +} + // The request to create a new distribution. type CreateDistributionInput struct { _ struct{} `locationName:"CreateDistributionRequest" type:"structure" payload:"DistributionConfig"` @@ -15121,6 +16540,87 @@ func (s DeleteCloudFrontOriginAccessIdentityOutput) GoString() string { return s.String() } +type DeleteContinuousDeploymentPolicyInput struct { + _ struct{} `locationName:"DeleteContinuousDeploymentPolicyRequest" type:"structure"` + + // The identifier of the continuous deployment policy that you are deleting. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The current version (ETag value) of the continuous deployment policy that + // you are deleting. + IfMatch *string `location:"header" locationName:"If-Match" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteContinuousDeploymentPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteContinuousDeploymentPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteContinuousDeploymentPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteContinuousDeploymentPolicyInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *DeleteContinuousDeploymentPolicyInput) SetId(v string) *DeleteContinuousDeploymentPolicyInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *DeleteContinuousDeploymentPolicyInput) SetIfMatch(v string) *DeleteContinuousDeploymentPolicyInput { + s.IfMatch = &v + return s +} + +type DeleteContinuousDeploymentPolicyOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteContinuousDeploymentPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteContinuousDeploymentPolicyOutput) GoString() string { + return s.String() +} + // This action deletes a web distribution. To delete a web distribution using // the CloudFront API, perform the following steps. // @@ -16215,8 +17715,7 @@ func (s *DescribeFunctionOutput) SetFunctionSummary(v *FunctionSummary) *Describ type Distribution struct { _ struct{} `type:"structure"` - // The ARN (Amazon Resource Name) for the distribution. For example: arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, - // where 123456789012 is your Amazon Web Services account ID. + // The distribution’s Amazon Resource Name (ARN). // // ARN is a required field ARN *string `type:"string" required:"true"` @@ -16249,18 +17748,17 @@ type Distribution struct { // in Getting Started with Amazon Web Services services in China. AliasICPRecordals []*AliasICPRecordal `locationNameList:"AliasICPRecordal" type:"list"` - // The current configuration information for the distribution. Send a GET request - // to the /CloudFront API version/distribution ID/config resource. + // The distribution’s configuration. // // DistributionConfig is a required field DistributionConfig *DistributionConfig `type:"structure" required:"true"` - // The domain name corresponding to the distribution, for example, d111111abcdef8.cloudfront.net. + // The distribution’s CloudFront domain name. For example: d111111abcdef8.cloudfront.net. // // DomainName is a required field DomainName *string `type:"string" required:"true"` - // The identifier for the distribution. For example: EDFDVBD632BHDS5. + // The distribution’s identifier. For example: E1U5RQF7T870K0. // // Id is a required field Id *string `type:"string" required:"true"` @@ -16270,14 +17768,13 @@ type Distribution struct { // InProgressInvalidationBatches is a required field InProgressInvalidationBatches *int64 `type:"integer" required:"true"` - // The date and time the distribution was last modified. + // The date and time when the distribution was last modified. // // LastModifiedTime is a required field LastModifiedTime *time.Time `type:"timestamp" required:"true"` - // This response element indicates the current status of the distribution. When - // the status is Deployed, the distribution's information is fully propagated - // to all CloudFront edge locations. + // The distribution’s status. When the status is Deployed, the distribution’s + // information is fully propagated to all CloudFront edge locations. // // Status is a required field Status *string `type:"string" required:"true"` @@ -16415,8 +17912,8 @@ type DistributionConfig struct { DefaultCacheBehavior *DefaultCacheBehavior `type:"structure" required:"true"` // The object that you want CloudFront to request from your origin (for example, - // index.html) when a viewer requests the root URL for your distribution (http://www.example.com) - // instead of an object in your distribution (http://www.example.com/product-description.html). + // index.html) when a viewer requests the root URL for your distribution (https://www.example.com) + // instead of an object in your distribution (https://www.example.com/product-description.html). // Specifying a default root object avoids exposing the contents of your distribution. // // Specify only the object name, for example, index.html. Don't add a / before @@ -19150,6 +20647,187 @@ func (s *GetCloudFrontOriginAccessIdentityOutput) SetETag(v string) *GetCloudFro return s } +type GetContinuousDeploymentPolicyConfigInput struct { + _ struct{} `locationName:"GetContinuousDeploymentPolicyConfigRequest" type:"structure"` + + // The identifier of the continuous deployment policy whose configuration you + // are getting. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetContinuousDeploymentPolicyConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetContinuousDeploymentPolicyConfigInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *GetContinuousDeploymentPolicyConfigInput) SetId(v string) *GetContinuousDeploymentPolicyConfigInput { + s.Id = &v + return s +} + +type GetContinuousDeploymentPolicyConfigOutput struct { + _ struct{} `type:"structure" payload:"ContinuousDeploymentPolicyConfig"` + + // Contains the configuration for a continuous deployment policy. + ContinuousDeploymentPolicyConfig *ContinuousDeploymentPolicyConfig `type:"structure"` + + // The version identifier for the current version of the continuous deployment + // policy. + ETag *string `location:"header" locationName:"ETag" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyConfigOutput) GoString() string { + return s.String() +} + +// SetContinuousDeploymentPolicyConfig sets the ContinuousDeploymentPolicyConfig field's value. +func (s *GetContinuousDeploymentPolicyConfigOutput) SetContinuousDeploymentPolicyConfig(v *ContinuousDeploymentPolicyConfig) *GetContinuousDeploymentPolicyConfigOutput { + s.ContinuousDeploymentPolicyConfig = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetContinuousDeploymentPolicyConfigOutput) SetETag(v string) *GetContinuousDeploymentPolicyConfigOutput { + s.ETag = &v + return s +} + +type GetContinuousDeploymentPolicyInput struct { + _ struct{} `locationName:"GetContinuousDeploymentPolicyRequest" type:"structure"` + + // The identifier of the continuous deployment policy that you are getting. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetContinuousDeploymentPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetContinuousDeploymentPolicyInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *GetContinuousDeploymentPolicyInput) SetId(v string) *GetContinuousDeploymentPolicyInput { + s.Id = &v + return s +} + +type GetContinuousDeploymentPolicyOutput struct { + _ struct{} `type:"structure" payload:"ContinuousDeploymentPolicy"` + + // A continuous deployment policy. + ContinuousDeploymentPolicy *ContinuousDeploymentPolicy `type:"structure"` + + // The version identifier for the current version of the continuous deployment + // policy. + ETag *string `location:"header" locationName:"ETag" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetContinuousDeploymentPolicyOutput) GoString() string { + return s.String() +} + +// SetContinuousDeploymentPolicy sets the ContinuousDeploymentPolicy field's value. +func (s *GetContinuousDeploymentPolicyOutput) SetContinuousDeploymentPolicy(v *ContinuousDeploymentPolicy) *GetContinuousDeploymentPolicyOutput { + s.ContinuousDeploymentPolicy = v + return s +} + +// SetETag sets the ETag field's value. +func (s *GetContinuousDeploymentPolicyOutput) SetETag(v string) *GetContinuousDeploymentPolicyOutput { + s.ETag = &v + return s +} + // The request to get a distribution configuration. type GetDistributionConfigInput struct { _ struct{} `locationName:"GetDistributionConfigRequest" type:"structure"` @@ -22343,6 +24021,82 @@ func (s *ListConflictingAliasesOutput) SetConflictingAliasesList(v *ConflictingA return s } +type ListContinuousDeploymentPoliciesInput struct { + _ struct{} `locationName:"ListContinuousDeploymentPoliciesRequest" type:"structure"` + + // Use this field when paginating results to indicate where to begin in your + // list of continuous deployment policies. The response includes policies in + // the list that occur after the marker. To get the next page of the list, set + // this field’s value to the value of NextMarker from the current page’s + // response. + Marker *string `location:"querystring" locationName:"Marker" type:"string"` + + // The maximum number of continuous deployment policies that you want returned + // in the response. + MaxItems *int64 `location:"querystring" locationName:"MaxItems" type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListContinuousDeploymentPoliciesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListContinuousDeploymentPoliciesInput) GoString() string { + return s.String() +} + +// SetMarker sets the Marker field's value. +func (s *ListContinuousDeploymentPoliciesInput) SetMarker(v string) *ListContinuousDeploymentPoliciesInput { + s.Marker = &v + return s +} + +// SetMaxItems sets the MaxItems field's value. +func (s *ListContinuousDeploymentPoliciesInput) SetMaxItems(v int64) *ListContinuousDeploymentPoliciesInput { + s.MaxItems = &v + return s +} + +type ListContinuousDeploymentPoliciesOutput struct { + _ struct{} `type:"structure" payload:"ContinuousDeploymentPolicyList"` + + // A list of continuous deployment policies. + ContinuousDeploymentPolicyList *ContinuousDeploymentPolicyList `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListContinuousDeploymentPoliciesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListContinuousDeploymentPoliciesOutput) GoString() string { + return s.String() +} + +// SetContinuousDeploymentPolicyList sets the ContinuousDeploymentPolicyList field's value. +func (s *ListContinuousDeploymentPoliciesOutput) SetContinuousDeploymentPolicyList(v *ContinuousDeploymentPolicyList) *ListContinuousDeploymentPoliciesOutput { + s.ContinuousDeploymentPolicyList = v + return s +} + type ListDistributionsByCachePolicyIdInput struct { _ struct{} `locationName:"ListDistributionsByCachePolicyIdRequest" type:"structure"` @@ -24420,9 +26174,7 @@ type OriginAccessControlConfig struct { _ struct{} `type:"structure"` // A description of the origin access control. - // - // Description is a required field - Description *string `type:"string" required:"true"` + Description *string `type:"string"` // A name to identify the origin access control. // @@ -24489,9 +26241,6 @@ func (s OriginAccessControlConfig) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *OriginAccessControlConfig) Validate() error { invalidParams := request.ErrInvalidParams{Context: "OriginAccessControlConfig"} - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) - } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -29164,6 +30913,77 @@ func (s *S3OriginConfig) SetOriginAccessIdentity(v string) *S3OriginConfig { return s } +// Session stickiness provides the ability to define multiple requests from +// a single viewer as a single session. This prevents the potentially inconsistent +// experience of sending some of a given user's requests to your staging distribution, +// while others are sent to your primary distribution. Define the session duration +// using TTL values. +type SessionStickinessConfig struct { + _ struct{} `type:"structure"` + + // The amount of time after which you want sessions to cease if no requests + // are received. Allowed values are 300–3600 seconds (5–60 minutes). + // + // The value must be less than or equal to MaximumTTL. + // + // IdleTTL is a required field + IdleTTL *int64 `type:"integer" required:"true"` + + // The maximum amount of time to consider requests from the viewer as being + // part of the same session. Allowed values are 300–3600 seconds (5–60 minutes). + // + // The value must be less than or equal to IdleTTL. + // + // MaximumTTL is a required field + MaximumTTL *int64 `type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SessionStickinessConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SessionStickinessConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SessionStickinessConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SessionStickinessConfig"} + if s.IdleTTL == nil { + invalidParams.Add(request.NewErrParamRequired("IdleTTL")) + } + if s.MaximumTTL == nil { + invalidParams.Add(request.NewErrParamRequired("MaximumTTL")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIdleTTL sets the IdleTTL field's value. +func (s *SessionStickinessConfig) SetIdleTTL(v int64) *SessionStickinessConfig { + s.IdleTTL = &v + return s +} + +// SetMaximumTTL sets the MaximumTTL field's value. +func (s *SessionStickinessConfig) SetMaximumTTL(v int64) *SessionStickinessConfig { + s.MaximumTTL = &v + return s +} + // A list of Amazon Web Services accounts and the active CloudFront key pairs // in each account that CloudFront can use to verify the signatures of signed // URLs and signed cookies. @@ -29211,6 +31031,62 @@ func (s *Signer) SetKeyPairIds(v *KeyPairIds) *Signer { return s } +// The CloudFront domain name of the staging distribution. +type StagingDistributionDnsNames struct { + _ struct{} `type:"structure"` + + // The CloudFront domain name of the staging distribution. + Items []*string `locationNameList:"DnsName" type:"list"` + + // The number of CloudFront domain names in your staging distribution. + // + // Quantity is a required field + Quantity *int64 `type:"integer" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StagingDistributionDnsNames) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StagingDistributionDnsNames) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StagingDistributionDnsNames) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StagingDistributionDnsNames"} + if s.Quantity == nil { + invalidParams.Add(request.NewErrParamRequired("Quantity")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetItems sets the Items field's value. +func (s *StagingDistributionDnsNames) SetItems(v []*string) *StagingDistributionDnsNames { + s.Items = v + return s +} + +// SetQuantity sets the Quantity field's value. +func (s *StagingDistributionDnsNames) SetQuantity(v int64) *StagingDistributionDnsNames { + s.Quantity = &v + return s +} + // A complex data type for the status codes that you specify that, when returned // by a primary origin, trigger CloudFront to failover to a second origin. type StatusCodes struct { @@ -30422,6 +32298,81 @@ func (s *TestResult) SetFunctionSummary(v *FunctionSummary) *TestResult { return s } +// The traffic configuration of your continuous deployment. +type TrafficConfig struct { + _ struct{} `type:"structure"` + + // Determines which HTTP requests are sent to the staging distribution. + SingleHeaderConfig *ContinuousDeploymentSingleHeaderConfig `type:"structure"` + + // Contains the percentage of traffic to send to the staging distribution. + SingleWeightConfig *ContinuousDeploymentSingleWeightConfig `type:"structure"` + + // The type of traffic configuration. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ContinuousDeploymentPolicyType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TrafficConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TrafficConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TrafficConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TrafficConfig"} + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.SingleHeaderConfig != nil { + if err := s.SingleHeaderConfig.Validate(); err != nil { + invalidParams.AddNested("SingleHeaderConfig", err.(request.ErrInvalidParams)) + } + } + if s.SingleWeightConfig != nil { + if err := s.SingleWeightConfig.Validate(); err != nil { + invalidParams.AddNested("SingleWeightConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSingleHeaderConfig sets the SingleHeaderConfig field's value. +func (s *TrafficConfig) SetSingleHeaderConfig(v *ContinuousDeploymentSingleHeaderConfig) *TrafficConfig { + s.SingleHeaderConfig = v + return s +} + +// SetSingleWeightConfig sets the SingleWeightConfig field's value. +func (s *TrafficConfig) SetSingleWeightConfig(v *ContinuousDeploymentSingleWeightConfig) *TrafficConfig { + s.SingleWeightConfig = v + return s +} + +// SetType sets the Type field's value. +func (s *TrafficConfig) SetType(v string) *TrafficConfig { + s.Type = &v + return s +} + // A list of key groups whose public keys CloudFront can use to verify the signatures // of signed URLs and signed cookies. type TrustedKeyGroups struct { @@ -30891,6 +32842,125 @@ func (s *UpdateCloudFrontOriginAccessIdentityOutput) SetETag(v string) *UpdateCl return s } +type UpdateContinuousDeploymentPolicyInput struct { + _ struct{} `locationName:"UpdateContinuousDeploymentPolicyRequest" type:"structure" payload:"ContinuousDeploymentPolicyConfig"` + + // The continuous deployment policy configuration. + // + // ContinuousDeploymentPolicyConfig is a required field + ContinuousDeploymentPolicyConfig *ContinuousDeploymentPolicyConfig `locationName:"ContinuousDeploymentPolicyConfig" type:"structure" required:"true" xmlURI:"http://cloudfront.amazonaws.com/doc/2020-05-31/"` + + // The identifier of the continuous deployment policy that you are updating. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The current version (ETag value) of the continuous deployment policy that + // you are updating. + IfMatch *string `location:"header" locationName:"If-Match" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateContinuousDeploymentPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateContinuousDeploymentPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateContinuousDeploymentPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateContinuousDeploymentPolicyInput"} + if s.ContinuousDeploymentPolicyConfig == nil { + invalidParams.Add(request.NewErrParamRequired("ContinuousDeploymentPolicyConfig")) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.ContinuousDeploymentPolicyConfig != nil { + if err := s.ContinuousDeploymentPolicyConfig.Validate(); err != nil { + invalidParams.AddNested("ContinuousDeploymentPolicyConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContinuousDeploymentPolicyConfig sets the ContinuousDeploymentPolicyConfig field's value. +func (s *UpdateContinuousDeploymentPolicyInput) SetContinuousDeploymentPolicyConfig(v *ContinuousDeploymentPolicyConfig) *UpdateContinuousDeploymentPolicyInput { + s.ContinuousDeploymentPolicyConfig = v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateContinuousDeploymentPolicyInput) SetId(v string) *UpdateContinuousDeploymentPolicyInput { + s.Id = &v + return s +} + +// SetIfMatch sets the IfMatch field's value. +func (s *UpdateContinuousDeploymentPolicyInput) SetIfMatch(v string) *UpdateContinuousDeploymentPolicyInput { + s.IfMatch = &v + return s +} + +type UpdateContinuousDeploymentPolicyOutput struct { + _ struct{} `type:"structure" payload:"ContinuousDeploymentPolicy"` + + // A continuous deployment policy. + ContinuousDeploymentPolicy *ContinuousDeploymentPolicy `type:"structure"` + + // The version identifier for the current version of the continuous deployment + // policy. + ETag *string `location:"header" locationName:"ETag" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateContinuousDeploymentPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateContinuousDeploymentPolicyOutput) GoString() string { + return s.String() +} + +// SetContinuousDeploymentPolicy sets the ContinuousDeploymentPolicy field's value. +func (s *UpdateContinuousDeploymentPolicyOutput) SetContinuousDeploymentPolicy(v *ContinuousDeploymentPolicy) *UpdateContinuousDeploymentPolicyOutput { + s.ContinuousDeploymentPolicy = v + return s +} + +// SetETag sets the ETag field's value. +func (s *UpdateContinuousDeploymentPolicyOutput) SetETag(v string) *UpdateContinuousDeploymentPolicyOutput { + s.ETag = &v + return s +} + // The request to update a distribution. type UpdateDistributionInput struct { _ struct{} `locationName:"UpdateDistributionRequest" type:"structure" payload:"DistributionConfig"` @@ -32536,6 +34606,22 @@ func CertificateSource_Values() []string { } } +const ( + // ContinuousDeploymentPolicyTypeSingleWeight is a ContinuousDeploymentPolicyType enum value + ContinuousDeploymentPolicyTypeSingleWeight = "SingleWeight" + + // ContinuousDeploymentPolicyTypeSingleHeader is a ContinuousDeploymentPolicyType enum value + ContinuousDeploymentPolicyTypeSingleHeader = "SingleHeader" +) + +// ContinuousDeploymentPolicyType_Values returns all elements of the ContinuousDeploymentPolicyType enum +func ContinuousDeploymentPolicyType_Values() []string { + return []string{ + ContinuousDeploymentPolicyTypeSingleWeight, + ContinuousDeploymentPolicyTypeSingleHeader, + } +} + const ( // EventTypeViewerRequest is a EventType enum value EventTypeViewerRequest = "viewer-request" diff --git a/service/cloudfront/cloudfrontiface/interface.go b/service/cloudfront/cloudfrontiface/interface.go index 3d5eeb06ed..dd30e06861 100644 --- a/service/cloudfront/cloudfrontiface/interface.go +++ b/service/cloudfront/cloudfrontiface/interface.go @@ -64,6 +64,10 @@ type CloudFrontAPI interface { AssociateAliasWithContext(aws.Context, *cloudfront.AssociateAliasInput, ...request.Option) (*cloudfront.AssociateAliasOutput, error) AssociateAliasRequest(*cloudfront.AssociateAliasInput) (*request.Request, *cloudfront.AssociateAliasOutput) + CopyDistribution(*cloudfront.CopyDistributionInput) (*cloudfront.CopyDistributionOutput, error) + CopyDistributionWithContext(aws.Context, *cloudfront.CopyDistributionInput, ...request.Option) (*cloudfront.CopyDistributionOutput, error) + CopyDistributionRequest(*cloudfront.CopyDistributionInput) (*request.Request, *cloudfront.CopyDistributionOutput) + CreateCachePolicy(*cloudfront.CreateCachePolicyInput) (*cloudfront.CreateCachePolicyOutput, error) CreateCachePolicyWithContext(aws.Context, *cloudfront.CreateCachePolicyInput, ...request.Option) (*cloudfront.CreateCachePolicyOutput, error) CreateCachePolicyRequest(*cloudfront.CreateCachePolicyInput) (*request.Request, *cloudfront.CreateCachePolicyOutput) @@ -72,6 +76,10 @@ type CloudFrontAPI interface { CreateCloudFrontOriginAccessIdentityWithContext(aws.Context, *cloudfront.CreateCloudFrontOriginAccessIdentityInput, ...request.Option) (*cloudfront.CreateCloudFrontOriginAccessIdentityOutput, error) CreateCloudFrontOriginAccessIdentityRequest(*cloudfront.CreateCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.CreateCloudFrontOriginAccessIdentityOutput) + CreateContinuousDeploymentPolicy(*cloudfront.CreateContinuousDeploymentPolicyInput) (*cloudfront.CreateContinuousDeploymentPolicyOutput, error) + CreateContinuousDeploymentPolicyWithContext(aws.Context, *cloudfront.CreateContinuousDeploymentPolicyInput, ...request.Option) (*cloudfront.CreateContinuousDeploymentPolicyOutput, error) + CreateContinuousDeploymentPolicyRequest(*cloudfront.CreateContinuousDeploymentPolicyInput) (*request.Request, *cloudfront.CreateContinuousDeploymentPolicyOutput) + CreateDistribution(*cloudfront.CreateDistributionInput) (*cloudfront.CreateDistributionOutput, error) CreateDistributionWithContext(aws.Context, *cloudfront.CreateDistributionInput, ...request.Option) (*cloudfront.CreateDistributionOutput, error) CreateDistributionRequest(*cloudfront.CreateDistributionInput) (*request.Request, *cloudfront.CreateDistributionOutput) @@ -140,6 +148,10 @@ type CloudFrontAPI interface { DeleteCloudFrontOriginAccessIdentityWithContext(aws.Context, *cloudfront.DeleteCloudFrontOriginAccessIdentityInput, ...request.Option) (*cloudfront.DeleteCloudFrontOriginAccessIdentityOutput, error) DeleteCloudFrontOriginAccessIdentityRequest(*cloudfront.DeleteCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.DeleteCloudFrontOriginAccessIdentityOutput) + DeleteContinuousDeploymentPolicy(*cloudfront.DeleteContinuousDeploymentPolicyInput) (*cloudfront.DeleteContinuousDeploymentPolicyOutput, error) + DeleteContinuousDeploymentPolicyWithContext(aws.Context, *cloudfront.DeleteContinuousDeploymentPolicyInput, ...request.Option) (*cloudfront.DeleteContinuousDeploymentPolicyOutput, error) + DeleteContinuousDeploymentPolicyRequest(*cloudfront.DeleteContinuousDeploymentPolicyInput) (*request.Request, *cloudfront.DeleteContinuousDeploymentPolicyOutput) + DeleteDistribution(*cloudfront.DeleteDistributionInput) (*cloudfront.DeleteDistributionOutput, error) DeleteDistributionWithContext(aws.Context, *cloudfront.DeleteDistributionInput, ...request.Option) (*cloudfront.DeleteDistributionOutput, error) DeleteDistributionRequest(*cloudfront.DeleteDistributionInput) (*request.Request, *cloudfront.DeleteDistributionOutput) @@ -208,6 +220,14 @@ type CloudFrontAPI interface { GetCloudFrontOriginAccessIdentityConfigWithContext(aws.Context, *cloudfront.GetCloudFrontOriginAccessIdentityConfigInput, ...request.Option) (*cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput, error) GetCloudFrontOriginAccessIdentityConfigRequest(*cloudfront.GetCloudFrontOriginAccessIdentityConfigInput) (*request.Request, *cloudfront.GetCloudFrontOriginAccessIdentityConfigOutput) + GetContinuousDeploymentPolicy(*cloudfront.GetContinuousDeploymentPolicyInput) (*cloudfront.GetContinuousDeploymentPolicyOutput, error) + GetContinuousDeploymentPolicyWithContext(aws.Context, *cloudfront.GetContinuousDeploymentPolicyInput, ...request.Option) (*cloudfront.GetContinuousDeploymentPolicyOutput, error) + GetContinuousDeploymentPolicyRequest(*cloudfront.GetContinuousDeploymentPolicyInput) (*request.Request, *cloudfront.GetContinuousDeploymentPolicyOutput) + + GetContinuousDeploymentPolicyConfig(*cloudfront.GetContinuousDeploymentPolicyConfigInput) (*cloudfront.GetContinuousDeploymentPolicyConfigOutput, error) + GetContinuousDeploymentPolicyConfigWithContext(aws.Context, *cloudfront.GetContinuousDeploymentPolicyConfigInput, ...request.Option) (*cloudfront.GetContinuousDeploymentPolicyConfigOutput, error) + GetContinuousDeploymentPolicyConfigRequest(*cloudfront.GetContinuousDeploymentPolicyConfigInput) (*request.Request, *cloudfront.GetContinuousDeploymentPolicyConfigOutput) + GetDistribution(*cloudfront.GetDistributionInput) (*cloudfront.GetDistributionOutput, error) GetDistributionWithContext(aws.Context, *cloudfront.GetDistributionInput, ...request.Option) (*cloudfront.GetDistributionOutput, error) GetDistributionRequest(*cloudfront.GetDistributionInput) (*request.Request, *cloudfront.GetDistributionOutput) @@ -311,6 +331,10 @@ type CloudFrontAPI interface { ListConflictingAliasesWithContext(aws.Context, *cloudfront.ListConflictingAliasesInput, ...request.Option) (*cloudfront.ListConflictingAliasesOutput, error) ListConflictingAliasesRequest(*cloudfront.ListConflictingAliasesInput) (*request.Request, *cloudfront.ListConflictingAliasesOutput) + ListContinuousDeploymentPolicies(*cloudfront.ListContinuousDeploymentPoliciesInput) (*cloudfront.ListContinuousDeploymentPoliciesOutput, error) + ListContinuousDeploymentPoliciesWithContext(aws.Context, *cloudfront.ListContinuousDeploymentPoliciesInput, ...request.Option) (*cloudfront.ListContinuousDeploymentPoliciesOutput, error) + ListContinuousDeploymentPoliciesRequest(*cloudfront.ListContinuousDeploymentPoliciesInput) (*request.Request, *cloudfront.ListContinuousDeploymentPoliciesOutput) + ListDistributions(*cloudfront.ListDistributionsInput) (*cloudfront.ListDistributionsOutput, error) ListDistributionsWithContext(aws.Context, *cloudfront.ListDistributionsInput, ...request.Option) (*cloudfront.ListDistributionsOutput, error) ListDistributionsRequest(*cloudfront.ListDistributionsInput) (*request.Request, *cloudfront.ListDistributionsOutput) @@ -420,6 +444,10 @@ type CloudFrontAPI interface { UpdateCloudFrontOriginAccessIdentityWithContext(aws.Context, *cloudfront.UpdateCloudFrontOriginAccessIdentityInput, ...request.Option) (*cloudfront.UpdateCloudFrontOriginAccessIdentityOutput, error) UpdateCloudFrontOriginAccessIdentityRequest(*cloudfront.UpdateCloudFrontOriginAccessIdentityInput) (*request.Request, *cloudfront.UpdateCloudFrontOriginAccessIdentityOutput) + UpdateContinuousDeploymentPolicy(*cloudfront.UpdateContinuousDeploymentPolicyInput) (*cloudfront.UpdateContinuousDeploymentPolicyOutput, error) + UpdateContinuousDeploymentPolicyWithContext(aws.Context, *cloudfront.UpdateContinuousDeploymentPolicyInput, ...request.Option) (*cloudfront.UpdateContinuousDeploymentPolicyOutput, error) + UpdateContinuousDeploymentPolicyRequest(*cloudfront.UpdateContinuousDeploymentPolicyInput) (*request.Request, *cloudfront.UpdateContinuousDeploymentPolicyOutput) + UpdateDistribution(*cloudfront.UpdateDistributionInput) (*cloudfront.UpdateDistributionOutput, error) UpdateDistributionWithContext(aws.Context, *cloudfront.UpdateDistributionInput, ...request.Option) (*cloudfront.UpdateDistributionOutput, error) UpdateDistributionRequest(*cloudfront.UpdateDistributionInput) (*request.Request, *cloudfront.UpdateDistributionOutput) diff --git a/service/cloudfront/errors.go b/service/cloudfront/errors.go index 21265b1054..b9c403342f 100644 --- a/service/cloudfront/errors.go +++ b/service/cloudfront/errors.go @@ -530,6 +530,12 @@ const ( // more cache behaviors in a CloudFront distribution. ErrCodeResponseHeadersPolicyInUse = "ResponseHeadersPolicyInUse" + // ErrCodeStagingDistributionInUse for service response error code + // "StagingDistributionInUse". + // + // A continuous deployment policy for this staging distribution already exists. + ErrCodeStagingDistributionInUse = "StagingDistributionInUse" + // ErrCodeStreamingDistributionAlreadyExists for service response error code // "StreamingDistributionAlreadyExists". // diff --git a/service/connect/api.go b/service/connect/api.go index 0068450421..b0922b5d6f 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -22001,6 +22001,10 @@ func (s *CreateRoutingProfileOutput) SetRoutingProfileId(v string) *CreateRoutin type CreateSecurityProfileInput struct { _ struct{} `type:"structure"` + // The list of tags that a security profile uses to restrict access to resources + // in Amazon Connect. + AllowedAccessControlTags map[string]*string `type:"map"` + // The description of the security profile. Description *string `type:"string"` @@ -22017,7 +22021,11 @@ type CreateSecurityProfileInput struct { // The name of the security profile. // // SecurityProfileName is a required field - SecurityProfileName *string `type:"string" required:"true"` + SecurityProfileName *string `min:"1" type:"string" required:"true"` + + // The list of resources that a security profile applies tag restrictions to + // in Amazon Connect. + TagRestrictedResources []*string `type:"list"` // The tags used to organize, track, or control access for this resource. For // example, { "tags": {"key1":"value1", "key2":"value2"} }. @@ -22054,6 +22062,9 @@ func (s *CreateSecurityProfileInput) Validate() error { if s.SecurityProfileName == nil { invalidParams.Add(request.NewErrParamRequired("SecurityProfileName")) } + if s.SecurityProfileName != nil && len(*s.SecurityProfileName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityProfileName", 1)) + } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } @@ -22064,6 +22075,12 @@ func (s *CreateSecurityProfileInput) Validate() error { return nil } +// SetAllowedAccessControlTags sets the AllowedAccessControlTags field's value. +func (s *CreateSecurityProfileInput) SetAllowedAccessControlTags(v map[string]*string) *CreateSecurityProfileInput { + s.AllowedAccessControlTags = v + return s +} + // SetDescription sets the Description field's value. func (s *CreateSecurityProfileInput) SetDescription(v string) *CreateSecurityProfileInput { s.Description = &v @@ -22088,6 +22105,12 @@ func (s *CreateSecurityProfileInput) SetSecurityProfileName(v string) *CreateSec return s } +// SetTagRestrictedResources sets the TagRestrictedResources field's value. +func (s *CreateSecurityProfileInput) SetTagRestrictedResources(v []*string) *CreateSecurityProfileInput { + s.TagRestrictedResources = v + return s +} + // SetTags sets the Tags field's value. func (s *CreateSecurityProfileInput) SetTags(v map[string]*string) *CreateSecurityProfileInput { s.Tags = v @@ -39100,6 +39123,10 @@ func (s *SecurityKey) SetKey(v string) *SecurityKey { type SecurityProfile struct { _ struct{} `type:"structure"` + // The list of tags that a security profile uses to restrict access to resources + // in Amazon Connect. + AllowedAccessControlTags map[string]*string `type:"map"` + // The Amazon Resource Name (ARN) for the secruity profile. Arn *string `type:"string"` @@ -39115,6 +39142,10 @@ type SecurityProfile struct { // The name for the security profile. SecurityProfileName *string `type:"string"` + // The list of resources that a security profile applies tag restrictions to + // in Amazon Connect. + TagRestrictedResources []*string `type:"list"` + // The tags used to organize, track, or control access for this resource. For // example, { "tags": {"key1":"value1", "key2":"value2"} }. Tags map[string]*string `min:"1" type:"map"` @@ -39138,6 +39169,12 @@ func (s SecurityProfile) GoString() string { return s.String() } +// SetAllowedAccessControlTags sets the AllowedAccessControlTags field's value. +func (s *SecurityProfile) SetAllowedAccessControlTags(v map[string]*string) *SecurityProfile { + s.AllowedAccessControlTags = v + return s +} + // SetArn sets the Arn field's value. func (s *SecurityProfile) SetArn(v string) *SecurityProfile { s.Arn = &v @@ -39168,6 +39205,12 @@ func (s *SecurityProfile) SetSecurityProfileName(v string) *SecurityProfile { return s } +// SetTagRestrictedResources sets the TagRestrictedResources field's value. +func (s *SecurityProfile) SetTagRestrictedResources(v []*string) *SecurityProfile { + s.TagRestrictedResources = v + return s +} + // SetTags sets the Tags field's value. func (s *SecurityProfile) SetTags(v map[string]*string) *SecurityProfile { s.Tags = v @@ -44697,6 +44740,10 @@ func (s UpdateRoutingProfileQueuesOutput) GoString() string { type UpdateSecurityProfileInput struct { _ struct{} `type:"structure"` + // The list of tags that a security profile uses to restrict access to resources + // in Amazon Connect. + AllowedAccessControlTags map[string]*string `type:"map"` + // The description of the security profile. Description *string `type:"string"` @@ -44714,6 +44761,10 @@ type UpdateSecurityProfileInput struct { // // SecurityProfileId is a required field SecurityProfileId *string `location:"uri" locationName:"SecurityProfileId" type:"string" required:"true"` + + // The list of resources that a security profile applies tag restrictions to + // in Amazon Connect. + TagRestrictedResources []*string `type:"list"` } // String returns the string representation. @@ -44756,6 +44807,12 @@ func (s *UpdateSecurityProfileInput) Validate() error { return nil } +// SetAllowedAccessControlTags sets the AllowedAccessControlTags field's value. +func (s *UpdateSecurityProfileInput) SetAllowedAccessControlTags(v map[string]*string) *UpdateSecurityProfileInput { + s.AllowedAccessControlTags = v + return s +} + // SetDescription sets the Description field's value. func (s *UpdateSecurityProfileInput) SetDescription(v string) *UpdateSecurityProfileInput { s.Description = &v @@ -44780,6 +44837,12 @@ func (s *UpdateSecurityProfileInput) SetSecurityProfileId(v string) *UpdateSecur return s } +// SetTagRestrictedResources sets the TagRestrictedResources field's value. +func (s *UpdateSecurityProfileInput) SetTagRestrictedResources(v []*string) *UpdateSecurityProfileInput { + s.TagRestrictedResources = v + return s +} + type UpdateSecurityProfileOutput struct { _ struct{} `type:"structure"` } diff --git a/service/dynamodb/api.go b/service/dynamodb/api.go index 244e075f5c..c7727107eb 100644 --- a/service/dynamodb/api.go +++ b/service/dynamodb/api.go @@ -413,7 +413,10 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // in DynamoDB's JSON format for the API call. For more details on this distinction, // see Naming Rules and Data Types (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.NamingRulesDataTypes.html). // -// BatchWriteItem cannot update items. To update items, use the UpdateItem action. +// BatchWriteItem cannot update items. If you perform a BatchWriteItem operation +// on an existing item, that item's values will be overwritten by the operation +// and it will appear like it was updated. To update items, we recommend you +// use the UpdateItem action. // // The individual PutItem and DeleteItem operations specified in BatchWriteItem // are atomic; however BatchWriteItem as a whole is not. If any requested operations @@ -659,14 +662,17 @@ func (c *DynamoDB) CreateBackupRequest(input *CreateBackupInput) (req *request.R // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -820,14 +826,17 @@ func (c *DynamoDB) CreateGlobalTableRequest(input *CreateGlobalTableInput) (req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -966,14 +975,17 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -1093,14 +1105,17 @@ func (c *DynamoDB) DeleteBackupRequest(input *DeleteBackupInput) (req *request.R // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -1381,14 +1396,17 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -1936,14 +1954,17 @@ func (c *DynamoDB) DescribeExportRequest(input *DescribeExportInput) (req *reque // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -2938,14 +2959,17 @@ func (c *DynamoDB) DisableKinesisStreamingDestinationRequest(input *DisableKines // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -3068,14 +3092,17 @@ func (c *DynamoDB) EnableKinesisStreamingDestinationRequest(input *EnableKinesis // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -3496,14 +3523,17 @@ func (c *DynamoDB) ExportTableToPointInTimeRequest(input *ExportTableToPointInTi // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -3728,14 +3758,17 @@ func (c *DynamoDB) ImportTableRequest(input *ImportTableInput) (req *request.Req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -4081,14 +4114,17 @@ func (c *DynamoDB) ListExportsRequest(input *ListExportsInput) (req *request.Req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -4337,14 +4373,17 @@ func (c *DynamoDB) ListImportsRequest(input *ListImportsInput) (req *request.Req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -4772,7 +4811,6 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // using the ReturnValues parameter. // // When you add an item, the primary key attributes are the only required attributes. -// Attribute values cannot be null. // // Empty String and Binary attribute values are allowed. Attribute values of // type String and Binary must have a length greater than zero if the attribute @@ -5190,14 +5228,17 @@ func (c *DynamoDB) RestoreTableFromBackupRequest(input *RestoreTableFromBackupIn // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -5354,14 +5395,17 @@ func (c *DynamoDB) RestoreTableToPointInTimeRequest(input *RestoreTableToPointIn // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -5691,14 +5735,17 @@ func (c *DynamoDB) TagResourceRequest(input *TagResourceInput) (req *request.Req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -6319,14 +6366,17 @@ func (c *DynamoDB) UntagResourceRequest(input *UntagResourceInput) (req *request // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -6804,14 +6854,17 @@ func (c *DynamoDB) UpdateGlobalTableSettingsRequest(input *UpdateGlobalTableSett // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -7089,14 +7142,17 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -7194,14 +7250,17 @@ func (c *DynamoDB) UpdateTableReplicaAutoScalingRequest(input *UpdateTableReplic // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -7348,14 +7407,17 @@ func (c *DynamoDB) UpdateTimeToLiveRequest(input *UpdateTimeToLiveInput) (req *r // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -9240,8 +9302,8 @@ type BatchWriteItemOutput struct { // A map of tables and requests against those tables that were not processed. // The UnprocessedItems value is in the same form as RequestItems, so you can - // provide this value directly to a subsequent BatchGetItem operation. For more - // information, see RequestItems in the Request Parameters section. + // provide this value directly to a subsequent BatchWriteItem operation. For + // more information, see RequestItems in the Request Parameters section. // // Each UnprocessedItems entry consists of a table name and, for that table, // a list of operations to perform (DeleteRequest or PutRequest). @@ -9302,7 +9364,12 @@ func (s *BatchWriteItemOutput) SetUnprocessedItems(v map[string][]*WriteRequest) return s } -// Contains the details for the read/write capacity mode. +// Contains the details for the read/write capacity mode. This page talks about +// PROVISIONED and PAY_PER_REQUEST billing modes. For more information about +// these modes, see Read/write capacity mode (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html). +// +// You may need to switch to on-demand mode at least once in order to return +// a BillingModeSummary response. type BillingModeSummary struct { _ struct{} `type:"structure"` @@ -16855,14 +16922,17 @@ func (s *KinesisDataStreamDestination) SetStreamArn(v string) *KinesisDataStream // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. type LimitExceededException struct { @@ -20065,7 +20135,8 @@ type ReplicaGlobalSecondaryIndexAutoScalingDescription struct { // // * CREATING - The index is being created. // - // * UPDATING - The index is being updated. + // * UPDATING - The table/index configuration is being updated. The table/index + // remains available for data operations when UPDATING // // * DELETING - The index is being deleted. // @@ -22945,7 +23016,8 @@ type TableDescription struct { // // * CREATING - The table is being created. // - // * UPDATING - The table is being updated. + // * UPDATING - The table/index configuration is being updated. The table/index + // remains available for data operations when UPDATING. // // * DELETING - The table is being deleted. // diff --git a/service/dynamodb/errors.go b/service/dynamodb/errors.go index 9bd2107c60..9f7baf88f6 100644 --- a/service/dynamodb/errors.go +++ b/service/dynamodb/errors.go @@ -122,14 +122,17 @@ const ( // // There is no limit to the number of daily on-demand backups that can be taken. // - // Up to 500 simultaneous table operations are allowed per account. These operations - // include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, - // and RestoreTableToPointInTime. - // - // The only exception is when you are creating a table with one or more secondary - // indexes. You can have up to 250 such requests running at a time; however, - // if the table or index specifications are complex, DynamoDB might temporarily - // reduce the number of concurrent operations. + // For most purposes, up to 500 simultaneous table operations are allowed per + // account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, + // RestoreTableFromBackup, and RestoreTableToPointInTime. + // + // When you are creating a table with one or more secondary indexes, you can + // have up to 250 such requests running at a time. However, if the table or + // index specifications are complex, then DynamoDB might temporarily reduce + // the number of concurrent operations. + // + // When importing into DynamoDB, up to 50 simultaneous import table operations + // are allowed per account. // // There is a soft account quota of 2,500 tables. ErrCodeLimitExceededException = "LimitExceededException" diff --git a/service/dynamodbstreams/api.go b/service/dynamodbstreams/api.go index 398de82ccf..1fec743401 100644 --- a/service/dynamodbstreams/api.go +++ b/service/dynamodbstreams/api.go @@ -177,14 +177,17 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques // - LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. +// +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. // @@ -956,14 +959,17 @@ func (s *InternalServerError) RequestID() string { // There is no limit to the number of daily on-demand backups that can be taken. // -// Up to 500 simultaneous table operations are allowed per account. These operations -// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, -// and RestoreTableToPointInTime. +// For most purposes, up to 500 simultaneous table operations are allowed per +// account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, +// RestoreTableFromBackup, and RestoreTableToPointInTime. +// +// When you are creating a table with one or more secondary indexes, you can +// have up to 250 such requests running at a time. However, if the table or +// index specifications are complex, then DynamoDB might temporarily reduce +// the number of concurrent operations. // -// The only exception is when you are creating a table with one or more secondary -// indexes. You can have up to 250 such requests running at a time; however, -// if the table or index specifications are complex, DynamoDB might temporarily -// reduce the number of concurrent operations. +// When importing into DynamoDB, up to 50 simultaneous import table operations +// are allowed per account. // // There is a soft account quota of 2,500 tables. type LimitExceededException struct { diff --git a/service/dynamodbstreams/errors.go b/service/dynamodbstreams/errors.go index ddd4880655..0a478a577a 100644 --- a/service/dynamodbstreams/errors.go +++ b/service/dynamodbstreams/errors.go @@ -27,14 +27,17 @@ const ( // // There is no limit to the number of daily on-demand backups that can be taken. // - // Up to 500 simultaneous table operations are allowed per account. These operations - // include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, - // and RestoreTableToPointInTime. + // For most purposes, up to 500 simultaneous table operations are allowed per + // account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, + // RestoreTableFromBackup, and RestoreTableToPointInTime. // - // The only exception is when you are creating a table with one or more secondary - // indexes. You can have up to 250 such requests running at a time; however, - // if the table or index specifications are complex, DynamoDB might temporarily - // reduce the number of concurrent operations. + // When you are creating a table with one or more secondary indexes, you can + // have up to 250 such requests running at a time. However, if the table or + // index specifications are complex, then DynamoDB might temporarily reduce + // the number of concurrent operations. + // + // When importing into DynamoDB, up to 50 simultaneous import table operations + // are allowed per account. // // There is a soft account quota of 2,500 tables. ErrCodeLimitExceededException = "LimitExceededException" diff --git a/service/ec2/api.go b/service/ec2/api.go index feb5047fce..026aa70cc7 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -3400,9 +3400,9 @@ func (c *EC2) CancelImageLaunchPermissionRequest(input *CancelImageLaunchPermiss // CancelImageLaunchPermission API operation for Amazon Elastic Compute Cloud. // // Removes your Amazon Web Services account from the launch permissions for -// the specified AMI. For more information, see Cancel sharing an AMI with your -// Amazon Web Services account (https://docs.aws.amazon.com/) in the Amazon -// Elastic Compute Cloud User Guide. +// the specified AMI. For more information, see Cancel having an AMI shared +// with your Amazon Web Services account (https://docs.aws.amazon.com/) in the +// Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3951,7 +3951,7 @@ func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, out // in the Amazon Elastic Compute Cloud User Guide. // // For more information about the prerequisites and limits when copying an AMI, -// see Copying an AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html) +// see Copy an AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -5375,7 +5375,7 @@ func (c *EC2) CreateImageRequest(input *CreateImageInput) (req *request.Request, // from this new AMI, the instance automatically launches with those additional // volumes. // -// For more information, see Creating Amazon EBS-Backed Linux AMIs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) +// For more information, see Create an Amazon EBS-backed Linux AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -45667,7 +45667,7 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // // Registers an AMI. When you're creating an AMI, this is the final step you // must complete before you can launch an instance from the AMI. For more information -// about creating AMIs, see Creating your own AMIs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) +// about creating AMIs, see Create your own AMI (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) // in the Amazon Elastic Compute Cloud User Guide. // // For Amazon EBS-backed instances, CreateImage creates and registers the AMI @@ -45716,7 +45716,7 @@ func (c *EC2) RegisterImageRequest(input *RegisterImageInput) (req *request.Requ // a Reserved Instance without the matching billing product code, the Reserved // Instance will not be applied to the On-Demand Instance. For information about // how to obtain the platform details and billing information of an AMI, see -// Understanding AMI billing (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html) +// Understand AMI billing information (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html) // in the Amazon Elastic Compute Cloud User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -61643,6 +61643,19 @@ type CopyImageInput struct { // in the Amazon EC2 API Reference. ClientToken *string `type:"string"` + // Indicates whether to include your user-defined AMI tags when copying the + // AMI. + // + // The following tags will not be copied: + // + // * System tags (prefixed with aws:) + // + // * For public and shared AMIs, user-defined tags that are attached by other + // Amazon Web Services accounts + // + // Default: Your user-defined AMI tags are not copied. + CopyImageTags *bool `type:"boolean"` + // A description for the new AMI in the destination Region. Description *string `type:"string"` @@ -61652,8 +61665,8 @@ type CopyImageInput struct { // You cannot copy an AMI from an Outpost to a Region, from one Outpost to another, // or within the same Outpost. // - // For more information, see Copying AMIs from an Amazon Web Services Region - // to an Outpost (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-amis) + // For more information, see Copy AMIs from an Amazon Web Services Region to + // an Outpost (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-amis) // in the Amazon Elastic Compute Cloud User Guide. DestinationOutpostArn *string `type:"string"` @@ -61667,7 +61680,7 @@ type CopyImageInput struct { // encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot // create an unencrypted copy of an encrypted snapshot. The default KMS key // for Amazon EBS is used unless you specify a non-default Key Management Service - // (KMS) KMS key using KmsKeyId. For more information, see Amazon EBS Encryption + // (KMS) KMS key using KmsKeyId. For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) // in the Amazon Elastic Compute Cloud User Guide. Encrypted *bool `locationName:"encrypted" type:"boolean"` @@ -61755,6 +61768,12 @@ func (s *CopyImageInput) SetClientToken(v string) *CopyImageInput { return s } +// SetCopyImageTags sets the CopyImageTags field's value. +func (s *CopyImageInput) SetCopyImageTags(v bool) *CopyImageInput { + s.CopyImageTags = &v + return s +} + // SetDescription sets the Description field's value. func (s *CopyImageInput) SetDescription(v string) *CopyImageInput { s.Description = &v @@ -86463,7 +86482,7 @@ type DescribeImagesInput struct { // * owner-id - The Amazon Web Services account ID of the owner. We recommend // that you use the Owner request parameter instead of this filter. // - // * platform - The platform. To only list Windows-based AMIs, use windows. + // * platform - The platform. The only supported value is windows. // // * product-code - The product code. // @@ -116119,7 +116138,7 @@ type Image struct { Platform *string `locationName:"platform" type:"string" enum:"PlatformValues"` // The platform details associated with the billing code of the AMI. For more - // information, see Understanding AMI billing (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html) + // information, see Understand AMI billing information (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html) // in the Amazon Elastic Compute Cloud User Guide. PlatformDetails *string `locationName:"platformDetails" type:"string"` @@ -151419,8 +151438,8 @@ type S3Storage struct { _ struct{} `type:"structure"` // The access key ID of the owner of the bucket. Before you specify a value - // for your access key ID, review and follow the guidance in Best Practices - // for Managing Amazon Web Services Access Keys (https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html). + // for your access key ID, review and follow the guidance in Best practices + // for managing Amazon Web Services access keys (https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html). AWSAccessKeyId *string `type:"string"` // The bucket in which to store the AMI. You can specify a bucket that you already diff --git a/service/glue/api.go b/service/glue/api.go index 672b56ba60..19420eefce 100644 --- a/service/glue/api.go +++ b/service/glue/api.go @@ -25599,8 +25599,8 @@ type Crawler struct { Classifiers []*string `type:"list"` // Crawler configuration information. This versioned JSON string allows users - // to specify aspects of a crawler's behavior. For more information, see Include - // and Exclude Patterns (https://docs.aws.amazon.com/glue/latest/dg/define-crawler.html#crawler-data-stores-exclude). + // to specify aspects of a crawler's behavior. For more information, see Setting + // crawler configuration options (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). Configuration *string `type:"string"` // If the crawler is running, contains the total time elapsed since the last @@ -26741,8 +26741,8 @@ type CreateCrawlerInput struct { Classifiers []*string `type:"list"` // Crawler configuration information. This versioned JSON string allows users - // to specify aspects of a crawler's behavior. For more information, see Configuring - // a Crawler (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). + // to specify aspects of a crawler's behavior. For more information, see Setting + // crawler configuration options (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). Configuration *string `type:"string"` // The name of the SecurityConfiguration structure to be used by this crawler. @@ -44653,6 +44653,13 @@ type JdbcTarget struct { // The name of the connection to use to connect to the JDBC target. ConnectionName *string `type:"string"` + // Specify a value of RAWTYPES or COMMENTS to enable additional metadata in + // table responses. RAWTYPES provides the native-level datatype. COMMENTS provides + // comments associated with a column or table in the database. + // + // If you do not need additional metadata, keep the field empty. + EnableAdditionalMetadata []*string `type:"list" enum:"JdbcMetadataEntry"` + // A list of glob patterns used to exclude from the crawl. For more information, // see Catalog Tables with a Crawler (https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html). Exclusions []*string `type:"list"` @@ -44685,6 +44692,12 @@ func (s *JdbcTarget) SetConnectionName(v string) *JdbcTarget { return s } +// SetEnableAdditionalMetadata sets the EnableAdditionalMetadata field's value. +func (s *JdbcTarget) SetEnableAdditionalMetadata(v []*string) *JdbcTarget { + s.EnableAdditionalMetadata = v + return s +} + // SetExclusions sets the Exclusions field's value. func (s *JdbcTarget) SetExclusions(v []*string) *JdbcTarget { s.Exclusions = v @@ -61514,8 +61527,8 @@ type UpdateCrawlerInput struct { Classifiers []*string `type:"list"` // Crawler configuration information. This versioned JSON string allows users - // to specify aspects of a crawler's behavior. For more information, see Configuring - // a Crawler (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). + // to specify aspects of a crawler's behavior. For more information, see Setting + // crawler configuration options (https://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html). Configuration *string `type:"string"` // The name of the SecurityConfiguration structure to be used by this crawler. @@ -65713,6 +65726,22 @@ func JDBCDataType_Values() []string { } } +const ( + // JdbcMetadataEntryComments is a JdbcMetadataEntry enum value + JdbcMetadataEntryComments = "COMMENTS" + + // JdbcMetadataEntryRawtypes is a JdbcMetadataEntry enum value + JdbcMetadataEntryRawtypes = "RAWTYPES" +) + +// JdbcMetadataEntry_Values returns all elements of the JdbcMetadataEntry enum +func JdbcMetadataEntry_Values() []string { + return []string{ + JdbcMetadataEntryComments, + JdbcMetadataEntryRawtypes, + } +} + const ( // JobBookmarksEncryptionModeDisabled is a JobBookmarksEncryptionMode enum value JobBookmarksEncryptionModeDisabled = "DISABLED" diff --git a/service/iotroborunner/api.go b/service/iotroborunner/api.go new file mode 100644 index 0000000000..7b4f931415 --- /dev/null +++ b/service/iotroborunner/api.go @@ -0,0 +1,6062 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package iotroborunner + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +const opCreateDestination = "CreateDestination" + +// CreateDestinationRequest generates a "aws/request.Request" representing the +// client's request for the CreateDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateDestination for more information on using the CreateDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateDestinationRequest method. +// req, resp := client.CreateDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateDestination +func (c *IoTRoboRunner) CreateDestinationRequest(input *CreateDestinationInput) (req *request.Request, output *CreateDestinationOutput) { + op := &request.Operation{ + Name: opCreateDestination, + HTTPMethod: "POST", + HTTPPath: "/createDestination", + } + + if input == nil { + input = &CreateDestinationInput{} + } + + output = &CreateDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDestination API operation for AWS IoT RoboRunner. +// +// # Grants permission to create a destination +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation CreateDestination for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// - ServiceQuotaExceededException +// Exception thrown if the user's AWS account has reached a service limit and +// the operation cannot proceed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateDestination +func (c *IoTRoboRunner) CreateDestination(input *CreateDestinationInput) (*CreateDestinationOutput, error) { + req, out := c.CreateDestinationRequest(input) + return out, req.Send() +} + +// CreateDestinationWithContext is the same as CreateDestination with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) CreateDestinationWithContext(ctx aws.Context, input *CreateDestinationInput, opts ...request.Option) (*CreateDestinationOutput, error) { + req, out := c.CreateDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateSite = "CreateSite" + +// CreateSiteRequest generates a "aws/request.Request" representing the +// client's request for the CreateSite operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSite for more information on using the CreateSite +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateSiteRequest method. +// req, resp := client.CreateSiteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateSite +func (c *IoTRoboRunner) CreateSiteRequest(input *CreateSiteInput) (req *request.Request, output *CreateSiteOutput) { + op := &request.Operation{ + Name: opCreateSite, + HTTPMethod: "POST", + HTTPPath: "/createSite", + } + + if input == nil { + input = &CreateSiteInput{} + } + + output = &CreateSiteOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSite API operation for AWS IoT RoboRunner. +// +// # Grants permission to create a site +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation CreateSite for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// - ServiceQuotaExceededException +// Exception thrown if the user's AWS account has reached a service limit and +// the operation cannot proceed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateSite +func (c *IoTRoboRunner) CreateSite(input *CreateSiteInput) (*CreateSiteOutput, error) { + req, out := c.CreateSiteRequest(input) + return out, req.Send() +} + +// CreateSiteWithContext is the same as CreateSite with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSite for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) CreateSiteWithContext(ctx aws.Context, input *CreateSiteInput, opts ...request.Option) (*CreateSiteOutput, error) { + req, out := c.CreateSiteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateWorker = "CreateWorker" + +// CreateWorkerRequest generates a "aws/request.Request" representing the +// client's request for the CreateWorker operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateWorker for more information on using the CreateWorker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateWorkerRequest method. +// req, resp := client.CreateWorkerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateWorker +func (c *IoTRoboRunner) CreateWorkerRequest(input *CreateWorkerInput) (req *request.Request, output *CreateWorkerOutput) { + op := &request.Operation{ + Name: opCreateWorker, + HTTPMethod: "POST", + HTTPPath: "/createWorker", + } + + if input == nil { + input = &CreateWorkerInput{} + } + + output = &CreateWorkerOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateWorker API operation for AWS IoT RoboRunner. +// +// # Grants permission to create a worker +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation CreateWorker for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// - ServiceQuotaExceededException +// Exception thrown if the user's AWS account has reached a service limit and +// the operation cannot proceed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateWorker +func (c *IoTRoboRunner) CreateWorker(input *CreateWorkerInput) (*CreateWorkerOutput, error) { + req, out := c.CreateWorkerRequest(input) + return out, req.Send() +} + +// CreateWorkerWithContext is the same as CreateWorker with the addition of +// the ability to pass a context and additional request options. +// +// See CreateWorker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) CreateWorkerWithContext(ctx aws.Context, input *CreateWorkerInput, opts ...request.Option) (*CreateWorkerOutput, error) { + req, out := c.CreateWorkerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateWorkerFleet = "CreateWorkerFleet" + +// CreateWorkerFleetRequest generates a "aws/request.Request" representing the +// client's request for the CreateWorkerFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateWorkerFleet for more information on using the CreateWorkerFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the CreateWorkerFleetRequest method. +// req, resp := client.CreateWorkerFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateWorkerFleet +func (c *IoTRoboRunner) CreateWorkerFleetRequest(input *CreateWorkerFleetInput) (req *request.Request, output *CreateWorkerFleetOutput) { + op := &request.Operation{ + Name: opCreateWorkerFleet, + HTTPMethod: "POST", + HTTPPath: "/createWorkerFleet", + } + + if input == nil { + input = &CreateWorkerFleetInput{} + } + + output = &CreateWorkerFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateWorkerFleet API operation for AWS IoT RoboRunner. +// +// # Grants permission to create a worker fleet +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation CreateWorkerFleet for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// - ServiceQuotaExceededException +// Exception thrown if the user's AWS account has reached a service limit and +// the operation cannot proceed. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/CreateWorkerFleet +func (c *IoTRoboRunner) CreateWorkerFleet(input *CreateWorkerFleetInput) (*CreateWorkerFleetOutput, error) { + req, out := c.CreateWorkerFleetRequest(input) + return out, req.Send() +} + +// CreateWorkerFleetWithContext is the same as CreateWorkerFleet with the addition of +// the ability to pass a context and additional request options. +// +// See CreateWorkerFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) CreateWorkerFleetWithContext(ctx aws.Context, input *CreateWorkerFleetInput, opts ...request.Option) (*CreateWorkerFleetOutput, error) { + req, out := c.CreateWorkerFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteDestination = "DeleteDestination" + +// DeleteDestinationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteDestination for more information on using the DeleteDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteDestinationRequest method. +// req, resp := client.DeleteDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteDestination +func (c *IoTRoboRunner) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) { + op := &request.Operation{ + Name: opDeleteDestination, + HTTPMethod: "POST", + HTTPPath: "/deleteDestination", + } + + if input == nil { + input = &DeleteDestinationInput{} + } + + output = &DeleteDestinationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteDestination API operation for AWS IoT RoboRunner. +// +// # Grants permission to delete a destination +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation DeleteDestination for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteDestination +func (c *IoTRoboRunner) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) { + req, out := c.DeleteDestinationRequest(input) + return out, req.Send() +} + +// DeleteDestinationWithContext is the same as DeleteDestination with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) DeleteDestinationWithContext(ctx aws.Context, input *DeleteDestinationInput, opts ...request.Option) (*DeleteDestinationOutput, error) { + req, out := c.DeleteDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteSite = "DeleteSite" + +// DeleteSiteRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSite operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSite for more information on using the DeleteSite +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteSiteRequest method. +// req, resp := client.DeleteSiteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteSite +func (c *IoTRoboRunner) DeleteSiteRequest(input *DeleteSiteInput) (req *request.Request, output *DeleteSiteOutput) { + op := &request.Operation{ + Name: opDeleteSite, + HTTPMethod: "POST", + HTTPPath: "/deleteSite", + } + + if input == nil { + input = &DeleteSiteInput{} + } + + output = &DeleteSiteOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSite API operation for AWS IoT RoboRunner. +// +// # Grants permission to delete a site +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation DeleteSite for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteSite +func (c *IoTRoboRunner) DeleteSite(input *DeleteSiteInput) (*DeleteSiteOutput, error) { + req, out := c.DeleteSiteRequest(input) + return out, req.Send() +} + +// DeleteSiteWithContext is the same as DeleteSite with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSite for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) DeleteSiteWithContext(ctx aws.Context, input *DeleteSiteInput, opts ...request.Option) (*DeleteSiteOutput, error) { + req, out := c.DeleteSiteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteWorker = "DeleteWorker" + +// DeleteWorkerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorker operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteWorker for more information on using the DeleteWorker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteWorkerRequest method. +// req, resp := client.DeleteWorkerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteWorker +func (c *IoTRoboRunner) DeleteWorkerRequest(input *DeleteWorkerInput) (req *request.Request, output *DeleteWorkerOutput) { + op := &request.Operation{ + Name: opDeleteWorker, + HTTPMethod: "POST", + HTTPPath: "/deleteWorker", + } + + if input == nil { + input = &DeleteWorkerInput{} + } + + output = &DeleteWorkerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteWorker API operation for AWS IoT RoboRunner. +// +// # Grants permission to delete a worker +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation DeleteWorker for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteWorker +func (c *IoTRoboRunner) DeleteWorker(input *DeleteWorkerInput) (*DeleteWorkerOutput, error) { + req, out := c.DeleteWorkerRequest(input) + return out, req.Send() +} + +// DeleteWorkerWithContext is the same as DeleteWorker with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteWorker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) DeleteWorkerWithContext(ctx aws.Context, input *DeleteWorkerInput, opts ...request.Option) (*DeleteWorkerOutput, error) { + req, out := c.DeleteWorkerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteWorkerFleet = "DeleteWorkerFleet" + +// DeleteWorkerFleetRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkerFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteWorkerFleet for more information on using the DeleteWorkerFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteWorkerFleetRequest method. +// req, resp := client.DeleteWorkerFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteWorkerFleet +func (c *IoTRoboRunner) DeleteWorkerFleetRequest(input *DeleteWorkerFleetInput) (req *request.Request, output *DeleteWorkerFleetOutput) { + op := &request.Operation{ + Name: opDeleteWorkerFleet, + HTTPMethod: "POST", + HTTPPath: "/deleteWorkerFleet", + } + + if input == nil { + input = &DeleteWorkerFleetInput{} + } + + output = &DeleteWorkerFleetOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteWorkerFleet API operation for AWS IoT RoboRunner. +// +// # Grants permission to delete a worker fleet +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation DeleteWorkerFleet for usage and error information. +// +// Returned Error Types: +// +// - ConflictException +// Exception thrown if a resource in a create request already exists. +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/DeleteWorkerFleet +func (c *IoTRoboRunner) DeleteWorkerFleet(input *DeleteWorkerFleetInput) (*DeleteWorkerFleetOutput, error) { + req, out := c.DeleteWorkerFleetRequest(input) + return out, req.Send() +} + +// DeleteWorkerFleetWithContext is the same as DeleteWorkerFleet with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteWorkerFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) DeleteWorkerFleetWithContext(ctx aws.Context, input *DeleteWorkerFleetInput, opts ...request.Option) (*DeleteWorkerFleetOutput, error) { + req, out := c.DeleteWorkerFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDestination = "GetDestination" + +// GetDestinationRequest generates a "aws/request.Request" representing the +// client's request for the GetDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDestination for more information on using the GetDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetDestinationRequest method. +// req, resp := client.GetDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetDestination +func (c *IoTRoboRunner) GetDestinationRequest(input *GetDestinationInput) (req *request.Request, output *GetDestinationOutput) { + op := &request.Operation{ + Name: opGetDestination, + HTTPMethod: "GET", + HTTPPath: "/getDestination", + } + + if input == nil { + input = &GetDestinationInput{} + } + + output = &GetDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDestination API operation for AWS IoT RoboRunner. +// +// # Grants permission to get a destination +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation GetDestination for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetDestination +func (c *IoTRoboRunner) GetDestination(input *GetDestinationInput) (*GetDestinationOutput, error) { + req, out := c.GetDestinationRequest(input) + return out, req.Send() +} + +// GetDestinationWithContext is the same as GetDestination with the addition of +// the ability to pass a context and additional request options. +// +// See GetDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) GetDestinationWithContext(ctx aws.Context, input *GetDestinationInput, opts ...request.Option) (*GetDestinationOutput, error) { + req, out := c.GetDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetSite = "GetSite" + +// GetSiteRequest generates a "aws/request.Request" representing the +// client's request for the GetSite operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetSite for more information on using the GetSite +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetSiteRequest method. +// req, resp := client.GetSiteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetSite +func (c *IoTRoboRunner) GetSiteRequest(input *GetSiteInput) (req *request.Request, output *GetSiteOutput) { + op := &request.Operation{ + Name: opGetSite, + HTTPMethod: "GET", + HTTPPath: "/getSite", + } + + if input == nil { + input = &GetSiteInput{} + } + + output = &GetSiteOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetSite API operation for AWS IoT RoboRunner. +// +// # Grants permission to get a site +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation GetSite for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetSite +func (c *IoTRoboRunner) GetSite(input *GetSiteInput) (*GetSiteOutput, error) { + req, out := c.GetSiteRequest(input) + return out, req.Send() +} + +// GetSiteWithContext is the same as GetSite with the addition of +// the ability to pass a context and additional request options. +// +// See GetSite for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) GetSiteWithContext(ctx aws.Context, input *GetSiteInput, opts ...request.Option) (*GetSiteOutput, error) { + req, out := c.GetSiteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetWorker = "GetWorker" + +// GetWorkerRequest generates a "aws/request.Request" representing the +// client's request for the GetWorker operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetWorker for more information on using the GetWorker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetWorkerRequest method. +// req, resp := client.GetWorkerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetWorker +func (c *IoTRoboRunner) GetWorkerRequest(input *GetWorkerInput) (req *request.Request, output *GetWorkerOutput) { + op := &request.Operation{ + Name: opGetWorker, + HTTPMethod: "GET", + HTTPPath: "/getWorker", + } + + if input == nil { + input = &GetWorkerInput{} + } + + output = &GetWorkerOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWorker API operation for AWS IoT RoboRunner. +// +// # Grants permission to get a worker +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation GetWorker for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetWorker +func (c *IoTRoboRunner) GetWorker(input *GetWorkerInput) (*GetWorkerOutput, error) { + req, out := c.GetWorkerRequest(input) + return out, req.Send() +} + +// GetWorkerWithContext is the same as GetWorker with the addition of +// the ability to pass a context and additional request options. +// +// See GetWorker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) GetWorkerWithContext(ctx aws.Context, input *GetWorkerInput, opts ...request.Option) (*GetWorkerOutput, error) { + req, out := c.GetWorkerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetWorkerFleet = "GetWorkerFleet" + +// GetWorkerFleetRequest generates a "aws/request.Request" representing the +// client's request for the GetWorkerFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetWorkerFleet for more information on using the GetWorkerFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetWorkerFleetRequest method. +// req, resp := client.GetWorkerFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetWorkerFleet +func (c *IoTRoboRunner) GetWorkerFleetRequest(input *GetWorkerFleetInput) (req *request.Request, output *GetWorkerFleetOutput) { + op := &request.Operation{ + Name: opGetWorkerFleet, + HTTPMethod: "GET", + HTTPPath: "/getWorkerFleet", + } + + if input == nil { + input = &GetWorkerFleetInput{} + } + + output = &GetWorkerFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWorkerFleet API operation for AWS IoT RoboRunner. +// +// # Grants permission to get a worker fleet +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation GetWorkerFleet for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/GetWorkerFleet +func (c *IoTRoboRunner) GetWorkerFleet(input *GetWorkerFleetInput) (*GetWorkerFleetOutput, error) { + req, out := c.GetWorkerFleetRequest(input) + return out, req.Send() +} + +// GetWorkerFleetWithContext is the same as GetWorkerFleet with the addition of +// the ability to pass a context and additional request options. +// +// See GetWorkerFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) GetWorkerFleetWithContext(ctx aws.Context, input *GetWorkerFleetInput, opts ...request.Option) (*GetWorkerFleetOutput, error) { + req, out := c.GetWorkerFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListDestinations = "ListDestinations" + +// ListDestinationsRequest generates a "aws/request.Request" representing the +// client's request for the ListDestinations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListDestinations for more information on using the ListDestinations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListDestinationsRequest method. +// req, resp := client.ListDestinationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListDestinations +func (c *IoTRoboRunner) ListDestinationsRequest(input *ListDestinationsInput) (req *request.Request, output *ListDestinationsOutput) { + op := &request.Operation{ + Name: opListDestinations, + HTTPMethod: "GET", + HTTPPath: "/listDestinations", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDestinationsInput{} + } + + output = &ListDestinationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDestinations API operation for AWS IoT RoboRunner. +// +// # Grants permission to list destinations +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation ListDestinations for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListDestinations +func (c *IoTRoboRunner) ListDestinations(input *ListDestinationsInput) (*ListDestinationsOutput, error) { + req, out := c.ListDestinationsRequest(input) + return out, req.Send() +} + +// ListDestinationsWithContext is the same as ListDestinations with the addition of +// the ability to pass a context and additional request options. +// +// See ListDestinations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListDestinationsWithContext(ctx aws.Context, input *ListDestinationsInput, opts ...request.Option) (*ListDestinationsOutput, error) { + req, out := c.ListDestinationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDestinationsPages iterates over the pages of a ListDestinations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDestinations method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListDestinations operation. +// pageNum := 0 +// err := client.ListDestinationsPages(params, +// func(page *iotroborunner.ListDestinationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IoTRoboRunner) ListDestinationsPages(input *ListDestinationsInput, fn func(*ListDestinationsOutput, bool) bool) error { + return c.ListDestinationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDestinationsPagesWithContext same as ListDestinationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListDestinationsPagesWithContext(ctx aws.Context, input *ListDestinationsInput, fn func(*ListDestinationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDestinationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDestinationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDestinationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSites = "ListSites" + +// ListSitesRequest generates a "aws/request.Request" representing the +// client's request for the ListSites operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSites for more information on using the ListSites +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListSitesRequest method. +// req, resp := client.ListSitesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListSites +func (c *IoTRoboRunner) ListSitesRequest(input *ListSitesInput) (req *request.Request, output *ListSitesOutput) { + op := &request.Operation{ + Name: opListSites, + HTTPMethod: "GET", + HTTPPath: "/listSites", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListSitesInput{} + } + + output = &ListSitesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSites API operation for AWS IoT RoboRunner. +// +// # Grants permission to list sites +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation ListSites for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListSites +func (c *IoTRoboRunner) ListSites(input *ListSitesInput) (*ListSitesOutput, error) { + req, out := c.ListSitesRequest(input) + return out, req.Send() +} + +// ListSitesWithContext is the same as ListSites with the addition of +// the ability to pass a context and additional request options. +// +// See ListSites for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListSitesWithContext(ctx aws.Context, input *ListSitesInput, opts ...request.Option) (*ListSitesOutput, error) { + req, out := c.ListSitesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListSitesPages iterates over the pages of a ListSites operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSites method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListSites operation. +// pageNum := 0 +// err := client.ListSitesPages(params, +// func(page *iotroborunner.ListSitesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IoTRoboRunner) ListSitesPages(input *ListSitesInput, fn func(*ListSitesOutput, bool) bool) error { + return c.ListSitesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSitesPagesWithContext same as ListSitesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListSitesPagesWithContext(ctx aws.Context, input *ListSitesInput, fn func(*ListSitesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSitesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSitesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSitesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWorkerFleets = "ListWorkerFleets" + +// ListWorkerFleetsRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkerFleets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWorkerFleets for more information on using the ListWorkerFleets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListWorkerFleetsRequest method. +// req, resp := client.ListWorkerFleetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListWorkerFleets +func (c *IoTRoboRunner) ListWorkerFleetsRequest(input *ListWorkerFleetsInput) (req *request.Request, output *ListWorkerFleetsOutput) { + op := &request.Operation{ + Name: opListWorkerFleets, + HTTPMethod: "GET", + HTTPPath: "/listWorkerFleets", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkerFleetsInput{} + } + + output = &ListWorkerFleetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkerFleets API operation for AWS IoT RoboRunner. +// +// # Grants permission to list worker fleets +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation ListWorkerFleets for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListWorkerFleets +func (c *IoTRoboRunner) ListWorkerFleets(input *ListWorkerFleetsInput) (*ListWorkerFleetsOutput, error) { + req, out := c.ListWorkerFleetsRequest(input) + return out, req.Send() +} + +// ListWorkerFleetsWithContext is the same as ListWorkerFleets with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkerFleets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListWorkerFleetsWithContext(ctx aws.Context, input *ListWorkerFleetsInput, opts ...request.Option) (*ListWorkerFleetsOutput, error) { + req, out := c.ListWorkerFleetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkerFleetsPages iterates over the pages of a ListWorkerFleets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkerFleets method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListWorkerFleets operation. +// pageNum := 0 +// err := client.ListWorkerFleetsPages(params, +// func(page *iotroborunner.ListWorkerFleetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IoTRoboRunner) ListWorkerFleetsPages(input *ListWorkerFleetsInput, fn func(*ListWorkerFleetsOutput, bool) bool) error { + return c.ListWorkerFleetsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkerFleetsPagesWithContext same as ListWorkerFleetsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListWorkerFleetsPagesWithContext(ctx aws.Context, input *ListWorkerFleetsInput, fn func(*ListWorkerFleetsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkerFleetsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkerFleetsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWorkerFleetsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWorkers = "ListWorkers" + +// ListWorkersRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWorkers for more information on using the ListWorkers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListWorkersRequest method. +// req, resp := client.ListWorkersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListWorkers +func (c *IoTRoboRunner) ListWorkersRequest(input *ListWorkersInput) (req *request.Request, output *ListWorkersOutput) { + op := &request.Operation{ + Name: opListWorkers, + HTTPMethod: "GET", + HTTPPath: "/listWorkers", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkersInput{} + } + + output = &ListWorkersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkers API operation for AWS IoT RoboRunner. +// +// # Grants permission to list workers +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation ListWorkers for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/ListWorkers +func (c *IoTRoboRunner) ListWorkers(input *ListWorkersInput) (*ListWorkersOutput, error) { + req, out := c.ListWorkersRequest(input) + return out, req.Send() +} + +// ListWorkersWithContext is the same as ListWorkers with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListWorkersWithContext(ctx aws.Context, input *ListWorkersInput, opts ...request.Option) (*ListWorkersOutput, error) { + req, out := c.ListWorkersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkersPages iterates over the pages of a ListWorkers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkers method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListWorkers operation. +// pageNum := 0 +// err := client.ListWorkersPages(params, +// func(page *iotroborunner.ListWorkersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *IoTRoboRunner) ListWorkersPages(input *ListWorkersInput, fn func(*ListWorkersOutput, bool) bool) error { + return c.ListWorkersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkersPagesWithContext same as ListWorkersPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) ListWorkersPagesWithContext(ctx aws.Context, input *ListWorkersInput, fn func(*ListWorkersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWorkersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opUpdateDestination = "UpdateDestination" + +// UpdateDestinationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDestination for more information on using the UpdateDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateDestinationRequest method. +// req, resp := client.UpdateDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateDestination +func (c *IoTRoboRunner) UpdateDestinationRequest(input *UpdateDestinationInput) (req *request.Request, output *UpdateDestinationOutput) { + op := &request.Operation{ + Name: opUpdateDestination, + HTTPMethod: "POST", + HTTPPath: "/updateDestination", + } + + if input == nil { + input = &UpdateDestinationInput{} + } + + output = &UpdateDestinationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateDestination API operation for AWS IoT RoboRunner. +// +// # Grants permission to update a destination +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation UpdateDestination for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateDestination +func (c *IoTRoboRunner) UpdateDestination(input *UpdateDestinationInput) (*UpdateDestinationOutput, error) { + req, out := c.UpdateDestinationRequest(input) + return out, req.Send() +} + +// UpdateDestinationWithContext is the same as UpdateDestination with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) UpdateDestinationWithContext(ctx aws.Context, input *UpdateDestinationInput, opts ...request.Option) (*UpdateDestinationOutput, error) { + req, out := c.UpdateDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSite = "UpdateSite" + +// UpdateSiteRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSite operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSite for more information on using the UpdateSite +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateSiteRequest method. +// req, resp := client.UpdateSiteRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateSite +func (c *IoTRoboRunner) UpdateSiteRequest(input *UpdateSiteInput) (req *request.Request, output *UpdateSiteOutput) { + op := &request.Operation{ + Name: opUpdateSite, + HTTPMethod: "POST", + HTTPPath: "/updateSite", + } + + if input == nil { + input = &UpdateSiteInput{} + } + + output = &UpdateSiteOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSite API operation for AWS IoT RoboRunner. +// +// # Grants permission to update a site +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation UpdateSite for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateSite +func (c *IoTRoboRunner) UpdateSite(input *UpdateSiteInput) (*UpdateSiteOutput, error) { + req, out := c.UpdateSiteRequest(input) + return out, req.Send() +} + +// UpdateSiteWithContext is the same as UpdateSite with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSite for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) UpdateSiteWithContext(ctx aws.Context, input *UpdateSiteInput, opts ...request.Option) (*UpdateSiteOutput, error) { + req, out := c.UpdateSiteRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWorker = "UpdateWorker" + +// UpdateWorkerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWorker operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateWorker for more information on using the UpdateWorker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateWorkerRequest method. +// req, resp := client.UpdateWorkerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateWorker +func (c *IoTRoboRunner) UpdateWorkerRequest(input *UpdateWorkerInput) (req *request.Request, output *UpdateWorkerOutput) { + op := &request.Operation{ + Name: opUpdateWorker, + HTTPMethod: "POST", + HTTPPath: "/updateWorker", + } + + if input == nil { + input = &UpdateWorkerInput{} + } + + output = &UpdateWorkerOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateWorker API operation for AWS IoT RoboRunner. +// +// # Grants permission to update a worker +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation UpdateWorker for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateWorker +func (c *IoTRoboRunner) UpdateWorker(input *UpdateWorkerInput) (*UpdateWorkerOutput, error) { + req, out := c.UpdateWorkerRequest(input) + return out, req.Send() +} + +// UpdateWorkerWithContext is the same as UpdateWorker with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWorker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) UpdateWorkerWithContext(ctx aws.Context, input *UpdateWorkerInput, opts ...request.Option) (*UpdateWorkerOutput, error) { + req, out := c.UpdateWorkerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWorkerFleet = "UpdateWorkerFleet" + +// UpdateWorkerFleetRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWorkerFleet operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateWorkerFleet for more information on using the UpdateWorkerFleet +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateWorkerFleetRequest method. +// req, resp := client.UpdateWorkerFleetRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateWorkerFleet +func (c *IoTRoboRunner) UpdateWorkerFleetRequest(input *UpdateWorkerFleetInput) (req *request.Request, output *UpdateWorkerFleetOutput) { + op := &request.Operation{ + Name: opUpdateWorkerFleet, + HTTPMethod: "POST", + HTTPPath: "/updateWorkerFleet", + } + + if input == nil { + input = &UpdateWorkerFleetInput{} + } + + output = &UpdateWorkerFleetOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateWorkerFleet API operation for AWS IoT RoboRunner. +// +// # Grants permission to update a worker fleet +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT RoboRunner's +// API operation UpdateWorkerFleet for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// User does not have sufficient access to perform this action. +// +// - ValidationException +// Exception thrown if an invalid parameter is provided to an API. +// +// - ResourceNotFoundException +// Exception thrown if a resource referenced in the request doesn't exist. +// +// - ThrottlingException +// Exception thrown if the api has been called too quickly be the client. +// +// - InternalServerException +// Exception thrown if something goes wrong within the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10/UpdateWorkerFleet +func (c *IoTRoboRunner) UpdateWorkerFleet(input *UpdateWorkerFleetInput) (*UpdateWorkerFleetOutput, error) { + req, out := c.UpdateWorkerFleetRequest(input) + return out, req.Send() +} + +// UpdateWorkerFleetWithContext is the same as UpdateWorkerFleet with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWorkerFleet for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTRoboRunner) UpdateWorkerFleetWithContext(ctx aws.Context, input *UpdateWorkerFleetInput, opts ...request.Option) (*UpdateWorkerFleetOutput, error) { + req, out := c.UpdateWorkerFleetRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// User does not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Cartesian coordinates in 3D space relative to the RoboRunner origin. +type CartesianCoordinates struct { + _ struct{} `type:"structure"` + + // X coordinate. + // + // X is a required field + X *float64 `locationName:"x" type:"double" required:"true"` + + // Y coordinate. + // + // Y is a required field + Y *float64 `locationName:"y" type:"double" required:"true"` + + // Z coordinate. + Z *float64 `locationName:"z" type:"double"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CartesianCoordinates) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CartesianCoordinates) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CartesianCoordinates) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CartesianCoordinates"} + if s.X == nil { + invalidParams.Add(request.NewErrParamRequired("X")) + } + if s.Y == nil { + invalidParams.Add(request.NewErrParamRequired("Y")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetX sets the X field's value. +func (s *CartesianCoordinates) SetX(v float64) *CartesianCoordinates { + s.X = &v + return s +} + +// SetY sets the Y field's value. +func (s *CartesianCoordinates) SetY(v float64) *CartesianCoordinates { + s.Y = &v + return s +} + +// SetZ sets the Z field's value. +func (s *CartesianCoordinates) SetZ(v float64) *CartesianCoordinates { + s.Z = &v + return s +} + +// Exception thrown if a resource in a create request already exists. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateDestinationInput struct { + _ struct{} `type:"structure"` + + // JSON document containing additional fixed properties regarding the destination + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Token used for detecting replayed requests. Replayed requests will not be + // performed multiple times. + ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // The state of the destination. Default used if not specified. + State *string `locationName:"state" type:"string" enum:"DestinationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDestinationInput"} + if s.AdditionalFixedProperties != nil && len(*s.AdditionalFixedProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalFixedProperties", 1)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Site == nil { + invalidParams.Add(request.NewErrParamRequired("Site")) + } + if s.Site != nil && len(*s.Site) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Site", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *CreateDestinationInput) SetAdditionalFixedProperties(v string) *CreateDestinationInput { + s.AdditionalFixedProperties = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateDestinationInput) SetClientToken(v string) *CreateDestinationInput { + s.ClientToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDestinationInput) SetName(v string) *CreateDestinationInput { + s.Name = &v + return s +} + +// SetSite sets the Site field's value. +func (s *CreateDestinationInput) SetSite(v string) *CreateDestinationInput { + s.Site = &v + return s +} + +// SetState sets the State field's value. +func (s *CreateDestinationInput) SetState(v string) *CreateDestinationInput { + s.State = &v + return s +} + +type CreateDestinationOutput struct { + _ struct{} `type:"structure"` + + // Destination ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the destination's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // State of the destination. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true" enum:"DestinationState"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateDestinationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateDestinationOutput) SetArn(v string) *CreateDestinationOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CreateDestinationOutput) SetCreatedAt(v time.Time) *CreateDestinationOutput { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateDestinationOutput) SetId(v string) *CreateDestinationOutput { + s.Id = &v + return s +} + +// SetState sets the State field's value. +func (s *CreateDestinationOutput) SetState(v string) *CreateDestinationOutput { + s.State = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *CreateDestinationOutput) SetUpdatedAt(v time.Time) *CreateDestinationOutput { + s.UpdatedAt = &v + return s +} + +type CreateSiteInput struct { + _ struct{} `type:"structure"` + + // Token used for detecting replayed requests. Replayed requests will not be + // performed multiple times. + ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` + + // A valid ISO 3166-1 alpha-2 code for the country in which the site resides. + // e.g., US. + // + // CountryCode is a required field + CountryCode *string `locationName:"countryCode" min:"2" type:"string" required:"true"` + + // A high-level description of the site. + Description *string `locationName:"description" type:"string"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSiteInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.CountryCode == nil { + invalidParams.Add(request.NewErrParamRequired("CountryCode")) + } + if s.CountryCode != nil && len(*s.CountryCode) < 2 { + invalidParams.Add(request.NewErrParamMinLen("CountryCode", 2)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateSiteInput) SetClientToken(v string) *CreateSiteInput { + s.ClientToken = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *CreateSiteInput) SetCountryCode(v string) *CreateSiteInput { + s.CountryCode = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateSiteInput) SetDescription(v string) *CreateSiteInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSiteInput) SetName(v string) *CreateSiteInput { + s.Name = &v + return s +} + +type CreateSiteOutput struct { + _ struct{} `type:"structure"` + + // Site ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the site's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateSiteOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateSiteOutput) SetArn(v string) *CreateSiteOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CreateSiteOutput) SetCreatedAt(v time.Time) *CreateSiteOutput { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateSiteOutput) SetId(v string) *CreateSiteOutput { + s.Id = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *CreateSiteOutput) SetUpdatedAt(v time.Time) *CreateSiteOutput { + s.UpdatedAt = &v + return s +} + +type CreateWorkerFleetInput struct { + _ struct{} `type:"structure"` + + // JSON blob containing additional fixed properties regarding the worker fleet + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Token used for detecting replayed requests. Replayed requests will not be + // performed multiple times. + ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkerFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkerFleetInput"} + if s.AdditionalFixedProperties != nil && len(*s.AdditionalFixedProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalFixedProperties", 1)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Site == nil { + invalidParams.Add(request.NewErrParamRequired("Site")) + } + if s.Site != nil && len(*s.Site) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Site", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *CreateWorkerFleetInput) SetAdditionalFixedProperties(v string) *CreateWorkerFleetInput { + s.AdditionalFixedProperties = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateWorkerFleetInput) SetClientToken(v string) *CreateWorkerFleetInput { + s.ClientToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateWorkerFleetInput) SetName(v string) *CreateWorkerFleetInput { + s.Name = &v + return s +} + +// SetSite sets the Site field's value. +func (s *CreateWorkerFleetInput) SetSite(v string) *CreateWorkerFleetInput { + s.Site = &v + return s +} + +type CreateWorkerFleetOutput struct { + _ struct{} `type:"structure"` + + // Full ARN of the worker fleet. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the worker fleet's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerFleetOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateWorkerFleetOutput) SetArn(v string) *CreateWorkerFleetOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CreateWorkerFleetOutput) SetCreatedAt(v time.Time) *CreateWorkerFleetOutput { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateWorkerFleetOutput) SetId(v string) *CreateWorkerFleetOutput { + s.Id = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *CreateWorkerFleetOutput) SetUpdatedAt(v time.Time) *CreateWorkerFleetOutput { + s.UpdatedAt = &v + return s +} + +type CreateWorkerInput struct { + _ struct{} `type:"structure"` + + // JSON blob containing unstructured worker properties that are fixed and won't + // change during regular operation. + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // JSON blob containing unstructured worker properties that are transient and + // may change during regular operation. + AdditionalTransientProperties *string `locationName:"additionalTransientProperties" min:"1" type:"string"` + + // Token used for detecting replayed requests. Replayed requests will not be + // performed multiple times. + ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` + + // Full ARN of the worker fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Worker orientation measured in units clockwise from north. + Orientation *Orientation `locationName:"orientation" type:"structure"` + + // Supported coordinates for worker position. + Position *PositionCoordinates `locationName:"position" type:"structure"` + + // Properties of the worker that are provided by the vendor FMS. + VendorProperties *VendorProperties `locationName:"vendorProperties" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkerInput"} + if s.AdditionalFixedProperties != nil && len(*s.AdditionalFixedProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalFixedProperties", 1)) + } + if s.AdditionalTransientProperties != nil && len(*s.AdditionalTransientProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalTransientProperties", 1)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1)) + } + if s.Fleet == nil { + invalidParams.Add(request.NewErrParamRequired("Fleet")) + } + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Position != nil { + if err := s.Position.Validate(); err != nil { + invalidParams.AddNested("Position", err.(request.ErrInvalidParams)) + } + } + if s.VendorProperties != nil { + if err := s.VendorProperties.Validate(); err != nil { + invalidParams.AddNested("VendorProperties", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *CreateWorkerInput) SetAdditionalFixedProperties(v string) *CreateWorkerInput { + s.AdditionalFixedProperties = &v + return s +} + +// SetAdditionalTransientProperties sets the AdditionalTransientProperties field's value. +func (s *CreateWorkerInput) SetAdditionalTransientProperties(v string) *CreateWorkerInput { + s.AdditionalTransientProperties = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateWorkerInput) SetClientToken(v string) *CreateWorkerInput { + s.ClientToken = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *CreateWorkerInput) SetFleet(v string) *CreateWorkerInput { + s.Fleet = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateWorkerInput) SetName(v string) *CreateWorkerInput { + s.Name = &v + return s +} + +// SetOrientation sets the Orientation field's value. +func (s *CreateWorkerInput) SetOrientation(v *Orientation) *CreateWorkerInput { + s.Orientation = v + return s +} + +// SetPosition sets the Position field's value. +func (s *CreateWorkerInput) SetPosition(v *PositionCoordinates) *CreateWorkerInput { + s.Position = v + return s +} + +// SetVendorProperties sets the VendorProperties field's value. +func (s *CreateWorkerInput) SetVendorProperties(v *VendorProperties) *CreateWorkerInput { + s.VendorProperties = v + return s +} + +type CreateWorkerOutput struct { + _ struct{} `type:"structure"` + + // Full ARN of the worker. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the workers identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateWorkerOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateWorkerOutput) SetArn(v string) *CreateWorkerOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *CreateWorkerOutput) SetCreatedAt(v time.Time) *CreateWorkerOutput { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateWorkerOutput) SetId(v string) *CreateWorkerOutput { + s.Id = &v + return s +} + +// SetSite sets the Site field's value. +func (s *CreateWorkerOutput) SetSite(v string) *CreateWorkerOutput { + s.Site = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *CreateWorkerOutput) SetUpdatedAt(v time.Time) *CreateWorkerOutput { + s.UpdatedAt = &v + return s +} + +type DeleteDestinationInput struct { + _ struct{} `type:"structure"` + + // Destination ARN. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDestinationInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *DeleteDestinationInput) SetId(v string) *DeleteDestinationInput { + s.Id = &v + return s +} + +type DeleteDestinationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteDestinationOutput) GoString() string { + return s.String() +} + +type DeleteSiteInput struct { + _ struct{} `type:"structure"` + + // Site ARN. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSiteInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *DeleteSiteInput) SetId(v string) *DeleteSiteInput { + s.Id = &v + return s +} + +type DeleteSiteOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSiteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteSiteOutput) GoString() string { + return s.String() +} + +type DeleteWorkerFleetInput struct { + _ struct{} `type:"structure"` + + // Full ARN of the worker fleet. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkerFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkerFleetInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *DeleteWorkerFleetInput) SetId(v string) *DeleteWorkerFleetInput { + s.Id = &v + return s +} + +type DeleteWorkerFleetOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerFleetOutput) GoString() string { + return s.String() +} + +type DeleteWorkerInput struct { + _ struct{} `type:"structure"` + + // Full ARN of the worker. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkerInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *DeleteWorkerInput) SetId(v string) *DeleteWorkerInput { + s.Id = &v + return s +} + +type DeleteWorkerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteWorkerOutput) GoString() string { + return s.String() +} + +// Area within a facility where work can be performed. +type Destination struct { + _ struct{} `type:"structure"` + + // JSON document containing additional fixed properties regarding the destination + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Destination ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the destination's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // State of the destination. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true" enum:"DestinationState"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Destination) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Destination) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *Destination) SetAdditionalFixedProperties(v string) *Destination { + s.AdditionalFixedProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Destination) SetArn(v string) *Destination { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Destination) SetCreatedAt(v time.Time) *Destination { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *Destination) SetId(v string) *Destination { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Destination) SetName(v string) *Destination { + s.Name = &v + return s +} + +// SetSite sets the Site field's value. +func (s *Destination) SetSite(v string) *Destination { + s.Site = &v + return s +} + +// SetState sets the State field's value. +func (s *Destination) SetState(v string) *Destination { + s.State = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Destination) SetUpdatedAt(v time.Time) *Destination { + s.UpdatedAt = &v + return s +} + +type GetDestinationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Destination ARN. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDestinationInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *GetDestinationInput) SetId(v string) *GetDestinationInput { + s.Id = &v + return s +} + +type GetDestinationOutput struct { + _ struct{} `type:"structure"` + + // JSON document containing additional fixed properties regarding the destination + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Destination ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the destination's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // State of the destination. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true" enum:"DestinationState"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDestinationOutput) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *GetDestinationOutput) SetAdditionalFixedProperties(v string) *GetDestinationOutput { + s.AdditionalFixedProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *GetDestinationOutput) SetArn(v string) *GetDestinationOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetDestinationOutput) SetCreatedAt(v time.Time) *GetDestinationOutput { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetDestinationOutput) SetId(v string) *GetDestinationOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetDestinationOutput) SetName(v string) *GetDestinationOutput { + s.Name = &v + return s +} + +// SetSite sets the Site field's value. +func (s *GetDestinationOutput) SetSite(v string) *GetDestinationOutput { + s.Site = &v + return s +} + +// SetState sets the State field's value. +func (s *GetDestinationOutput) SetState(v string) *GetDestinationOutput { + s.State = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *GetDestinationOutput) SetUpdatedAt(v time.Time) *GetDestinationOutput { + s.UpdatedAt = &v + return s +} + +type GetSiteInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Site ARN. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSiteInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *GetSiteInput) SetId(v string) *GetSiteInput { + s.Id = &v + return s +} + +type GetSiteOutput struct { + _ struct{} `type:"structure"` + + // Site ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // A valid ISO 3166-1 alpha-2 code for the country in which the site resides. + // e.g., US. + // + // CountryCode is a required field + CountryCode *string `locationName:"countryCode" min:"2" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // A high-level description of the site. + Description *string `locationName:"description" type:"string"` + + // Filters access by the site's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetSiteOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *GetSiteOutput) SetArn(v string) *GetSiteOutput { + s.Arn = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *GetSiteOutput) SetCountryCode(v string) *GetSiteOutput { + s.CountryCode = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetSiteOutput) SetCreatedAt(v time.Time) *GetSiteOutput { + s.CreatedAt = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetSiteOutput) SetDescription(v string) *GetSiteOutput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetSiteOutput) SetId(v string) *GetSiteOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetSiteOutput) SetName(v string) *GetSiteOutput { + s.Name = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *GetSiteOutput) SetUpdatedAt(v time.Time) *GetSiteOutput { + s.UpdatedAt = &v + return s +} + +type GetWorkerFleetInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Full ARN of the worker fleet. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWorkerFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWorkerFleetInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *GetWorkerFleetInput) SetId(v string) *GetWorkerFleetInput { + s.Id = &v + return s +} + +type GetWorkerFleetOutput struct { + _ struct{} `type:"structure"` + + // JSON blob containing additional fixed properties regarding the worker fleet + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Full ARN of the worker fleet. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the worker fleet's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerFleetOutput) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *GetWorkerFleetOutput) SetAdditionalFixedProperties(v string) *GetWorkerFleetOutput { + s.AdditionalFixedProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *GetWorkerFleetOutput) SetArn(v string) *GetWorkerFleetOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetWorkerFleetOutput) SetCreatedAt(v time.Time) *GetWorkerFleetOutput { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetWorkerFleetOutput) SetId(v string) *GetWorkerFleetOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetWorkerFleetOutput) SetName(v string) *GetWorkerFleetOutput { + s.Name = &v + return s +} + +// SetSite sets the Site field's value. +func (s *GetWorkerFleetOutput) SetSite(v string) *GetWorkerFleetOutput { + s.Site = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *GetWorkerFleetOutput) SetUpdatedAt(v time.Time) *GetWorkerFleetOutput { + s.UpdatedAt = &v + return s +} + +type GetWorkerInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Full ARN of the worker. + // + // Id is a required field + Id *string `location:"querystring" locationName:"id" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWorkerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWorkerInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *GetWorkerInput) SetId(v string) *GetWorkerInput { + s.Id = &v + return s +} + +type GetWorkerOutput struct { + _ struct{} `type:"structure"` + + // JSON blob containing unstructured worker properties that are fixed and won't + // change during regular operation. + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // JSON blob containing unstructured worker properties that are transient and + // may change during regular operation. + AdditionalTransientProperties *string `locationName:"additionalTransientProperties" min:"1" type:"string"` + + // Full ARN of the worker. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Full ARN of the worker fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` + + // Filters access by the workers identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Worker orientation measured in units clockwise from north. + Orientation *Orientation `locationName:"orientation" type:"structure"` + + // Supported coordinates for worker position. + Position *PositionCoordinates `locationName:"position" type:"structure"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` + + // Properties of the worker that are provided by the vendor FMS. + VendorProperties *VendorProperties `locationName:"vendorProperties" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetWorkerOutput) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *GetWorkerOutput) SetAdditionalFixedProperties(v string) *GetWorkerOutput { + s.AdditionalFixedProperties = &v + return s +} + +// SetAdditionalTransientProperties sets the AdditionalTransientProperties field's value. +func (s *GetWorkerOutput) SetAdditionalTransientProperties(v string) *GetWorkerOutput { + s.AdditionalTransientProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *GetWorkerOutput) SetArn(v string) *GetWorkerOutput { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetWorkerOutput) SetCreatedAt(v time.Time) *GetWorkerOutput { + s.CreatedAt = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *GetWorkerOutput) SetFleet(v string) *GetWorkerOutput { + s.Fleet = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetWorkerOutput) SetId(v string) *GetWorkerOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetWorkerOutput) SetName(v string) *GetWorkerOutput { + s.Name = &v + return s +} + +// SetOrientation sets the Orientation field's value. +func (s *GetWorkerOutput) SetOrientation(v *Orientation) *GetWorkerOutput { + s.Orientation = v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetWorkerOutput) SetPosition(v *PositionCoordinates) *GetWorkerOutput { + s.Position = v + return s +} + +// SetSite sets the Site field's value. +func (s *GetWorkerOutput) SetSite(v string) *GetWorkerOutput { + s.Site = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *GetWorkerOutput) SetUpdatedAt(v time.Time) *GetWorkerOutput { + s.UpdatedAt = &v + return s +} + +// SetVendorProperties sets the VendorProperties field's value. +func (s *GetWorkerOutput) SetVendorProperties(v *VendorProperties) *GetWorkerOutput { + s.VendorProperties = v + return s +} + +// Exception thrown if something goes wrong within the service. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListDestinationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Maximum number of results to retrieve in a single call. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` + + // Site ARN. + // + // Site is a required field + Site *string `location:"querystring" locationName:"site" min:"1" type:"string" required:"true"` + + // State of the destination. + State *string `location:"querystring" locationName:"state" type:"string" enum:"DestinationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDestinationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDestinationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDestinationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDestinationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Site == nil { + invalidParams.Add(request.NewErrParamRequired("Site")) + } + if s.Site != nil && len(*s.Site) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Site", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDestinationsInput) SetMaxResults(v int64) *ListDestinationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDestinationsInput) SetNextToken(v string) *ListDestinationsInput { + s.NextToken = &v + return s +} + +// SetSite sets the Site field's value. +func (s *ListDestinationsInput) SetSite(v string) *ListDestinationsInput { + s.Site = &v + return s +} + +// SetState sets the State field's value. +func (s *ListDestinationsInput) SetState(v string) *ListDestinationsInput { + s.State = &v + return s +} + +type ListDestinationsOutput struct { + _ struct{} `type:"structure"` + + // List of destinations. + Destinations []*Destination `locationName:"destinations" type:"list"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDestinationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDestinationsOutput) GoString() string { + return s.String() +} + +// SetDestinations sets the Destinations field's value. +func (s *ListDestinationsOutput) SetDestinations(v []*Destination) *ListDestinationsOutput { + s.Destinations = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDestinationsOutput) SetNextToken(v string) *ListDestinationsOutput { + s.NextToken = &v + return s +} + +type ListSitesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Maximum number of results to retrieve in a single ListSites call. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSitesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSitesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSitesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSitesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSitesInput) SetMaxResults(v int64) *ListSitesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSitesInput) SetNextToken(v string) *ListSitesInput { + s.NextToken = &v + return s +} + +type ListSitesOutput struct { + _ struct{} `type:"structure"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // List of facilities. + Sites []*Site `locationName:"sites" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSitesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListSitesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSitesOutput) SetNextToken(v string) *ListSitesOutput { + s.NextToken = &v + return s +} + +// SetSites sets the Sites field's value. +func (s *ListSitesOutput) SetSites(v []*Site) *ListSitesOutput { + s.Sites = v + return s +} + +type ListWorkerFleetsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Maximum number of results to retrieve in a single ListWorkerFleets call. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` + + // Site ARN. + // + // Site is a required field + Site *string `location:"querystring" locationName:"site" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkerFleetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkerFleetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkerFleetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkerFleetsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Site == nil { + invalidParams.Add(request.NewErrParamRequired("Site")) + } + if s.Site != nil && len(*s.Site) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Site", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkerFleetsInput) SetMaxResults(v int64) *ListWorkerFleetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkerFleetsInput) SetNextToken(v string) *ListWorkerFleetsInput { + s.NextToken = &v + return s +} + +// SetSite sets the Site field's value. +func (s *ListWorkerFleetsInput) SetSite(v string) *ListWorkerFleetsInput { + s.Site = &v + return s +} + +type ListWorkerFleetsOutput struct { + _ struct{} `type:"structure"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // List of worker fleets. + WorkerFleets []*WorkerFleet `locationName:"workerFleets" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkerFleetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkerFleetsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkerFleetsOutput) SetNextToken(v string) *ListWorkerFleetsOutput { + s.NextToken = &v + return s +} + +// SetWorkerFleets sets the WorkerFleets field's value. +func (s *ListWorkerFleetsOutput) SetWorkerFleets(v []*WorkerFleet) *ListWorkerFleetsOutput { + s.WorkerFleets = v + return s +} + +type ListWorkersInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Full ARN of the worker fleet. + Fleet *string `location:"querystring" locationName:"fleet" min:"1" type:"string"` + + // Maximum number of results to retrieve in a single ListWorkers call. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` + + // Site ARN. + // + // Site is a required field + Site *string `location:"querystring" locationName:"site" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkersInput"} + if s.Fleet != nil && len(*s.Fleet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Fleet", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.Site == nil { + invalidParams.Add(request.NewErrParamRequired("Site")) + } + if s.Site != nil && len(*s.Site) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Site", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFleet sets the Fleet field's value. +func (s *ListWorkersInput) SetFleet(v string) *ListWorkersInput { + s.Fleet = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkersInput) SetMaxResults(v int64) *ListWorkersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkersInput) SetNextToken(v string) *ListWorkersInput { + s.NextToken = &v + return s +} + +// SetSite sets the Site field's value. +func (s *ListWorkersInput) SetSite(v string) *ListWorkersInput { + s.Site = &v + return s +} + +type ListWorkersOutput struct { + _ struct{} `type:"structure"` + + // Pagination token returned when another page of data exists. Provide it in + // your next call to the API to receive the next page. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // List of workers. + Workers []*Worker `locationName:"workers" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListWorkersOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkersOutput) SetNextToken(v string) *ListWorkersOutput { + s.NextToken = &v + return s +} + +// SetWorkers sets the Workers field's value. +func (s *ListWorkersOutput) SetWorkers(v []*Worker) *ListWorkersOutput { + s.Workers = v + return s +} + +// Worker orientation measured in units clockwise from north. +type Orientation struct { + _ struct{} `type:"structure"` + + // Degrees, limited on [0, 360) + Degrees *float64 `locationName:"degrees" type:"double"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Orientation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Orientation) GoString() string { + return s.String() +} + +// SetDegrees sets the Degrees field's value. +func (s *Orientation) SetDegrees(v float64) *Orientation { + s.Degrees = &v + return s +} + +// Supported coordinates for worker position. +type PositionCoordinates struct { + _ struct{} `type:"structure"` + + // Cartesian coordinates. + CartesianCoordinates *CartesianCoordinates `locationName:"cartesianCoordinates" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PositionCoordinates) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PositionCoordinates) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PositionCoordinates) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PositionCoordinates"} + if s.CartesianCoordinates != nil { + if err := s.CartesianCoordinates.Validate(); err != nil { + invalidParams.AddNested("CartesianCoordinates", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCartesianCoordinates sets the CartesianCoordinates field's value. +func (s *PositionCoordinates) SetCartesianCoordinates(v *CartesianCoordinates) *PositionCoordinates { + s.CartesianCoordinates = v + return s +} + +// Exception thrown if a resource referenced in the request doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Exception thrown if the user's AWS account has reached a service limit and +// the operation cannot proceed. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Facility containing destinations, workers, activities, and tasks. +type Site struct { + _ struct{} `type:"structure"` + + // Site ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // A valid ISO 3166-1 alpha-2 code for the country in which the site resides. + // e.g., US. + // + // CountryCode is a required field + CountryCode *string `locationName:"countryCode" min:"2" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // The name of the site. Mutable after creation and unique within a given account. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Site) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Site) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Site) SetArn(v string) *Site { + s.Arn = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *Site) SetCountryCode(v string) *Site { + s.CountryCode = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Site) SetCreatedAt(v time.Time) *Site { + s.CreatedAt = &v + return s +} + +// SetName sets the Name field's value. +func (s *Site) SetName(v string) *Site { + s.Name = &v + return s +} + +// Exception thrown if the api has been called too quickly be the client. +type ThrottlingException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s *ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottlingException) OrigErr() error { + return nil +} + +func (s *ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ThrottlingException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ThrottlingException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UpdateDestinationInput struct { + _ struct{} `type:"structure"` + + // JSON document containing additional fixed properties regarding the destination + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Destination ARN. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + Name *string `locationName:"name" min:"1" type:"string"` + + // State of the destination. + State *string `locationName:"state" type:"string" enum:"DestinationState"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDestinationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateDestinationInput"} + if s.AdditionalFixedProperties != nil && len(*s.AdditionalFixedProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalFixedProperties", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *UpdateDestinationInput) SetAdditionalFixedProperties(v string) *UpdateDestinationInput { + s.AdditionalFixedProperties = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateDestinationInput) SetId(v string) *UpdateDestinationInput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateDestinationInput) SetName(v string) *UpdateDestinationInput { + s.Name = &v + return s +} + +// SetState sets the State field's value. +func (s *UpdateDestinationInput) SetState(v string) *UpdateDestinationInput { + s.State = &v + return s +} + +type UpdateDestinationOutput struct { + _ struct{} `type:"structure"` + + // JSON document containing additional fixed properties regarding the destination + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Destination ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Filters access by the destination's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // State of the destination. + // + // State is a required field + State *string `locationName:"state" type:"string" required:"true" enum:"DestinationState"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDestinationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateDestinationOutput) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *UpdateDestinationOutput) SetAdditionalFixedProperties(v string) *UpdateDestinationOutput { + s.AdditionalFixedProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *UpdateDestinationOutput) SetArn(v string) *UpdateDestinationOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateDestinationOutput) SetId(v string) *UpdateDestinationOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateDestinationOutput) SetName(v string) *UpdateDestinationOutput { + s.Name = &v + return s +} + +// SetState sets the State field's value. +func (s *UpdateDestinationOutput) SetState(v string) *UpdateDestinationOutput { + s.State = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *UpdateDestinationOutput) SetUpdatedAt(v time.Time) *UpdateDestinationOutput { + s.UpdatedAt = &v + return s +} + +type UpdateSiteInput struct { + _ struct{} `type:"structure"` + + // A valid ISO 3166-1 alpha-2 code for the country in which the site resides. + // e.g., US. + CountryCode *string `locationName:"countryCode" min:"2" type:"string"` + + // A high-level description of the site. + Description *string `locationName:"description" type:"string"` + + // Site ARN. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + Name *string `locationName:"name" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSiteInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSiteInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSiteInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSiteInput"} + if s.CountryCode != nil && len(*s.CountryCode) < 2 { + invalidParams.Add(request.NewErrParamMinLen("CountryCode", 2)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCountryCode sets the CountryCode field's value. +func (s *UpdateSiteInput) SetCountryCode(v string) *UpdateSiteInput { + s.CountryCode = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateSiteInput) SetDescription(v string) *UpdateSiteInput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateSiteInput) SetId(v string) *UpdateSiteInput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateSiteInput) SetName(v string) *UpdateSiteInput { + s.Name = &v + return s +} + +type UpdateSiteOutput struct { + _ struct{} `type:"structure"` + + // Site ARN. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // A valid ISO 3166-1 alpha-2 code for the country in which the site resides. + // e.g., US. + CountryCode *string `locationName:"countryCode" min:"2" type:"string"` + + // A high-level description of the site. + Description *string `locationName:"description" type:"string"` + + // Filters access by the site's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSiteOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateSiteOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *UpdateSiteOutput) SetArn(v string) *UpdateSiteOutput { + s.Arn = &v + return s +} + +// SetCountryCode sets the CountryCode field's value. +func (s *UpdateSiteOutput) SetCountryCode(v string) *UpdateSiteOutput { + s.CountryCode = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateSiteOutput) SetDescription(v string) *UpdateSiteOutput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateSiteOutput) SetId(v string) *UpdateSiteOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateSiteOutput) SetName(v string) *UpdateSiteOutput { + s.Name = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *UpdateSiteOutput) SetUpdatedAt(v time.Time) *UpdateSiteOutput { + s.UpdatedAt = &v + return s +} + +type UpdateWorkerFleetInput struct { + _ struct{} `type:"structure"` + + // JSON blob containing additional fixed properties regarding the worker fleet + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Full ARN of the worker fleet. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + Name *string `locationName:"name" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerFleetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerFleetInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateWorkerFleetInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateWorkerFleetInput"} + if s.AdditionalFixedProperties != nil && len(*s.AdditionalFixedProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalFixedProperties", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *UpdateWorkerFleetInput) SetAdditionalFixedProperties(v string) *UpdateWorkerFleetInput { + s.AdditionalFixedProperties = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateWorkerFleetInput) SetId(v string) *UpdateWorkerFleetInput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateWorkerFleetInput) SetName(v string) *UpdateWorkerFleetInput { + s.Name = &v + return s +} + +type UpdateWorkerFleetOutput struct { + _ struct{} `type:"structure"` + + // JSON blob containing additional fixed properties regarding the worker fleet + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Full ARN of the worker fleet. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Filters access by the worker fleet's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerFleetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerFleetOutput) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *UpdateWorkerFleetOutput) SetAdditionalFixedProperties(v string) *UpdateWorkerFleetOutput { + s.AdditionalFixedProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *UpdateWorkerFleetOutput) SetArn(v string) *UpdateWorkerFleetOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateWorkerFleetOutput) SetId(v string) *UpdateWorkerFleetOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateWorkerFleetOutput) SetName(v string) *UpdateWorkerFleetOutput { + s.Name = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *UpdateWorkerFleetOutput) SetUpdatedAt(v time.Time) *UpdateWorkerFleetOutput { + s.UpdatedAt = &v + return s +} + +type UpdateWorkerInput struct { + _ struct{} `type:"structure"` + + // JSON blob containing unstructured worker properties that are fixed and won't + // change during regular operation. + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // JSON blob containing unstructured worker properties that are transient and + // may change during regular operation. + AdditionalTransientProperties *string `locationName:"additionalTransientProperties" min:"1" type:"string"` + + // Full ARN of the worker. + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + Name *string `locationName:"name" min:"1" type:"string"` + + // Worker orientation measured in units clockwise from north. + Orientation *Orientation `locationName:"orientation" type:"structure"` + + // Supported coordinates for worker position. + Position *PositionCoordinates `locationName:"position" type:"structure"` + + // Properties of the worker that are provided by the vendor FMS. + VendorProperties *VendorProperties `locationName:"vendorProperties" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateWorkerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateWorkerInput"} + if s.AdditionalFixedProperties != nil && len(*s.AdditionalFixedProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalFixedProperties", 1)) + } + if s.AdditionalTransientProperties != nil && len(*s.AdditionalTransientProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AdditionalTransientProperties", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Position != nil { + if err := s.Position.Validate(); err != nil { + invalidParams.AddNested("Position", err.(request.ErrInvalidParams)) + } + } + if s.VendorProperties != nil { + if err := s.VendorProperties.Validate(); err != nil { + invalidParams.AddNested("VendorProperties", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *UpdateWorkerInput) SetAdditionalFixedProperties(v string) *UpdateWorkerInput { + s.AdditionalFixedProperties = &v + return s +} + +// SetAdditionalTransientProperties sets the AdditionalTransientProperties field's value. +func (s *UpdateWorkerInput) SetAdditionalTransientProperties(v string) *UpdateWorkerInput { + s.AdditionalTransientProperties = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateWorkerInput) SetId(v string) *UpdateWorkerInput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateWorkerInput) SetName(v string) *UpdateWorkerInput { + s.Name = &v + return s +} + +// SetOrientation sets the Orientation field's value. +func (s *UpdateWorkerInput) SetOrientation(v *Orientation) *UpdateWorkerInput { + s.Orientation = v + return s +} + +// SetPosition sets the Position field's value. +func (s *UpdateWorkerInput) SetPosition(v *PositionCoordinates) *UpdateWorkerInput { + s.Position = v + return s +} + +// SetVendorProperties sets the VendorProperties field's value. +func (s *UpdateWorkerInput) SetVendorProperties(v *VendorProperties) *UpdateWorkerInput { + s.VendorProperties = v + return s +} + +type UpdateWorkerOutput struct { + _ struct{} `type:"structure"` + + // JSON blob containing unstructured worker properties that are fixed and won't + // change during regular operation. + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // JSON blob containing unstructured worker properties that are transient and + // may change during regular operation. + AdditionalTransientProperties *string `locationName:"additionalTransientProperties" min:"1" type:"string"` + + // Full ARN of the worker. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Full ARN of the worker fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` + + // Filters access by the workers identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Worker orientation measured in units clockwise from north. + Orientation *Orientation `locationName:"orientation" type:"structure"` + + // Supported coordinates for worker position. + Position *PositionCoordinates `locationName:"position" type:"structure"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` + + // Properties of the worker that are provided by the vendor FMS. + VendorProperties *VendorProperties `locationName:"vendorProperties" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateWorkerOutput) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *UpdateWorkerOutput) SetAdditionalFixedProperties(v string) *UpdateWorkerOutput { + s.AdditionalFixedProperties = &v + return s +} + +// SetAdditionalTransientProperties sets the AdditionalTransientProperties field's value. +func (s *UpdateWorkerOutput) SetAdditionalTransientProperties(v string) *UpdateWorkerOutput { + s.AdditionalTransientProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *UpdateWorkerOutput) SetArn(v string) *UpdateWorkerOutput { + s.Arn = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *UpdateWorkerOutput) SetFleet(v string) *UpdateWorkerOutput { + s.Fleet = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateWorkerOutput) SetId(v string) *UpdateWorkerOutput { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateWorkerOutput) SetName(v string) *UpdateWorkerOutput { + s.Name = &v + return s +} + +// SetOrientation sets the Orientation field's value. +func (s *UpdateWorkerOutput) SetOrientation(v *Orientation) *UpdateWorkerOutput { + s.Orientation = v + return s +} + +// SetPosition sets the Position field's value. +func (s *UpdateWorkerOutput) SetPosition(v *PositionCoordinates) *UpdateWorkerOutput { + s.Position = v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *UpdateWorkerOutput) SetUpdatedAt(v time.Time) *UpdateWorkerOutput { + s.UpdatedAt = &v + return s +} + +// SetVendorProperties sets the VendorProperties field's value. +func (s *UpdateWorkerOutput) SetVendorProperties(v *VendorProperties) *UpdateWorkerOutput { + s.VendorProperties = v + return s +} + +// Exception thrown if an invalid parameter is provided to an API. +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s *ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ValidationException) OrigErr() error { + return nil +} + +func (s *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ValidationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ValidationException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Properties of the worker that are provided by the vendor FMS. +type VendorProperties struct { + _ struct{} `type:"structure"` + + // JSON blob containing unstructured vendor properties that are fixed and won't + // change during regular operation. + VendorAdditionalFixedProperties *string `locationName:"vendorAdditionalFixedProperties" min:"1" type:"string"` + + // JSON blob containing unstructured vendor properties that are transient and + // may change during regular operation. + VendorAdditionalTransientProperties *string `locationName:"vendorAdditionalTransientProperties" min:"1" type:"string"` + + // The worker ID defined by the vendor FMS. + // + // VendorWorkerId is a required field + VendorWorkerId *string `locationName:"vendorWorkerId" min:"1" type:"string" required:"true"` + + // The worker IP address defined by the vendor FMS. + VendorWorkerIpAddress *string `locationName:"vendorWorkerIpAddress" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VendorProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s VendorProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VendorProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VendorProperties"} + if s.VendorAdditionalFixedProperties != nil && len(*s.VendorAdditionalFixedProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VendorAdditionalFixedProperties", 1)) + } + if s.VendorAdditionalTransientProperties != nil && len(*s.VendorAdditionalTransientProperties) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VendorAdditionalTransientProperties", 1)) + } + if s.VendorWorkerId == nil { + invalidParams.Add(request.NewErrParamRequired("VendorWorkerId")) + } + if s.VendorWorkerId != nil && len(*s.VendorWorkerId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VendorWorkerId", 1)) + } + if s.VendorWorkerIpAddress != nil && len(*s.VendorWorkerIpAddress) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VendorWorkerIpAddress", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetVendorAdditionalFixedProperties sets the VendorAdditionalFixedProperties field's value. +func (s *VendorProperties) SetVendorAdditionalFixedProperties(v string) *VendorProperties { + s.VendorAdditionalFixedProperties = &v + return s +} + +// SetVendorAdditionalTransientProperties sets the VendorAdditionalTransientProperties field's value. +func (s *VendorProperties) SetVendorAdditionalTransientProperties(v string) *VendorProperties { + s.VendorAdditionalTransientProperties = &v + return s +} + +// SetVendorWorkerId sets the VendorWorkerId field's value. +func (s *VendorProperties) SetVendorWorkerId(v string) *VendorProperties { + s.VendorWorkerId = &v + return s +} + +// SetVendorWorkerIpAddress sets the VendorWorkerIpAddress field's value. +func (s *VendorProperties) SetVendorWorkerIpAddress(v string) *VendorProperties { + s.VendorWorkerIpAddress = &v + return s +} + +// A unit capable of performing tasks. +type Worker struct { + _ struct{} `type:"structure"` + + // JSON blob containing unstructured worker properties that are fixed and won't + // change during regular operation. + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // JSON blob containing unstructured worker properties that are transient and + // may change during regular operation. + AdditionalTransientProperties *string `locationName:"additionalTransientProperties" min:"1" type:"string"` + + // Full ARN of the worker. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Full ARN of the worker fleet. + // + // Fleet is a required field + Fleet *string `locationName:"fleet" min:"1" type:"string" required:"true"` + + // Filters access by the workers identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Worker orientation measured in units clockwise from north. + Orientation *Orientation `locationName:"orientation" type:"structure"` + + // Supported coordinates for worker position. + Position *PositionCoordinates `locationName:"position" type:"structure"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` + + // Properties of the worker that are provided by the vendor FMS. + VendorProperties *VendorProperties `locationName:"vendorProperties" type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Worker) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Worker) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *Worker) SetAdditionalFixedProperties(v string) *Worker { + s.AdditionalFixedProperties = &v + return s +} + +// SetAdditionalTransientProperties sets the AdditionalTransientProperties field's value. +func (s *Worker) SetAdditionalTransientProperties(v string) *Worker { + s.AdditionalTransientProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Worker) SetArn(v string) *Worker { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *Worker) SetCreatedAt(v time.Time) *Worker { + s.CreatedAt = &v + return s +} + +// SetFleet sets the Fleet field's value. +func (s *Worker) SetFleet(v string) *Worker { + s.Fleet = &v + return s +} + +// SetId sets the Id field's value. +func (s *Worker) SetId(v string) *Worker { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *Worker) SetName(v string) *Worker { + s.Name = &v + return s +} + +// SetOrientation sets the Orientation field's value. +func (s *Worker) SetOrientation(v *Orientation) *Worker { + s.Orientation = v + return s +} + +// SetPosition sets the Position field's value. +func (s *Worker) SetPosition(v *PositionCoordinates) *Worker { + s.Position = v + return s +} + +// SetSite sets the Site field's value. +func (s *Worker) SetSite(v string) *Worker { + s.Site = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Worker) SetUpdatedAt(v time.Time) *Worker { + s.UpdatedAt = &v + return s +} + +// SetVendorProperties sets the VendorProperties field's value. +func (s *Worker) SetVendorProperties(v *VendorProperties) *Worker { + s.VendorProperties = v + return s +} + +// A collection of workers organized within a facility. +type WorkerFleet struct { + _ struct{} `type:"structure"` + + // JSON blob containing additional fixed properties regarding the worker fleet + AdditionalFixedProperties *string `locationName:"additionalFixedProperties" min:"1" type:"string"` + + // Full ARN of the worker fleet. + // + // Arn is a required field + Arn *string `locationName:"arn" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // Filters access by the worker fleet's identifier + // + // Id is a required field + Id *string `locationName:"id" min:"1" type:"string" required:"true"` + + // Human friendly name of the resource. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Site ARN. + // + // Site is a required field + Site *string `locationName:"site" min:"1" type:"string" required:"true"` + + // Timestamp at which the resource was last updated. + // + // UpdatedAt is a required field + UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s WorkerFleet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s WorkerFleet) GoString() string { + return s.String() +} + +// SetAdditionalFixedProperties sets the AdditionalFixedProperties field's value. +func (s *WorkerFleet) SetAdditionalFixedProperties(v string) *WorkerFleet { + s.AdditionalFixedProperties = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *WorkerFleet) SetArn(v string) *WorkerFleet { + s.Arn = &v + return s +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *WorkerFleet) SetCreatedAt(v time.Time) *WorkerFleet { + s.CreatedAt = &v + return s +} + +// SetId sets the Id field's value. +func (s *WorkerFleet) SetId(v string) *WorkerFleet { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *WorkerFleet) SetName(v string) *WorkerFleet { + s.Name = &v + return s +} + +// SetSite sets the Site field's value. +func (s *WorkerFleet) SetSite(v string) *WorkerFleet { + s.Site = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *WorkerFleet) SetUpdatedAt(v time.Time) *WorkerFleet { + s.UpdatedAt = &v + return s +} + +// State of the destination. +const ( + // DestinationStateEnabled is a DestinationState enum value + DestinationStateEnabled = "ENABLED" + + // DestinationStateDisabled is a DestinationState enum value + DestinationStateDisabled = "DISABLED" + + // DestinationStateDecommissioned is a DestinationState enum value + DestinationStateDecommissioned = "DECOMMISSIONED" +) + +// DestinationState_Values returns all elements of the DestinationState enum +func DestinationState_Values() []string { + return []string{ + DestinationStateEnabled, + DestinationStateDisabled, + DestinationStateDecommissioned, + } +} diff --git a/service/iotroborunner/doc.go b/service/iotroborunner/doc.go new file mode 100644 index 0000000000..dace9a9492 --- /dev/null +++ b/service/iotroborunner/doc.go @@ -0,0 +1,29 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package iotroborunner provides the client and types for making API +// requests to AWS IoT RoboRunner. +// +// An example service, deployed with the Octane Service creator, which will +// echo the string +// +// See https://docs.aws.amazon.com/goto/WebAPI/iot-roborunner-2018-05-10 for more information on this service. +// +// See iotroborunner package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/iotroborunner/ +// +// # Using the Client +// +// To contact AWS IoT RoboRunner with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS IoT RoboRunner client IoTRoboRunner for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/iotroborunner/#New +package iotroborunner diff --git a/service/iotroborunner/errors.go b/service/iotroborunner/errors.go new file mode 100644 index 0000000000..5893ec1b2c --- /dev/null +++ b/service/iotroborunner/errors.go @@ -0,0 +1,63 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package iotroborunner + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // User does not have sufficient access to perform this action. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // Exception thrown if a resource in a create request already exists. + ErrCodeConflictException = "ConflictException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // Exception thrown if something goes wrong within the service. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // Exception thrown if a resource referenced in the request doesn't exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // Exception thrown if the user's AWS account has reached a service limit and + // the operation cannot proceed. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // Exception thrown if the api has been called too quickly be the client. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // Exception thrown if an invalid parameter is provided to an API. + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/iotroborunner/iotroborunneriface/interface.go b/service/iotroborunner/iotroborunneriface/interface.go new file mode 100644 index 0000000000..5037412510 --- /dev/null +++ b/service/iotroborunner/iotroborunneriface/interface.go @@ -0,0 +1,156 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package iotroborunneriface provides an interface to enable mocking the AWS IoT RoboRunner service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package iotroborunneriface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/iotroborunner" +) + +// IoTRoboRunnerAPI provides an interface to enable mocking the +// iotroborunner.IoTRoboRunner service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS IoT RoboRunner. +// func myFunc(svc iotroborunneriface.IoTRoboRunnerAPI) bool { +// // Make svc.CreateDestination request +// } +// +// func main() { +// sess := session.New() +// svc := iotroborunner.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockIoTRoboRunnerClient struct { +// iotroborunneriface.IoTRoboRunnerAPI +// } +// func (m *mockIoTRoboRunnerClient) CreateDestination(input *iotroborunner.CreateDestinationInput) (*iotroborunner.CreateDestinationOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockIoTRoboRunnerClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type IoTRoboRunnerAPI interface { + CreateDestination(*iotroborunner.CreateDestinationInput) (*iotroborunner.CreateDestinationOutput, error) + CreateDestinationWithContext(aws.Context, *iotroborunner.CreateDestinationInput, ...request.Option) (*iotroborunner.CreateDestinationOutput, error) + CreateDestinationRequest(*iotroborunner.CreateDestinationInput) (*request.Request, *iotroborunner.CreateDestinationOutput) + + CreateSite(*iotroborunner.CreateSiteInput) (*iotroborunner.CreateSiteOutput, error) + CreateSiteWithContext(aws.Context, *iotroborunner.CreateSiteInput, ...request.Option) (*iotroborunner.CreateSiteOutput, error) + CreateSiteRequest(*iotroborunner.CreateSiteInput) (*request.Request, *iotroborunner.CreateSiteOutput) + + CreateWorker(*iotroborunner.CreateWorkerInput) (*iotroborunner.CreateWorkerOutput, error) + CreateWorkerWithContext(aws.Context, *iotroborunner.CreateWorkerInput, ...request.Option) (*iotroborunner.CreateWorkerOutput, error) + CreateWorkerRequest(*iotroborunner.CreateWorkerInput) (*request.Request, *iotroborunner.CreateWorkerOutput) + + CreateWorkerFleet(*iotroborunner.CreateWorkerFleetInput) (*iotroborunner.CreateWorkerFleetOutput, error) + CreateWorkerFleetWithContext(aws.Context, *iotroborunner.CreateWorkerFleetInput, ...request.Option) (*iotroborunner.CreateWorkerFleetOutput, error) + CreateWorkerFleetRequest(*iotroborunner.CreateWorkerFleetInput) (*request.Request, *iotroborunner.CreateWorkerFleetOutput) + + DeleteDestination(*iotroborunner.DeleteDestinationInput) (*iotroborunner.DeleteDestinationOutput, error) + DeleteDestinationWithContext(aws.Context, *iotroborunner.DeleteDestinationInput, ...request.Option) (*iotroborunner.DeleteDestinationOutput, error) + DeleteDestinationRequest(*iotroborunner.DeleteDestinationInput) (*request.Request, *iotroborunner.DeleteDestinationOutput) + + DeleteSite(*iotroborunner.DeleteSiteInput) (*iotroborunner.DeleteSiteOutput, error) + DeleteSiteWithContext(aws.Context, *iotroborunner.DeleteSiteInput, ...request.Option) (*iotroborunner.DeleteSiteOutput, error) + DeleteSiteRequest(*iotroborunner.DeleteSiteInput) (*request.Request, *iotroborunner.DeleteSiteOutput) + + DeleteWorker(*iotroborunner.DeleteWorkerInput) (*iotroborunner.DeleteWorkerOutput, error) + DeleteWorkerWithContext(aws.Context, *iotroborunner.DeleteWorkerInput, ...request.Option) (*iotroborunner.DeleteWorkerOutput, error) + DeleteWorkerRequest(*iotroborunner.DeleteWorkerInput) (*request.Request, *iotroborunner.DeleteWorkerOutput) + + DeleteWorkerFleet(*iotroborunner.DeleteWorkerFleetInput) (*iotroborunner.DeleteWorkerFleetOutput, error) + DeleteWorkerFleetWithContext(aws.Context, *iotroborunner.DeleteWorkerFleetInput, ...request.Option) (*iotroborunner.DeleteWorkerFleetOutput, error) + DeleteWorkerFleetRequest(*iotroborunner.DeleteWorkerFleetInput) (*request.Request, *iotroborunner.DeleteWorkerFleetOutput) + + GetDestination(*iotroborunner.GetDestinationInput) (*iotroborunner.GetDestinationOutput, error) + GetDestinationWithContext(aws.Context, *iotroborunner.GetDestinationInput, ...request.Option) (*iotroborunner.GetDestinationOutput, error) + GetDestinationRequest(*iotroborunner.GetDestinationInput) (*request.Request, *iotroborunner.GetDestinationOutput) + + GetSite(*iotroborunner.GetSiteInput) (*iotroborunner.GetSiteOutput, error) + GetSiteWithContext(aws.Context, *iotroborunner.GetSiteInput, ...request.Option) (*iotroborunner.GetSiteOutput, error) + GetSiteRequest(*iotroborunner.GetSiteInput) (*request.Request, *iotroborunner.GetSiteOutput) + + GetWorker(*iotroborunner.GetWorkerInput) (*iotroborunner.GetWorkerOutput, error) + GetWorkerWithContext(aws.Context, *iotroborunner.GetWorkerInput, ...request.Option) (*iotroborunner.GetWorkerOutput, error) + GetWorkerRequest(*iotroborunner.GetWorkerInput) (*request.Request, *iotroborunner.GetWorkerOutput) + + GetWorkerFleet(*iotroborunner.GetWorkerFleetInput) (*iotroborunner.GetWorkerFleetOutput, error) + GetWorkerFleetWithContext(aws.Context, *iotroborunner.GetWorkerFleetInput, ...request.Option) (*iotroborunner.GetWorkerFleetOutput, error) + GetWorkerFleetRequest(*iotroborunner.GetWorkerFleetInput) (*request.Request, *iotroborunner.GetWorkerFleetOutput) + + ListDestinations(*iotroborunner.ListDestinationsInput) (*iotroborunner.ListDestinationsOutput, error) + ListDestinationsWithContext(aws.Context, *iotroborunner.ListDestinationsInput, ...request.Option) (*iotroborunner.ListDestinationsOutput, error) + ListDestinationsRequest(*iotroborunner.ListDestinationsInput) (*request.Request, *iotroborunner.ListDestinationsOutput) + + ListDestinationsPages(*iotroborunner.ListDestinationsInput, func(*iotroborunner.ListDestinationsOutput, bool) bool) error + ListDestinationsPagesWithContext(aws.Context, *iotroborunner.ListDestinationsInput, func(*iotroborunner.ListDestinationsOutput, bool) bool, ...request.Option) error + + ListSites(*iotroborunner.ListSitesInput) (*iotroborunner.ListSitesOutput, error) + ListSitesWithContext(aws.Context, *iotroborunner.ListSitesInput, ...request.Option) (*iotroborunner.ListSitesOutput, error) + ListSitesRequest(*iotroborunner.ListSitesInput) (*request.Request, *iotroborunner.ListSitesOutput) + + ListSitesPages(*iotroborunner.ListSitesInput, func(*iotroborunner.ListSitesOutput, bool) bool) error + ListSitesPagesWithContext(aws.Context, *iotroborunner.ListSitesInput, func(*iotroborunner.ListSitesOutput, bool) bool, ...request.Option) error + + ListWorkerFleets(*iotroborunner.ListWorkerFleetsInput) (*iotroborunner.ListWorkerFleetsOutput, error) + ListWorkerFleetsWithContext(aws.Context, *iotroborunner.ListWorkerFleetsInput, ...request.Option) (*iotroborunner.ListWorkerFleetsOutput, error) + ListWorkerFleetsRequest(*iotroborunner.ListWorkerFleetsInput) (*request.Request, *iotroborunner.ListWorkerFleetsOutput) + + ListWorkerFleetsPages(*iotroborunner.ListWorkerFleetsInput, func(*iotroborunner.ListWorkerFleetsOutput, bool) bool) error + ListWorkerFleetsPagesWithContext(aws.Context, *iotroborunner.ListWorkerFleetsInput, func(*iotroborunner.ListWorkerFleetsOutput, bool) bool, ...request.Option) error + + ListWorkers(*iotroborunner.ListWorkersInput) (*iotroborunner.ListWorkersOutput, error) + ListWorkersWithContext(aws.Context, *iotroborunner.ListWorkersInput, ...request.Option) (*iotroborunner.ListWorkersOutput, error) + ListWorkersRequest(*iotroborunner.ListWorkersInput) (*request.Request, *iotroborunner.ListWorkersOutput) + + ListWorkersPages(*iotroborunner.ListWorkersInput, func(*iotroborunner.ListWorkersOutput, bool) bool) error + ListWorkersPagesWithContext(aws.Context, *iotroborunner.ListWorkersInput, func(*iotroborunner.ListWorkersOutput, bool) bool, ...request.Option) error + + UpdateDestination(*iotroborunner.UpdateDestinationInput) (*iotroborunner.UpdateDestinationOutput, error) + UpdateDestinationWithContext(aws.Context, *iotroborunner.UpdateDestinationInput, ...request.Option) (*iotroborunner.UpdateDestinationOutput, error) + UpdateDestinationRequest(*iotroborunner.UpdateDestinationInput) (*request.Request, *iotroborunner.UpdateDestinationOutput) + + UpdateSite(*iotroborunner.UpdateSiteInput) (*iotroborunner.UpdateSiteOutput, error) + UpdateSiteWithContext(aws.Context, *iotroborunner.UpdateSiteInput, ...request.Option) (*iotroborunner.UpdateSiteOutput, error) + UpdateSiteRequest(*iotroborunner.UpdateSiteInput) (*request.Request, *iotroborunner.UpdateSiteOutput) + + UpdateWorker(*iotroborunner.UpdateWorkerInput) (*iotroborunner.UpdateWorkerOutput, error) + UpdateWorkerWithContext(aws.Context, *iotroborunner.UpdateWorkerInput, ...request.Option) (*iotroborunner.UpdateWorkerOutput, error) + UpdateWorkerRequest(*iotroborunner.UpdateWorkerInput) (*request.Request, *iotroborunner.UpdateWorkerOutput) + + UpdateWorkerFleet(*iotroborunner.UpdateWorkerFleetInput) (*iotroborunner.UpdateWorkerFleetOutput, error) + UpdateWorkerFleetWithContext(aws.Context, *iotroborunner.UpdateWorkerFleetInput, ...request.Option) (*iotroborunner.UpdateWorkerFleetOutput, error) + UpdateWorkerFleetRequest(*iotroborunner.UpdateWorkerFleetInput) (*request.Request, *iotroborunner.UpdateWorkerFleetOutput) +} + +var _ IoTRoboRunnerAPI = (*iotroborunner.IoTRoboRunner)(nil) diff --git a/service/iotroborunner/service.go b/service/iotroborunner/service.go new file mode 100644 index 0000000000..7c0dafce05 --- /dev/null +++ b/service/iotroborunner/service.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package iotroborunner + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// IoTRoboRunner provides the API operation methods for making requests to +// AWS IoT RoboRunner. See this package's package overview docs +// for details on the service. +// +// IoTRoboRunner methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type IoTRoboRunner struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "IoT RoboRunner" // Name of service. + EndpointsID = "iotroborunner" // ID to lookup a service endpoint with. + ServiceID = "IoT RoboRunner" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the IoTRoboRunner client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// +// mySession := session.Must(session.NewSession()) +// +// // Create a IoTRoboRunner client from just a session. +// svc := iotroborunner.New(mySession) +// +// // Create a IoTRoboRunner client with additional configuration +// svc := iotroborunner.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoTRoboRunner { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "iotroborunner" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *IoTRoboRunner { + svc := &IoTRoboRunner{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2018-05-10", + ResolvedRegion: resolvedRegion, + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a IoTRoboRunner operation and runs any +// custom request initialization. +func (c *IoTRoboRunner) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/quicksight/api.go b/service/quicksight/api.go index 32e139910b..ebdbf92810 100644 --- a/service/quicksight/api.go +++ b/service/quicksight/api.go @@ -2101,6 +2101,112 @@ func (c *QuickSight) DeleteAccountCustomizationWithContext(ctx aws.Context, inpu return out, req.Send() } +const opDeleteAccountSubscription = "DeleteAccountSubscription" + +// DeleteAccountSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAccountSubscription operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAccountSubscription for more information on using the DeleteAccountSubscription +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteAccountSubscriptionRequest method. +// req, resp := client.DeleteAccountSubscriptionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteAccountSubscription +func (c *QuickSight) DeleteAccountSubscriptionRequest(input *DeleteAccountSubscriptionInput) (req *request.Request, output *DeleteAccountSubscriptionOutput) { + op := &request.Operation{ + Name: opDeleteAccountSubscription, + HTTPMethod: "DELETE", + HTTPPath: "/account/{AwsAccountId}", + } + + if input == nil { + input = &DeleteAccountSubscriptionInput{} + } + + output = &DeleteAccountSubscriptionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteAccountSubscription API operation for Amazon QuickSight. +// +// Use the DeleteAccountSubscription operation to delete an Amazon QuickSight +// account. This operation will result in an error message if you have configured +// your account termination protection settings to True. To change this setting +// and delete your account, call the UpdateAccountSettings API and set the value +// of the TerminationProtectionEnabled parameter to False, then make another +// call to the DeleteAccountSubscription API. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation DeleteAccountSubscription for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// You don't have access to this item. The provided credentials couldn't be +// validated. You might not be authorized to carry out the request. Make sure +// that your account is authorized to use the Amazon QuickSight service, that +// your policies have the correct permissions, and that you are using the correct +// access keys. +// +// - InvalidParameterValueException +// One or more parameters has a value that isn't valid. +// +// - ResourceNotFoundException +// One or more resources can't be found. +// +// - ThrottlingException +// Access is throttled. +// +// - PreconditionNotMetException +// One or more preconditions aren't met. +// +// - InternalFailureException +// An internal failure occurred. +// +// - ResourceUnavailableException +// This resource is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteAccountSubscription +func (c *QuickSight) DeleteAccountSubscription(input *DeleteAccountSubscriptionInput) (*DeleteAccountSubscriptionOutput, error) { + req, out := c.DeleteAccountSubscriptionRequest(input) + return out, req.Send() +} + +// DeleteAccountSubscriptionWithContext is the same as DeleteAccountSubscription with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAccountSubscription for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) DeleteAccountSubscriptionWithContext(ctx aws.Context, input *DeleteAccountSubscriptionInput, opts ...request.Option) (*DeleteAccountSubscriptionOutput, error) { + req, out := c.DeleteAccountSubscriptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteAnalysis = "DeleteAnalysis" // DeleteAnalysisRequest generates a "aws/request.Request" representing the @@ -4004,7 +4110,7 @@ func (c *QuickSight) DescribeAccountSubscriptionRequest(input *DescribeAccountSu // DescribeAccountSubscription API operation for Amazon QuickSight. // // Use the DescribeAccountSubscription operation to receive a description of -// a Amazon QuickSight account's subscription. A successful API call returns +// an Amazon QuickSight account's subscription. A successful API call returns // an AccountInfo object that includes an account's name, subscription status, // authentication type, edition, and notification email address. // @@ -10398,6 +10504,318 @@ func (c *QuickSight) SearchDashboardsPagesWithContext(ctx aws.Context, input *Se return p.Err() } +const opSearchDataSets = "SearchDataSets" + +// SearchDataSetsRequest generates a "aws/request.Request" representing the +// client's request for the SearchDataSets operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SearchDataSets for more information on using the SearchDataSets +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the SearchDataSetsRequest method. +// req, resp := client.SearchDataSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/SearchDataSets +func (c *QuickSight) SearchDataSetsRequest(input *SearchDataSetsInput) (req *request.Request, output *SearchDataSetsOutput) { + op := &request.Operation{ + Name: opSearchDataSets, + HTTPMethod: "POST", + HTTPPath: "/accounts/{AwsAccountId}/search/data-sets", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &SearchDataSetsInput{} + } + + output = &SearchDataSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchDataSets API operation for Amazon QuickSight. +// +// Use the SearchDataSets operation to search for datasets that belong to an +// account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation SearchDataSets for usage and error information. +// +// Returned Error Types: +// +// - ThrottlingException +// Access is throttled. +// +// - ResourceNotFoundException +// One or more resources can't be found. +// +// - InvalidParameterValueException +// One or more parameters has a value that isn't valid. +// +// - AccessDeniedException +// You don't have access to this item. The provided credentials couldn't be +// validated. You might not be authorized to carry out the request. Make sure +// that your account is authorized to use the Amazon QuickSight service, that +// your policies have the correct permissions, and that you are using the correct +// access keys. +// +// - InvalidNextTokenException +// The NextToken value isn't valid. +// +// - InternalFailureException +// An internal failure occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/SearchDataSets +func (c *QuickSight) SearchDataSets(input *SearchDataSetsInput) (*SearchDataSetsOutput, error) { + req, out := c.SearchDataSetsRequest(input) + return out, req.Send() +} + +// SearchDataSetsWithContext is the same as SearchDataSets with the addition of +// the ability to pass a context and additional request options. +// +// See SearchDataSets for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) SearchDataSetsWithContext(ctx aws.Context, input *SearchDataSetsInput, opts ...request.Option) (*SearchDataSetsOutput, error) { + req, out := c.SearchDataSetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// SearchDataSetsPages iterates over the pages of a SearchDataSets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchDataSets method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a SearchDataSets operation. +// pageNum := 0 +// err := client.SearchDataSetsPages(params, +// func(page *quicksight.SearchDataSetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *QuickSight) SearchDataSetsPages(input *SearchDataSetsInput, fn func(*SearchDataSetsOutput, bool) bool) error { + return c.SearchDataSetsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchDataSetsPagesWithContext same as SearchDataSetsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) SearchDataSetsPagesWithContext(ctx aws.Context, input *SearchDataSetsInput, fn func(*SearchDataSetsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchDataSetsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchDataSetsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*SearchDataSetsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opSearchDataSources = "SearchDataSources" + +// SearchDataSourcesRequest generates a "aws/request.Request" representing the +// client's request for the SearchDataSources operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SearchDataSources for more information on using the SearchDataSources +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the SearchDataSourcesRequest method. +// req, resp := client.SearchDataSourcesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/SearchDataSources +func (c *QuickSight) SearchDataSourcesRequest(input *SearchDataSourcesInput) (req *request.Request, output *SearchDataSourcesOutput) { + op := &request.Operation{ + Name: opSearchDataSources, + HTTPMethod: "POST", + HTTPPath: "/accounts/{AwsAccountId}/search/data-sources", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &SearchDataSourcesInput{} + } + + output = &SearchDataSourcesOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchDataSources API operation for Amazon QuickSight. +// +// Use the SearchDataSources operation to search for data sources that belong +// to an account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon QuickSight's +// API operation SearchDataSources for usage and error information. +// +// Returned Error Types: +// +// - ThrottlingException +// Access is throttled. +// +// - ResourceNotFoundException +// One or more resources can't be found. +// +// - InvalidParameterValueException +// One or more parameters has a value that isn't valid. +// +// - AccessDeniedException +// You don't have access to this item. The provided credentials couldn't be +// validated. You might not be authorized to carry out the request. Make sure +// that your account is authorized to use the Amazon QuickSight service, that +// your policies have the correct permissions, and that you are using the correct +// access keys. +// +// - InvalidNextTokenException +// The NextToken value isn't valid. +// +// - InternalFailureException +// An internal failure occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/SearchDataSources +func (c *QuickSight) SearchDataSources(input *SearchDataSourcesInput) (*SearchDataSourcesOutput, error) { + req, out := c.SearchDataSourcesRequest(input) + return out, req.Send() +} + +// SearchDataSourcesWithContext is the same as SearchDataSources with the addition of +// the ability to pass a context and additional request options. +// +// See SearchDataSources for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) SearchDataSourcesWithContext(ctx aws.Context, input *SearchDataSourcesInput, opts ...request.Option) (*SearchDataSourcesOutput, error) { + req, out := c.SearchDataSourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// SearchDataSourcesPages iterates over the pages of a SearchDataSources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchDataSources method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a SearchDataSources operation. +// pageNum := 0 +// err := client.SearchDataSourcesPages(params, +// func(page *quicksight.SearchDataSourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *QuickSight) SearchDataSourcesPages(input *SearchDataSourcesInput, fn func(*SearchDataSourcesOutput, bool) bool) error { + return c.SearchDataSourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchDataSourcesPagesWithContext same as SearchDataSourcesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *QuickSight) SearchDataSourcesPagesWithContext(ctx aws.Context, input *SearchDataSourcesInput, fn func(*SearchDataSourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchDataSourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchDataSourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*SearchDataSourcesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opSearchFolders = "SearchFolders" // SearchFoldersRequest generates a "aws/request.Request" representing the @@ -10477,6 +10895,10 @@ func (c *QuickSight) SearchFoldersRequest(input *SearchFoldersInput) (req *reque // Amazon Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // +// - InvalidRequestException +// You don't have this feature activated for your account. To fix this issue, +// contact Amazon Web Services support. +// // - InternalFailureException // An internal failure occurred. // @@ -13502,6 +13924,12 @@ type AccountSettings struct { // Amazon QuickSight account. For more information about turning on public sharing, // see UpdatePublicSharingSettings (https://docs.aws.amazon.com/quicksight/latest/APIReference/API_UpdatePublicSharingSettings.html). PublicSharingEnabled *bool `type:"boolean"` + + // A boolean value that determines whether or not an Amazon QuickSight account + // can be deleted. A True value doesn't allow the account to be deleted and + // results in an error message if a user tries to make a DeleteAccountSubsctiption + // request. A False value will allow the ccount to be deleted. + TerminationProtectionEnabled *bool `type:"boolean"` } // String returns the string representation. @@ -13552,6 +13980,12 @@ func (s *AccountSettings) SetPublicSharingEnabled(v bool) *AccountSettings { return s } +// SetTerminationProtectionEnabled sets the TerminationProtectionEnabled field's value. +func (s *AccountSettings) SetTerminationProtectionEnabled(v bool) *AccountSettings { + s.TerminationProtectionEnabled = &v + return s +} + // The active Identity and Access Management (IAM) policy assignment. type ActiveIAMPolicyAssignment struct { _ struct{} `type:"structure"` @@ -13885,11 +14319,47 @@ type AnalysisSearchFilter struct { _ struct{} `type:"structure"` // The name of the value that you want to use as a filter, for example "Name": - // "QUICKSIGHT_USER". + // "QUICKSIGHT_OWNER". + // + // Valid values are defined as follows: + // + // * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any + // analyses with that ARN listed as one of the analysis' owners or viewers + // are returned. Implicit permissions from folders or groups are considered. + // + // * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any analyses + // with that ARN listed as one of the owners of the analyses are returned. + // Implicit permissions from folders or groups are considered. + // + // * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and + // any analyses with that ARN listed as the only owner of the analysis are + // returned. Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any + // analyses with that ARN listed as one of the owners of the analyses are + // returned. Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, + // and any analyses with that ARN listed as one of the owners or viewers + // of the analyses are returned. Implicit permissions from folders or groups + // are not considered. + // + // * ANALYSIS_NAME: Any analyses whose names have a substring match to this + // value will be returned. Name *string `type:"string" enum:"AnalysisFilterAttribute"` // The comparison operator that you want to use as a filter, for example "Operator": - // "StringEquals". + // "StringEquals". Valid values are "StringEquals" and "StringLike". + // + // If you set the operator value to "StringEquals", you need to provide an ownership + // related filter in the "NAME" field and the arn of the user or group whose + // folders you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", + // "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1". + // + // If you set the value to "StringLike", you need to provide the name of the + // folders you are searching for. For example, "Name":"ANALYSIS_NAME", "Operator": + // "StringLike", "Value": "Test". The "StringLike" operator only supports the + // NAME value ANALYSIS_NAME. Operator *string `type:"string" enum:"FilterOperator"` // The value of the named item, in this case QUICKSIGHT_USER, that you want @@ -14256,6 +14726,9 @@ type AnonymousUserEmbeddingExperienceConfiguration struct { // The type of embedding experience. In this case, Amazon QuickSight visuals. DashboardVisual *AnonymousUserDashboardVisualEmbeddingConfiguration `type:"structure"` + + // The Q search bar that you want to use for anonymous user embedding. + QSearchBar *AnonymousUserQSearchBarEmbeddingConfiguration `type:"structure"` } // String returns the string representation. @@ -14289,6 +14762,11 @@ func (s *AnonymousUserEmbeddingExperienceConfiguration) Validate() error { invalidParams.AddNested("DashboardVisual", err.(request.ErrInvalidParams)) } } + if s.QSearchBar != nil { + if err := s.QSearchBar.Validate(); err != nil { + invalidParams.AddNested("QSearchBar", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -14308,10 +14786,79 @@ func (s *AnonymousUserEmbeddingExperienceConfiguration) SetDashboardVisual(v *An return s } +// SetQSearchBar sets the QSearchBar field's value. +func (s *AnonymousUserEmbeddingExperienceConfiguration) SetQSearchBar(v *AnonymousUserQSearchBarEmbeddingConfiguration) *AnonymousUserEmbeddingExperienceConfiguration { + s.QSearchBar = v + return s +} + +// The settings that you want to use with the Q search bar. +type AnonymousUserQSearchBarEmbeddingConfiguration struct { + _ struct{} `type:"structure"` + + // The QuickSight Q topic ID of the topic that you want the anonymous user to + // see first. This ID is included in the output URL. When the URL in response + // is accessed, Amazon QuickSight renders the Q search bar with this topic pre-selected. + // + // The Amazon Resource Name (ARN) of this Q topic must be included in the AuthorizedResourceArns + // parameter. Otherwise, the request will fail with InvalidParameterValueException. + // + // InitialTopicId is a required field + InitialTopicId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnonymousUserQSearchBarEmbeddingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AnonymousUserQSearchBarEmbeddingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AnonymousUserQSearchBarEmbeddingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AnonymousUserQSearchBarEmbeddingConfiguration"} + if s.InitialTopicId == nil { + invalidParams.Add(request.NewErrParamRequired("InitialTopicId")) + } + if s.InitialTopicId != nil && len(*s.InitialTopicId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InitialTopicId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInitialTopicId sets the InitialTopicId field's value. +func (s *AnonymousUserQSearchBarEmbeddingConfiguration) SetInitialTopicId(v string) *AnonymousUserQSearchBarEmbeddingConfiguration { + s.InitialTopicId = &v + return s +} + // Parameters for Amazon Athena. type AthenaParameters struct { _ struct{} `type:"structure"` + // Use the RoleArn structure to override an account-wide role for a specific + // Athena data source. For example, say an account administrator has turned + // off all Athena access with an account-wide role. The administrator can then + // use RoleArn to bypass the account-wide role and allow Athena access for the + // single Athena data source that is specified in the structure, even if the + // account-wide role forbidding Athena access is still active. + RoleArn *string `min:"20" type:"string"` + // The workgroup that Amazon Athena uses. WorkGroup *string `min:"1" type:"string"` } @@ -14337,6 +14884,9 @@ func (s AthenaParameters) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *AthenaParameters) Validate() error { invalidParams := request.ErrInvalidParams{Context: "AthenaParameters"} + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } if s.WorkGroup != nil && len(*s.WorkGroup) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkGroup", 1)) } @@ -14347,6 +14897,12 @@ func (s *AthenaParameters) Validate() error { return nil } +// SetRoleArn sets the RoleArn field's value. +func (s *AthenaParameters) SetRoleArn(v string) *AthenaParameters { + s.RoleArn = &v + return s +} + // SetWorkGroup sets the WorkGroup field's value. func (s *AthenaParameters) SetWorkGroup(v string) *AthenaParameters { s.WorkGroup = &v @@ -19467,11 +20023,47 @@ type DashboardSearchFilter struct { _ struct{} `type:"structure"` // The name of the value that you want to use as a filter, for example, "Name": - // "QUICKSIGHT_USER". + // "QUICKSIGHT_OWNER". + // + // Valid values are defined as follows: + // + // * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any + // dashboards with that ARN listed as one of the dashboards's owners or viewers + // are returned. Implicit permissions from folders or groups are considered. + // + // * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any dashboards + // with that ARN listed as one of the owners of the dashboards are returned. + // Implicit permissions from folders or groups are considered. + // + // * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and + // any dashboards with that ARN listed as the only owner of the dashboard + // are returned. Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any + // dashboards with that ARN listed as one of the owners of the dashboards + // are returned. Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, + // and any dashboards with that ARN listed as one of the owners or viewers + // of the dashboards are returned. Implicit permissions from folders or groups + // are not considered. + // + // * DASHBOARD_NAME: Any dashboards whose names have a substring match to + // this value will be returned. Name *string `type:"string" enum:"DashboardFilterAttribute"` - // The comparison operator that you want to use as a filter, for example, "Operator": - // "StringEquals". + // The comparison operator that you want to use as a filter, for example "Operator": + // "StringEquals". Valid values are "StringEquals" and "StringLike". + // + // If you set the operator value to "StringEquals", you need to provide an ownership + // related filter in the "NAME" field and the arn of the user or group whose + // folders you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", + // "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1". + // + // If you set the value to "StringLike", you need to provide the name of the + // folders you are searching for. For example, "Name":"DASHBOARD_NAME", "Operator": + // "StringLike", "Value": "Test". The "StringLike" operator only supports the + // NAME value DASHBOARD_NAME. // // Operator is a required field Operator *string `type:"string" required:"true" enum:"FilterOperator"` @@ -20400,6 +20992,120 @@ func (s *DataSetSchema) SetColumnSchemaList(v []*ColumnSchema) *DataSetSchema { return s } +// A filter that you apply when searching for datasets. +type DataSetSearchFilter struct { + _ struct{} `type:"structure"` + + // The name of the value that you want to use as a filter, for example, "Name": + // "QUICKSIGHT_OWNER". + // + // Valid values are defined as follows: + // + // * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any + // datasets with that ARN listed as one of the dataset owners or viewers + // are returned. Implicit permissions from folders or groups are considered. + // + // * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any datasets + // with that ARN listed as one of the owners of the dataset are returned. + // Implicit permissions from folders or groups are considered. + // + // * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and + // any datasets with that ARN listed as the only owner of the dataset are + // returned. Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any + // datasets with that ARN listed as one of the owners if the dataset are + // returned. Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, + // and any datasets with that ARN listed as one of the owners or viewers + // of the dataset are returned. Implicit permissions from folders or groups + // are not considered. + // + // * DATASET_NAME: Any datasets whose names have a substring match to this + // value will be returned. + // + // Name is a required field + Name *string `type:"string" required:"true" enum:"DataSetFilterAttribute"` + + // The comparison operator that you want to use as a filter, for example "Operator": + // "StringEquals". Valid values are "StringEquals" and "StringLike". + // + // If you set the operator value to "StringEquals", you need to provide an ownership + // related filter in the "NAME" field and the arn of the user or group whose + // datasets you want to search in the "Value" field. For example, "Name":"QUICKSIGHT_OWNER", + // "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east- 1:1:user/default/UserName1". + // + // If you set the value to "StringLike", you need to provide the name of the + // datasets you are searching for. For example, "Name":"DATASET_NAME", "Operator": + // "StringLike", "Value": "Test". The "StringLike" operator only supports the + // NAME value DATASET_NAME. + // + // Operator is a required field + Operator *string `type:"string" required:"true" enum:"FilterOperator"` + + // The value of the named item, in this case QUICKSIGHT_OWNER, that you want + // to use as a filter, for example, "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1". + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataSetSearchFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataSetSearchFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataSetSearchFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataSetSearchFilter"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Operator == nil { + invalidParams.Add(request.NewErrParamRequired("Operator")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DataSetSearchFilter) SetName(v string) *DataSetSearchFilter { + s.Name = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *DataSetSearchFilter) SetOperator(v string) *DataSetSearchFilter { + s.Operator = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DataSetSearchFilter) SetValue(v string) *DataSetSearchFilter { + s.Value = &v + return s +} + // Dataset summary. type DataSetSummary struct { _ struct{} `type:"structure"` @@ -20842,6 +21548,9 @@ type DataSourceParameters struct { // The parameters for IoT Analytics. AwsIotAnalyticsParameters *AwsIotAnalyticsParameters `type:"structure"` + // The required parameters that are needed to connect to a Databricks data source. + DatabricksParameters *DatabricksParameters `type:"structure"` + // The parameters for Exasol. ExasolParameters *ExasolParameters `type:"structure"` @@ -20942,6 +21651,11 @@ func (s *DataSourceParameters) Validate() error { invalidParams.AddNested("AwsIotAnalyticsParameters", err.(request.ErrInvalidParams)) } } + if s.DatabricksParameters != nil { + if err := s.DatabricksParameters.Validate(); err != nil { + invalidParams.AddNested("DatabricksParameters", err.(request.ErrInvalidParams)) + } + } if s.ExasolParameters != nil { if err := s.ExasolParameters.Validate(); err != nil { invalidParams.AddNested("ExasolParameters", err.(request.ErrInvalidParams)) @@ -21065,6 +21779,12 @@ func (s *DataSourceParameters) SetAwsIotAnalyticsParameters(v *AwsIotAnalyticsPa return s } +// SetDatabricksParameters sets the DatabricksParameters field's value. +func (s *DataSourceParameters) SetDatabricksParameters(v *DatabricksParameters) *DataSourceParameters { + s.DatabricksParameters = v + return s +} + // SetExasolParameters sets the ExasolParameters field's value. func (s *DataSourceParameters) SetExasolParameters(v *ExasolParameters) *DataSourceParameters { s.ExasolParameters = v @@ -21161,6 +21881,275 @@ func (s *DataSourceParameters) SetTwitterParameters(v *TwitterParameters) *DataS return s } +// A filter that you apply when searching for data sources. +type DataSourceSearchFilter struct { + _ struct{} `type:"structure"` + + // The name of the value that you want to use as a filter, for example, "Name": + // "DIRECT_QUICKSIGHT_OWNER". + // + // Valid values are defined as follows: + // + // * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, + // and any data sources with that ARN listed as one of the owners or viewers + // of the data sources are returned. Implicit permissions from folders or + // groups are not considered. + // + // * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any + // data sources with that ARN listed as one of the owners if the data source + // are returned. Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and + // any data sources with that ARN listed as the only owner of the data source + // are returned. Implicit permissions from folders or groups are not considered. + // + // * DATASOURCE_NAME: Any data sources whose names have a substring match + // to the provided value are returned. + // + // Name is a required field + Name *string `type:"string" required:"true" enum:"DataSourceFilterAttribute"` + + // The comparison operator that you want to use as a filter, for example "Operator": + // "StringEquals". Valid values are "StringEquals" and "StringLike". + // + // If you set the operator value to "StringEquals", you need to provide an ownership + // related filter in the "NAME" field and the arn of the user or group whose + // data sources you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", + // "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1". + // + // If you set the value to "StringLike", you need to provide the name of the + // data sources you are searching for. For example, "Name":"DATASOURCE_NAME", + // "Operator": "StringLike", "Value": "Test". The "StringLike" operator only + // supports the NAME value DATASOURCE_NAME. + // + // Operator is a required field + Operator *string `type:"string" required:"true" enum:"FilterOperator"` + + // The value of the named item, for example DIRECT_QUICKSIGHT_OWNER, that you + // want to use as a filter, for example, "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1". + // + // Value is a required field + Value *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataSourceSearchFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataSourceSearchFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataSourceSearchFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataSourceSearchFilter"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Operator == nil { + invalidParams.Add(request.NewErrParamRequired("Operator")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DataSourceSearchFilter) SetName(v string) *DataSourceSearchFilter { + s.Name = &v + return s +} + +// SetOperator sets the Operator field's value. +func (s *DataSourceSearchFilter) SetOperator(v string) *DataSourceSearchFilter { + s.Operator = &v + return s +} + +// SetValue sets the Value field's value. +func (s *DataSourceSearchFilter) SetValue(v string) *DataSourceSearchFilter { + s.Value = &v + return s +} + +// A DataSourceSummary object that returns a summary of a data source. +type DataSourceSummary struct { + _ struct{} `type:"structure"` + + // The arn of the datasource. + Arn *string `type:"string"` + + // The date and time that the data source was created. This value is expressed + // in MM-DD-YYYY HH:MM:SS format. + CreatedTime *time.Time `type:"timestamp"` + + // The unique ID of the data source. + DataSourceId *string `type:"string"` + + // The date and time the data source was last updated. This value is expressed + // in MM-DD-YYYY HH:MM:SS format. + LastUpdatedTime *time.Time `type:"timestamp"` + + // The name of the data source. + Name *string `min:"1" type:"string"` + + // The type of the data source. + Type *string `type:"string" enum:"DataSourceType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataSourceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DataSourceSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *DataSourceSummary) SetArn(v string) *DataSourceSummary { + s.Arn = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *DataSourceSummary) SetCreatedTime(v time.Time) *DataSourceSummary { + s.CreatedTime = &v + return s +} + +// SetDataSourceId sets the DataSourceId field's value. +func (s *DataSourceSummary) SetDataSourceId(v string) *DataSourceSummary { + s.DataSourceId = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *DataSourceSummary) SetLastUpdatedTime(v time.Time) *DataSourceSummary { + s.LastUpdatedTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *DataSourceSummary) SetName(v string) *DataSourceSummary { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *DataSourceSummary) SetType(v string) *DataSourceSummary { + s.Type = &v + return s +} + +// The required parameters that are needed to connect to a Databricks data source. +type DatabricksParameters struct { + _ struct{} `type:"structure"` + + // The host name of the Databricks data source. + // + // Host is a required field + Host *string `min:"1" type:"string" required:"true"` + + // The port for the Databricks data source. + // + // Port is a required field + Port *int64 `min:"1" type:"integer" required:"true"` + + // The HTTP path of the Databricks data source. + // + // SqlEndpointPath is a required field + SqlEndpointPath *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatabricksParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatabricksParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DatabricksParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DatabricksParameters"} + if s.Host == nil { + invalidParams.Add(request.NewErrParamRequired("Host")) + } + if s.Host != nil && len(*s.Host) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Host", 1)) + } + if s.Port == nil { + invalidParams.Add(request.NewErrParamRequired("Port")) + } + if s.Port != nil && *s.Port < 1 { + invalidParams.Add(request.NewErrParamMinValue("Port", 1)) + } + if s.SqlEndpointPath == nil { + invalidParams.Add(request.NewErrParamRequired("SqlEndpointPath")) + } + if s.SqlEndpointPath != nil && len(*s.SqlEndpointPath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SqlEndpointPath", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetHost sets the Host field's value. +func (s *DatabricksParameters) SetHost(v string) *DatabricksParameters { + s.Host = &v + return s +} + +// SetPort sets the Port field's value. +func (s *DatabricksParameters) SetPort(v int64) *DatabricksParameters { + s.Port = &v + return s +} + +// SetSqlEndpointPath sets the SqlEndpointPath field's value. +func (s *DatabricksParameters) SetSqlEndpointPath(v string) *DatabricksParameters { + s.SqlEndpointPath = &v + return s +} + // A date-time parameter. type DateTimeParameter struct { _ struct{} `type:"structure"` @@ -21382,6 +22371,95 @@ func (s *DeleteAccountCustomizationOutput) SetStatus(v int64) *DeleteAccountCust return s } +type DeleteAccountSubscriptionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Web Services account ID of the account that you want to delete. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAccountSubscriptionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAccountSubscriptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAccountSubscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAccountSubscriptionInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *DeleteAccountSubscriptionInput) SetAwsAccountId(v string) *DeleteAccountSubscriptionInput { + s.AwsAccountId = &v + return s +} + +type DeleteAccountSubscriptionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Web Services request ID for this operation. + RequestId *string `type:"string"` + + // The HTTP status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAccountSubscriptionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteAccountSubscriptionOutput) GoString() string { + return s.String() +} + +// SetRequestId sets the RequestId field's value. +func (s *DeleteAccountSubscriptionOutput) SetRequestId(v string) *DeleteAccountSubscriptionOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeleteAccountSubscriptionOutput) SetStatus(v int64) *DeleteAccountSubscriptionOutput { + s.Status = &v + return s +} + type DeleteAnalysisInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -27504,16 +28582,57 @@ func (s *FolderMember) SetMemberType(v string) *FolderMember { return s } -// A filter to use to search a Amazon QuickSight folder. +// A filter to use to search an Amazon QuickSight folder. type FolderSearchFilter struct { _ struct{} `type:"structure"` // The name of a value that you want to use in the filter. For example, "Name": - // "PARENT_FOLDER_ARN". + // "QUICKSIGHT_OWNER". + // + // Valid values are defined as follows: + // + // * QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, and any + // folders with that ARN listed as one of the folder's owners or viewers + // are returned. Implicit permissions from folders or groups are considered. + // + // * QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any folders + // with that ARN listed as one of the owners of the folders are returned. + // Implicit permissions from folders or groups are considered. + // + // * DIRECT_QUICKSIGHT_SOLE_OWNER: Provide an ARN of a user or group, and + // any folders with that ARN listed as the only owner of the folder are returned. + // Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_OWNER: Provide an ARN of a user or group, and any + // folders with that ARN listed as one of the owners of the folders are returned. + // Implicit permissions from folders or groups are not considered. + // + // * DIRECT_QUICKSIGHT_VIEWER_OR_OWNER: Provide an ARN of a user or group, + // and any folders with that ARN listed as one of the owners or viewers of + // the folders are returned. Implicit permissions from folders or groups + // are not considered. + // + // * FOLDER_NAME: Any folders whose names have a substring match to this + // value will be returned. + // + // * PARENT_FOLDER_ARN: Provide an ARN of a folder, and any folders that + // are directly under that parent folder are returned. If you choose to use + // this option and leave the value blank, all root-level folders in the account + // are returned. Name *string `type:"string" enum:"FolderFilterAttribute"` - // The comparison operator that you want to use in the filter. For example, - // "Operator": "StringEquals". + // The comparison operator that you want to use as a filter, for example "Operator": + // "StringEquals". Valid values are "StringEquals" and "StringLike". + // + // If you set the operator value to "StringEquals", you need to provide an ownership + // related filter in the "NAME" field and the arn of the user or group whose + // folders you want to search in the "Value" field. For example, "Name":"DIRECT_QUICKSIGHT_OWNER", + // "Operator": "StringEquals", "Value": "arn:aws:quicksight:us-east-1:1:user/default/UserName1". + // + // If you set the value to "StringLike", you need to provide the name of the + // folders you are searching for. For example, "Name":"FOLDER_NAME", "Operator": + // "StringLike", "Value": "Test". The "StringLike" operator only supports the + // NAME value FOLDER_NAME. Operator *string `type:"string" enum:"FilterOperator"` // The value of the named item (in this example, PARENT_FOLDER_ARN), that you @@ -27798,6 +28917,12 @@ func (s *GenerateEmbedUrlForAnonymousUserInput) SetSessionTags(v []*SessionTag) type GenerateEmbedUrlForAnonymousUserOutput struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) to use for the anonymous Amazon QuickSight + // user. + // + // AnonymousUserArn is a required field + AnonymousUserArn *string `type:"string" required:"true"` + // The embed URL for the dashboard. // // EmbedUrl is a sensitive parameter and its value will be @@ -27836,6 +28961,12 @@ func (s GenerateEmbedUrlForAnonymousUserOutput) GoString() string { return s.String() } +// SetAnonymousUserArn sets the AnonymousUserArn field's value. +func (s *GenerateEmbedUrlForAnonymousUserOutput) SetAnonymousUserArn(v string) *GenerateEmbedUrlForAnonymousUserOutput { + s.AnonymousUserArn = &v + return s +} + // SetEmbedUrl sets the EmbedUrl field's value. func (s *GenerateEmbedUrlForAnonymousUserOutput) SetEmbedUrl(v string) *GenerateEmbedUrlForAnonymousUserOutput { s.EmbedUrl = &v @@ -29360,6 +30491,74 @@ func (s *InvalidParameterValueException) RequestID() string { return s.RespMetadata.RequestID } +// You don't have this feature activated for your account. To fix this issue, +// contact Amazon Web Services support. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // The Amazon Web Services request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s *InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidRequestException) OrigErr() error { + return nil +} + +func (s *InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidRequestException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidRequestException) RequestID() string { + return s.RespMetadata.RequestID +} + // The parameters for Jira. type JiraParameters struct { _ struct{} `type:"structure"` @@ -36178,6 +37377,316 @@ func (s *SearchDashboardsOutput) SetStatus(v int64) *SearchDashboardsOutput { return s } +type SearchDataSetsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Web Services account ID. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The filters to apply to the search. + // + // Filters is a required field + Filters []*DataSetSearchFilter `min:"1" type:"list" required:"true"` + + // The maximum number of results to be returned per request. + MaxResults *int64 `min:"1" type:"integer"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchDataSetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchDataSetsInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *SearchDataSetsInput) SetAwsAccountId(v string) *SearchDataSetsInput { + s.AwsAccountId = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *SearchDataSetsInput) SetFilters(v []*DataSetSearchFilter) *SearchDataSetsInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchDataSetsInput) SetMaxResults(v int64) *SearchDataSetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchDataSetsInput) SetNextToken(v string) *SearchDataSetsInput { + s.NextToken = &v + return s +} + +type SearchDataSetsOutput struct { + _ struct{} `type:"structure"` + + // A DataSetSummaries object that returns a summary of a dataset. + DataSetSummaries []*DataSetSummary `type:"list"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` + + // The Amazon Web Services request ID for this operation. + RequestId *string `type:"string"` + + // The HTTP status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSetsOutput) GoString() string { + return s.String() +} + +// SetDataSetSummaries sets the DataSetSummaries field's value. +func (s *SearchDataSetsOutput) SetDataSetSummaries(v []*DataSetSummary) *SearchDataSetsOutput { + s.DataSetSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchDataSetsOutput) SetNextToken(v string) *SearchDataSetsOutput { + s.NextToken = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *SearchDataSetsOutput) SetRequestId(v string) *SearchDataSetsOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SearchDataSetsOutput) SetStatus(v int64) *SearchDataSetsOutput { + s.Status = &v + return s +} + +type SearchDataSourcesInput struct { + _ struct{} `type:"structure"` + + // The Amazon Web Services account ID. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The filters to apply to the search. + // + // Filters is a required field + Filters []*DataSourceSearchFilter `min:"1" type:"list" required:"true"` + + // The maximum number of results to be returned per request. + MaxResults *int64 `min:"1" type:"integer"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchDataSourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchDataSourcesInput"} + if s.AwsAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AwsAccountId")) + } + if s.AwsAccountId != nil && len(*s.AwsAccountId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("AwsAccountId", 12)) + } + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } + if s.Filters != nil && len(s.Filters) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Filters", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *SearchDataSourcesInput) SetAwsAccountId(v string) *SearchDataSourcesInput { + s.AwsAccountId = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *SearchDataSourcesInput) SetFilters(v []*DataSourceSearchFilter) *SearchDataSourcesInput { + s.Filters = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchDataSourcesInput) SetMaxResults(v int64) *SearchDataSourcesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchDataSourcesInput) SetNextToken(v string) *SearchDataSourcesInput { + s.NextToken = &v + return s +} + +type SearchDataSourcesOutput struct { + _ struct{} `type:"structure"` + + // A DataSourceSummaries object that returns a summary of a data source. + DataSourceSummaries []*DataSourceSummary `type:"list"` + + // A pagination token that can be used in a subsequent request. + NextToken *string `type:"string"` + + // The Amazon Web Services request ID for this operation. + RequestId *string `type:"string"` + + // The HTTP status of the request. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSourcesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchDataSourcesOutput) GoString() string { + return s.String() +} + +// SetDataSourceSummaries sets the DataSourceSummaries field's value. +func (s *SearchDataSourcesOutput) SetDataSourceSummaries(v []*DataSourceSummary) *SearchDataSourcesOutput { + s.DataSourceSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchDataSourcesOutput) SetNextToken(v string) *SearchDataSourcesOutput { + s.NextToken = &v + return s +} + +// SetRequestId sets the RequestId field's value. +func (s *SearchDataSourcesOutput) SetRequestId(v string) *SearchDataSourcesOutput { + s.RequestId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *SearchDataSourcesOutput) SetStatus(v int64) *SearchDataSourcesOutput { + s.Status = &v + return s +} + type SearchFoldersInput struct { _ struct{} `type:"structure"` @@ -39629,6 +41138,12 @@ type UpdateAccountSettingsInput struct { // The email address that you want Amazon QuickSight to send notifications to // regarding your Amazon Web Services account or Amazon QuickSight subscription. NotificationEmail *string `type:"string"` + + // A boolean value that determines whether or not an Amazon QuickSight account + // can be deleted. A True value doesn't allow the account to be deleted and + // results in an error message if a user tries to make a DeleteAccountSubscription + // request. A False value will allow the account to be deleted. + TerminationProtectionEnabled *bool `type:"boolean"` } // String returns the string representation. @@ -39686,6 +41201,12 @@ func (s *UpdateAccountSettingsInput) SetNotificationEmail(v string) *UpdateAccou return s } +// SetTerminationProtectionEnabled sets the TerminationProtectionEnabled field's value. +func (s *UpdateAccountSettingsInput) SetTerminationProtectionEnabled(v bool) *UpdateAccountSettingsInput { + s.TerminationProtectionEnabled = &v + return s +} + type UpdateAccountSettingsOutput struct { _ struct{} `type:"structure"` @@ -44183,12 +45704,36 @@ func AnalysisErrorType_Values() []string { const ( // AnalysisFilterAttributeQuicksightUser is a AnalysisFilterAttribute enum value AnalysisFilterAttributeQuicksightUser = "QUICKSIGHT_USER" + + // AnalysisFilterAttributeQuicksightViewerOrOwner is a AnalysisFilterAttribute enum value + AnalysisFilterAttributeQuicksightViewerOrOwner = "QUICKSIGHT_VIEWER_OR_OWNER" + + // AnalysisFilterAttributeDirectQuicksightViewerOrOwner is a AnalysisFilterAttribute enum value + AnalysisFilterAttributeDirectQuicksightViewerOrOwner = "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER" + + // AnalysisFilterAttributeQuicksightOwner is a AnalysisFilterAttribute enum value + AnalysisFilterAttributeQuicksightOwner = "QUICKSIGHT_OWNER" + + // AnalysisFilterAttributeDirectQuicksightOwner is a AnalysisFilterAttribute enum value + AnalysisFilterAttributeDirectQuicksightOwner = "DIRECT_QUICKSIGHT_OWNER" + + // AnalysisFilterAttributeDirectQuicksightSoleOwner is a AnalysisFilterAttribute enum value + AnalysisFilterAttributeDirectQuicksightSoleOwner = "DIRECT_QUICKSIGHT_SOLE_OWNER" + + // AnalysisFilterAttributeAnalysisName is a AnalysisFilterAttribute enum value + AnalysisFilterAttributeAnalysisName = "ANALYSIS_NAME" ) // AnalysisFilterAttribute_Values returns all elements of the AnalysisFilterAttribute enum func AnalysisFilterAttribute_Values() []string { return []string{ AnalysisFilterAttributeQuicksightUser, + AnalysisFilterAttributeQuicksightViewerOrOwner, + AnalysisFilterAttributeDirectQuicksightViewerOrOwner, + AnalysisFilterAttributeQuicksightOwner, + AnalysisFilterAttributeDirectQuicksightOwner, + AnalysisFilterAttributeDirectQuicksightSoleOwner, + AnalysisFilterAttributeAnalysisName, } } @@ -44339,12 +45884,36 @@ func DashboardErrorType_Values() []string { const ( // DashboardFilterAttributeQuicksightUser is a DashboardFilterAttribute enum value DashboardFilterAttributeQuicksightUser = "QUICKSIGHT_USER" + + // DashboardFilterAttributeQuicksightViewerOrOwner is a DashboardFilterAttribute enum value + DashboardFilterAttributeQuicksightViewerOrOwner = "QUICKSIGHT_VIEWER_OR_OWNER" + + // DashboardFilterAttributeDirectQuicksightViewerOrOwner is a DashboardFilterAttribute enum value + DashboardFilterAttributeDirectQuicksightViewerOrOwner = "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER" + + // DashboardFilterAttributeQuicksightOwner is a DashboardFilterAttribute enum value + DashboardFilterAttributeQuicksightOwner = "QUICKSIGHT_OWNER" + + // DashboardFilterAttributeDirectQuicksightOwner is a DashboardFilterAttribute enum value + DashboardFilterAttributeDirectQuicksightOwner = "DIRECT_QUICKSIGHT_OWNER" + + // DashboardFilterAttributeDirectQuicksightSoleOwner is a DashboardFilterAttribute enum value + DashboardFilterAttributeDirectQuicksightSoleOwner = "DIRECT_QUICKSIGHT_SOLE_OWNER" + + // DashboardFilterAttributeDashboardName is a DashboardFilterAttribute enum value + DashboardFilterAttributeDashboardName = "DASHBOARD_NAME" ) // DashboardFilterAttribute_Values returns all elements of the DashboardFilterAttribute enum func DashboardFilterAttribute_Values() []string { return []string{ DashboardFilterAttributeQuicksightUser, + DashboardFilterAttributeQuicksightViewerOrOwner, + DashboardFilterAttributeDirectQuicksightViewerOrOwner, + DashboardFilterAttributeQuicksightOwner, + DashboardFilterAttributeDirectQuicksightOwner, + DashboardFilterAttributeDirectQuicksightSoleOwner, + DashboardFilterAttributeDashboardName, } } @@ -44364,6 +45933,38 @@ func DashboardUIState_Values() []string { } } +const ( + // DataSetFilterAttributeQuicksightViewerOrOwner is a DataSetFilterAttribute enum value + DataSetFilterAttributeQuicksightViewerOrOwner = "QUICKSIGHT_VIEWER_OR_OWNER" + + // DataSetFilterAttributeQuicksightOwner is a DataSetFilterAttribute enum value + DataSetFilterAttributeQuicksightOwner = "QUICKSIGHT_OWNER" + + // DataSetFilterAttributeDirectQuicksightViewerOrOwner is a DataSetFilterAttribute enum value + DataSetFilterAttributeDirectQuicksightViewerOrOwner = "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER" + + // DataSetFilterAttributeDirectQuicksightOwner is a DataSetFilterAttribute enum value + DataSetFilterAttributeDirectQuicksightOwner = "DIRECT_QUICKSIGHT_OWNER" + + // DataSetFilterAttributeDirectQuicksightSoleOwner is a DataSetFilterAttribute enum value + DataSetFilterAttributeDirectQuicksightSoleOwner = "DIRECT_QUICKSIGHT_SOLE_OWNER" + + // DataSetFilterAttributeDatasetName is a DataSetFilterAttribute enum value + DataSetFilterAttributeDatasetName = "DATASET_NAME" +) + +// DataSetFilterAttribute_Values returns all elements of the DataSetFilterAttribute enum +func DataSetFilterAttribute_Values() []string { + return []string{ + DataSetFilterAttributeQuicksightViewerOrOwner, + DataSetFilterAttributeQuicksightOwner, + DataSetFilterAttributeDirectQuicksightViewerOrOwner, + DataSetFilterAttributeDirectQuicksightOwner, + DataSetFilterAttributeDirectQuicksightSoleOwner, + DataSetFilterAttributeDatasetName, + } +} + const ( // DataSetImportModeSpice is a DataSetImportMode enum value DataSetImportModeSpice = "SPICE" @@ -44420,6 +46021,30 @@ func DataSourceErrorInfoType_Values() []string { } } +const ( + // DataSourceFilterAttributeDirectQuicksightViewerOrOwner is a DataSourceFilterAttribute enum value + DataSourceFilterAttributeDirectQuicksightViewerOrOwner = "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER" + + // DataSourceFilterAttributeDirectQuicksightOwner is a DataSourceFilterAttribute enum value + DataSourceFilterAttributeDirectQuicksightOwner = "DIRECT_QUICKSIGHT_OWNER" + + // DataSourceFilterAttributeDirectQuicksightSoleOwner is a DataSourceFilterAttribute enum value + DataSourceFilterAttributeDirectQuicksightSoleOwner = "DIRECT_QUICKSIGHT_SOLE_OWNER" + + // DataSourceFilterAttributeDatasourceName is a DataSourceFilterAttribute enum value + DataSourceFilterAttributeDatasourceName = "DATASOURCE_NAME" +) + +// DataSourceFilterAttribute_Values returns all elements of the DataSourceFilterAttribute enum +func DataSourceFilterAttribute_Values() []string { + return []string{ + DataSourceFilterAttributeDirectQuicksightViewerOrOwner, + DataSourceFilterAttributeDirectQuicksightOwner, + DataSourceFilterAttributeDirectQuicksightSoleOwner, + DataSourceFilterAttributeDatasourceName, + } +} + const ( // DataSourceTypeAdobeAnalytics is a DataSourceType enum value DataSourceTypeAdobeAnalytics = "ADOBE_ANALYTICS" @@ -44495,6 +46120,9 @@ const ( // DataSourceTypeExasol is a DataSourceType enum value DataSourceTypeExasol = "EXASOL" + + // DataSourceTypeDatabricks is a DataSourceType enum value + DataSourceTypeDatabricks = "DATABRICKS" ) // DataSourceType_Values returns all elements of the DataSourceType enum @@ -44525,6 +46153,7 @@ func DataSourceType_Values() []string { DataSourceTypeTimestream, DataSourceTypeAmazonOpensearch, DataSourceTypeExasol, + DataSourceTypeDatabricks, } } @@ -44647,24 +46276,52 @@ func FileFormat_Values() []string { const ( // FilterOperatorStringEquals is a FilterOperator enum value FilterOperatorStringEquals = "StringEquals" + + // FilterOperatorStringLike is a FilterOperator enum value + FilterOperatorStringLike = "StringLike" ) // FilterOperator_Values returns all elements of the FilterOperator enum func FilterOperator_Values() []string { return []string{ FilterOperatorStringEquals, + FilterOperatorStringLike, } } const ( // FolderFilterAttributeParentFolderArn is a FolderFilterAttribute enum value FolderFilterAttributeParentFolderArn = "PARENT_FOLDER_ARN" + + // FolderFilterAttributeDirectQuicksightOwner is a FolderFilterAttribute enum value + FolderFilterAttributeDirectQuicksightOwner = "DIRECT_QUICKSIGHT_OWNER" + + // FolderFilterAttributeDirectQuicksightSoleOwner is a FolderFilterAttribute enum value + FolderFilterAttributeDirectQuicksightSoleOwner = "DIRECT_QUICKSIGHT_SOLE_OWNER" + + // FolderFilterAttributeDirectQuicksightViewerOrOwner is a FolderFilterAttribute enum value + FolderFilterAttributeDirectQuicksightViewerOrOwner = "DIRECT_QUICKSIGHT_VIEWER_OR_OWNER" + + // FolderFilterAttributeQuicksightOwner is a FolderFilterAttribute enum value + FolderFilterAttributeQuicksightOwner = "QUICKSIGHT_OWNER" + + // FolderFilterAttributeQuicksightViewerOrOwner is a FolderFilterAttribute enum value + FolderFilterAttributeQuicksightViewerOrOwner = "QUICKSIGHT_VIEWER_OR_OWNER" + + // FolderFilterAttributeFolderName is a FolderFilterAttribute enum value + FolderFilterAttributeFolderName = "FOLDER_NAME" ) // FolderFilterAttribute_Values returns all elements of the FolderFilterAttribute enum func FolderFilterAttribute_Values() []string { return []string{ FolderFilterAttributeParentFolderArn, + FolderFilterAttributeDirectQuicksightOwner, + FolderFilterAttributeDirectQuicksightSoleOwner, + FolderFilterAttributeDirectQuicksightViewerOrOwner, + FolderFilterAttributeQuicksightOwner, + FolderFilterAttributeQuicksightViewerOrOwner, + FolderFilterAttributeFolderName, } } diff --git a/service/quicksight/errors.go b/service/quicksight/errors.go index ac12f860d0..d171d7279d 100644 --- a/service/quicksight/errors.go +++ b/service/quicksight/errors.go @@ -63,6 +63,13 @@ const ( // One or more parameters has a value that isn't valid. ErrCodeInvalidParameterValueException = "InvalidParameterValueException" + // ErrCodeInvalidRequestException for service response error code + // "InvalidRequestException". + // + // You don't have this feature activated for your account. To fix this issue, + // contact Amazon Web Services support. + ErrCodeInvalidRequestException = "InvalidRequestException" + // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // @@ -146,6 +153,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InternalFailureException": newErrorInternalFailureException, "InvalidNextTokenException": newErrorInvalidNextTokenException, "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidRequestException": newErrorInvalidRequestException, "LimitExceededException": newErrorLimitExceededException, "PreconditionNotMetException": newErrorPreconditionNotMetException, "ResourceExistsException": newErrorResourceExistsException, diff --git a/service/quicksight/quicksightiface/interface.go b/service/quicksight/quicksightiface/interface.go index 1cbf0085ee..85e422f521 100644 --- a/service/quicksight/quicksightiface/interface.go +++ b/service/quicksight/quicksightiface/interface.go @@ -136,6 +136,10 @@ type QuickSightAPI interface { DeleteAccountCustomizationWithContext(aws.Context, *quicksight.DeleteAccountCustomizationInput, ...request.Option) (*quicksight.DeleteAccountCustomizationOutput, error) DeleteAccountCustomizationRequest(*quicksight.DeleteAccountCustomizationInput) (*request.Request, *quicksight.DeleteAccountCustomizationOutput) + DeleteAccountSubscription(*quicksight.DeleteAccountSubscriptionInput) (*quicksight.DeleteAccountSubscriptionOutput, error) + DeleteAccountSubscriptionWithContext(aws.Context, *quicksight.DeleteAccountSubscriptionInput, ...request.Option) (*quicksight.DeleteAccountSubscriptionOutput, error) + DeleteAccountSubscriptionRequest(*quicksight.DeleteAccountSubscriptionInput) (*request.Request, *quicksight.DeleteAccountSubscriptionOutput) + DeleteAnalysis(*quicksight.DeleteAnalysisInput) (*quicksight.DeleteAnalysisOutput, error) DeleteAnalysisWithContext(aws.Context, *quicksight.DeleteAnalysisInput, ...request.Option) (*quicksight.DeleteAnalysisOutput, error) DeleteAnalysisRequest(*quicksight.DeleteAnalysisInput) (*request.Request, *quicksight.DeleteAnalysisOutput) @@ -470,6 +474,20 @@ type QuickSightAPI interface { SearchDashboardsPages(*quicksight.SearchDashboardsInput, func(*quicksight.SearchDashboardsOutput, bool) bool) error SearchDashboardsPagesWithContext(aws.Context, *quicksight.SearchDashboardsInput, func(*quicksight.SearchDashboardsOutput, bool) bool, ...request.Option) error + SearchDataSets(*quicksight.SearchDataSetsInput) (*quicksight.SearchDataSetsOutput, error) + SearchDataSetsWithContext(aws.Context, *quicksight.SearchDataSetsInput, ...request.Option) (*quicksight.SearchDataSetsOutput, error) + SearchDataSetsRequest(*quicksight.SearchDataSetsInput) (*request.Request, *quicksight.SearchDataSetsOutput) + + SearchDataSetsPages(*quicksight.SearchDataSetsInput, func(*quicksight.SearchDataSetsOutput, bool) bool) error + SearchDataSetsPagesWithContext(aws.Context, *quicksight.SearchDataSetsInput, func(*quicksight.SearchDataSetsOutput, bool) bool, ...request.Option) error + + SearchDataSources(*quicksight.SearchDataSourcesInput) (*quicksight.SearchDataSourcesOutput, error) + SearchDataSourcesWithContext(aws.Context, *quicksight.SearchDataSourcesInput, ...request.Option) (*quicksight.SearchDataSourcesOutput, error) + SearchDataSourcesRequest(*quicksight.SearchDataSourcesInput) (*request.Request, *quicksight.SearchDataSourcesOutput) + + SearchDataSourcesPages(*quicksight.SearchDataSourcesInput, func(*quicksight.SearchDataSourcesOutput, bool) bool) error + SearchDataSourcesPagesWithContext(aws.Context, *quicksight.SearchDataSourcesInput, func(*quicksight.SearchDataSourcesOutput, bool) bool, ...request.Option) error + SearchFolders(*quicksight.SearchFoldersInput) (*quicksight.SearchFoldersOutput, error) SearchFoldersWithContext(aws.Context, *quicksight.SearchFoldersInput, ...request.Option) (*quicksight.SearchFoldersOutput, error) SearchFoldersRequest(*quicksight.SearchFoldersInput) (*request.Request, *quicksight.SearchFoldersOutput) diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index c888184d27..ee2e85f3c0 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -39927,11 +39927,6 @@ func (s *CreateTrainingJobInput) Validate() error { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } - if s.ProfilerConfig != nil { - if err := s.ProfilerConfig.Validate(); err != nil { - invalidParams.AddNested("ProfilerConfig", err.(request.ErrInvalidParams)) - } - } if s.ProfilerRuleConfigurations != nil { for i, v := range s.ProfilerRuleConfigurations { if v == nil { @@ -85162,6 +85157,9 @@ func (s *ProductionVariantSummary) SetVariantStatus(v []*ProductionVariantStatus type ProfilerConfig struct { _ struct{} `type:"structure"` + // To disable system monitoring and profiling, set to True. + DisableProfiler *bool `type:"boolean"` + // A time interval for capturing system metrics in milliseconds. Available values // are 100, 200, 500, 1000 (1 second), 5000 (5 seconds), and 60000 (1 minute) // milliseconds. The default value is 500 milliseconds. @@ -85176,9 +85174,7 @@ type ProfilerConfig struct { ProfilingParameters map[string]*string `type:"map"` // Path to Amazon S3 storage location for system and framework metrics. - // - // S3OutputPath is a required field - S3OutputPath *string `type:"string" required:"true"` + S3OutputPath *string `type:"string"` } // String returns the string representation. @@ -85199,17 +85195,10 @@ func (s ProfilerConfig) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ProfilerConfig) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ProfilerConfig"} - if s.S3OutputPath == nil { - invalidParams.Add(request.NewErrParamRequired("S3OutputPath")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDisableProfiler sets the DisableProfiler field's value. +func (s *ProfilerConfig) SetDisableProfiler(v bool) *ProfilerConfig { + s.DisableProfiler = &v + return s } // SetProfilingIntervalInMilliseconds sets the ProfilingIntervalInMilliseconds field's value. diff --git a/service/servicecatalog/api.go b/service/servicecatalog/api.go index d2f1fd2ec8..ef975f0665 100644 --- a/service/servicecatalog/api.go +++ b/service/servicecatalog/api.go @@ -238,6 +238,25 @@ func (c *ServiceCatalog) AssociatePrincipalWithPortfolioRequest(input *Associate // // Associates the specified principal ARN with the specified portfolio. // +// If you share the portfolio with principal name sharing enabled, the PrincipalARN +// association is included in the share. +// +// The PortfolioID, PrincipalARN, and PrincipalType parameters are required. +// +// You can associate a maximum of 10 Principals with a portfolio using PrincipalType +// as IAM_PATTERN +// +// When you associate a principal with portfolio, a potential privilege escalation +// path may occur when that portfolio is then shared with other accounts. For +// a user in a recipient account who is not an Service Catalog Admin, but still +// has the ability to create Principals (Users/Groups/Roles), that user could +// create a role that matches a principal name association for the portfolio. +// Although this user may not know which principal names are associated through +// Service Catalog, they may be able to guess the user. If this potential escalation +// path is a concern, then Service Catalog recommends using PrincipalType as +// IAM. With this configuration, the PrincipalARN must already exist in the +// recipient account before it can be associated. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1050,6 +1069,17 @@ func (c *ServiceCatalog) CreatePortfolioShareRequest(input *CreatePortfolioShare // exists, this action will have no effect and will not return an error. To // update an existing share, you must use the UpdatePortfolioShare API instead. // +// When you associate a principal with portfolio, a potential privilege escalation +// path may occur when that portfolio is then shared with other accounts. For +// a user in a recipient account who is not an Service Catalog Admin, but still +// has the ability to create Principals (Users/Groups/Roles), that user could +// create a role that matches a principal name association for the portfolio. +// Although this user may not know which principal names are associated through +// Service Catalog, they may be able to guess the user. If this potential escalation +// path is a concern, then Service Catalog recommends using PrincipalType as +// IAM. With this configuration, the PrincipalARN must already exist in the +// recipient account before it can be associated. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -3899,6 +3929,16 @@ func (c *ServiceCatalog) DisassociatePrincipalFromPortfolioRequest(input *Disass // // Disassociates a previously associated principal ARN from a specified portfolio. // +// The PrincipalType and PrincipalARN must match the AssociatePrincipalWithPortfolio +// call request details. For example, to disassociate an association created +// with a PrincipalARN of PrincipalType IAM you must use the PrincipalType IAM +// when calling DisassociatePrincipalFromPortfolio. +// +// For portfolios that have been shared with principal name sharing enabled: +// after disassociating a principal, share recipient accounts will no longer +// be able to provision products in this portfolio using a role matching the +// name of the associated principal. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -4740,11 +4780,10 @@ func (c *ServiceCatalog) ImportAsProvisionedProductRequest(input *ImportAsProvis // ImportAsProvisionedProduct API operation for AWS Service Catalog. // -// Requests the import of a resource as a Amazon Web Services Service Catalog -// provisioned product that is associated to a Amazon Web Services Service Catalog -// product and provisioning artifact. Once imported, all supported Amazon Web -// Services Service Catalog governance actions are supported on the provisioned -// product. +// Requests the import of a resource as an Service Catalog provisioned product +// that is associated to an Service Catalog product and provisioning artifact. +// Once imported, all supported Service Catalog governance actions are supported +// on the provisioned product. // // Resource import only supports CloudFormation stack ARNs. CloudFormation StackSets // and non-root nested stacks are not supported. @@ -4754,7 +4793,7 @@ func (c *ServiceCatalog) ImportAsProvisionedProductRequest(input *ImportAsProvis // IMPORT_ROLLBACK_COMPLETE. // // Import of the resource requires that the CloudFormation stack template matches -// the associated Amazon Web Services Service Catalog product provisioning artifact. +// the associated Service Catalog product provisioning artifact. // // The user or role that performs this operation must have the cloudformation:GetTemplate // and cloudformation:DescribeStacks IAM policy permissions. @@ -5976,7 +6015,8 @@ func (c *ServiceCatalog) ListPrincipalsForPortfolioRequest(input *ListPrincipals // ListPrincipalsForPortfolio API operation for AWS Service Catalog. // -// Lists all principal ARNs associated with the specified portfolio. +// Lists all PrincipalARNs and corresponding PrincipalTypes associated with +// the specified portfolio. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -8068,7 +8108,8 @@ func (c *ServiceCatalog) UpdatePortfolioShareRequest(input *UpdatePortfolioShare // UpdatePortfolioShare API operation for AWS Service Catalog. // // Updates the specified portfolio share. You can use this API to enable or -// disable TagOptions sharing for an existing portfolio share. +// disable TagOptions sharing or Principal sharing for an existing portfolio +// share. // // The portfolio share cannot be updated if the CreatePortfolioShare operation // is IN_PROGRESS, as the share is not available to recipient entities. In this @@ -8084,6 +8125,17 @@ func (c *ServiceCatalog) UpdatePortfolioShareRequest(input *UpdatePortfolioShare // This API cannot be used for removing the portfolio share. You must use DeletePortfolioShare // API for that action. // +// When you associate a principal with portfolio, a potential privilege escalation +// path may occur when that portfolio is then shared with other accounts. For +// a user in a recipient account who is not an Service Catalog Admin, but still +// has the ability to create Principals (Users/Groups/Roles), that user could +// create a role that matches a principal name association for the portfolio. +// Although this user may not know which principal names are associated through +// Service Catalog, they may be able to guess the user. If this potential escalation +// path is a concern, then Service Catalog recommends using PrincipalType as +// IAM. With this configuration, the PrincipalARN must already exist in the +// recipient account before it can be associated. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -8908,12 +8960,18 @@ type AssociatePrincipalWithPortfolioInput struct { // PortfolioId is a required field PortfolioId *string `min:"1" type:"string" required:"true"` - // The ARN of the principal (IAM user, role, or group). + // The ARN of the principal (IAM user, role, or group). This field allows an + // ARN with no accountID if PrincipalType is IAM_PATTERN. + // + // You can associate multiple IAM patterns even if the account has no principal + // with that name. This is useful in Principal Name Sharing if you want to share + // a principal without creating it in the account that owns the portfolio. // // PrincipalARN is a required field PrincipalARN *string `min:"1" type:"string" required:"true"` - // The principal type. The supported value is IAM. + // The principal type. The supported value is IAM if you use a fully defined + // ARN, or IAM_PATTERN if you use an ARN with no accountID. // // PrincipalType is a required field PrincipalType *string `type:"string" required:"true" enum:"PrincipalType"` @@ -9606,6 +9664,110 @@ func (s *CloudWatchDashboard) SetName(v string) *CloudWatchDashboard { return s } +// The subtype containing details about the Codestar connection Type. +type CodeStarParameters struct { + _ struct{} `type:"structure"` + + // The absolute path wehre the artifact resides within the repo and branch, + // formatted as "folder/file.json." + // + // ArtifactPath is a required field + ArtifactPath *string `min:"1" type:"string" required:"true"` + + // The specific branch where the artifact resides. + // + // Branch is a required field + Branch *string `min:"1" type:"string" required:"true"` + + // The CodeStar ARN, which is the connection between Service Catalog and the + // external repository. + // + // ConnectionArn is a required field + ConnectionArn *string `min:"1" type:"string" required:"true"` + + // The specific repository where the product’s artifact-to-be-synced resides, + // formatted as "Account/Repo." + // + // Repository is a required field + Repository *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CodeStarParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CodeStarParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CodeStarParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CodeStarParameters"} + if s.ArtifactPath == nil { + invalidParams.Add(request.NewErrParamRequired("ArtifactPath")) + } + if s.ArtifactPath != nil && len(*s.ArtifactPath) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ArtifactPath", 1)) + } + if s.Branch == nil { + invalidParams.Add(request.NewErrParamRequired("Branch")) + } + if s.Branch != nil && len(*s.Branch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) + } + if s.ConnectionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) + } + if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) + } + if s.Repository == nil { + invalidParams.Add(request.NewErrParamRequired("Repository")) + } + if s.Repository != nil && len(*s.Repository) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Repository", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetArtifactPath sets the ArtifactPath field's value. +func (s *CodeStarParameters) SetArtifactPath(v string) *CodeStarParameters { + s.ArtifactPath = &v + return s +} + +// SetBranch sets the Branch field's value. +func (s *CodeStarParameters) SetBranch(v string) *CodeStarParameters { + s.Branch = &v + return s +} + +// SetConnectionArn sets the ConnectionArn field's value. +func (s *CodeStarParameters) SetConnectionArn(v string) *CodeStarParameters { + s.ConnectionArn = &v + return s +} + +// SetRepository sets the Repository field's value. +func (s *CodeStarParameters) SetRepository(v string) *CodeStarParameters { + s.Repository = &v + return s +} + // Information about a constraint. type ConstraintDetail struct { _ struct{} `type:"structure"` @@ -10335,6 +10497,17 @@ type CreatePortfolioShareInput struct { // PortfolioId is a required field PortfolioId *string `min:"1" type:"string" required:"true"` + // Enables or disables Principal sharing when creating the portfolio share. + // If this flag is not provided, principal sharing is disabled. + // + // When you enable Principal Name Sharing for a portfolio share, the share recipient + // account end users with a principal that matches any of the associated IAM + // patterns can provision products from the portfolio. Once shared, the share + // recipient can view associations of PrincipalType: IAM_PATTERN on their portfolio. + // You can create the principals in the recipient account before or after creating + // the share. + SharePrincipals *bool `type:"boolean"` + // Enables or disables TagOptions sharing when creating the portfolio share. // If this flag is not provided, TagOptions sharing is disabled. ShareTagOptions *bool `type:"boolean"` @@ -10398,6 +10571,12 @@ func (s *CreatePortfolioShareInput) SetPortfolioId(v string) *CreatePortfolioSha return s } +// SetSharePrincipals sets the SharePrincipals field's value. +func (s *CreatePortfolioShareInput) SetSharePrincipals(v bool) *CreatePortfolioShareInput { + s.SharePrincipals = &v + return s +} + // SetShareTagOptions sets the ShareTagOptions field's value. func (s *CreatePortfolioShareInput) SetShareTagOptions(v bool) *CreatePortfolioShareInput { s.ShareTagOptions = &v @@ -10475,9 +10654,17 @@ type CreateProductInput struct { ProductType *string `type:"string" required:"true" enum:"ProductType"` // The configuration of the provisioning artifact. + ProvisioningArtifactParameters *ProvisioningArtifactProperties `type:"structure"` + + // Specifies connection details for the created product and syncs the product + // to the connection source artifact. This automatically manages the product's + // artifacts based on changes to the source. The SourceConnection parameter + // consists of the following sub-fields. + // + // * Type // - // ProvisioningArtifactParameters is a required field - ProvisioningArtifactParameters *ProvisioningArtifactProperties `type:"structure" required:"true"` + // * ConnectionParamters + SourceConnection *SourceConnection `type:"structure"` // The support information about the product. SupportDescription *string `type:"string"` @@ -10527,14 +10714,16 @@ func (s *CreateProductInput) Validate() error { if s.ProductType == nil { invalidParams.Add(request.NewErrParamRequired("ProductType")) } - if s.ProvisioningArtifactParameters == nil { - invalidParams.Add(request.NewErrParamRequired("ProvisioningArtifactParameters")) - } if s.ProvisioningArtifactParameters != nil { if err := s.ProvisioningArtifactParameters.Validate(); err != nil { invalidParams.AddNested("ProvisioningArtifactParameters", err.(request.ErrInvalidParams)) } } + if s.SourceConnection != nil { + if err := s.SourceConnection.Validate(); err != nil { + invalidParams.AddNested("SourceConnection", err.(request.ErrInvalidParams)) + } + } if s.Tags != nil { for i, v := range s.Tags { if v == nil { @@ -10600,6 +10789,12 @@ func (s *CreateProductInput) SetProvisioningArtifactParameters(v *ProvisioningAr return s } +// SetSourceConnection sets the SourceConnection field's value. +func (s *CreateProductInput) SetSourceConnection(v *SourceConnection) *CreateProductInput { + s.SourceConnection = v + return s +} + // SetSupportDescription sets the SupportDescription field's value. func (s *CreateProductInput) SetSupportDescription(v string) *CreateProductInput { s.SupportDescription = &v @@ -11052,13 +11247,13 @@ type CreateProvisioningArtifactOutput struct { // Specify the template source with one of the following options, but not both. // Keys accepted: [ LoadTemplateFromURL, ImportFromPhysicalId ]. // - // The URL of the CloudFormation template in Amazon S3, Amazon Web Services - // CodeCommit, or GitHub in JSON format. + // Use the URL of the CloudFormation template in Amazon S3 or GitHub in JSON + // format. // // LoadTemplateFromURL // - // Use the URL of the CloudFormation template in Amazon S3, Amazon Web Services - // CodeCommit, or GitHub in JSON format. + // Use the URL of the CloudFormation template in Amazon S3 or GitHub in JSON + // format. // // ImportFromPhysicalId // @@ -13451,8 +13646,7 @@ func (s *DescribeProvisioningArtifactInput) SetVerbose(v bool) *DescribeProvisio type DescribeProvisioningArtifactOutput struct { _ struct{} `type:"structure"` - // The URL of the CloudFormation template in Amazon S3, Amazon Web Services - // CodeCommit, or GitHub in JSON format. + // The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. Info map[string]*string `min:"1" type:"map"` // Information about the provisioning artifact. @@ -14280,10 +14474,15 @@ type DisassociatePrincipalFromPortfolioInput struct { // PortfolioId is a required field PortfolioId *string `min:"1" type:"string" required:"true"` - // The ARN of the principal (IAM user, role, or group). + // The ARN of the principal (IAM user, role, or group). This field allows an + // ARN with no accountID if PrincipalType is IAM_PATTERN. // // PrincipalARN is a required field PrincipalARN *string `min:"1" type:"string" required:"true"` + + // The supported value is IAM if you use a fully defined ARN, or IAM_PATTERN + // if you use no accountID. + PrincipalType *string `type:"string" enum:"PrincipalType"` } // String returns the string representation. @@ -14344,6 +14543,12 @@ func (s *DisassociatePrincipalFromPortfolioInput) SetPrincipalARN(v string) *Dis return s } +// SetPrincipalType sets the PrincipalType field's value. +func (s *DisassociatePrincipalFromPortfolioInput) SetPrincipalType(v string) *DisassociatePrincipalFromPortfolioInput { + s.PrincipalType = &v + return s +} + type DisassociatePrincipalFromPortfolioOutput struct { _ struct{} `type:"structure"` } @@ -15638,6 +15843,88 @@ func (s *InvalidStateException) RequestID() string { return s.RespMetadata.RequestID } +// Provides details about the product's connection sync and contains the following +// sub-fields. +// +// - LastSyncTime +// +// - LastSyncStatus +// +// - LastSyncStatusMessage +// +// - LastSuccessfulSyncTime +// +// - LastSuccessfulSyncProvisioningArtifactID +type LastSync struct { + _ struct{} `type:"structure"` + + // The ProvisioningArtifactID of the ProvisioningArtifact created from the latest + // successful sync. + LastSuccessfulSyncProvisioningArtifactId *string `min:"1" type:"string"` + + // The time of the latest successful sync from the source repo artifact to the + // Service Catalog product. + LastSuccessfulSyncTime *time.Time `type:"timestamp"` + + // The current status of the sync. Responses include SUCCEEDED or FAILED. + LastSyncStatus *string `type:"string" enum:"LastSyncStatus"` + + // The sync's status message. + LastSyncStatusMessage *string `type:"string"` + + // The time of the last attempted sync from the repository to the Service Catalog + // product. + LastSyncTime *time.Time `type:"timestamp"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LastSync) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LastSync) GoString() string { + return s.String() +} + +// SetLastSuccessfulSyncProvisioningArtifactId sets the LastSuccessfulSyncProvisioningArtifactId field's value. +func (s *LastSync) SetLastSuccessfulSyncProvisioningArtifactId(v string) *LastSync { + s.LastSuccessfulSyncProvisioningArtifactId = &v + return s +} + +// SetLastSuccessfulSyncTime sets the LastSuccessfulSyncTime field's value. +func (s *LastSync) SetLastSuccessfulSyncTime(v time.Time) *LastSync { + s.LastSuccessfulSyncTime = &v + return s +} + +// SetLastSyncStatus sets the LastSyncStatus field's value. +func (s *LastSync) SetLastSyncStatus(v string) *LastSync { + s.LastSyncStatus = &v + return s +} + +// SetLastSyncStatusMessage sets the LastSyncStatusMessage field's value. +func (s *LastSync) SetLastSyncStatusMessage(v string) *LastSync { + s.LastSyncStatusMessage = &v + return s +} + +// SetLastSyncTime sets the LastSyncTime field's value. +func (s *LastSync) SetLastSyncTime(v time.Time) *LastSync { + s.LastSyncTime = &v + return s +} + // A launch path object. type LaunchPath struct { _ struct{} `type:"structure"` @@ -16895,7 +17182,7 @@ type ListPrincipalsForPortfolioOutput struct { // additional results, this value is null. NextPageToken *string `type:"string"` - // The IAM principals (users or roles) associated with the portfolio. + // The PrincipalARNs and corresponding PrincipalTypes associated with the portfolio. Principals []*Principal `type:"list"` } @@ -18402,7 +18689,7 @@ type PortfolioShareDetail struct { Accepted *bool `type:"boolean"` // The identifier of the recipient entity that received the portfolio share. - // The recipient entities can be one of the following: + // The recipient entity can be one of the following: // // 1. An external account. // @@ -18413,6 +18700,9 @@ type PortfolioShareDetail struct { // 4. The organization itself. (This shares with every account in the organization). PrincipalId *string `min:"1" type:"string"` + // Indicates if Principal sharing is enabled or disabled for the portfolio share. + SharePrincipals *bool `type:"boolean"` + // Indicates whether TagOptions sharing is enabled or disabled for the portfolio // share. ShareTagOptions *bool `type:"boolean"` @@ -18451,6 +18741,12 @@ func (s *PortfolioShareDetail) SetPrincipalId(v string) *PortfolioShareDetail { return s } +// SetSharePrincipals sets the SharePrincipals field's value. +func (s *PortfolioShareDetail) SetSharePrincipals(v bool) *PortfolioShareDetail { + s.SharePrincipals = &v + return s +} + // SetShareTagOptions sets the ShareTagOptions field's value. func (s *PortfolioShareDetail) SetShareTagOptions(v bool) *PortfolioShareDetail { s.ShareTagOptions = &v @@ -18467,10 +18763,12 @@ func (s *PortfolioShareDetail) SetType(v string) *PortfolioShareDetail { type Principal struct { _ struct{} `type:"structure"` - // The ARN of the principal (IAM user, role, or group). + // The ARN of the principal (IAM user, role, or group). This field allows for + // an ARN with no accountID if the PrincipalType is an IAM_PATTERN. PrincipalARN *string `min:"1" type:"string"` - // The principal type. The supported value is IAM. + // The principal type. The supported value is IAM if you use a fully defined + // ARN, or IAM_PATTERN if you use an ARN with no accountID. PrincipalType *string `type:"string" enum:"PrincipalType"` } @@ -18559,6 +18857,13 @@ type ProductViewDetail struct { // Summary information about the product view. ProductViewSummary *ProductViewSummary `type:"structure"` + // A top level ProductViewDetail response containing details about the product’s + // connection. Service Catalog returns this field for the CreateProduct, UpdateProduct, + // DescribeProductAsAdmin, and SearchProductAsAdmin APIs. This response contains + // the same fields as the ConnectionParameters request, with the addition of + // the LastSync response. + SourceConnection *SourceConnectionDetail `type:"structure"` + // The status of the product. // // * AVAILABLE - The product is ready for use. @@ -18606,6 +18911,12 @@ func (s *ProductViewDetail) SetProductViewSummary(v *ProductViewSummary) *Produc return s } +// SetSourceConnection sets the SourceConnection field's value. +func (s *ProductViewDetail) SetSourceConnection(v *SourceConnectionDetail) *ProductViewDetail { + s.SourceConnection = v + return s +} + // SetStatus sets the Status field's value. func (s *ProductViewDetail) SetStatus(v string) *ProductViewDetail { s.Status = &v @@ -19460,7 +19771,7 @@ type ProvisionedProductPlanDetails struct { // One or more tags. Tags []*Tag `type:"list"` - // The time when the plan was last updated. + // The UTC time stamp when the plan was last updated. UpdatedTime *time.Time `type:"timestamp"` } @@ -19743,6 +20054,16 @@ type ProvisioningArtifactDetail struct { // The name of the provisioning artifact. Name *string `type:"string"` + // Specifies the revision of the external artifact that was used to automatically + // sync the Service Catalog product and create the provisioning artifact. Service + // Catalog includes this response parameter as a high level field to the existing + // ProvisioningArtifactDetail type, which is returned as part of the response + // for CreateProduct, UpdateProduct, DescribeProductAsAdmin, DescribeProvisioningArtifact, + // ListProvisioningArtifact, and UpdateProvisioningArticat APIs. + // + // This field only exists for Repo-Synced products. + SourceRevision *string `min:"1" type:"string"` + // The type of provisioning artifact. // // * CLOUD_FORMATION_TEMPLATE - CloudFormation template @@ -19808,6 +20129,12 @@ func (s *ProvisioningArtifactDetail) SetName(v string) *ProvisioningArtifactDeta return s } +// SetSourceRevision sets the SourceRevision field's value. +func (s *ProvisioningArtifactDetail) SetSourceRevision(v string) *ProvisioningArtifactDetail { + s.SourceRevision = &v + return s +} + // SetType sets the Type field's value. func (s *ProvisioningArtifactDetail) SetType(v string) *ProvisioningArtifactDetail { s.Type = &v @@ -19997,24 +20324,22 @@ type ProvisioningArtifactProperties struct { // the previous provisioning artifact. Description *string `type:"string"` - // If set to true, Amazon Web Services Service Catalog stops validating the - // specified provisioning artifact even if it is invalid. + // If set to true, Service Catalog stops validating the specified provisioning + // artifact even if it is invalid. DisableTemplateValidation *bool `type:"boolean"` // Specify the template source with one of the following options, but not both. // Keys accepted: [ LoadTemplateFromURL, ImportFromPhysicalId ] // - // The URL of the CloudFormation template in Amazon S3, Amazon Web Services - // CodeCommit, or GitHub in JSON format. Specify the URL in JSON format as follows: + // The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. + // Specify the URL in JSON format as follows: // // "LoadTemplateFromURL": "https://s3.amazonaws.com/cf-templates-ozkq9d3hgiq2-us-east-1/..." // // ImportFromPhysicalId: The physical id of the resource that contains the template. // Currently only supports CloudFormation stack arn. Specify the physical id // in JSON format as follows: ImportFromPhysicalId: “arn:aws:cloudformation:[us-east-1]:[accountId]:stack/[StackName]/[resourceId] - // - // Info is a required field - Info map[string]*string `min:"1" type:"map" required:"true"` + Info map[string]*string `min:"1" type:"map"` // The name of the provisioning artifact (for example, v1 v2beta). No spaces // are allowed. @@ -20052,9 +20377,6 @@ func (s ProvisioningArtifactProperties) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ProvisioningArtifactProperties) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ProvisioningArtifactProperties"} - if s.Info == nil { - invalidParams.Add(request.NewErrParamRequired("Info")) - } if s.Info != nil && len(s.Info) < 1 { invalidParams.Add(request.NewErrParamMinLen("Info", 1)) } @@ -22053,6 +22375,179 @@ func (s *ShareError) SetMessage(v string) *ShareError { return s } +// A top level ProductViewDetail response containing details about the product’s +// connection. Service Catalog returns this field for the CreateProduct, UpdateProduct, +// DescribeProductAsAdmin, and SearchProductAsAdmin APIs. This response contains +// the same fields as the ConnectionParameters request, with the addition of +// the LastSync response. +type SourceConnection struct { + _ struct{} `type:"structure"` + + // The connection details based on the connection Type. + // + // ConnectionParameters is a required field + ConnectionParameters *SourceConnectionParameters `type:"structure" required:"true"` + + // The only supported SourceConnection type is Codestar. + Type *string `type:"string" enum:"SourceType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SourceConnection) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SourceConnection) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceConnection) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceConnection"} + if s.ConnectionParameters == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionParameters")) + } + if s.ConnectionParameters != nil { + if err := s.ConnectionParameters.Validate(); err != nil { + invalidParams.AddNested("ConnectionParameters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionParameters sets the ConnectionParameters field's value. +func (s *SourceConnection) SetConnectionParameters(v *SourceConnectionParameters) *SourceConnection { + s.ConnectionParameters = v + return s +} + +// SetType sets the Type field's value. +func (s *SourceConnection) SetType(v string) *SourceConnection { + s.Type = &v + return s +} + +// Provides details about the configured SourceConnection. +type SourceConnectionDetail struct { + _ struct{} `type:"structure"` + + // The connection details based on the connection Type. + ConnectionParameters *SourceConnectionParameters `type:"structure"` + + // Provides details about the product's connection sync and contains the following + // sub-fields. + // + // * LastSyncTime + // + // * LastSyncStatus + // + // * LastSyncStatusMessage + // + // * LastSuccessfulSyncTime + // + // * LastSuccessfulSyncProvisioningArtifactID + LastSync *LastSync `type:"structure"` + + // The only supported SourceConnection type is Codestar. + Type *string `type:"string" enum:"SourceType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SourceConnectionDetail) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SourceConnectionDetail) GoString() string { + return s.String() +} + +// SetConnectionParameters sets the ConnectionParameters field's value. +func (s *SourceConnectionDetail) SetConnectionParameters(v *SourceConnectionParameters) *SourceConnectionDetail { + s.ConnectionParameters = v + return s +} + +// SetLastSync sets the LastSync field's value. +func (s *SourceConnectionDetail) SetLastSync(v *LastSync) *SourceConnectionDetail { + s.LastSync = v + return s +} + +// SetType sets the Type field's value. +func (s *SourceConnectionDetail) SetType(v string) *SourceConnectionDetail { + s.Type = &v + return s +} + +// Provides connection details. +type SourceConnectionParameters struct { + _ struct{} `type:"structure"` + + // Provides ConnectionType details. + CodeStar *CodeStarParameters `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SourceConnectionParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SourceConnectionParameters) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SourceConnectionParameters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SourceConnectionParameters"} + if s.CodeStar != nil { + if err := s.CodeStar.Validate(); err != nil { + invalidParams.AddNested("CodeStar", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCodeStar sets the CodeStar field's value. +func (s *SourceConnectionParameters) SetCodeStar(v *CodeStarParameters) *SourceConnectionParameters { + s.CodeStar = v + return s +} + // An CloudFormation stack, in a specific account and Region, that's part of // a stack set operation. A stack instance is a reference to an attempted or // actual stack in a given account within a given Region. A stack instance can @@ -22889,9 +23384,14 @@ type UpdatePortfolioShareInput struct { // PortfolioId is a required field PortfolioId *string `min:"1" type:"string" required:"true"` - // A flag to enable or disable TagOptions sharing for the portfolio share. If - // this field is not provided, the current state of TagOptions sharing on the + // A flag to enables or disables Principals sharing in the portfolio. If this + // field is not provided, the current state of the Principals sharing on the // portfolio share will not be modified. + SharePrincipals *bool `type:"boolean"` + + // Enables or disables TagOptions sharing for the portfolio share. If this field + // is not provided, the current state of TagOptions sharing on the portfolio + // share will not be modified. ShareTagOptions *bool `type:"boolean"` } @@ -22953,6 +23453,12 @@ func (s *UpdatePortfolioShareInput) SetPortfolioId(v string) *UpdatePortfolioSha return s } +// SetSharePrincipals sets the SharePrincipals field's value. +func (s *UpdatePortfolioShareInput) SetSharePrincipals(v bool) *UpdatePortfolioShareInput { + s.SharePrincipals = &v + return s +} + // SetShareTagOptions sets the ShareTagOptions field's value. func (s *UpdatePortfolioShareInput) SetShareTagOptions(v bool) *UpdatePortfolioShareInput { s.ShareTagOptions = &v @@ -23036,6 +23542,16 @@ type UpdateProductInput struct { // The tags to remove from the product. RemoveTags []*string `type:"list"` + // Specifies connection details for the updated product and syncs the product + // to the connection source artifact. This automatically manages the product's + // artifacts based on changes to the source. The SourceConnection parameter + // consists of the following sub-fields. + // + // * Type + // + // * ConnectionParamters + SourceConnection *SourceConnection `type:"structure"` + // The updated support description for the product. SupportDescription *string `type:"string"` @@ -23083,6 +23599,11 @@ func (s *UpdateProductInput) Validate() error { } } } + if s.SourceConnection != nil { + if err := s.SourceConnection.Validate(); err != nil { + invalidParams.AddNested("SourceConnection", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -23138,6 +23659,12 @@ func (s *UpdateProductInput) SetRemoveTags(v []*string) *UpdateProductInput { return s } +// SetSourceConnection sets the SourceConnection field's value. +func (s *UpdateProductInput) SetSourceConnection(v *SourceConnection) *UpdateProductInput { + s.SourceConnection = v + return s +} + // SetSupportDescription sets the SupportDescription field's value. func (s *UpdateProductInput) SetSupportDescription(v string) *UpdateProductInput { s.SupportDescription = &v @@ -23743,8 +24270,7 @@ func (s *UpdateProvisioningArtifactInput) SetProvisioningArtifactId(v string) *U type UpdateProvisioningArtifactOutput struct { _ struct{} `type:"structure"` - // The URL of the CloudFormation template in Amazon S3, Amazon Web Services - // CodeCommit, or GitHub in JSON format. + // The URL of the CloudFormation template in Amazon S3 or GitHub in JSON format. Info map[string]*string `min:"1" type:"map"` // Information about the provisioning artifact. @@ -24446,6 +24972,22 @@ func EvaluationType_Values() []string { } } +const ( + // LastSyncStatusSucceeded is a LastSyncStatus enum value + LastSyncStatusSucceeded = "SUCCEEDED" + + // LastSyncStatusFailed is a LastSyncStatus enum value + LastSyncStatusFailed = "FAILED" +) + +// LastSyncStatus_Values returns all elements of the LastSyncStatus enum +func LastSyncStatus_Values() []string { + return []string{ + LastSyncStatusSucceeded, + LastSyncStatusFailed, + } +} + const ( // OrganizationNodeTypeOrganization is a OrganizationNodeType enum value OrganizationNodeTypeOrganization = "ORGANIZATION" @@ -24489,12 +25031,16 @@ func PortfolioShareType_Values() []string { const ( // PrincipalTypeIam is a PrincipalType enum value PrincipalTypeIam = "IAM" + + // PrincipalTypeIamPattern is a PrincipalType enum value + PrincipalTypeIamPattern = "IAM_PATTERN" ) // PrincipalType_Values returns all elements of the PrincipalType enum func PrincipalType_Values() []string { return []string{ PrincipalTypeIam, + PrincipalTypeIamPattern, } } @@ -24926,6 +25472,18 @@ func SortOrder_Values() []string { } } +const ( + // SourceTypeCodestar is a SourceType enum value + SourceTypeCodestar = "CODESTAR" +) + +// SourceType_Values returns all elements of the SourceType enum +func SourceType_Values() []string { + return []string{ + SourceTypeCodestar, + } +} + const ( // StackInstanceStatusCurrent is a StackInstanceStatus enum value StackInstanceStatusCurrent = "CURRENT" diff --git a/service/servicecatalog/doc.go b/service/servicecatalog/doc.go index 1725686919..52ea2444b4 100644 --- a/service/servicecatalog/doc.go +++ b/service/servicecatalog/doc.go @@ -3,7 +3,7 @@ // Package servicecatalog provides the client and types for making API // requests to AWS Service Catalog. // -// Service Catalog (https://aws.amazon.com/servicecatalog/) enables organizations +// Service Catalog (http://aws.amazon.com/servicecatalog) enables organizations // to create and manage catalogs of IT services that are approved for Amazon // Web Services. To get the most out of this documentation, you should be familiar // with the terminology discussed in Service Catalog Concepts (http://docs.aws.amazon.com/servicecatalog/latest/adminguide/what-is_concepts.html). diff --git a/service/sfn/api.go b/service/sfn/api.go index 82f815e9d3..6b49183417 100644 --- a/service/sfn/api.go +++ b/service/sfn/api.go @@ -57,7 +57,7 @@ func (c *SFN) CreateActivityRequest(input *CreateActivityInput) (req *request.Re // CreateActivity API operation for AWS Step Functions. // // Creates an activity. An activity is a task that you write in any programming -// language and host on any machine that has access to AWS Step Functions. Activities +// language and host on any machine that has access to Step Functions. Activities // must poll Step Functions using the GetActivityTask API action and respond // using SendTask* API actions. This function lets Step Functions know the existence // of your activity and returns an identifier for use in a state machine and @@ -92,7 +92,7 @@ func (c *SFN) CreateActivityRequest(input *CreateActivityInput) (req *request.Re // - TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) -// in the AWS Step Functions Developer Guide. +// in the Step Functions Developer Guide. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity func (c *SFN) CreateActivity(input *CreateActivityInput) (*CreateActivityOutput, error) { @@ -164,7 +164,7 @@ func (c *SFN) CreateStateMachineRequest(input *CreateStateMachineInput) (req *re // (Choice states), stop an execution with an error (Fail states), and so on. // State machines are specified using a JSON-based, structured language. For // more information, see Amazon States Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html) -// in the AWS Step Functions User Guide. +// in the Step Functions User Guide. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. @@ -217,7 +217,7 @@ func (c *SFN) CreateStateMachineRequest(input *CreateStateMachineInput) (req *re // - TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) -// in the AWS Step Functions Developer Guide. +// in the Step Functions Developer Guide. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine func (c *SFN) CreateStateMachine(input *CreateStateMachineInput) (*CreateStateMachineOutput, error) { @@ -367,8 +367,8 @@ func (c *SFN) DeleteStateMachineRequest(input *DeleteStateMachineInput) (req *re // Deletes a state machine. This is an asynchronous operation: It sets the state // machine's status to DELETING and begins the deletion process. // -// For EXPRESSstate machines, the deletion will happen eventually (usually less -// than a minute). Running executions may emit logs after DeleteStateMachine +// For EXPRESS state machines, the deletion will happen eventually (usually +// less than a minute). Running executions may emit logs after DeleteStateMachine // API is called. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -799,6 +799,8 @@ func (c *SFN) GetActivityTaskRequest(input *GetActivityTaskInput) (req *request. // responding is 60 seconds. If no task is available within 60 seconds, the // poll returns a taskToken with a null string. // +// This API action isn't logged in CloudTrail. +// // Workers should set their client side socket timeout to at least 65 seconds // (5 seconds higher than the maximum time the service may hold the poll request). // @@ -1845,11 +1847,13 @@ func (c *SFN) StartExecutionRequest(input *StartExecutionInput) (req *request.Re // // Starts a state machine execution. // -// StartExecution is idempotent. If StartExecution is called with the same name -// and input as a running execution, the call will succeed and return the same -// response as the original request. If the execution is closed or if the input -// is different, it will return a 400 ExecutionAlreadyExists error. Names can -// be reused after 90 days. +// StartExecution is idempotent for STANDARD workflows. For a STANDARD workflow, +// if StartExecution is called with the same name and input as a running execution, +// the call will succeed and return the same response as the original request. +// If the execution is closed or if the input is different, it will return a +// 400 ExecutionAlreadyExists error. Names can be reused after 90 days. +// +// StartExecution is not idempotent for EXPRESS workflows. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1951,7 +1955,16 @@ func (c *SFN) StartSyncExecutionRequest(input *StartSyncExecutionInput) (req *re // StartSyncExecution API operation for AWS Step Functions. // -// Starts a Synchronous Express state machine execution. +// Starts a Synchronous Express state machine execution. StartSyncExecution +// is not available for STANDARD workflows. +// +// StartSyncExecution will return a 200 OK response, even if your execution +// fails, because the status code in the API response doesn't reflect function +// errors. Error codes are reserved for errors that prevent your execution from +// running, such as permissions errors, limit errors, or issues with your state +// machine code and configuration. +// +// This API action isn't logged in CloudTrail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2133,8 +2146,8 @@ func (c *SFN) TagResourceRequest(input *TagResourceInput) (req *request.Request, // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the AWS Billing and Cost Management User Guide, and Controlling Access -// Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). +// in the Amazon Web Services Billing and Cost Management User Guide, and Controlling +// Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. @@ -2158,7 +2171,7 @@ func (c *SFN) TagResourceRequest(input *TagResourceInput) (req *request.Request, // - TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) -// in the AWS Step Functions Developer Guide. +// in the Step Functions Developer Guide. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TagResource func (c *SFN) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -3061,10 +3074,10 @@ func (s *CloudWatchLogsLogGroup) SetLogGroupArn(v string) *CloudWatchLogsLogGrou type CreateActivityInput struct { _ struct{} `type:"structure"` - // The name of the activity to create. This name must be unique for your AWS - // account and region for 90 days. For more information, see Limits Related - // to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) - // in the AWS Step Functions Developer Guide. + // The name of the activity to create. This name must be unique for your Amazon + // Web Services account and region for 90 days. For more information, see Limits + // Related to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) + // in the Step Functions Developer Guide. // // A name must not contain: // @@ -3088,8 +3101,8 @@ type CreateActivityInput struct { // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) - // in the AWS Billing and Cost Management User Guide, and Controlling Access - // Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). + // in the Amazon Web Services Billing and Cost Management User Guide, and Controlling + // Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. @@ -3213,7 +3226,7 @@ type CreateStateMachineInput struct { // // By default, the level is set to OFF. For more information see Log Levels // (https://docs.aws.amazon.com/step-functions/latest/dg/cloudwatch-log-level.html) - // in the AWS Step Functions User Guide. + // in the Step Functions User Guide. LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` // The name of the state machine. @@ -3245,14 +3258,14 @@ type CreateStateMachineInput struct { // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) - // in the AWS Billing and Cost Management User Guide, and Controlling Access - // Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). + // in the Amazon Web Services Billing and Cost Management User Guide, and Controlling + // Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. Tags []*Tag `locationName:"tags" type:"list"` - // Selects whether AWS X-Ray tracing is enabled. + // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` // Determines whether a Standard or Express state machine is created. The default @@ -3787,7 +3800,7 @@ type DescribeExecutionOutput struct { // If the execution has already ended, the date the execution stopped. StopDate *time.Time `locationName:"stopDate" type:"timestamp"` - // The AWS X-Ray trace header that was passed to the execution. + // The X-Ray trace header that was passed to the execution. TraceHeader *string `locationName:"traceHeader" type:"string"` } @@ -3957,7 +3970,7 @@ type DescribeStateMachineForExecutionOutput struct { // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` - // Selects whether AWS X-Ray tracing is enabled. + // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` // The date and time the state machine associated with an execution was updated. @@ -4119,7 +4132,7 @@ type DescribeStateMachineOutput struct { // The Amazon Resource Name (ARN) of the IAM role used when creating this state // machine. (The IAM role maintains security by granting Step Functions access - // to AWS resources.) + // to Amazon Web Services resources.) // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` @@ -4132,7 +4145,7 @@ type DescribeStateMachineOutput struct { // The current status of the state machine. Status *string `locationName:"status" type:"string" enum:"StateMachineStatus"` - // Selects whether AWS X-Ray tracing is enabled. + // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` // The type of the state machine (STANDARD or EXPRESS). @@ -4623,7 +4636,7 @@ type ExecutionStartedEventDetails struct { // Contains details about the input for an execution history event. InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` - // The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda + // The Amazon Resource Name (ARN) of the IAM role used for executing Lambda // tasks. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` } @@ -5057,24 +5070,24 @@ type HistoryEvent struct { // Id is a required field Id *int64 `locationName:"id" type:"long" required:"true"` - // Contains details about a lambda function that failed during an execution. + // Contains details about a Lambda function that failed during an execution. LambdaFunctionFailedEventDetails *LambdaFunctionFailedEventDetails `locationName:"lambdaFunctionFailedEventDetails" type:"structure"` - // Contains details about a failed lambda function schedule event that occurred + // Contains details about a failed Lambda function schedule event that occurred // during an execution. LambdaFunctionScheduleFailedEventDetails *LambdaFunctionScheduleFailedEventDetails `locationName:"lambdaFunctionScheduleFailedEventDetails" type:"structure"` - // Contains details about a lambda function scheduled during an execution. + // Contains details about a Lambda function scheduled during an execution. LambdaFunctionScheduledEventDetails *LambdaFunctionScheduledEventDetails `locationName:"lambdaFunctionScheduledEventDetails" type:"structure"` // Contains details about a lambda function that failed to start during an execution. LambdaFunctionStartFailedEventDetails *LambdaFunctionStartFailedEventDetails `locationName:"lambdaFunctionStartFailedEventDetails" type:"structure"` - // Contains details about a lambda function that terminated successfully during + // Contains details about a Lambda function that terminated successfully during // an execution. LambdaFunctionSucceededEventDetails *LambdaFunctionSucceededEventDetails `locationName:"lambdaFunctionSucceededEventDetails" type:"structure"` - // Contains details about a lambda function timeout that occurred during an + // Contains details about a Lambda function timeout that occurred during an // execution. LambdaFunctionTimedOutEventDetails *LambdaFunctionTimedOutEventDetails `locationName:"lambdaFunctionTimedOutEventDetails" type:"structure"` @@ -5916,7 +5929,7 @@ func (s *InvalidTracingConfiguration) RequestID() string { return s.RespMetadata.RequestID } -// Contains details about a lambda function that failed during an execution. +// Contains details about a Lambda function that failed during an execution. type LambdaFunctionFailedEventDetails struct { _ struct{} `type:"structure"` @@ -5965,7 +5978,7 @@ func (s *LambdaFunctionFailedEventDetails) SetError(v string) *LambdaFunctionFai return s } -// Contains details about a failed lambda function schedule event that occurred +// Contains details about a failed Lambda function schedule event that occurred // during an execution. type LambdaFunctionScheduleFailedEventDetails struct { _ struct{} `type:"structure"` @@ -6015,11 +6028,11 @@ func (s *LambdaFunctionScheduleFailedEventDetails) SetError(v string) *LambdaFun return s } -// Contains details about a lambda function scheduled during an execution. +// Contains details about a Lambda function scheduled during an execution. type LambdaFunctionScheduledEventDetails struct { _ struct{} `type:"structure"` - // The JSON data input to the lambda function. Length constraints apply to the + // The JSON data input to the Lambda function. Length constraints apply to the // payload size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be @@ -6030,12 +6043,15 @@ type LambdaFunctionScheduledEventDetails struct { // Contains details about input for an execution history event. InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` - // The Amazon Resource Name (ARN) of the scheduled lambda function. + // The Amazon Resource Name (ARN) of the scheduled Lambda function. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The maximum allowed duration of the lambda function. + // The credentials that Step Functions uses for the task. + TaskCredentials *TaskCredentials `locationName:"taskCredentials" type:"structure"` + + // The maximum allowed duration of the Lambda function. TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` } @@ -6075,6 +6091,12 @@ func (s *LambdaFunctionScheduledEventDetails) SetResource(v string) *LambdaFunct return s } +// SetTaskCredentials sets the TaskCredentials field's value. +func (s *LambdaFunctionScheduledEventDetails) SetTaskCredentials(v *TaskCredentials) *LambdaFunctionScheduledEventDetails { + s.TaskCredentials = v + return s +} + // SetTimeoutInSeconds sets the TimeoutInSeconds field's value. func (s *LambdaFunctionScheduledEventDetails) SetTimeoutInSeconds(v int64) *LambdaFunctionScheduledEventDetails { s.TimeoutInSeconds = &v @@ -6130,12 +6152,12 @@ func (s *LambdaFunctionStartFailedEventDetails) SetError(v string) *LambdaFuncti return s } -// Contains details about a lambda function that successfully terminated during +// Contains details about a Lambda function that successfully terminated during // an execution. type LambdaFunctionSucceededEventDetails struct { _ struct{} `type:"structure"` - // The JSON data output by the lambda function. Length constraints apply to + // The JSON data output by the Lambda function. Length constraints apply to // the payload size, and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be @@ -6177,7 +6199,7 @@ func (s *LambdaFunctionSucceededEventDetails) SetOutputDetails(v *HistoryEventEx return s } -// Contains details about a lambda function timeout that occurred during an +// Contains details about a Lambda function timeout that occurred during an // execution. type LambdaFunctionTimedOutEventDetails struct { _ struct{} `type:"structure"` @@ -6661,7 +6683,7 @@ type LogDestination struct { // An object describing a CloudWatch log group. For more information, see AWS::Logs::LogGroup // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html) - // in the AWS CloudFormation User Guide. + // in the CloudFormation User Guide. CloudWatchLogsLogGroup *CloudWatchLogsLogGroup `locationName:"cloudWatchLogsLogGroup" type:"structure"` } @@ -7263,10 +7285,10 @@ type StartExecutionInput struct { // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` - // The name of the execution. This name must be unique for your AWS account, - // region, and state machine for 90 days. For more information, see Limits Related - // to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) - // in the AWS Step Functions Developer Guide. + // The name of the execution. This name must be unique for your Amazon Web Services + // account, region, and state machine for 90 days. For more information, see + // Limits Related to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) + // in the Step Functions Developer Guide. // // A name must not contain: // @@ -7289,8 +7311,8 @@ type StartExecutionInput struct { // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` - // Passes the AWS X-Ray trace header. The trace header can also be passed in - // the request payload. + // Passes the X-Ray trace header. The trace header can also be passed in the + // request payload. TraceHeader *string `locationName:"traceHeader" type:"string"` } @@ -7425,8 +7447,8 @@ type StartSyncExecutionInput struct { // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` - // Passes the AWS X-Ray trace header. The trace header can also be passed in - // the request payload. + // Passes the X-Ray trace header. The trace header can also be passed in the + // request payload. TraceHeader *string `locationName:"traceHeader" type:"string"` } @@ -7563,7 +7585,7 @@ type StartSyncExecutionOutput struct { // StopDate is a required field StopDate *time.Time `locationName:"stopDate" type:"timestamp" required:"true"` - // The AWS X-Ray trace header that was passed to the execution. + // The X-Ray trace header that was passed to the execution. TraceHeader *string `locationName:"traceHeader" type:"string"` } @@ -8312,8 +8334,8 @@ func (s *StopExecutionOutput) SetStopDate(v time.Time) *StopExecutionOutput { // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) -// in the AWS Billing and Cost Management User Guide, and Controlling Access -// Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). +// in the Amazon Web Services Billing and Cost Management User Guide, and Controlling +// Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. @@ -8468,6 +8490,39 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Contains details about the credentials that Step Functions uses for a task. +type TaskCredentials struct { + _ struct{} `type:"structure"` + + // The ARN of an IAM role that Step Functions assumes for the task. The role + // can allow cross-account access to resources. + RoleArn *string `locationName:"roleArn" min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TaskCredentials) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TaskCredentials) GoString() string { + return s.String() +} + +// SetRoleArn sets the RoleArn field's value. +func (s *TaskCredentials) SetRoleArn(v string) *TaskCredentials { + s.RoleArn = &v + return s +} + type TaskDoesNotExist struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -8549,12 +8604,12 @@ type TaskFailedEventDetails struct { // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -8624,16 +8679,19 @@ type TaskScheduledEventDetails struct { // Region is a required field Region *string `locationName:"region" min:"1" type:"string" required:"true"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` + // The credentials that Step Functions uses for the task. + TaskCredentials *TaskCredentials `locationName:"taskCredentials" type:"structure"` + // The maximum allowed duration of the task. TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` } @@ -8686,6 +8744,12 @@ func (s *TaskScheduledEventDetails) SetResourceType(v string) *TaskScheduledEven return s } +// SetTaskCredentials sets the TaskCredentials field's value. +func (s *TaskScheduledEventDetails) SetTaskCredentials(v *TaskCredentials) *TaskScheduledEventDetails { + s.TaskCredentials = v + return s +} + // SetTimeoutInSeconds sets the TimeoutInSeconds field's value. func (s *TaskScheduledEventDetails) SetTimeoutInSeconds(v int64) *TaskScheduledEventDetails { s.TimeoutInSeconds = &v @@ -8710,12 +8774,12 @@ type TaskStartFailedEventDetails struct { // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -8767,12 +8831,12 @@ func (s *TaskStartFailedEventDetails) SetResourceType(v string) *TaskStartFailed type TaskStartedEventDetails struct { _ struct{} `type:"structure"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -8826,12 +8890,12 @@ type TaskSubmitFailedEventDetails struct { // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -8894,12 +8958,12 @@ type TaskSubmittedEventDetails struct { // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -8963,12 +9027,12 @@ type TaskSucceededEventDetails struct { // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -9097,12 +9161,12 @@ type TaskTimedOutEventDetails struct { // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` - // The service name of the resource in a task state. + // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` - // The action of the resource called by a task state. + // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` @@ -9152,7 +9216,7 @@ func (s *TaskTimedOutEventDetails) SetResourceType(v string) *TaskTimedOutEventD // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) -// in the AWS Step Functions Developer Guide. +// in the Step Functions Developer Guide. type TooManyTags struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -9218,12 +9282,12 @@ func (s *TooManyTags) RequestID() string { return s.RespMetadata.RequestID } -// Selects whether or not the state machine's AWS X-Ray tracing is enabled. -// Default is false +// Selects whether or not the state machine's X-Ray tracing is enabled. Default +// is false type TracingConfiguration struct { _ struct{} `type:"structure"` - // When set to true, AWS X-Ray tracing is enabled. + // When set to true, X-Ray tracing is enabled. Enabled *bool `locationName:"enabled" type:"boolean"` } @@ -9358,7 +9422,7 @@ type UpdateStateMachineInput struct { // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` - // Selects whether AWS X-Ray tracing is enabled. + // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` } diff --git a/service/sfn/doc.go b/service/sfn/doc.go index e35b53708d..e35772a141 100644 --- a/service/sfn/doc.go +++ b/service/sfn/doc.go @@ -3,8 +3,8 @@ // Package sfn provides the client and types for making API // requests to AWS Step Functions. // -// AWS Step Functions is a service that lets you coordinate the components of -// distributed applications and microservices using visual workflows. +// Step Functions is a service that lets you coordinate the components of distributed +// applications and microservices using visual workflows. // // You can use Step Functions to build applications from individual components, // each of which performs a discrete function, or task, allowing you to scale @@ -16,11 +16,11 @@ // diagnose and debug any issues. // // Step Functions manages operations and underlying infrastructure to ensure -// your application is available at any scale. You can run tasks on AWS, your -// own servers, or any system that has access to AWS. You can access and use -// Step Functions using the console, the AWS SDKs, or an HTTP API. For more -// information about Step Functions, see the AWS Step Functions Developer Guide -// (https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html) . +// your application is available at any scale. You can run tasks on Amazon Web +// Services, your own servers, or any system that has access to Amazon Web Services. +// You can access and use Step Functions using the console, the Amazon Web Services +// SDKs, or an HTTP API. For more information about Step Functions, see the +// Step Functions Developer Guide (https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html) . // // See https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23 for more information on this service. // diff --git a/service/sfn/errors.go b/service/sfn/errors.go index 41926dd25a..2e990c787a 100644 --- a/service/sfn/errors.go +++ b/service/sfn/errors.go @@ -153,7 +153,7 @@ const ( // // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) - // in the AWS Step Functions Developer Guide. + // in the Step Functions Developer Guide. ErrCodeTooManyTags = "TooManyTags" ) diff --git a/service/transfer/api.go b/service/transfer/api.go index 23ab9253b3..97331591f3 100644 --- a/service/transfer/api.go +++ b/service/transfer/api.go @@ -6289,6 +6289,9 @@ type As2ConnectorConfig struct { Compression *string `type:"string" enum:"CompressionEnum"` // The algorithm that is used to encrypt the file. + // + // You can only specify NONE if the URL for your connector uses HTTPS. This + // ensures that no traffic is sent in clear text. EncryptionAlgorithm *string `type:"string" enum:"EncryptionAlg"` // A unique identifier for the AS2 local profile. @@ -6306,7 +6309,7 @@ type As2ConnectorConfig struct { // The signing algorithm for the MDN response. // - // If set to DEFAULT (or not set at all), the value for SigningAlogorithm is + // If set to DEFAULT (or not set at all), the value for SigningAlgorithm is // used. MdnSigningAlgorithm *string `type:"string" enum:"MdnSigningAlg"` @@ -7535,10 +7538,10 @@ type CreateServerInput struct { // Specifies the workflow ID for the workflow to assign and the execution role // that's used for executing the workflow. // - // In additon to a workflow to execute when a file is uploaded completely, WorkflowDeatails - // can also contain a workflow ID (and execution role) for a workflow to execute - // on partial upload. A partial upload occurs when a file is open when the session - // disconnects. + // In addition to a workflow to execute when a file is uploaded completely, + // WorkflowDetails can also contain a workflow ID (and execution role) for a + // workflow to execute on partial upload. A partial upload occurs when a file + // is open when the session disconnects. WorkflowDetails *WorkflowDetails `type:"structure"` } @@ -7816,7 +7819,17 @@ type CreateUserInput struct { // The public portion of the Secure Shell (SSH) key used to authenticate the // user to the server. // + // The three standard SSH public key format elements are , , + // and an optional , with spaces between each element. + // // Transfer Family accepts RSA, ECDSA, and ED25519 keys. + // + // * For RSA keys, the key type is ssh-rsa. + // + // * For ED25519 keys, the key type is ssh-ed25519. + // + // * For ECDSA keys, the key type is either ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, + // or ecdsa-sha2-nistp521, depending on the size of the key you generated. SshPublicKeyBody *string `type:"string"` // Key-value pairs that can be used to group and search for users. Tags are @@ -11227,10 +11240,10 @@ type DescribedServer struct { // Specifies the workflow ID for the workflow to assign and the execution role // that's used for executing the workflow. // - // In additon to a workflow to execute when a file is uploaded completely, WorkflowDeatails - // can also contain a workflow ID (and execution role) for a workflow to execute - // on partial upload. A partial upload occurs when a file is open when the session - // disconnects. + // In addition to a workflow to execute when a file is uploaded completely, + // WorkflowDetails can also contain a workflow ID (and execution role) for a + // workflow to execute on partial upload. A partial upload occurs when a file + // is open when the session disconnects. WorkflowDetails *WorkflowDetails `type:"structure"` } @@ -17899,10 +17912,10 @@ type UpdateServerInput struct { // Specifies the workflow ID for the workflow to assign and the execution role // that's used for executing the workflow. // - // In additon to a workflow to execute when a file is uploaded completely, WorkflowDeatails - // can also contain a workflow ID (and execution role) for a workflow to execute - // on partial upload. A partial upload occurs when a file is open when the session - // disconnects. + // In addition to a workflow to execute when a file is uploaded completely, + // WorkflowDetails can also contain a workflow ID (and execution role) for a + // workflow to execute on partial upload. A partial upload occurs when a file + // is open when the session disconnects. // // To remove an associated workflow from a server, you can provide an empty // OnUpload object, as in the following example. @@ -18386,10 +18399,10 @@ func (s *UserDetails) SetUserName(v string) *UserDetails { // Specifies the workflow ID for the workflow to assign and the execution role // that's used for executing the workflow. // -// In additon to a workflow to execute when a file is uploaded completely, WorkflowDeatails -// can also contain a workflow ID (and execution role) for a workflow to execute -// on partial upload. A partial upload occurs when a file is open when the session -// disconnects. +// In addition to a workflow to execute when a file is uploaded completely, +// WorkflowDetails can also contain a workflow ID (and execution role) for a +// workflow to execute on partial upload. A partial upload occurs when a file +// is open when the session disconnects. type WorkflowDetail struct { _ struct{} `type:"structure"` @@ -18792,6 +18805,9 @@ const ( // EncryptionAlgAes256Cbc is a EncryptionAlg enum value EncryptionAlgAes256Cbc = "AES256_CBC" + + // EncryptionAlgNone is a EncryptionAlg enum value + EncryptionAlgNone = "NONE" ) // EncryptionAlg_Values returns all elements of the EncryptionAlg enum @@ -18800,6 +18816,7 @@ func EncryptionAlg_Values() []string { EncryptionAlgAes128Cbc, EncryptionAlgAes192Cbc, EncryptionAlgAes256Cbc, + EncryptionAlgNone, } }