github.com/aavshr/aws-sdk-go@v1.41.3/service/finspace/api.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package finspace
     4  
     5  import (
     6  	"fmt"
     7  
     8  	"github.com/aavshr/aws-sdk-go/aws"
     9  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    10  	"github.com/aavshr/aws-sdk-go/aws/request"
    11  	"github.com/aavshr/aws-sdk-go/private/protocol"
    12  	"github.com/aavshr/aws-sdk-go/private/protocol/restjson"
    13  )
    14  
    15  const opCreateEnvironment = "CreateEnvironment"
    16  
    17  // CreateEnvironmentRequest generates a "aws/request.Request" representing the
    18  // client's request for the CreateEnvironment operation. The "output" return
    19  // value will be populated with the request's response once the request completes
    20  // successfully.
    21  //
    22  // Use "Send" method on the returned Request to send the API call to the service.
    23  // the "output" return value is not valid until after Send returns without error.
    24  //
    25  // See CreateEnvironment for more information on using the CreateEnvironment
    26  // API call, and error handling.
    27  //
    28  // This method is useful when you want to inject custom logic or configuration
    29  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
    30  //
    31  //
    32  //    // Example sending a request using the CreateEnvironmentRequest method.
    33  //    req, resp := client.CreateEnvironmentRequest(params)
    34  //
    35  //    err := req.Send()
    36  //    if err == nil { // resp is now filled
    37  //        fmt.Println(resp)
    38  //    }
    39  //
    40  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/CreateEnvironment
    41  func (c *Finspace) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *request.Request, output *CreateEnvironmentOutput) {
    42  	op := &request.Operation{
    43  		Name:       opCreateEnvironment,
    44  		HTTPMethod: "POST",
    45  		HTTPPath:   "/environment",
    46  	}
    47  
    48  	if input == nil {
    49  		input = &CreateEnvironmentInput{}
    50  	}
    51  
    52  	output = &CreateEnvironmentOutput{}
    53  	req = c.newRequest(op, input, output)
    54  	return
    55  }
    56  
    57  // CreateEnvironment API operation for FinSpace User Environment Management service.
    58  //
    59  // Create a new FinSpace environment.
    60  //
    61  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
    62  // with awserr.Error's Code and Message methods to get detailed information about
    63  // the error.
    64  //
    65  // See the AWS API reference guide for FinSpace User Environment Management service's
    66  // API operation CreateEnvironment for usage and error information.
    67  //
    68  // Returned Error Types:
    69  //   * InternalServerException
    70  //   The request processing has failed because of an unknown error, exception
    71  //   or failure.
    72  //
    73  //   * ValidationException
    74  //   The input fails to satisfy the constraints specified by an AWS service.
    75  //
    76  //   * AccessDeniedException
    77  //   You do not have sufficient access to perform this action.
    78  //
    79  //   * ThrottlingException
    80  //   The request was denied due to request throttling.
    81  //
    82  //   * ServiceQuotaExceededException
    83  //   You have exceeded your service quota. To perform the requested action, remove
    84  //   some of the relevant resources, or use Service Quotas to request a service
    85  //   quota increase.
    86  //
    87  //   * LimitExceededException
    88  //   A service limit or quota is exceeded.
    89  //
    90  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/CreateEnvironment
    91  func (c *Finspace) CreateEnvironment(input *CreateEnvironmentInput) (*CreateEnvironmentOutput, error) {
    92  	req, out := c.CreateEnvironmentRequest(input)
    93  	return out, req.Send()
    94  }
    95  
    96  // CreateEnvironmentWithContext is the same as CreateEnvironment with the addition of
    97  // the ability to pass a context and additional request options.
    98  //
    99  // See CreateEnvironment for details on how to use this API operation.
   100  //
   101  // The context must be non-nil and will be used for request cancellation. If
   102  // the context is nil a panic will occur. In the future the SDK may create
   103  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   104  // for more information on using Contexts.
   105  func (c *Finspace) CreateEnvironmentWithContext(ctx aws.Context, input *CreateEnvironmentInput, opts ...request.Option) (*CreateEnvironmentOutput, error) {
   106  	req, out := c.CreateEnvironmentRequest(input)
   107  	req.SetContext(ctx)
   108  	req.ApplyOptions(opts...)
   109  	return out, req.Send()
   110  }
   111  
   112  const opDeleteEnvironment = "DeleteEnvironment"
   113  
   114  // DeleteEnvironmentRequest generates a "aws/request.Request" representing the
   115  // client's request for the DeleteEnvironment operation. The "output" return
   116  // value will be populated with the request's response once the request completes
   117  // successfully.
   118  //
   119  // Use "Send" method on the returned Request to send the API call to the service.
   120  // the "output" return value is not valid until after Send returns without error.
   121  //
   122  // See DeleteEnvironment for more information on using the DeleteEnvironment
   123  // API call, and error handling.
   124  //
   125  // This method is useful when you want to inject custom logic or configuration
   126  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   127  //
   128  //
   129  //    // Example sending a request using the DeleteEnvironmentRequest method.
   130  //    req, resp := client.DeleteEnvironmentRequest(params)
   131  //
   132  //    err := req.Send()
   133  //    if err == nil { // resp is now filled
   134  //        fmt.Println(resp)
   135  //    }
   136  //
   137  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/DeleteEnvironment
   138  func (c *Finspace) DeleteEnvironmentRequest(input *DeleteEnvironmentInput) (req *request.Request, output *DeleteEnvironmentOutput) {
   139  	op := &request.Operation{
   140  		Name:       opDeleteEnvironment,
   141  		HTTPMethod: "DELETE",
   142  		HTTPPath:   "/environment/{environmentId}",
   143  	}
   144  
   145  	if input == nil {
   146  		input = &DeleteEnvironmentInput{}
   147  	}
   148  
   149  	output = &DeleteEnvironmentOutput{}
   150  	req = c.newRequest(op, input, output)
   151  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   152  	return
   153  }
   154  
   155  // DeleteEnvironment API operation for FinSpace User Environment Management service.
   156  //
   157  // Delete an FinSpace environment.
   158  //
   159  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   160  // with awserr.Error's Code and Message methods to get detailed information about
   161  // the error.
   162  //
   163  // See the AWS API reference guide for FinSpace User Environment Management service's
   164  // API operation DeleteEnvironment for usage and error information.
   165  //
   166  // Returned Error Types:
   167  //   * ResourceNotFoundException
   168  //   One or more resources can't be found.
   169  //
   170  //   * InternalServerException
   171  //   The request processing has failed because of an unknown error, exception
   172  //   or failure.
   173  //
   174  //   * AccessDeniedException
   175  //   You do not have sufficient access to perform this action.
   176  //
   177  //   * ThrottlingException
   178  //   The request was denied due to request throttling.
   179  //
   180  //   * ValidationException
   181  //   The input fails to satisfy the constraints specified by an AWS service.
   182  //
   183  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/DeleteEnvironment
   184  func (c *Finspace) DeleteEnvironment(input *DeleteEnvironmentInput) (*DeleteEnvironmentOutput, error) {
   185  	req, out := c.DeleteEnvironmentRequest(input)
   186  	return out, req.Send()
   187  }
   188  
   189  // DeleteEnvironmentWithContext is the same as DeleteEnvironment with the addition of
   190  // the ability to pass a context and additional request options.
   191  //
   192  // See DeleteEnvironment for details on how to use this API operation.
   193  //
   194  // The context must be non-nil and will be used for request cancellation. If
   195  // the context is nil a panic will occur. In the future the SDK may create
   196  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   197  // for more information on using Contexts.
   198  func (c *Finspace) DeleteEnvironmentWithContext(ctx aws.Context, input *DeleteEnvironmentInput, opts ...request.Option) (*DeleteEnvironmentOutput, error) {
   199  	req, out := c.DeleteEnvironmentRequest(input)
   200  	req.SetContext(ctx)
   201  	req.ApplyOptions(opts...)
   202  	return out, req.Send()
   203  }
   204  
   205  const opGetEnvironment = "GetEnvironment"
   206  
   207  // GetEnvironmentRequest generates a "aws/request.Request" representing the
   208  // client's request for the GetEnvironment operation. The "output" return
   209  // value will be populated with the request's response once the request completes
   210  // successfully.
   211  //
   212  // Use "Send" method on the returned Request to send the API call to the service.
   213  // the "output" return value is not valid until after Send returns without error.
   214  //
   215  // See GetEnvironment for more information on using the GetEnvironment
   216  // API call, and error handling.
   217  //
   218  // This method is useful when you want to inject custom logic or configuration
   219  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   220  //
   221  //
   222  //    // Example sending a request using the GetEnvironmentRequest method.
   223  //    req, resp := client.GetEnvironmentRequest(params)
   224  //
   225  //    err := req.Send()
   226  //    if err == nil { // resp is now filled
   227  //        fmt.Println(resp)
   228  //    }
   229  //
   230  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/GetEnvironment
   231  func (c *Finspace) GetEnvironmentRequest(input *GetEnvironmentInput) (req *request.Request, output *GetEnvironmentOutput) {
   232  	op := &request.Operation{
   233  		Name:       opGetEnvironment,
   234  		HTTPMethod: "GET",
   235  		HTTPPath:   "/environment/{environmentId}",
   236  	}
   237  
   238  	if input == nil {
   239  		input = &GetEnvironmentInput{}
   240  	}
   241  
   242  	output = &GetEnvironmentOutput{}
   243  	req = c.newRequest(op, input, output)
   244  	return
   245  }
   246  
   247  // GetEnvironment API operation for FinSpace User Environment Management service.
   248  //
   249  // Returns the FinSpace environment object.
   250  //
   251  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   252  // with awserr.Error's Code and Message methods to get detailed information about
   253  // the error.
   254  //
   255  // See the AWS API reference guide for FinSpace User Environment Management service's
   256  // API operation GetEnvironment for usage and error information.
   257  //
   258  // Returned Error Types:
   259  //   * ResourceNotFoundException
   260  //   One or more resources can't be found.
   261  //
   262  //   * InternalServerException
   263  //   The request processing has failed because of an unknown error, exception
   264  //   or failure.
   265  //
   266  //   * ValidationException
   267  //   The input fails to satisfy the constraints specified by an AWS service.
   268  //
   269  //   * AccessDeniedException
   270  //   You do not have sufficient access to perform this action.
   271  //
   272  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/GetEnvironment
   273  func (c *Finspace) GetEnvironment(input *GetEnvironmentInput) (*GetEnvironmentOutput, error) {
   274  	req, out := c.GetEnvironmentRequest(input)
   275  	return out, req.Send()
   276  }
   277  
   278  // GetEnvironmentWithContext is the same as GetEnvironment with the addition of
   279  // the ability to pass a context and additional request options.
   280  //
   281  // See GetEnvironment for details on how to use this API operation.
   282  //
   283  // The context must be non-nil and will be used for request cancellation. If
   284  // the context is nil a panic will occur. In the future the SDK may create
   285  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   286  // for more information on using Contexts.
   287  func (c *Finspace) GetEnvironmentWithContext(ctx aws.Context, input *GetEnvironmentInput, opts ...request.Option) (*GetEnvironmentOutput, error) {
   288  	req, out := c.GetEnvironmentRequest(input)
   289  	req.SetContext(ctx)
   290  	req.ApplyOptions(opts...)
   291  	return out, req.Send()
   292  }
   293  
   294  const opListEnvironments = "ListEnvironments"
   295  
   296  // ListEnvironmentsRequest generates a "aws/request.Request" representing the
   297  // client's request for the ListEnvironments operation. The "output" return
   298  // value will be populated with the request's response once the request completes
   299  // successfully.
   300  //
   301  // Use "Send" method on the returned Request to send the API call to the service.
   302  // the "output" return value is not valid until after Send returns without error.
   303  //
   304  // See ListEnvironments for more information on using the ListEnvironments
   305  // API call, and error handling.
   306  //
   307  // This method is useful when you want to inject custom logic or configuration
   308  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   309  //
   310  //
   311  //    // Example sending a request using the ListEnvironmentsRequest method.
   312  //    req, resp := client.ListEnvironmentsRequest(params)
   313  //
   314  //    err := req.Send()
   315  //    if err == nil { // resp is now filled
   316  //        fmt.Println(resp)
   317  //    }
   318  //
   319  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/ListEnvironments
   320  func (c *Finspace) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *request.Request, output *ListEnvironmentsOutput) {
   321  	op := &request.Operation{
   322  		Name:       opListEnvironments,
   323  		HTTPMethod: "GET",
   324  		HTTPPath:   "/environment",
   325  	}
   326  
   327  	if input == nil {
   328  		input = &ListEnvironmentsInput{}
   329  	}
   330  
   331  	output = &ListEnvironmentsOutput{}
   332  	req = c.newRequest(op, input, output)
   333  	return
   334  }
   335  
   336  // ListEnvironments API operation for FinSpace User Environment Management service.
   337  //
   338  // A list of all of your FinSpace environments.
   339  //
   340  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   341  // with awserr.Error's Code and Message methods to get detailed information about
   342  // the error.
   343  //
   344  // See the AWS API reference guide for FinSpace User Environment Management service's
   345  // API operation ListEnvironments for usage and error information.
   346  //
   347  // Returned Error Types:
   348  //   * InternalServerException
   349  //   The request processing has failed because of an unknown error, exception
   350  //   or failure.
   351  //
   352  //   * ValidationException
   353  //   The input fails to satisfy the constraints specified by an AWS service.
   354  //
   355  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/ListEnvironments
   356  func (c *Finspace) ListEnvironments(input *ListEnvironmentsInput) (*ListEnvironmentsOutput, error) {
   357  	req, out := c.ListEnvironmentsRequest(input)
   358  	return out, req.Send()
   359  }
   360  
   361  // ListEnvironmentsWithContext is the same as ListEnvironments with the addition of
   362  // the ability to pass a context and additional request options.
   363  //
   364  // See ListEnvironments for details on how to use this API operation.
   365  //
   366  // The context must be non-nil and will be used for request cancellation. If
   367  // the context is nil a panic will occur. In the future the SDK may create
   368  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   369  // for more information on using Contexts.
   370  func (c *Finspace) ListEnvironmentsWithContext(ctx aws.Context, input *ListEnvironmentsInput, opts ...request.Option) (*ListEnvironmentsOutput, error) {
   371  	req, out := c.ListEnvironmentsRequest(input)
   372  	req.SetContext(ctx)
   373  	req.ApplyOptions(opts...)
   374  	return out, req.Send()
   375  }
   376  
   377  const opListTagsForResource = "ListTagsForResource"
   378  
   379  // ListTagsForResourceRequest generates a "aws/request.Request" representing the
   380  // client's request for the ListTagsForResource operation. The "output" return
   381  // value will be populated with the request's response once the request completes
   382  // successfully.
   383  //
   384  // Use "Send" method on the returned Request to send the API call to the service.
   385  // the "output" return value is not valid until after Send returns without error.
   386  //
   387  // See ListTagsForResource for more information on using the ListTagsForResource
   388  // API call, and error handling.
   389  //
   390  // This method is useful when you want to inject custom logic or configuration
   391  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   392  //
   393  //
   394  //    // Example sending a request using the ListTagsForResourceRequest method.
   395  //    req, resp := client.ListTagsForResourceRequest(params)
   396  //
   397  //    err := req.Send()
   398  //    if err == nil { // resp is now filled
   399  //        fmt.Println(resp)
   400  //    }
   401  //
   402  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/ListTagsForResource
   403  func (c *Finspace) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
   404  	op := &request.Operation{
   405  		Name:       opListTagsForResource,
   406  		HTTPMethod: "GET",
   407  		HTTPPath:   "/tags/{resourceArn}",
   408  	}
   409  
   410  	if input == nil {
   411  		input = &ListTagsForResourceInput{}
   412  	}
   413  
   414  	output = &ListTagsForResourceOutput{}
   415  	req = c.newRequest(op, input, output)
   416  	return
   417  }
   418  
   419  // ListTagsForResource API operation for FinSpace User Environment Management service.
   420  //
   421  // A list of all tags for a resource.
   422  //
   423  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   424  // with awserr.Error's Code and Message methods to get detailed information about
   425  // the error.
   426  //
   427  // See the AWS API reference guide for FinSpace User Environment Management service's
   428  // API operation ListTagsForResource for usage and error information.
   429  //
   430  // Returned Error Types:
   431  //   * InternalServerException
   432  //   The request processing has failed because of an unknown error, exception
   433  //   or failure.
   434  //
   435  //   * InvalidRequestException
   436  //   The request is invalid. Something is wrong with the input to the request.
   437  //
   438  //   * ResourceNotFoundException
   439  //   One or more resources can't be found.
   440  //
   441  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/ListTagsForResource
   442  func (c *Finspace) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
   443  	req, out := c.ListTagsForResourceRequest(input)
   444  	return out, req.Send()
   445  }
   446  
   447  // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
   448  // the ability to pass a context and additional request options.
   449  //
   450  // See ListTagsForResource for details on how to use this API operation.
   451  //
   452  // The context must be non-nil and will be used for request cancellation. If
   453  // the context is nil a panic will occur. In the future the SDK may create
   454  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   455  // for more information on using Contexts.
   456  func (c *Finspace) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
   457  	req, out := c.ListTagsForResourceRequest(input)
   458  	req.SetContext(ctx)
   459  	req.ApplyOptions(opts...)
   460  	return out, req.Send()
   461  }
   462  
   463  const opTagResource = "TagResource"
   464  
   465  // TagResourceRequest generates a "aws/request.Request" representing the
   466  // client's request for the TagResource operation. The "output" return
   467  // value will be populated with the request's response once the request completes
   468  // successfully.
   469  //
   470  // Use "Send" method on the returned Request to send the API call to the service.
   471  // the "output" return value is not valid until after Send returns without error.
   472  //
   473  // See TagResource for more information on using the TagResource
   474  // API call, and error handling.
   475  //
   476  // This method is useful when you want to inject custom logic or configuration
   477  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   478  //
   479  //
   480  //    // Example sending a request using the TagResourceRequest method.
   481  //    req, resp := client.TagResourceRequest(params)
   482  //
   483  //    err := req.Send()
   484  //    if err == nil { // resp is now filled
   485  //        fmt.Println(resp)
   486  //    }
   487  //
   488  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/TagResource
   489  func (c *Finspace) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
   490  	op := &request.Operation{
   491  		Name:       opTagResource,
   492  		HTTPMethod: "POST",
   493  		HTTPPath:   "/tags/{resourceArn}",
   494  	}
   495  
   496  	if input == nil {
   497  		input = &TagResourceInput{}
   498  	}
   499  
   500  	output = &TagResourceOutput{}
   501  	req = c.newRequest(op, input, output)
   502  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   503  	return
   504  }
   505  
   506  // TagResource API operation for FinSpace User Environment Management service.
   507  //
   508  // Adds metadata tags to a FinSpace resource.
   509  //
   510  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   511  // with awserr.Error's Code and Message methods to get detailed information about
   512  // the error.
   513  //
   514  // See the AWS API reference guide for FinSpace User Environment Management service's
   515  // API operation TagResource for usage and error information.
   516  //
   517  // Returned Error Types:
   518  //   * InternalServerException
   519  //   The request processing has failed because of an unknown error, exception
   520  //   or failure.
   521  //
   522  //   * InvalidRequestException
   523  //   The request is invalid. Something is wrong with the input to the request.
   524  //
   525  //   * ResourceNotFoundException
   526  //   One or more resources can't be found.
   527  //
   528  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/TagResource
   529  func (c *Finspace) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
   530  	req, out := c.TagResourceRequest(input)
   531  	return out, req.Send()
   532  }
   533  
   534  // TagResourceWithContext is the same as TagResource with the addition of
   535  // the ability to pass a context and additional request options.
   536  //
   537  // See TagResource for details on how to use this API operation.
   538  //
   539  // The context must be non-nil and will be used for request cancellation. If
   540  // the context is nil a panic will occur. In the future the SDK may create
   541  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   542  // for more information on using Contexts.
   543  func (c *Finspace) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
   544  	req, out := c.TagResourceRequest(input)
   545  	req.SetContext(ctx)
   546  	req.ApplyOptions(opts...)
   547  	return out, req.Send()
   548  }
   549  
   550  const opUntagResource = "UntagResource"
   551  
   552  // UntagResourceRequest generates a "aws/request.Request" representing the
   553  // client's request for the UntagResource operation. The "output" return
   554  // value will be populated with the request's response once the request completes
   555  // successfully.
   556  //
   557  // Use "Send" method on the returned Request to send the API call to the service.
   558  // the "output" return value is not valid until after Send returns without error.
   559  //
   560  // See UntagResource for more information on using the UntagResource
   561  // API call, and error handling.
   562  //
   563  // This method is useful when you want to inject custom logic or configuration
   564  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   565  //
   566  //
   567  //    // Example sending a request using the UntagResourceRequest method.
   568  //    req, resp := client.UntagResourceRequest(params)
   569  //
   570  //    err := req.Send()
   571  //    if err == nil { // resp is now filled
   572  //        fmt.Println(resp)
   573  //    }
   574  //
   575  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UntagResource
   576  func (c *Finspace) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
   577  	op := &request.Operation{
   578  		Name:       opUntagResource,
   579  		HTTPMethod: "DELETE",
   580  		HTTPPath:   "/tags/{resourceArn}",
   581  	}
   582  
   583  	if input == nil {
   584  		input = &UntagResourceInput{}
   585  	}
   586  
   587  	output = &UntagResourceOutput{}
   588  	req = c.newRequest(op, input, output)
   589  	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
   590  	return
   591  }
   592  
   593  // UntagResource API operation for FinSpace User Environment Management service.
   594  //
   595  // Removes metadata tags from a FinSpace resource.
   596  //
   597  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   598  // with awserr.Error's Code and Message methods to get detailed information about
   599  // the error.
   600  //
   601  // See the AWS API reference guide for FinSpace User Environment Management service's
   602  // API operation UntagResource for usage and error information.
   603  //
   604  // Returned Error Types:
   605  //   * InternalServerException
   606  //   The request processing has failed because of an unknown error, exception
   607  //   or failure.
   608  //
   609  //   * InvalidRequestException
   610  //   The request is invalid. Something is wrong with the input to the request.
   611  //
   612  //   * ResourceNotFoundException
   613  //   One or more resources can't be found.
   614  //
   615  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UntagResource
   616  func (c *Finspace) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
   617  	req, out := c.UntagResourceRequest(input)
   618  	return out, req.Send()
   619  }
   620  
   621  // UntagResourceWithContext is the same as UntagResource with the addition of
   622  // the ability to pass a context and additional request options.
   623  //
   624  // See UntagResource for details on how to use this API operation.
   625  //
   626  // The context must be non-nil and will be used for request cancellation. If
   627  // the context is nil a panic will occur. In the future the SDK may create
   628  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   629  // for more information on using Contexts.
   630  func (c *Finspace) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
   631  	req, out := c.UntagResourceRequest(input)
   632  	req.SetContext(ctx)
   633  	req.ApplyOptions(opts...)
   634  	return out, req.Send()
   635  }
   636  
   637  const opUpdateEnvironment = "UpdateEnvironment"
   638  
   639  // UpdateEnvironmentRequest generates a "aws/request.Request" representing the
   640  // client's request for the UpdateEnvironment operation. The "output" return
   641  // value will be populated with the request's response once the request completes
   642  // successfully.
   643  //
   644  // Use "Send" method on the returned Request to send the API call to the service.
   645  // the "output" return value is not valid until after Send returns without error.
   646  //
   647  // See UpdateEnvironment for more information on using the UpdateEnvironment
   648  // API call, and error handling.
   649  //
   650  // This method is useful when you want to inject custom logic or configuration
   651  // into the SDK's request lifecycle. Such as custom headers, or retry logic.
   652  //
   653  //
   654  //    // Example sending a request using the UpdateEnvironmentRequest method.
   655  //    req, resp := client.UpdateEnvironmentRequest(params)
   656  //
   657  //    err := req.Send()
   658  //    if err == nil { // resp is now filled
   659  //        fmt.Println(resp)
   660  //    }
   661  //
   662  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UpdateEnvironment
   663  func (c *Finspace) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *UpdateEnvironmentOutput) {
   664  	op := &request.Operation{
   665  		Name:       opUpdateEnvironment,
   666  		HTTPMethod: "PUT",
   667  		HTTPPath:   "/environment/{environmentId}",
   668  	}
   669  
   670  	if input == nil {
   671  		input = &UpdateEnvironmentInput{}
   672  	}
   673  
   674  	output = &UpdateEnvironmentOutput{}
   675  	req = c.newRequest(op, input, output)
   676  	return
   677  }
   678  
   679  // UpdateEnvironment API operation for FinSpace User Environment Management service.
   680  //
   681  // Update your FinSpace environment.
   682  //
   683  // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
   684  // with awserr.Error's Code and Message methods to get detailed information about
   685  // the error.
   686  //
   687  // See the AWS API reference guide for FinSpace User Environment Management service's
   688  // API operation UpdateEnvironment for usage and error information.
   689  //
   690  // Returned Error Types:
   691  //   * ResourceNotFoundException
   692  //   One or more resources can't be found.
   693  //
   694  //   * InternalServerException
   695  //   The request processing has failed because of an unknown error, exception
   696  //   or failure.
   697  //
   698  //   * AccessDeniedException
   699  //   You do not have sufficient access to perform this action.
   700  //
   701  //   * ThrottlingException
   702  //   The request was denied due to request throttling.
   703  //
   704  //   * ValidationException
   705  //   The input fails to satisfy the constraints specified by an AWS service.
   706  //
   707  // See also, https://docs.aws.amazon.com/goto/WebAPI/finspace-2021-03-12/UpdateEnvironment
   708  func (c *Finspace) UpdateEnvironment(input *UpdateEnvironmentInput) (*UpdateEnvironmentOutput, error) {
   709  	req, out := c.UpdateEnvironmentRequest(input)
   710  	return out, req.Send()
   711  }
   712  
   713  // UpdateEnvironmentWithContext is the same as UpdateEnvironment with the addition of
   714  // the ability to pass a context and additional request options.
   715  //
   716  // See UpdateEnvironment for details on how to use this API operation.
   717  //
   718  // The context must be non-nil and will be used for request cancellation. If
   719  // the context is nil a panic will occur. In the future the SDK may create
   720  // sub-contexts for http.Requests. See https://golang.org/pkg/context/
   721  // for more information on using Contexts.
   722  func (c *Finspace) UpdateEnvironmentWithContext(ctx aws.Context, input *UpdateEnvironmentInput, opts ...request.Option) (*UpdateEnvironmentOutput, error) {
   723  	req, out := c.UpdateEnvironmentRequest(input)
   724  	req.SetContext(ctx)
   725  	req.ApplyOptions(opts...)
   726  	return out, req.Send()
   727  }
   728  
   729  // You do not have sufficient access to perform this action.
   730  type AccessDeniedException struct {
   731  	_            struct{}                  `type:"structure"`
   732  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
   733  
   734  	Message_ *string `locationName:"message" type:"string"`
   735  }
   736  
   737  // String returns the string representation.
   738  //
   739  // API parameter values that are decorated as "sensitive" in the API will not
   740  // be included in the string output. The member name will be present, but the
   741  // value will be replaced with "sensitive".
   742  func (s AccessDeniedException) String() string {
   743  	return awsutil.Prettify(s)
   744  }
   745  
   746  // GoString returns the string representation.
   747  //
   748  // API parameter values that are decorated as "sensitive" in the API will not
   749  // be included in the string output. The member name will be present, but the
   750  // value will be replaced with "sensitive".
   751  func (s AccessDeniedException) GoString() string {
   752  	return s.String()
   753  }
   754  
   755  func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
   756  	return &AccessDeniedException{
   757  		RespMetadata: v,
   758  	}
   759  }
   760  
   761  // Code returns the exception type name.
   762  func (s *AccessDeniedException) Code() string {
   763  	return "AccessDeniedException"
   764  }
   765  
   766  // Message returns the exception's message.
   767  func (s *AccessDeniedException) Message() string {
   768  	if s.Message_ != nil {
   769  		return *s.Message_
   770  	}
   771  	return ""
   772  }
   773  
   774  // OrigErr always returns nil, satisfies awserr.Error interface.
   775  func (s *AccessDeniedException) OrigErr() error {
   776  	return nil
   777  }
   778  
   779  func (s *AccessDeniedException) Error() string {
   780  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
   781  }
   782  
   783  // Status code returns the HTTP status code for the request's response error.
   784  func (s *AccessDeniedException) StatusCode() int {
   785  	return s.RespMetadata.StatusCode
   786  }
   787  
   788  // RequestID returns the service's response RequestID for request.
   789  func (s *AccessDeniedException) RequestID() string {
   790  	return s.RespMetadata.RequestID
   791  }
   792  
   793  type CreateEnvironmentInput struct {
   794  	_ struct{} `type:"structure"`
   795  
   796  	// The description of the FinSpace environment to be created.
   797  	Description *string `locationName:"description" min:"1" type:"string"`
   798  
   799  	// Authentication mode for the environment.
   800  	//
   801  	//    * FEDERATED - Users access FinSpace through Single Sign On (SSO) via your
   802  	//    Identity provider.
   803  	//
   804  	//    * LOCAL - Users access FinSpace via email and password managed within
   805  	//    the FinSpace environment.
   806  	FederationMode *string `locationName:"federationMode" type:"string" enum:"FederationMode"`
   807  
   808  	// Configuration information when authentication mode is FEDERATED.
   809  	FederationParameters *FederationParameters `locationName:"federationParameters" type:"structure"`
   810  
   811  	// The KMS key id to encrypt your data in the FinSpace environment.
   812  	KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"`
   813  
   814  	// The name of the FinSpace environment to be created.
   815  	//
   816  	// Name is a required field
   817  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
   818  
   819  	// Add tags to your FinSpace environment.
   820  	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
   821  }
   822  
   823  // String returns the string representation.
   824  //
   825  // API parameter values that are decorated as "sensitive" in the API will not
   826  // be included in the string output. The member name will be present, but the
   827  // value will be replaced with "sensitive".
   828  func (s CreateEnvironmentInput) String() string {
   829  	return awsutil.Prettify(s)
   830  }
   831  
   832  // GoString returns the string representation.
   833  //
   834  // API parameter values that are decorated as "sensitive" in the API will not
   835  // be included in the string output. The member name will be present, but the
   836  // value will be replaced with "sensitive".
   837  func (s CreateEnvironmentInput) GoString() string {
   838  	return s.String()
   839  }
   840  
   841  // Validate inspects the fields of the type to determine if they are valid.
   842  func (s *CreateEnvironmentInput) Validate() error {
   843  	invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentInput"}
   844  	if s.Description != nil && len(*s.Description) < 1 {
   845  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
   846  	}
   847  	if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 {
   848  		invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1))
   849  	}
   850  	if s.Name == nil {
   851  		invalidParams.Add(request.NewErrParamRequired("Name"))
   852  	}
   853  	if s.Name != nil && len(*s.Name) < 1 {
   854  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
   855  	}
   856  	if s.Tags != nil && len(s.Tags) < 1 {
   857  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
   858  	}
   859  	if s.FederationParameters != nil {
   860  		if err := s.FederationParameters.Validate(); err != nil {
   861  			invalidParams.AddNested("FederationParameters", err.(request.ErrInvalidParams))
   862  		}
   863  	}
   864  
   865  	if invalidParams.Len() > 0 {
   866  		return invalidParams
   867  	}
   868  	return nil
   869  }
   870  
   871  // SetDescription sets the Description field's value.
   872  func (s *CreateEnvironmentInput) SetDescription(v string) *CreateEnvironmentInput {
   873  	s.Description = &v
   874  	return s
   875  }
   876  
   877  // SetFederationMode sets the FederationMode field's value.
   878  func (s *CreateEnvironmentInput) SetFederationMode(v string) *CreateEnvironmentInput {
   879  	s.FederationMode = &v
   880  	return s
   881  }
   882  
   883  // SetFederationParameters sets the FederationParameters field's value.
   884  func (s *CreateEnvironmentInput) SetFederationParameters(v *FederationParameters) *CreateEnvironmentInput {
   885  	s.FederationParameters = v
   886  	return s
   887  }
   888  
   889  // SetKmsKeyId sets the KmsKeyId field's value.
   890  func (s *CreateEnvironmentInput) SetKmsKeyId(v string) *CreateEnvironmentInput {
   891  	s.KmsKeyId = &v
   892  	return s
   893  }
   894  
   895  // SetName sets the Name field's value.
   896  func (s *CreateEnvironmentInput) SetName(v string) *CreateEnvironmentInput {
   897  	s.Name = &v
   898  	return s
   899  }
   900  
   901  // SetTags sets the Tags field's value.
   902  func (s *CreateEnvironmentInput) SetTags(v map[string]*string) *CreateEnvironmentInput {
   903  	s.Tags = v
   904  	return s
   905  }
   906  
   907  type CreateEnvironmentOutput struct {
   908  	_ struct{} `type:"structure"`
   909  
   910  	// The Amazon Resource Name (ARN) of the FinSpace environment that you created.
   911  	EnvironmentArn *string `locationName:"environmentArn" min:"20" type:"string"`
   912  
   913  	// The unique identifier for FinSpace environment that you created.
   914  	EnvironmentId *string `locationName:"environmentId" min:"1" type:"string"`
   915  
   916  	// The sign-in url for the web application of the FinSpace environment you created.
   917  	EnvironmentUrl *string `locationName:"environmentUrl" min:"1" type:"string"`
   918  }
   919  
   920  // String returns the string representation.
   921  //
   922  // API parameter values that are decorated as "sensitive" in the API will not
   923  // be included in the string output. The member name will be present, but the
   924  // value will be replaced with "sensitive".
   925  func (s CreateEnvironmentOutput) String() string {
   926  	return awsutil.Prettify(s)
   927  }
   928  
   929  // GoString returns the string representation.
   930  //
   931  // API parameter values that are decorated as "sensitive" in the API will not
   932  // be included in the string output. The member name will be present, but the
   933  // value will be replaced with "sensitive".
   934  func (s CreateEnvironmentOutput) GoString() string {
   935  	return s.String()
   936  }
   937  
   938  // SetEnvironmentArn sets the EnvironmentArn field's value.
   939  func (s *CreateEnvironmentOutput) SetEnvironmentArn(v string) *CreateEnvironmentOutput {
   940  	s.EnvironmentArn = &v
   941  	return s
   942  }
   943  
   944  // SetEnvironmentId sets the EnvironmentId field's value.
   945  func (s *CreateEnvironmentOutput) SetEnvironmentId(v string) *CreateEnvironmentOutput {
   946  	s.EnvironmentId = &v
   947  	return s
   948  }
   949  
   950  // SetEnvironmentUrl sets the EnvironmentUrl field's value.
   951  func (s *CreateEnvironmentOutput) SetEnvironmentUrl(v string) *CreateEnvironmentOutput {
   952  	s.EnvironmentUrl = &v
   953  	return s
   954  }
   955  
   956  type DeleteEnvironmentInput struct {
   957  	_ struct{} `type:"structure" nopayload:"true"`
   958  
   959  	// The identifier for the FinSpace environment.
   960  	//
   961  	// EnvironmentId is a required field
   962  	EnvironmentId *string `location:"uri" locationName:"environmentId" min:"1" type:"string" required:"true"`
   963  }
   964  
   965  // String returns the string representation.
   966  //
   967  // API parameter values that are decorated as "sensitive" in the API will not
   968  // be included in the string output. The member name will be present, but the
   969  // value will be replaced with "sensitive".
   970  func (s DeleteEnvironmentInput) String() string {
   971  	return awsutil.Prettify(s)
   972  }
   973  
   974  // GoString returns the string representation.
   975  //
   976  // API parameter values that are decorated as "sensitive" in the API will not
   977  // be included in the string output. The member name will be present, but the
   978  // value will be replaced with "sensitive".
   979  func (s DeleteEnvironmentInput) GoString() string {
   980  	return s.String()
   981  }
   982  
   983  // Validate inspects the fields of the type to determine if they are valid.
   984  func (s *DeleteEnvironmentInput) Validate() error {
   985  	invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentInput"}
   986  	if s.EnvironmentId == nil {
   987  		invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
   988  	}
   989  	if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
   990  		invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
   991  	}
   992  
   993  	if invalidParams.Len() > 0 {
   994  		return invalidParams
   995  	}
   996  	return nil
   997  }
   998  
   999  // SetEnvironmentId sets the EnvironmentId field's value.
  1000  func (s *DeleteEnvironmentInput) SetEnvironmentId(v string) *DeleteEnvironmentInput {
  1001  	s.EnvironmentId = &v
  1002  	return s
  1003  }
  1004  
  1005  type DeleteEnvironmentOutput struct {
  1006  	_ struct{} `type:"structure" nopayload:"true"`
  1007  }
  1008  
  1009  // String returns the string representation.
  1010  //
  1011  // API parameter values that are decorated as "sensitive" in the API will not
  1012  // be included in the string output. The member name will be present, but the
  1013  // value will be replaced with "sensitive".
  1014  func (s DeleteEnvironmentOutput) String() string {
  1015  	return awsutil.Prettify(s)
  1016  }
  1017  
  1018  // GoString returns the string representation.
  1019  //
  1020  // API parameter values that are decorated as "sensitive" in the API will not
  1021  // be included in the string output. The member name will be present, but the
  1022  // value will be replaced with "sensitive".
  1023  func (s DeleteEnvironmentOutput) GoString() string {
  1024  	return s.String()
  1025  }
  1026  
  1027  // Represents an FinSpace environment.
  1028  type Environment struct {
  1029  	_ struct{} `type:"structure"`
  1030  
  1031  	// The ID of the AWS account in which the FinSpace environment is created.
  1032  	AwsAccountId *string `locationName:"awsAccountId" min:"1" type:"string"`
  1033  
  1034  	// The AWS account ID of the dedicated service account associated with your
  1035  	// FinSpace environment.
  1036  	DedicatedServiceAccountId *string `locationName:"dedicatedServiceAccountId" min:"1" type:"string"`
  1037  
  1038  	// The description of the FinSpace environment.
  1039  	Description *string `locationName:"description" min:"1" type:"string"`
  1040  
  1041  	// The Amazon Resource Name (ARN) of your FinSpace environment.
  1042  	EnvironmentArn *string `locationName:"environmentArn" min:"20" type:"string"`
  1043  
  1044  	// The identifier of the FinSpace environment.
  1045  	EnvironmentId *string `locationName:"environmentId" min:"1" type:"string"`
  1046  
  1047  	// The sign-in url for the web application of your FinSpace environment.
  1048  	EnvironmentUrl *string `locationName:"environmentUrl" min:"1" type:"string"`
  1049  
  1050  	// The authentication mode for the environment.
  1051  	FederationMode *string `locationName:"federationMode" type:"string" enum:"FederationMode"`
  1052  
  1053  	// Configuration information when authentication mode is FEDERATED.
  1054  	FederationParameters *FederationParameters `locationName:"federationParameters" type:"structure"`
  1055  
  1056  	// The KMS key id used to encrypt in the FinSpace environment.
  1057  	KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"`
  1058  
  1059  	// The name of the FinSpace environment.
  1060  	Name *string `locationName:"name" min:"1" type:"string"`
  1061  
  1062  	// The url of the integrated FinSpace notebook environment in your web application.
  1063  	SageMakerStudioDomainUrl *string `locationName:"sageMakerStudioDomainUrl" min:"1" type:"string"`
  1064  
  1065  	// The current status of creation of the FinSpace environment.
  1066  	Status *string `locationName:"status" type:"string" enum:"EnvironmentStatus"`
  1067  }
  1068  
  1069  // String returns the string representation.
  1070  //
  1071  // API parameter values that are decorated as "sensitive" in the API will not
  1072  // be included in the string output. The member name will be present, but the
  1073  // value will be replaced with "sensitive".
  1074  func (s Environment) String() string {
  1075  	return awsutil.Prettify(s)
  1076  }
  1077  
  1078  // GoString returns the string representation.
  1079  //
  1080  // API parameter values that are decorated as "sensitive" in the API will not
  1081  // be included in the string output. The member name will be present, but the
  1082  // value will be replaced with "sensitive".
  1083  func (s Environment) GoString() string {
  1084  	return s.String()
  1085  }
  1086  
  1087  // SetAwsAccountId sets the AwsAccountId field's value.
  1088  func (s *Environment) SetAwsAccountId(v string) *Environment {
  1089  	s.AwsAccountId = &v
  1090  	return s
  1091  }
  1092  
  1093  // SetDedicatedServiceAccountId sets the DedicatedServiceAccountId field's value.
  1094  func (s *Environment) SetDedicatedServiceAccountId(v string) *Environment {
  1095  	s.DedicatedServiceAccountId = &v
  1096  	return s
  1097  }
  1098  
  1099  // SetDescription sets the Description field's value.
  1100  func (s *Environment) SetDescription(v string) *Environment {
  1101  	s.Description = &v
  1102  	return s
  1103  }
  1104  
  1105  // SetEnvironmentArn sets the EnvironmentArn field's value.
  1106  func (s *Environment) SetEnvironmentArn(v string) *Environment {
  1107  	s.EnvironmentArn = &v
  1108  	return s
  1109  }
  1110  
  1111  // SetEnvironmentId sets the EnvironmentId field's value.
  1112  func (s *Environment) SetEnvironmentId(v string) *Environment {
  1113  	s.EnvironmentId = &v
  1114  	return s
  1115  }
  1116  
  1117  // SetEnvironmentUrl sets the EnvironmentUrl field's value.
  1118  func (s *Environment) SetEnvironmentUrl(v string) *Environment {
  1119  	s.EnvironmentUrl = &v
  1120  	return s
  1121  }
  1122  
  1123  // SetFederationMode sets the FederationMode field's value.
  1124  func (s *Environment) SetFederationMode(v string) *Environment {
  1125  	s.FederationMode = &v
  1126  	return s
  1127  }
  1128  
  1129  // SetFederationParameters sets the FederationParameters field's value.
  1130  func (s *Environment) SetFederationParameters(v *FederationParameters) *Environment {
  1131  	s.FederationParameters = v
  1132  	return s
  1133  }
  1134  
  1135  // SetKmsKeyId sets the KmsKeyId field's value.
  1136  func (s *Environment) SetKmsKeyId(v string) *Environment {
  1137  	s.KmsKeyId = &v
  1138  	return s
  1139  }
  1140  
  1141  // SetName sets the Name field's value.
  1142  func (s *Environment) SetName(v string) *Environment {
  1143  	s.Name = &v
  1144  	return s
  1145  }
  1146  
  1147  // SetSageMakerStudioDomainUrl sets the SageMakerStudioDomainUrl field's value.
  1148  func (s *Environment) SetSageMakerStudioDomainUrl(v string) *Environment {
  1149  	s.SageMakerStudioDomainUrl = &v
  1150  	return s
  1151  }
  1152  
  1153  // SetStatus sets the Status field's value.
  1154  func (s *Environment) SetStatus(v string) *Environment {
  1155  	s.Status = &v
  1156  	return s
  1157  }
  1158  
  1159  // Configuration information when authentication mode is FEDERATED.
  1160  type FederationParameters struct {
  1161  	_ struct{} `type:"structure"`
  1162  
  1163  	// The redirect or sign-in URL that should be entered into the SAML 2.0 compliant
  1164  	// identity provider configuration (IdP).
  1165  	ApplicationCallBackURL *string `locationName:"applicationCallBackURL" min:"1" type:"string"`
  1166  
  1167  	// SAML attribute name and value. The name must always be Email and the value
  1168  	// should be set to the attribute definition in which user email is set. For
  1169  	// example, name would be Email and value http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress.
  1170  	// Please check your SAML 2.0 compliant identity provider (IdP) documentation
  1171  	// for details.
  1172  	AttributeMap map[string]*string `locationName:"attributeMap" type:"map"`
  1173  
  1174  	// Name of the identity provider (IdP).
  1175  	FederationProviderName *string `locationName:"federationProviderName" min:"1" type:"string"`
  1176  
  1177  	// The Uniform Resource Name (URN). Also referred as Service Provider URN or
  1178  	// Audience URI or Service Provider Entity ID.
  1179  	FederationURN *string `locationName:"federationURN" min:"1" type:"string"`
  1180  
  1181  	// SAML 2.0 Metadata document from identity provider (IdP).
  1182  	SamlMetadataDocument *string `locationName:"samlMetadataDocument" min:"1000" type:"string"`
  1183  
  1184  	// Provide the metadata URL from your SAML 2.0 compliant identity provider (IdP).
  1185  	SamlMetadataURL *string `locationName:"samlMetadataURL" min:"1" type:"string"`
  1186  }
  1187  
  1188  // String returns the string representation.
  1189  //
  1190  // API parameter values that are decorated as "sensitive" in the API will not
  1191  // be included in the string output. The member name will be present, but the
  1192  // value will be replaced with "sensitive".
  1193  func (s FederationParameters) String() string {
  1194  	return awsutil.Prettify(s)
  1195  }
  1196  
  1197  // GoString returns the string representation.
  1198  //
  1199  // API parameter values that are decorated as "sensitive" in the API will not
  1200  // be included in the string output. The member name will be present, but the
  1201  // value will be replaced with "sensitive".
  1202  func (s FederationParameters) GoString() string {
  1203  	return s.String()
  1204  }
  1205  
  1206  // Validate inspects the fields of the type to determine if they are valid.
  1207  func (s *FederationParameters) Validate() error {
  1208  	invalidParams := request.ErrInvalidParams{Context: "FederationParameters"}
  1209  	if s.ApplicationCallBackURL != nil && len(*s.ApplicationCallBackURL) < 1 {
  1210  		invalidParams.Add(request.NewErrParamMinLen("ApplicationCallBackURL", 1))
  1211  	}
  1212  	if s.FederationProviderName != nil && len(*s.FederationProviderName) < 1 {
  1213  		invalidParams.Add(request.NewErrParamMinLen("FederationProviderName", 1))
  1214  	}
  1215  	if s.FederationURN != nil && len(*s.FederationURN) < 1 {
  1216  		invalidParams.Add(request.NewErrParamMinLen("FederationURN", 1))
  1217  	}
  1218  	if s.SamlMetadataDocument != nil && len(*s.SamlMetadataDocument) < 1000 {
  1219  		invalidParams.Add(request.NewErrParamMinLen("SamlMetadataDocument", 1000))
  1220  	}
  1221  	if s.SamlMetadataURL != nil && len(*s.SamlMetadataURL) < 1 {
  1222  		invalidParams.Add(request.NewErrParamMinLen("SamlMetadataURL", 1))
  1223  	}
  1224  
  1225  	if invalidParams.Len() > 0 {
  1226  		return invalidParams
  1227  	}
  1228  	return nil
  1229  }
  1230  
  1231  // SetApplicationCallBackURL sets the ApplicationCallBackURL field's value.
  1232  func (s *FederationParameters) SetApplicationCallBackURL(v string) *FederationParameters {
  1233  	s.ApplicationCallBackURL = &v
  1234  	return s
  1235  }
  1236  
  1237  // SetAttributeMap sets the AttributeMap field's value.
  1238  func (s *FederationParameters) SetAttributeMap(v map[string]*string) *FederationParameters {
  1239  	s.AttributeMap = v
  1240  	return s
  1241  }
  1242  
  1243  // SetFederationProviderName sets the FederationProviderName field's value.
  1244  func (s *FederationParameters) SetFederationProviderName(v string) *FederationParameters {
  1245  	s.FederationProviderName = &v
  1246  	return s
  1247  }
  1248  
  1249  // SetFederationURN sets the FederationURN field's value.
  1250  func (s *FederationParameters) SetFederationURN(v string) *FederationParameters {
  1251  	s.FederationURN = &v
  1252  	return s
  1253  }
  1254  
  1255  // SetSamlMetadataDocument sets the SamlMetadataDocument field's value.
  1256  func (s *FederationParameters) SetSamlMetadataDocument(v string) *FederationParameters {
  1257  	s.SamlMetadataDocument = &v
  1258  	return s
  1259  }
  1260  
  1261  // SetSamlMetadataURL sets the SamlMetadataURL field's value.
  1262  func (s *FederationParameters) SetSamlMetadataURL(v string) *FederationParameters {
  1263  	s.SamlMetadataURL = &v
  1264  	return s
  1265  }
  1266  
  1267  type GetEnvironmentInput struct {
  1268  	_ struct{} `type:"structure" nopayload:"true"`
  1269  
  1270  	// The identifier of the FinSpace environment.
  1271  	//
  1272  	// EnvironmentId is a required field
  1273  	EnvironmentId *string `location:"uri" locationName:"environmentId" min:"1" type:"string" required:"true"`
  1274  }
  1275  
  1276  // String returns the string representation.
  1277  //
  1278  // API parameter values that are decorated as "sensitive" in the API will not
  1279  // be included in the string output. The member name will be present, but the
  1280  // value will be replaced with "sensitive".
  1281  func (s GetEnvironmentInput) String() string {
  1282  	return awsutil.Prettify(s)
  1283  }
  1284  
  1285  // GoString returns the string representation.
  1286  //
  1287  // API parameter values that are decorated as "sensitive" in the API will not
  1288  // be included in the string output. The member name will be present, but the
  1289  // value will be replaced with "sensitive".
  1290  func (s GetEnvironmentInput) GoString() string {
  1291  	return s.String()
  1292  }
  1293  
  1294  // Validate inspects the fields of the type to determine if they are valid.
  1295  func (s *GetEnvironmentInput) Validate() error {
  1296  	invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentInput"}
  1297  	if s.EnvironmentId == nil {
  1298  		invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
  1299  	}
  1300  	if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
  1301  		invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
  1302  	}
  1303  
  1304  	if invalidParams.Len() > 0 {
  1305  		return invalidParams
  1306  	}
  1307  	return nil
  1308  }
  1309  
  1310  // SetEnvironmentId sets the EnvironmentId field's value.
  1311  func (s *GetEnvironmentInput) SetEnvironmentId(v string) *GetEnvironmentInput {
  1312  	s.EnvironmentId = &v
  1313  	return s
  1314  }
  1315  
  1316  type GetEnvironmentOutput struct {
  1317  	_ struct{} `type:"structure"`
  1318  
  1319  	// The name of the FinSpace environment.
  1320  	Environment *Environment `locationName:"environment" type:"structure"`
  1321  }
  1322  
  1323  // String returns the string representation.
  1324  //
  1325  // API parameter values that are decorated as "sensitive" in the API will not
  1326  // be included in the string output. The member name will be present, but the
  1327  // value will be replaced with "sensitive".
  1328  func (s GetEnvironmentOutput) String() string {
  1329  	return awsutil.Prettify(s)
  1330  }
  1331  
  1332  // GoString returns the string representation.
  1333  //
  1334  // API parameter values that are decorated as "sensitive" in the API will not
  1335  // be included in the string output. The member name will be present, but the
  1336  // value will be replaced with "sensitive".
  1337  func (s GetEnvironmentOutput) GoString() string {
  1338  	return s.String()
  1339  }
  1340  
  1341  // SetEnvironment sets the Environment field's value.
  1342  func (s *GetEnvironmentOutput) SetEnvironment(v *Environment) *GetEnvironmentOutput {
  1343  	s.Environment = v
  1344  	return s
  1345  }
  1346  
  1347  // The request processing has failed because of an unknown error, exception
  1348  // or failure.
  1349  type InternalServerException struct {
  1350  	_            struct{}                  `type:"structure"`
  1351  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1352  
  1353  	Message_ *string `locationName:"message" type:"string"`
  1354  }
  1355  
  1356  // String returns the string representation.
  1357  //
  1358  // API parameter values that are decorated as "sensitive" in the API will not
  1359  // be included in the string output. The member name will be present, but the
  1360  // value will be replaced with "sensitive".
  1361  func (s InternalServerException) String() string {
  1362  	return awsutil.Prettify(s)
  1363  }
  1364  
  1365  // GoString returns the string representation.
  1366  //
  1367  // API parameter values that are decorated as "sensitive" in the API will not
  1368  // be included in the string output. The member name will be present, but the
  1369  // value will be replaced with "sensitive".
  1370  func (s InternalServerException) GoString() string {
  1371  	return s.String()
  1372  }
  1373  
  1374  func newErrorInternalServerException(v protocol.ResponseMetadata) error {
  1375  	return &InternalServerException{
  1376  		RespMetadata: v,
  1377  	}
  1378  }
  1379  
  1380  // Code returns the exception type name.
  1381  func (s *InternalServerException) Code() string {
  1382  	return "InternalServerException"
  1383  }
  1384  
  1385  // Message returns the exception's message.
  1386  func (s *InternalServerException) Message() string {
  1387  	if s.Message_ != nil {
  1388  		return *s.Message_
  1389  	}
  1390  	return ""
  1391  }
  1392  
  1393  // OrigErr always returns nil, satisfies awserr.Error interface.
  1394  func (s *InternalServerException) OrigErr() error {
  1395  	return nil
  1396  }
  1397  
  1398  func (s *InternalServerException) Error() string {
  1399  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1400  }
  1401  
  1402  // Status code returns the HTTP status code for the request's response error.
  1403  func (s *InternalServerException) StatusCode() int {
  1404  	return s.RespMetadata.StatusCode
  1405  }
  1406  
  1407  // RequestID returns the service's response RequestID for request.
  1408  func (s *InternalServerException) RequestID() string {
  1409  	return s.RespMetadata.RequestID
  1410  }
  1411  
  1412  // The request is invalid. Something is wrong with the input to the request.
  1413  type InvalidRequestException struct {
  1414  	_            struct{}                  `type:"structure"`
  1415  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1416  
  1417  	Message_ *string `locationName:"message" type:"string"`
  1418  }
  1419  
  1420  // String returns the string representation.
  1421  //
  1422  // API parameter values that are decorated as "sensitive" in the API will not
  1423  // be included in the string output. The member name will be present, but the
  1424  // value will be replaced with "sensitive".
  1425  func (s InvalidRequestException) String() string {
  1426  	return awsutil.Prettify(s)
  1427  }
  1428  
  1429  // GoString returns the string representation.
  1430  //
  1431  // API parameter values that are decorated as "sensitive" in the API will not
  1432  // be included in the string output. The member name will be present, but the
  1433  // value will be replaced with "sensitive".
  1434  func (s InvalidRequestException) GoString() string {
  1435  	return s.String()
  1436  }
  1437  
  1438  func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
  1439  	return &InvalidRequestException{
  1440  		RespMetadata: v,
  1441  	}
  1442  }
  1443  
  1444  // Code returns the exception type name.
  1445  func (s *InvalidRequestException) Code() string {
  1446  	return "InvalidRequestException"
  1447  }
  1448  
  1449  // Message returns the exception's message.
  1450  func (s *InvalidRequestException) Message() string {
  1451  	if s.Message_ != nil {
  1452  		return *s.Message_
  1453  	}
  1454  	return ""
  1455  }
  1456  
  1457  // OrigErr always returns nil, satisfies awserr.Error interface.
  1458  func (s *InvalidRequestException) OrigErr() error {
  1459  	return nil
  1460  }
  1461  
  1462  func (s *InvalidRequestException) Error() string {
  1463  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1464  }
  1465  
  1466  // Status code returns the HTTP status code for the request's response error.
  1467  func (s *InvalidRequestException) StatusCode() int {
  1468  	return s.RespMetadata.StatusCode
  1469  }
  1470  
  1471  // RequestID returns the service's response RequestID for request.
  1472  func (s *InvalidRequestException) RequestID() string {
  1473  	return s.RespMetadata.RequestID
  1474  }
  1475  
  1476  // A service limit or quota is exceeded.
  1477  type LimitExceededException struct {
  1478  	_            struct{}                  `type:"structure"`
  1479  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1480  
  1481  	Message_ *string `locationName:"message" type:"string"`
  1482  }
  1483  
  1484  // String returns the string representation.
  1485  //
  1486  // API parameter values that are decorated as "sensitive" in the API will not
  1487  // be included in the string output. The member name will be present, but the
  1488  // value will be replaced with "sensitive".
  1489  func (s LimitExceededException) String() string {
  1490  	return awsutil.Prettify(s)
  1491  }
  1492  
  1493  // GoString returns the string representation.
  1494  //
  1495  // API parameter values that are decorated as "sensitive" in the API will not
  1496  // be included in the string output. The member name will be present, but the
  1497  // value will be replaced with "sensitive".
  1498  func (s LimitExceededException) GoString() string {
  1499  	return s.String()
  1500  }
  1501  
  1502  func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
  1503  	return &LimitExceededException{
  1504  		RespMetadata: v,
  1505  	}
  1506  }
  1507  
  1508  // Code returns the exception type name.
  1509  func (s *LimitExceededException) Code() string {
  1510  	return "LimitExceededException"
  1511  }
  1512  
  1513  // Message returns the exception's message.
  1514  func (s *LimitExceededException) Message() string {
  1515  	if s.Message_ != nil {
  1516  		return *s.Message_
  1517  	}
  1518  	return ""
  1519  }
  1520  
  1521  // OrigErr always returns nil, satisfies awserr.Error interface.
  1522  func (s *LimitExceededException) OrigErr() error {
  1523  	return nil
  1524  }
  1525  
  1526  func (s *LimitExceededException) Error() string {
  1527  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1528  }
  1529  
  1530  // Status code returns the HTTP status code for the request's response error.
  1531  func (s *LimitExceededException) StatusCode() int {
  1532  	return s.RespMetadata.StatusCode
  1533  }
  1534  
  1535  // RequestID returns the service's response RequestID for request.
  1536  func (s *LimitExceededException) RequestID() string {
  1537  	return s.RespMetadata.RequestID
  1538  }
  1539  
  1540  type ListEnvironmentsInput struct {
  1541  	_ struct{} `type:"structure" nopayload:"true"`
  1542  
  1543  	// The maximum number of results to return in this request.
  1544  	MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`
  1545  
  1546  	// A token generated by FinSpace that specifies where to continue pagination
  1547  	// if a previous request was truncated. To get the next set of pages, pass in
  1548  	// the nextToken value from the response object of the previous page call.
  1549  	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
  1550  }
  1551  
  1552  // String returns the string representation.
  1553  //
  1554  // API parameter values that are decorated as "sensitive" in the API will not
  1555  // be included in the string output. The member name will be present, but the
  1556  // value will be replaced with "sensitive".
  1557  func (s ListEnvironmentsInput) String() string {
  1558  	return awsutil.Prettify(s)
  1559  }
  1560  
  1561  // GoString returns the string representation.
  1562  //
  1563  // API parameter values that are decorated as "sensitive" in the API will not
  1564  // be included in the string output. The member name will be present, but the
  1565  // value will be replaced with "sensitive".
  1566  func (s ListEnvironmentsInput) GoString() string {
  1567  	return s.String()
  1568  }
  1569  
  1570  // Validate inspects the fields of the type to determine if they are valid.
  1571  func (s *ListEnvironmentsInput) Validate() error {
  1572  	invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentsInput"}
  1573  	if s.NextToken != nil && len(*s.NextToken) < 1 {
  1574  		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  1575  	}
  1576  
  1577  	if invalidParams.Len() > 0 {
  1578  		return invalidParams
  1579  	}
  1580  	return nil
  1581  }
  1582  
  1583  // SetMaxResults sets the MaxResults field's value.
  1584  func (s *ListEnvironmentsInput) SetMaxResults(v int64) *ListEnvironmentsInput {
  1585  	s.MaxResults = &v
  1586  	return s
  1587  }
  1588  
  1589  // SetNextToken sets the NextToken field's value.
  1590  func (s *ListEnvironmentsInput) SetNextToken(v string) *ListEnvironmentsInput {
  1591  	s.NextToken = &v
  1592  	return s
  1593  }
  1594  
  1595  type ListEnvironmentsOutput struct {
  1596  	_ struct{} `type:"structure"`
  1597  
  1598  	// A list of all of your FinSpace environments.
  1599  	Environments []*Environment `locationName:"environments" type:"list"`
  1600  
  1601  	// A token that you can use in a subsequent call to retrieve the next set of
  1602  	// results.
  1603  	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
  1604  }
  1605  
  1606  // String returns the string representation.
  1607  //
  1608  // API parameter values that are decorated as "sensitive" in the API will not
  1609  // be included in the string output. The member name will be present, but the
  1610  // value will be replaced with "sensitive".
  1611  func (s ListEnvironmentsOutput) String() string {
  1612  	return awsutil.Prettify(s)
  1613  }
  1614  
  1615  // GoString returns the string representation.
  1616  //
  1617  // API parameter values that are decorated as "sensitive" in the API will not
  1618  // be included in the string output. The member name will be present, but the
  1619  // value will be replaced with "sensitive".
  1620  func (s ListEnvironmentsOutput) GoString() string {
  1621  	return s.String()
  1622  }
  1623  
  1624  // SetEnvironments sets the Environments field's value.
  1625  func (s *ListEnvironmentsOutput) SetEnvironments(v []*Environment) *ListEnvironmentsOutput {
  1626  	s.Environments = v
  1627  	return s
  1628  }
  1629  
  1630  // SetNextToken sets the NextToken field's value.
  1631  func (s *ListEnvironmentsOutput) SetNextToken(v string) *ListEnvironmentsOutput {
  1632  	s.NextToken = &v
  1633  	return s
  1634  }
  1635  
  1636  type ListTagsForResourceInput struct {
  1637  	_ struct{} `type:"structure" nopayload:"true"`
  1638  
  1639  	// The Amazon Resource Name of the resource.
  1640  	//
  1641  	// ResourceArn is a required field
  1642  	ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
  1643  }
  1644  
  1645  // String returns the string representation.
  1646  //
  1647  // API parameter values that are decorated as "sensitive" in the API will not
  1648  // be included in the string output. The member name will be present, but the
  1649  // value will be replaced with "sensitive".
  1650  func (s ListTagsForResourceInput) String() string {
  1651  	return awsutil.Prettify(s)
  1652  }
  1653  
  1654  // GoString returns the string representation.
  1655  //
  1656  // API parameter values that are decorated as "sensitive" in the API will not
  1657  // be included in the string output. The member name will be present, but the
  1658  // value will be replaced with "sensitive".
  1659  func (s ListTagsForResourceInput) GoString() string {
  1660  	return s.String()
  1661  }
  1662  
  1663  // Validate inspects the fields of the type to determine if they are valid.
  1664  func (s *ListTagsForResourceInput) Validate() error {
  1665  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  1666  	if s.ResourceArn == nil {
  1667  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  1668  	}
  1669  	if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
  1670  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
  1671  	}
  1672  
  1673  	if invalidParams.Len() > 0 {
  1674  		return invalidParams
  1675  	}
  1676  	return nil
  1677  }
  1678  
  1679  // SetResourceArn sets the ResourceArn field's value.
  1680  func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  1681  	s.ResourceArn = &v
  1682  	return s
  1683  }
  1684  
  1685  type ListTagsForResourceOutput struct {
  1686  	_ struct{} `type:"structure"`
  1687  
  1688  	// A list of all tags for a resource.
  1689  	Tags map[string]*string `locationName:"tags" min:"1" type:"map"`
  1690  }
  1691  
  1692  // String returns the string representation.
  1693  //
  1694  // API parameter values that are decorated as "sensitive" in the API will not
  1695  // be included in the string output. The member name will be present, but the
  1696  // value will be replaced with "sensitive".
  1697  func (s ListTagsForResourceOutput) String() string {
  1698  	return awsutil.Prettify(s)
  1699  }
  1700  
  1701  // GoString returns the string representation.
  1702  //
  1703  // API parameter values that are decorated as "sensitive" in the API will not
  1704  // be included in the string output. The member name will be present, but the
  1705  // value will be replaced with "sensitive".
  1706  func (s ListTagsForResourceOutput) GoString() string {
  1707  	return s.String()
  1708  }
  1709  
  1710  // SetTags sets the Tags field's value.
  1711  func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
  1712  	s.Tags = v
  1713  	return s
  1714  }
  1715  
  1716  // One or more resources can't be found.
  1717  type ResourceNotFoundException struct {
  1718  	_            struct{}                  `type:"structure"`
  1719  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1720  
  1721  	Message_ *string `locationName:"message" type:"string"`
  1722  }
  1723  
  1724  // String returns the string representation.
  1725  //
  1726  // API parameter values that are decorated as "sensitive" in the API will not
  1727  // be included in the string output. The member name will be present, but the
  1728  // value will be replaced with "sensitive".
  1729  func (s ResourceNotFoundException) String() string {
  1730  	return awsutil.Prettify(s)
  1731  }
  1732  
  1733  // GoString returns the string representation.
  1734  //
  1735  // API parameter values that are decorated as "sensitive" in the API will not
  1736  // be included in the string output. The member name will be present, but the
  1737  // value will be replaced with "sensitive".
  1738  func (s ResourceNotFoundException) GoString() string {
  1739  	return s.String()
  1740  }
  1741  
  1742  func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
  1743  	return &ResourceNotFoundException{
  1744  		RespMetadata: v,
  1745  	}
  1746  }
  1747  
  1748  // Code returns the exception type name.
  1749  func (s *ResourceNotFoundException) Code() string {
  1750  	return "ResourceNotFoundException"
  1751  }
  1752  
  1753  // Message returns the exception's message.
  1754  func (s *ResourceNotFoundException) Message() string {
  1755  	if s.Message_ != nil {
  1756  		return *s.Message_
  1757  	}
  1758  	return ""
  1759  }
  1760  
  1761  // OrigErr always returns nil, satisfies awserr.Error interface.
  1762  func (s *ResourceNotFoundException) OrigErr() error {
  1763  	return nil
  1764  }
  1765  
  1766  func (s *ResourceNotFoundException) Error() string {
  1767  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1768  }
  1769  
  1770  // Status code returns the HTTP status code for the request's response error.
  1771  func (s *ResourceNotFoundException) StatusCode() int {
  1772  	return s.RespMetadata.StatusCode
  1773  }
  1774  
  1775  // RequestID returns the service's response RequestID for request.
  1776  func (s *ResourceNotFoundException) RequestID() string {
  1777  	return s.RespMetadata.RequestID
  1778  }
  1779  
  1780  // You have exceeded your service quota. To perform the requested action, remove
  1781  // some of the relevant resources, or use Service Quotas to request a service
  1782  // quota increase.
  1783  type ServiceQuotaExceededException struct {
  1784  	_            struct{}                  `type:"structure"`
  1785  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1786  
  1787  	Message_ *string `locationName:"message" type:"string"`
  1788  }
  1789  
  1790  // String returns the string representation.
  1791  //
  1792  // API parameter values that are decorated as "sensitive" in the API will not
  1793  // be included in the string output. The member name will be present, but the
  1794  // value will be replaced with "sensitive".
  1795  func (s ServiceQuotaExceededException) String() string {
  1796  	return awsutil.Prettify(s)
  1797  }
  1798  
  1799  // GoString returns the string representation.
  1800  //
  1801  // API parameter values that are decorated as "sensitive" in the API will not
  1802  // be included in the string output. The member name will be present, but the
  1803  // value will be replaced with "sensitive".
  1804  func (s ServiceQuotaExceededException) GoString() string {
  1805  	return s.String()
  1806  }
  1807  
  1808  func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
  1809  	return &ServiceQuotaExceededException{
  1810  		RespMetadata: v,
  1811  	}
  1812  }
  1813  
  1814  // Code returns the exception type name.
  1815  func (s *ServiceQuotaExceededException) Code() string {
  1816  	return "ServiceQuotaExceededException"
  1817  }
  1818  
  1819  // Message returns the exception's message.
  1820  func (s *ServiceQuotaExceededException) Message() string {
  1821  	if s.Message_ != nil {
  1822  		return *s.Message_
  1823  	}
  1824  	return ""
  1825  }
  1826  
  1827  // OrigErr always returns nil, satisfies awserr.Error interface.
  1828  func (s *ServiceQuotaExceededException) OrigErr() error {
  1829  	return nil
  1830  }
  1831  
  1832  func (s *ServiceQuotaExceededException) Error() string {
  1833  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1834  }
  1835  
  1836  // Status code returns the HTTP status code for the request's response error.
  1837  func (s *ServiceQuotaExceededException) StatusCode() int {
  1838  	return s.RespMetadata.StatusCode
  1839  }
  1840  
  1841  // RequestID returns the service's response RequestID for request.
  1842  func (s *ServiceQuotaExceededException) RequestID() string {
  1843  	return s.RespMetadata.RequestID
  1844  }
  1845  
  1846  type TagResourceInput struct {
  1847  	_ struct{} `type:"structure"`
  1848  
  1849  	// The Amazon Resource Name (ARN) for the resource.
  1850  	//
  1851  	// ResourceArn is a required field
  1852  	ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
  1853  
  1854  	// One or more tags to be assigned to the resource.
  1855  	//
  1856  	// Tags is a required field
  1857  	Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"`
  1858  }
  1859  
  1860  // String returns the string representation.
  1861  //
  1862  // API parameter values that are decorated as "sensitive" in the API will not
  1863  // be included in the string output. The member name will be present, but the
  1864  // value will be replaced with "sensitive".
  1865  func (s TagResourceInput) String() string {
  1866  	return awsutil.Prettify(s)
  1867  }
  1868  
  1869  // GoString returns the string representation.
  1870  //
  1871  // API parameter values that are decorated as "sensitive" in the API will not
  1872  // be included in the string output. The member name will be present, but the
  1873  // value will be replaced with "sensitive".
  1874  func (s TagResourceInput) GoString() string {
  1875  	return s.String()
  1876  }
  1877  
  1878  // Validate inspects the fields of the type to determine if they are valid.
  1879  func (s *TagResourceInput) Validate() error {
  1880  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
  1881  	if s.ResourceArn == nil {
  1882  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  1883  	}
  1884  	if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
  1885  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
  1886  	}
  1887  	if s.Tags == nil {
  1888  		invalidParams.Add(request.NewErrParamRequired("Tags"))
  1889  	}
  1890  	if s.Tags != nil && len(s.Tags) < 1 {
  1891  		invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
  1892  	}
  1893  
  1894  	if invalidParams.Len() > 0 {
  1895  		return invalidParams
  1896  	}
  1897  	return nil
  1898  }
  1899  
  1900  // SetResourceArn sets the ResourceArn field's value.
  1901  func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
  1902  	s.ResourceArn = &v
  1903  	return s
  1904  }
  1905  
  1906  // SetTags sets the Tags field's value.
  1907  func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
  1908  	s.Tags = v
  1909  	return s
  1910  }
  1911  
  1912  type TagResourceOutput struct {
  1913  	_ struct{} `type:"structure" nopayload:"true"`
  1914  }
  1915  
  1916  // String returns the string representation.
  1917  //
  1918  // API parameter values that are decorated as "sensitive" in the API will not
  1919  // be included in the string output. The member name will be present, but the
  1920  // value will be replaced with "sensitive".
  1921  func (s TagResourceOutput) String() string {
  1922  	return awsutil.Prettify(s)
  1923  }
  1924  
  1925  // GoString returns the string representation.
  1926  //
  1927  // API parameter values that are decorated as "sensitive" in the API will not
  1928  // be included in the string output. The member name will be present, but the
  1929  // value will be replaced with "sensitive".
  1930  func (s TagResourceOutput) GoString() string {
  1931  	return s.String()
  1932  }
  1933  
  1934  // The request was denied due to request throttling.
  1935  type ThrottlingException struct {
  1936  	_            struct{}                  `type:"structure"`
  1937  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1938  
  1939  	Message_ *string `locationName:"message" type:"string"`
  1940  }
  1941  
  1942  // String returns the string representation.
  1943  //
  1944  // API parameter values that are decorated as "sensitive" in the API will not
  1945  // be included in the string output. The member name will be present, but the
  1946  // value will be replaced with "sensitive".
  1947  func (s ThrottlingException) String() string {
  1948  	return awsutil.Prettify(s)
  1949  }
  1950  
  1951  // GoString returns the string representation.
  1952  //
  1953  // API parameter values that are decorated as "sensitive" in the API will not
  1954  // be included in the string output. The member name will be present, but the
  1955  // value will be replaced with "sensitive".
  1956  func (s ThrottlingException) GoString() string {
  1957  	return s.String()
  1958  }
  1959  
  1960  func newErrorThrottlingException(v protocol.ResponseMetadata) error {
  1961  	return &ThrottlingException{
  1962  		RespMetadata: v,
  1963  	}
  1964  }
  1965  
  1966  // Code returns the exception type name.
  1967  func (s *ThrottlingException) Code() string {
  1968  	return "ThrottlingException"
  1969  }
  1970  
  1971  // Message returns the exception's message.
  1972  func (s *ThrottlingException) Message() string {
  1973  	if s.Message_ != nil {
  1974  		return *s.Message_
  1975  	}
  1976  	return ""
  1977  }
  1978  
  1979  // OrigErr always returns nil, satisfies awserr.Error interface.
  1980  func (s *ThrottlingException) OrigErr() error {
  1981  	return nil
  1982  }
  1983  
  1984  func (s *ThrottlingException) Error() string {
  1985  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1986  }
  1987  
  1988  // Status code returns the HTTP status code for the request's response error.
  1989  func (s *ThrottlingException) StatusCode() int {
  1990  	return s.RespMetadata.StatusCode
  1991  }
  1992  
  1993  // RequestID returns the service's response RequestID for request.
  1994  func (s *ThrottlingException) RequestID() string {
  1995  	return s.RespMetadata.RequestID
  1996  }
  1997  
  1998  type UntagResourceInput struct {
  1999  	_ struct{} `type:"structure" nopayload:"true"`
  2000  
  2001  	// A FinSpace resource from which you want to remove a tag or tags. The value
  2002  	// for this parameter is an Amazon Resource Name (ARN).
  2003  	//
  2004  	// ResourceArn is a required field
  2005  	ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
  2006  
  2007  	// The tag keys (names) of one or more tags to be removed.
  2008  	//
  2009  	// TagKeys is a required field
  2010  	TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"`
  2011  }
  2012  
  2013  // String returns the string representation.
  2014  //
  2015  // API parameter values that are decorated as "sensitive" in the API will not
  2016  // be included in the string output. The member name will be present, but the
  2017  // value will be replaced with "sensitive".
  2018  func (s UntagResourceInput) String() string {
  2019  	return awsutil.Prettify(s)
  2020  }
  2021  
  2022  // GoString returns the string representation.
  2023  //
  2024  // API parameter values that are decorated as "sensitive" in the API will not
  2025  // be included in the string output. The member name will be present, but the
  2026  // value will be replaced with "sensitive".
  2027  func (s UntagResourceInput) GoString() string {
  2028  	return s.String()
  2029  }
  2030  
  2031  // Validate inspects the fields of the type to determine if they are valid.
  2032  func (s *UntagResourceInput) Validate() error {
  2033  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
  2034  	if s.ResourceArn == nil {
  2035  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2036  	}
  2037  	if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
  2038  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
  2039  	}
  2040  	if s.TagKeys == nil {
  2041  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  2042  	}
  2043  	if s.TagKeys != nil && len(s.TagKeys) < 1 {
  2044  		invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
  2045  	}
  2046  
  2047  	if invalidParams.Len() > 0 {
  2048  		return invalidParams
  2049  	}
  2050  	return nil
  2051  }
  2052  
  2053  // SetResourceArn sets the ResourceArn field's value.
  2054  func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
  2055  	s.ResourceArn = &v
  2056  	return s
  2057  }
  2058  
  2059  // SetTagKeys sets the TagKeys field's value.
  2060  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
  2061  	s.TagKeys = v
  2062  	return s
  2063  }
  2064  
  2065  type UntagResourceOutput struct {
  2066  	_ struct{} `type:"structure" nopayload:"true"`
  2067  }
  2068  
  2069  // String returns the string representation.
  2070  //
  2071  // API parameter values that are decorated as "sensitive" in the API will not
  2072  // be included in the string output. The member name will be present, but the
  2073  // value will be replaced with "sensitive".
  2074  func (s UntagResourceOutput) String() string {
  2075  	return awsutil.Prettify(s)
  2076  }
  2077  
  2078  // GoString returns the string representation.
  2079  //
  2080  // API parameter values that are decorated as "sensitive" in the API will not
  2081  // be included in the string output. The member name will be present, but the
  2082  // value will be replaced with "sensitive".
  2083  func (s UntagResourceOutput) GoString() string {
  2084  	return s.String()
  2085  }
  2086  
  2087  type UpdateEnvironmentInput struct {
  2088  	_ struct{} `type:"structure"`
  2089  
  2090  	// The description of the environment.
  2091  	Description *string `locationName:"description" min:"1" type:"string"`
  2092  
  2093  	// The identifier of the FinSpace environment.
  2094  	//
  2095  	// EnvironmentId is a required field
  2096  	EnvironmentId *string `location:"uri" locationName:"environmentId" min:"1" type:"string" required:"true"`
  2097  
  2098  	// Authentication mode for the environment.
  2099  	//
  2100  	//    * FEDERATED - Users access FinSpace through Single Sign On (SSO) via your
  2101  	//    Identity provider.
  2102  	//
  2103  	//    * LOCAL - Users access FinSpace via email and password managed within
  2104  	//    the FinSpace environment.
  2105  	FederationMode *string `locationName:"federationMode" type:"string" enum:"FederationMode"`
  2106  
  2107  	// Configuration information when authentication mode is FEDERATED.
  2108  	FederationParameters *FederationParameters `locationName:"federationParameters" type:"structure"`
  2109  
  2110  	// The name of the environment.
  2111  	Name *string `locationName:"name" min:"1" type:"string"`
  2112  }
  2113  
  2114  // String returns the string representation.
  2115  //
  2116  // API parameter values that are decorated as "sensitive" in the API will not
  2117  // be included in the string output. The member name will be present, but the
  2118  // value will be replaced with "sensitive".
  2119  func (s UpdateEnvironmentInput) String() string {
  2120  	return awsutil.Prettify(s)
  2121  }
  2122  
  2123  // GoString returns the string representation.
  2124  //
  2125  // API parameter values that are decorated as "sensitive" in the API will not
  2126  // be included in the string output. The member name will be present, but the
  2127  // value will be replaced with "sensitive".
  2128  func (s UpdateEnvironmentInput) GoString() string {
  2129  	return s.String()
  2130  }
  2131  
  2132  // Validate inspects the fields of the type to determine if they are valid.
  2133  func (s *UpdateEnvironmentInput) Validate() error {
  2134  	invalidParams := request.ErrInvalidParams{Context: "UpdateEnvironmentInput"}
  2135  	if s.Description != nil && len(*s.Description) < 1 {
  2136  		invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  2137  	}
  2138  	if s.EnvironmentId == nil {
  2139  		invalidParams.Add(request.NewErrParamRequired("EnvironmentId"))
  2140  	}
  2141  	if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 {
  2142  		invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1))
  2143  	}
  2144  	if s.Name != nil && len(*s.Name) < 1 {
  2145  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2146  	}
  2147  	if s.FederationParameters != nil {
  2148  		if err := s.FederationParameters.Validate(); err != nil {
  2149  			invalidParams.AddNested("FederationParameters", err.(request.ErrInvalidParams))
  2150  		}
  2151  	}
  2152  
  2153  	if invalidParams.Len() > 0 {
  2154  		return invalidParams
  2155  	}
  2156  	return nil
  2157  }
  2158  
  2159  // SetDescription sets the Description field's value.
  2160  func (s *UpdateEnvironmentInput) SetDescription(v string) *UpdateEnvironmentInput {
  2161  	s.Description = &v
  2162  	return s
  2163  }
  2164  
  2165  // SetEnvironmentId sets the EnvironmentId field's value.
  2166  func (s *UpdateEnvironmentInput) SetEnvironmentId(v string) *UpdateEnvironmentInput {
  2167  	s.EnvironmentId = &v
  2168  	return s
  2169  }
  2170  
  2171  // SetFederationMode sets the FederationMode field's value.
  2172  func (s *UpdateEnvironmentInput) SetFederationMode(v string) *UpdateEnvironmentInput {
  2173  	s.FederationMode = &v
  2174  	return s
  2175  }
  2176  
  2177  // SetFederationParameters sets the FederationParameters field's value.
  2178  func (s *UpdateEnvironmentInput) SetFederationParameters(v *FederationParameters) *UpdateEnvironmentInput {
  2179  	s.FederationParameters = v
  2180  	return s
  2181  }
  2182  
  2183  // SetName sets the Name field's value.
  2184  func (s *UpdateEnvironmentInput) SetName(v string) *UpdateEnvironmentInput {
  2185  	s.Name = &v
  2186  	return s
  2187  }
  2188  
  2189  type UpdateEnvironmentOutput struct {
  2190  	_ struct{} `type:"structure"`
  2191  
  2192  	// Returns the FinSpace environment object.
  2193  	Environment *Environment `locationName:"environment" type:"structure"`
  2194  }
  2195  
  2196  // String returns the string representation.
  2197  //
  2198  // API parameter values that are decorated as "sensitive" in the API will not
  2199  // be included in the string output. The member name will be present, but the
  2200  // value will be replaced with "sensitive".
  2201  func (s UpdateEnvironmentOutput) String() string {
  2202  	return awsutil.Prettify(s)
  2203  }
  2204  
  2205  // GoString returns the string representation.
  2206  //
  2207  // API parameter values that are decorated as "sensitive" in the API will not
  2208  // be included in the string output. The member name will be present, but the
  2209  // value will be replaced with "sensitive".
  2210  func (s UpdateEnvironmentOutput) GoString() string {
  2211  	return s.String()
  2212  }
  2213  
  2214  // SetEnvironment sets the Environment field's value.
  2215  func (s *UpdateEnvironmentOutput) SetEnvironment(v *Environment) *UpdateEnvironmentOutput {
  2216  	s.Environment = v
  2217  	return s
  2218  }
  2219  
  2220  // The input fails to satisfy the constraints specified by an AWS service.
  2221  type ValidationException struct {
  2222  	_            struct{}                  `type:"structure"`
  2223  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2224  
  2225  	Message_ *string `locationName:"message" type:"string"`
  2226  }
  2227  
  2228  // String returns the string representation.
  2229  //
  2230  // API parameter values that are decorated as "sensitive" in the API will not
  2231  // be included in the string output. The member name will be present, but the
  2232  // value will be replaced with "sensitive".
  2233  func (s ValidationException) String() string {
  2234  	return awsutil.Prettify(s)
  2235  }
  2236  
  2237  // GoString returns the string representation.
  2238  //
  2239  // API parameter values that are decorated as "sensitive" in the API will not
  2240  // be included in the string output. The member name will be present, but the
  2241  // value will be replaced with "sensitive".
  2242  func (s ValidationException) GoString() string {
  2243  	return s.String()
  2244  }
  2245  
  2246  func newErrorValidationException(v protocol.ResponseMetadata) error {
  2247  	return &ValidationException{
  2248  		RespMetadata: v,
  2249  	}
  2250  }
  2251  
  2252  // Code returns the exception type name.
  2253  func (s *ValidationException) Code() string {
  2254  	return "ValidationException"
  2255  }
  2256  
  2257  // Message returns the exception's message.
  2258  func (s *ValidationException) Message() string {
  2259  	if s.Message_ != nil {
  2260  		return *s.Message_
  2261  	}
  2262  	return ""
  2263  }
  2264  
  2265  // OrigErr always returns nil, satisfies awserr.Error interface.
  2266  func (s *ValidationException) OrigErr() error {
  2267  	return nil
  2268  }
  2269  
  2270  func (s *ValidationException) Error() string {
  2271  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2272  }
  2273  
  2274  // Status code returns the HTTP status code for the request's response error.
  2275  func (s *ValidationException) StatusCode() int {
  2276  	return s.RespMetadata.StatusCode
  2277  }
  2278  
  2279  // RequestID returns the service's response RequestID for request.
  2280  func (s *ValidationException) RequestID() string {
  2281  	return s.RespMetadata.RequestID
  2282  }
  2283  
  2284  const (
  2285  	// EnvironmentStatusCreateRequested is a EnvironmentStatus enum value
  2286  	EnvironmentStatusCreateRequested = "CREATE_REQUESTED"
  2287  
  2288  	// EnvironmentStatusCreating is a EnvironmentStatus enum value
  2289  	EnvironmentStatusCreating = "CREATING"
  2290  
  2291  	// EnvironmentStatusCreated is a EnvironmentStatus enum value
  2292  	EnvironmentStatusCreated = "CREATED"
  2293  
  2294  	// EnvironmentStatusDeleteRequested is a EnvironmentStatus enum value
  2295  	EnvironmentStatusDeleteRequested = "DELETE_REQUESTED"
  2296  
  2297  	// EnvironmentStatusDeleting is a EnvironmentStatus enum value
  2298  	EnvironmentStatusDeleting = "DELETING"
  2299  
  2300  	// EnvironmentStatusDeleted is a EnvironmentStatus enum value
  2301  	EnvironmentStatusDeleted = "DELETED"
  2302  
  2303  	// EnvironmentStatusFailedCreation is a EnvironmentStatus enum value
  2304  	EnvironmentStatusFailedCreation = "FAILED_CREATION"
  2305  
  2306  	// EnvironmentStatusRetryDeletion is a EnvironmentStatus enum value
  2307  	EnvironmentStatusRetryDeletion = "RETRY_DELETION"
  2308  
  2309  	// EnvironmentStatusFailedDeletion is a EnvironmentStatus enum value
  2310  	EnvironmentStatusFailedDeletion = "FAILED_DELETION"
  2311  
  2312  	// EnvironmentStatusSuspended is a EnvironmentStatus enum value
  2313  	EnvironmentStatusSuspended = "SUSPENDED"
  2314  )
  2315  
  2316  // EnvironmentStatus_Values returns all elements of the EnvironmentStatus enum
  2317  func EnvironmentStatus_Values() []string {
  2318  	return []string{
  2319  		EnvironmentStatusCreateRequested,
  2320  		EnvironmentStatusCreating,
  2321  		EnvironmentStatusCreated,
  2322  		EnvironmentStatusDeleteRequested,
  2323  		EnvironmentStatusDeleting,
  2324  		EnvironmentStatusDeleted,
  2325  		EnvironmentStatusFailedCreation,
  2326  		EnvironmentStatusRetryDeletion,
  2327  		EnvironmentStatusFailedDeletion,
  2328  		EnvironmentStatusSuspended,
  2329  	}
  2330  }
  2331  
  2332  const (
  2333  	// FederationModeFederated is a FederationMode enum value
  2334  	FederationModeFederated = "FEDERATED"
  2335  
  2336  	// FederationModeLocal is a FederationMode enum value
  2337  	FederationModeLocal = "LOCAL"
  2338  )
  2339  
  2340  // FederationMode_Values returns all elements of the FederationMode enum
  2341  func FederationMode_Values() []string {
  2342  	return []string{
  2343  		FederationModeFederated,
  2344  		FederationModeLocal,
  2345  	}
  2346  }