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

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