mobile

package
v1.12.59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mobile provides the client and types for making API requests to AWS Mobile.

AWS Mobile Service provides mobile app and website developers with capabilities required to configure AWS resources and bootstrap their developer desktop projects with the necessary SDKs, constants, tools and samples to make use of those resources.

See https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01 for more information on this service.

See mobile package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/mobile/

Using the Client

To contact AWS Mobile with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS Mobile client Mobile for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/mobile/#New

Index

Constants

View Source
const (
	// PlatformOsx is a Platform enum value
	PlatformOsx = "OSX"

	// PlatformWindows is a Platform enum value
	PlatformWindows = "WINDOWS"

	// PlatformLinux is a Platform enum value
	PlatformLinux = "LINUX"

	// PlatformObjc is a Platform enum value
	PlatformObjc = "OBJC"

	// PlatformSwift is a Platform enum value
	PlatformSwift = "SWIFT"

	// PlatformAndroid is a Platform enum value
	PlatformAndroid = "ANDROID"

	// PlatformJavascript is a Platform enum value
	PlatformJavascript = "JAVASCRIPT"
)

Developer desktop or target mobile app or website platform.

View Source
const (
	// ProjectStateNormal is a ProjectState enum value
	ProjectStateNormal = "NORMAL"

	// ProjectStateSyncing is a ProjectState enum value
	ProjectStateSyncing = "SYNCING"

	// ProjectStateImporting is a ProjectState enum value
	ProjectStateImporting = "IMPORTING"
)

Synchronization state for a project.

View Source
const (

	// ErrCodeAccountActionRequiredException for service response error code
	// "AccountActionRequiredException".
	//
	// Account Action is required in order to continue the request.
	ErrCodeAccountActionRequiredException = "AccountActionRequiredException"

	// ErrCodeBadRequestException for service response error code
	// "BadRequestException".
	//
	// The request cannot be processed because some parameter is not valid or the
	// project state prevents the operation from being performed.
	ErrCodeBadRequestException = "BadRequestException"

	// ErrCodeInternalFailureException for service response error code
	// "InternalFailureException".
	//
	// The service has encountered an unexpected error condition which prevents
	// it from servicing the request.
	ErrCodeInternalFailureException = "InternalFailureException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// There are too many AWS Mobile Hub projects in the account or the account
	// has exceeded the maximum number of resources in some AWS service. You should
	// create another sub-account using AWS Organizations or remove some resources
	// and retry your request.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// No entity can be found with the specified identifier.
	ErrCodeNotFoundException = "NotFoundException"

	// ErrCodeServiceUnavailableException for service response error code
	// "ServiceUnavailableException".
	//
	// The service is temporarily unavailable. The request should be retried after
	// some time delay.
	ErrCodeServiceUnavailableException = "ServiceUnavailableException"

	// ErrCodeTooManyRequestsException for service response error code
	// "TooManyRequestsException".
	//
	// Too many requests have been received for this AWS account in too short a
	// time. The request should be retried after some time delay.
	ErrCodeTooManyRequestsException = "TooManyRequestsException"

	// ErrCodeUnauthorizedException for service response error code
	// "UnauthorizedException".
	//
	// Credentials of the caller are insufficient to authorize the request.
	ErrCodeUnauthorizedException = "UnauthorizedException"
)
View Source
const (
	ServiceName = "mobile"    // Service endpoint prefix API calls made to.
	EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleDetails

type BundleDetails struct {

	// Developer desktop or mobile app or website platforms.
	AvailablePlatforms []*string `locationName:"availablePlatforms" type:"list"`

	// Unique bundle identifier.
	BundleId *string `locationName:"bundleId" type:"string"`

	// Description of the download bundle.
	Description *string `locationName:"description" type:"string"`

	// Icon for the download bundle.
	IconUrl *string `locationName:"iconUrl" type:"string"`

	// Title of the download bundle.
	Title *string `locationName:"title" type:"string"`

	// Version of the download bundle.
	Version *string `locationName:"version" type:"string"`
	// contains filtered or unexported fields
}

The details of the bundle. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/BundleDetails

func (BundleDetails) GoString

func (s BundleDetails) GoString() string

GoString returns the string representation

func (*BundleDetails) SetAvailablePlatforms

func (s *BundleDetails) SetAvailablePlatforms(v []*string) *BundleDetails

SetAvailablePlatforms sets the AvailablePlatforms field's value.

func (*BundleDetails) SetBundleId

func (s *BundleDetails) SetBundleId(v string) *BundleDetails

SetBundleId sets the BundleId field's value.

func (*BundleDetails) SetDescription

func (s *BundleDetails) SetDescription(v string) *BundleDetails

SetDescription sets the Description field's value.

func (*BundleDetails) SetIconUrl

func (s *BundleDetails) SetIconUrl(v string) *BundleDetails

SetIconUrl sets the IconUrl field's value.

func (*BundleDetails) SetTitle

func (s *BundleDetails) SetTitle(v string) *BundleDetails

SetTitle sets the Title field's value.

func (*BundleDetails) SetVersion

func (s *BundleDetails) SetVersion(v string) *BundleDetails

SetVersion sets the Version field's value.

func (BundleDetails) String

func (s BundleDetails) String() string

String returns the string representation

type CreateProjectInput

type CreateProjectInput struct {

	// ZIP or YAML file which contains configuration settings to be used when creating
	// the project. This may be the contents of the file downloaded from the URL
	// provided in an export project operation.
	Contents []byte `locationName:"contents" type:"blob"`

	// Name of the project.
	Name *string `location:"querystring" locationName:"name" type:"string"`

	// Default region where project resources should be created.
	Region *string `location:"querystring" locationName:"region" type:"string"`

	// Unique identifier for an exported snapshot of project configuration. This
	// snapshot identifier is included in the share URL when a project is exported.
	SnapshotId *string `location:"querystring" locationName:"snapshotId" type:"string"`
	// contains filtered or unexported fields
}

Request structure used to request a project be created. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProjectRequest

func (CreateProjectInput) GoString

func (s CreateProjectInput) GoString() string

GoString returns the string representation

func (*CreateProjectInput) SetContents

func (s *CreateProjectInput) SetContents(v []byte) *CreateProjectInput

SetContents sets the Contents field's value.

func (*CreateProjectInput) SetName

SetName sets the Name field's value.

func (*CreateProjectInput) SetRegion

func (s *CreateProjectInput) SetRegion(v string) *CreateProjectInput

SetRegion sets the Region field's value.

func (*CreateProjectInput) SetSnapshotId

func (s *CreateProjectInput) SetSnapshotId(v string) *CreateProjectInput

SetSnapshotId sets the SnapshotId field's value.

func (CreateProjectInput) String

func (s CreateProjectInput) String() string

String returns the string representation

type CreateProjectOutput

type CreateProjectOutput struct {

	// Detailed information about the created AWS Mobile Hub project.
	Details *ProjectDetails `locationName:"details" type:"structure"`
	// contains filtered or unexported fields
}

Result structure used in response to a request to create a project. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProjectResult

func (CreateProjectOutput) GoString

func (s CreateProjectOutput) GoString() string

GoString returns the string representation

func (*CreateProjectOutput) SetDetails

SetDetails sets the Details field's value.

func (CreateProjectOutput) String

func (s CreateProjectOutput) String() string

String returns the string representation

type DeleteProjectInput

type DeleteProjectInput struct {

	// Unique project identifier.
	//
	// ProjectId is a required field
	ProjectId *string `location:"uri" locationName:"projectId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request structure used to request a project be deleted. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProjectRequest

func (DeleteProjectInput) GoString

func (s DeleteProjectInput) GoString() string

GoString returns the string representation

func (*DeleteProjectInput) SetProjectId

func (s *DeleteProjectInput) SetProjectId(v string) *DeleteProjectInput

SetProjectId sets the ProjectId field's value.

func (DeleteProjectInput) String

func (s DeleteProjectInput) String() string

String returns the string representation

func (*DeleteProjectInput) Validate

func (s *DeleteProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteProjectOutput

type DeleteProjectOutput struct {

	// Resources which were deleted.
	DeletedResources []*Resource `locationName:"deletedResources" type:"list"`

	// Resources which were not deleted, due to a risk of losing potentially important
	// data or files.
	OrphanedResources []*Resource `locationName:"orphanedResources" type:"list"`
	// contains filtered or unexported fields
}

Result structure used in response to request to delete a project. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProjectResult

func (DeleteProjectOutput) GoString

func (s DeleteProjectOutput) GoString() string

GoString returns the string representation

func (*DeleteProjectOutput) SetDeletedResources

func (s *DeleteProjectOutput) SetDeletedResources(v []*Resource) *DeleteProjectOutput

SetDeletedResources sets the DeletedResources field's value.

func (*DeleteProjectOutput) SetOrphanedResources

func (s *DeleteProjectOutput) SetOrphanedResources(v []*Resource) *DeleteProjectOutput

SetOrphanedResources sets the OrphanedResources field's value.

func (DeleteProjectOutput) String

func (s DeleteProjectOutput) String() string

String returns the string representation

type DescribeBundleInput

type DescribeBundleInput struct {

	// Unique bundle identifier.
	//
	// BundleId is a required field
	BundleId *string `location:"uri" locationName:"bundleId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request structure to request the details of a specific bundle. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundleRequest

func (DescribeBundleInput) GoString

func (s DescribeBundleInput) GoString() string

GoString returns the string representation

func (*DescribeBundleInput) SetBundleId

func (s *DescribeBundleInput) SetBundleId(v string) *DescribeBundleInput

SetBundleId sets the BundleId field's value.

func (DescribeBundleInput) String

func (s DescribeBundleInput) String() string

String returns the string representation

func (*DescribeBundleInput) Validate

func (s *DescribeBundleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeBundleOutput

type DescribeBundleOutput struct {

	// The details of the bundle.
	Details *BundleDetails `locationName:"details" type:"structure"`
	// contains filtered or unexported fields
}

Result structure contains the details of the bundle. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundleResult

func (DescribeBundleOutput) GoString

func (s DescribeBundleOutput) GoString() string

GoString returns the string representation

func (*DescribeBundleOutput) SetDetails

SetDetails sets the Details field's value.

func (DescribeBundleOutput) String

func (s DescribeBundleOutput) String() string

String returns the string representation

type DescribeProjectInput

type DescribeProjectInput struct {

	// Unique project identifier.
	//
	// ProjectId is a required field
	ProjectId *string `location:"querystring" locationName:"projectId" type:"string" required:"true"`

	// If set to true, causes AWS Mobile Hub to synchronize information from other
	// services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile
	// Hub project.
	SyncFromResources *bool `location:"querystring" locationName:"syncFromResources" type:"boolean"`
	// contains filtered or unexported fields
}

Request structure used to request details about a project. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProjectRequest

func (DescribeProjectInput) GoString

func (s DescribeProjectInput) GoString() string

GoString returns the string representation

func (*DescribeProjectInput) SetProjectId

func (s *DescribeProjectInput) SetProjectId(v string) *DescribeProjectInput

SetProjectId sets the ProjectId field's value.

func (*DescribeProjectInput) SetSyncFromResources

func (s *DescribeProjectInput) SetSyncFromResources(v bool) *DescribeProjectInput

SetSyncFromResources sets the SyncFromResources field's value.

func (DescribeProjectInput) String

func (s DescribeProjectInput) String() string

String returns the string representation

func (*DescribeProjectInput) Validate

func (s *DescribeProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeProjectOutput

type DescribeProjectOutput struct {

	// Detailed information about an AWS Mobile Hub project.
	Details *ProjectDetails `locationName:"details" type:"structure"`
	// contains filtered or unexported fields
}

Result structure used for requests of project details. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProjectResult

func (DescribeProjectOutput) GoString

func (s DescribeProjectOutput) GoString() string

GoString returns the string representation

func (*DescribeProjectOutput) SetDetails

SetDetails sets the Details field's value.

func (DescribeProjectOutput) String

func (s DescribeProjectOutput) String() string

String returns the string representation

type ExportBundleInput

type ExportBundleInput struct {

	// Unique bundle identifier.
	//
	// BundleId is a required field
	BundleId *string `location:"uri" locationName:"bundleId" type:"string" required:"true"`

	// Developer desktop or target application platform.
	Platform *string `location:"querystring" locationName:"platform" type:"string" enum:"Platform"`

	// Unique project identifier.
	ProjectId *string `location:"querystring" locationName:"projectId" type:"string"`
	// contains filtered or unexported fields
}

Request structure used to request generation of custom SDK and tool packages required to integrate mobile web or app clients with backed AWS resources. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundleRequest

func (ExportBundleInput) GoString

func (s ExportBundleInput) GoString() string

GoString returns the string representation

func (*ExportBundleInput) SetBundleId

func (s *ExportBundleInput) SetBundleId(v string) *ExportBundleInput

SetBundleId sets the BundleId field's value.

func (*ExportBundleInput) SetPlatform

func (s *ExportBundleInput) SetPlatform(v string) *ExportBundleInput

SetPlatform sets the Platform field's value.

func (*ExportBundleInput) SetProjectId

func (s *ExportBundleInput) SetProjectId(v string) *ExportBundleInput

SetProjectId sets the ProjectId field's value.

func (ExportBundleInput) String

func (s ExportBundleInput) String() string

String returns the string representation

func (*ExportBundleInput) Validate

func (s *ExportBundleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExportBundleOutput

type ExportBundleOutput struct {

	// URL which contains the custom-generated SDK and tool packages used to integrate
	// the client mobile app or web app with the AWS resources created by the AWS
	// Mobile Hub project.
	DownloadUrl *string `locationName:"downloadUrl" type:"string"`
	// contains filtered or unexported fields
}

Result structure which contains link to download custom-generated SDK and tool packages used to integrate mobile web or app clients with backed AWS resources. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundleResult

func (ExportBundleOutput) GoString

func (s ExportBundleOutput) GoString() string

GoString returns the string representation

func (*ExportBundleOutput) SetDownloadUrl

func (s *ExportBundleOutput) SetDownloadUrl(v string) *ExportBundleOutput

SetDownloadUrl sets the DownloadUrl field's value.

func (ExportBundleOutput) String

func (s ExportBundleOutput) String() string

String returns the string representation

type ExportProjectInput

type ExportProjectInput struct {

	// Unique project identifier.
	//
	// ProjectId is a required field
	ProjectId *string `location:"uri" locationName:"projectId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request structure used in requests to export project configuration details. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProjectRequest

func (ExportProjectInput) GoString

func (s ExportProjectInput) GoString() string

GoString returns the string representation

func (*ExportProjectInput) SetProjectId

func (s *ExportProjectInput) SetProjectId(v string) *ExportProjectInput

SetProjectId sets the ProjectId field's value.

func (ExportProjectInput) String

func (s ExportProjectInput) String() string

String returns the string representation

func (*ExportProjectInput) Validate

func (s *ExportProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExportProjectOutput

type ExportProjectOutput struct {

	// URL which can be used to download the exported project configuation file(s).
	DownloadUrl *string `locationName:"downloadUrl" type:"string"`

	// URL which can be shared to allow other AWS users to create their own project
	// in AWS Mobile Hub with the same configuration as the specified project. This
	// URL pertains to a snapshot in time of the project configuration that is created
	// when this API is called. If you want to share additional changes to your
	// project configuration, then you will need to create and share a new snapshot
	// by calling this method again.
	ShareUrl *string `locationName:"shareUrl" type:"string"`

	// Unique identifier for the exported snapshot of the project configuration.
	// This snapshot identifier is included in the share URL.
	SnapshotId *string `locationName:"snapshotId" type:"string"`
	// contains filtered or unexported fields
}

Result structure used for requests to export project configuration details. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProjectResult

func (ExportProjectOutput) GoString

func (s ExportProjectOutput) GoString() string

GoString returns the string representation

func (*ExportProjectOutput) SetDownloadUrl

func (s *ExportProjectOutput) SetDownloadUrl(v string) *ExportProjectOutput

SetDownloadUrl sets the DownloadUrl field's value.

func (*ExportProjectOutput) SetShareUrl

func (s *ExportProjectOutput) SetShareUrl(v string) *ExportProjectOutput

SetShareUrl sets the ShareUrl field's value.

func (*ExportProjectOutput) SetSnapshotId

func (s *ExportProjectOutput) SetSnapshotId(v string) *ExportProjectOutput

SetSnapshotId sets the SnapshotId field's value.

func (ExportProjectOutput) String

func (s ExportProjectOutput) String() string

String returns the string representation

type ListBundlesInput

type ListBundlesInput struct {

	// Maximum number of records to list in a single response.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`

	// Pagination token. Set to null to start listing bundles from start. If non-null
	// pagination token is returned in a result, then pass its value in here in
	// another request to list more bundles.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Request structure to request all available bundles. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundlesRequest

func (ListBundlesInput) GoString

func (s ListBundlesInput) GoString() string

GoString returns the string representation

func (*ListBundlesInput) SetMaxResults

func (s *ListBundlesInput) SetMaxResults(v int64) *ListBundlesInput

SetMaxResults sets the MaxResults field's value.

func (*ListBundlesInput) SetNextToken

func (s *ListBundlesInput) SetNextToken(v string) *ListBundlesInput

SetNextToken sets the NextToken field's value.

func (ListBundlesInput) String

func (s ListBundlesInput) String() string

String returns the string representation

type ListBundlesOutput

type ListBundlesOutput struct {

	// A list of bundles.
	BundleList []*BundleDetails `locationName:"bundleList" type:"list"`

	// Pagination token. If non-null pagination token is returned in a result, then
	// pass its value in another request to fetch more entries.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Result structure contains a list of all available bundles with details. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundlesResult

func (ListBundlesOutput) GoString

func (s ListBundlesOutput) GoString() string

GoString returns the string representation

func (*ListBundlesOutput) SetBundleList

func (s *ListBundlesOutput) SetBundleList(v []*BundleDetails) *ListBundlesOutput

SetBundleList sets the BundleList field's value.

func (*ListBundlesOutput) SetNextToken

func (s *ListBundlesOutput) SetNextToken(v string) *ListBundlesOutput

SetNextToken sets the NextToken field's value.

func (ListBundlesOutput) String

func (s ListBundlesOutput) String() string

String returns the string representation

type ListProjectsInput

type ListProjectsInput struct {

	// Maximum number of records to list in a single response.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"`

	// Pagination token. Set to null to start listing projects from start. If non-null
	// pagination token is returned in a result, then pass its value in here in
	// another request to list more projects.
	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

Request structure used to request projects list in AWS Mobile Hub. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjectsRequest

func (ListProjectsInput) GoString

func (s ListProjectsInput) GoString() string

GoString returns the string representation

func (*ListProjectsInput) SetMaxResults

func (s *ListProjectsInput) SetMaxResults(v int64) *ListProjectsInput

SetMaxResults sets the MaxResults field's value.

func (*ListProjectsInput) SetNextToken

func (s *ListProjectsInput) SetNextToken(v string) *ListProjectsInput

SetNextToken sets the NextToken field's value.

func (ListProjectsInput) String

func (s ListProjectsInput) String() string

String returns the string representation

type ListProjectsOutput

type ListProjectsOutput struct {

	// Pagination token. Set to null to start listing records from start. If non-null
	// pagination token is returned in a result, then pass its value in here in
	// another request to list more entries.
	NextToken *string `locationName:"nextToken" type:"string"`

	// List of projects.
	Projects []*ProjectSummary `locationName:"projects" type:"list"`
	// contains filtered or unexported fields
}

Result structure used for requests to list projects in AWS Mobile Hub. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjectsResult

func (ListProjectsOutput) GoString

func (s ListProjectsOutput) GoString() string

GoString returns the string representation

func (*ListProjectsOutput) SetNextToken

func (s *ListProjectsOutput) SetNextToken(v string) *ListProjectsOutput

SetNextToken sets the NextToken field's value.

func (*ListProjectsOutput) SetProjects

SetProjects sets the Projects field's value.

func (ListProjectsOutput) String

func (s ListProjectsOutput) String() string

String returns the string representation

type Mobile

type Mobile struct {
	*client.Client
}

Mobile provides the API operation methods for making requests to AWS Mobile. See this package's package overview docs for details on the service.

Mobile methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Mobile

New creates a new instance of the Mobile client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a Mobile client from just a session.
svc := mobile.New(mySession)

// Create a Mobile client with additional configuration
svc := mobile.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*Mobile) CreateProject

func (c *Mobile) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error)

CreateProject API operation for AWS Mobile.

Creates an AWS Mobile Hub project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation CreateProject for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

  • ErrCodeNotFoundException "NotFoundException" No entity can be found with the specified identifier.

  • ErrCodeLimitExceededException "LimitExceededException" There are too many AWS Mobile Hub projects in the account or the account has exceeded the maximum number of resources in some AWS service. You should create another sub-account using AWS Organizations or remove some resources and retry your request.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProject

func (*Mobile) CreateProjectRequest

func (c *Mobile) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput)

CreateProjectRequest generates a "aws/request.Request" representing the client's request for the CreateProject operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateProject for more information on using the CreateProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateProjectRequest method.
req, resp := client.CreateProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/CreateProject

func (*Mobile) CreateProjectWithContext

func (c *Mobile) CreateProjectWithContext(ctx aws.Context, input *CreateProjectInput, opts ...request.Option) (*CreateProjectOutput, error)

CreateProjectWithContext is the same as CreateProject with the addition of the ability to pass a context and additional request options.

See CreateProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) DeleteProject

func (c *Mobile) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error)

DeleteProject API operation for AWS Mobile.

Delets a project in AWS Mobile Hub.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation DeleteProject for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeNotFoundException "NotFoundException" No entity can be found with the specified identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProject

func (*Mobile) DeleteProjectRequest

func (c *Mobile) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput)

DeleteProjectRequest generates a "aws/request.Request" representing the client's request for the DeleteProject operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteProject for more information on using the DeleteProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteProjectRequest method.
req, resp := client.DeleteProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProject

func (*Mobile) DeleteProjectWithContext

func (c *Mobile) DeleteProjectWithContext(ctx aws.Context, input *DeleteProjectInput, opts ...request.Option) (*DeleteProjectOutput, error)

DeleteProjectWithContext is the same as DeleteProject with the addition of the ability to pass a context and additional request options.

See DeleteProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) DescribeBundle

func (c *Mobile) DescribeBundle(input *DescribeBundleInput) (*DescribeBundleOutput, error)

DescribeBundle API operation for AWS Mobile.

Get the bundle details for the requested bundle id.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation DescribeBundle for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

  • ErrCodeNotFoundException "NotFoundException" No entity can be found with the specified identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundle

func (*Mobile) DescribeBundleRequest

func (c *Mobile) DescribeBundleRequest(input *DescribeBundleInput) (req *request.Request, output *DescribeBundleOutput)

DescribeBundleRequest generates a "aws/request.Request" representing the client's request for the DescribeBundle operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeBundle for more information on using the DescribeBundle API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeBundleRequest method.
req, resp := client.DescribeBundleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundle

func (*Mobile) DescribeBundleWithContext

func (c *Mobile) DescribeBundleWithContext(ctx aws.Context, input *DescribeBundleInput, opts ...request.Option) (*DescribeBundleOutput, error)

DescribeBundleWithContext is the same as DescribeBundle with the addition of the ability to pass a context and additional request options.

See DescribeBundle for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) DescribeProject

func (c *Mobile) DescribeProject(input *DescribeProjectInput) (*DescribeProjectOutput, error)

DescribeProject API operation for AWS Mobile.

Gets details about a project in AWS Mobile Hub.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation DescribeProject for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

  • ErrCodeNotFoundException "NotFoundException" No entity can be found with the specified identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProject

func (*Mobile) DescribeProjectRequest

func (c *Mobile) DescribeProjectRequest(input *DescribeProjectInput) (req *request.Request, output *DescribeProjectOutput)

DescribeProjectRequest generates a "aws/request.Request" representing the client's request for the DescribeProject operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeProject for more information on using the DescribeProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeProjectRequest method.
req, resp := client.DescribeProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProject

func (*Mobile) DescribeProjectWithContext

func (c *Mobile) DescribeProjectWithContext(ctx aws.Context, input *DescribeProjectInput, opts ...request.Option) (*DescribeProjectOutput, error)

DescribeProjectWithContext is the same as DescribeProject with the addition of the ability to pass a context and additional request options.

See DescribeProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) ExportBundle

func (c *Mobile) ExportBundle(input *ExportBundleInput) (*ExportBundleOutput, error)

ExportBundle API operation for AWS Mobile.

Generates customized software development kit (SDK) and or tool packages used to integrate mobile web or mobile app clients with backend AWS resources.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation ExportBundle for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

  • ErrCodeNotFoundException "NotFoundException" No entity can be found with the specified identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundle

func (*Mobile) ExportBundleRequest

func (c *Mobile) ExportBundleRequest(input *ExportBundleInput) (req *request.Request, output *ExportBundleOutput)

ExportBundleRequest generates a "aws/request.Request" representing the client's request for the ExportBundle operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ExportBundle for more information on using the ExportBundle API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ExportBundleRequest method.
req, resp := client.ExportBundleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundle

func (*Mobile) ExportBundleWithContext

func (c *Mobile) ExportBundleWithContext(ctx aws.Context, input *ExportBundleInput, opts ...request.Option) (*ExportBundleOutput, error)

ExportBundleWithContext is the same as ExportBundle with the addition of the ability to pass a context and additional request options.

See ExportBundle for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) ExportProject

func (c *Mobile) ExportProject(input *ExportProjectInput) (*ExportProjectOutput, error)

ExportProject API operation for AWS Mobile.

Exports project configuration to a snapshot which can be downloaded and shared. Note that mobile app push credentials are encrypted in exported projects, so they can only be shared successfully within the same AWS account.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation ExportProject for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

  • ErrCodeNotFoundException "NotFoundException" No entity can be found with the specified identifier.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProject

func (*Mobile) ExportProjectRequest

func (c *Mobile) ExportProjectRequest(input *ExportProjectInput) (req *request.Request, output *ExportProjectOutput)

ExportProjectRequest generates a "aws/request.Request" representing the client's request for the ExportProject operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ExportProject for more information on using the ExportProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ExportProjectRequest method.
req, resp := client.ExportProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProject

func (*Mobile) ExportProjectWithContext

func (c *Mobile) ExportProjectWithContext(ctx aws.Context, input *ExportProjectInput, opts ...request.Option) (*ExportProjectOutput, error)

ExportProjectWithContext is the same as ExportProject with the addition of the ability to pass a context and additional request options.

See ExportProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) ListBundles

func (c *Mobile) ListBundles(input *ListBundlesInput) (*ListBundlesOutput, error)

ListBundles API operation for AWS Mobile.

List all available bundles.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation ListBundles for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundles

func (*Mobile) ListBundlesPages

func (c *Mobile) ListBundlesPages(input *ListBundlesInput, fn func(*ListBundlesOutput, bool) bool) error

ListBundlesPages iterates over the pages of a ListBundles operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListBundles method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListBundles operation.
pageNum := 0
err := client.ListBundlesPages(params,
    func(page *ListBundlesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Mobile) ListBundlesPagesWithContext

func (c *Mobile) ListBundlesPagesWithContext(ctx aws.Context, input *ListBundlesInput, fn func(*ListBundlesOutput, bool) bool, opts ...request.Option) error

ListBundlesPagesWithContext same as ListBundlesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) ListBundlesRequest

func (c *Mobile) ListBundlesRequest(input *ListBundlesInput) (req *request.Request, output *ListBundlesOutput)

ListBundlesRequest generates a "aws/request.Request" representing the client's request for the ListBundles operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListBundles for more information on using the ListBundles API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListBundlesRequest method.
req, resp := client.ListBundlesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListBundles

func (*Mobile) ListBundlesWithContext

func (c *Mobile) ListBundlesWithContext(ctx aws.Context, input *ListBundlesInput, opts ...request.Option) (*ListBundlesOutput, error)

ListBundlesWithContext is the same as ListBundles with the addition of the ability to pass a context and additional request options.

See ListBundles for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) ListProjects

func (c *Mobile) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error)

ListProjects API operation for AWS Mobile.

Lists projects in AWS Mobile Hub.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation ListProjects for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjects

func (*Mobile) ListProjectsPages

func (c *Mobile) ListProjectsPages(input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool) error

ListProjectsPages iterates over the pages of a ListProjects operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListProjects method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListProjects operation.
pageNum := 0
err := client.ListProjectsPages(params,
    func(page *ListProjectsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*Mobile) ListProjectsPagesWithContext

func (c *Mobile) ListProjectsPagesWithContext(ctx aws.Context, input *ListProjectsInput, fn func(*ListProjectsOutput, bool) bool, opts ...request.Option) error

ListProjectsPagesWithContext same as ListProjectsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) ListProjectsRequest

func (c *Mobile) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput)

ListProjectsRequest generates a "aws/request.Request" representing the client's request for the ListProjects operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListProjects for more information on using the ListProjects API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListProjectsRequest method.
req, resp := client.ListProjectsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ListProjects

func (*Mobile) ListProjectsWithContext

func (c *Mobile) ListProjectsWithContext(ctx aws.Context, input *ListProjectsInput, opts ...request.Option) (*ListProjectsOutput, error)

ListProjectsWithContext is the same as ListProjects with the addition of the ability to pass a context and additional request options.

See ListProjects for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*Mobile) UpdateProject

func (c *Mobile) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error)

UpdateProject API operation for AWS Mobile.

Update an existing project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Mobile's API operation UpdateProject for usage and error information.

Returned Error Codes:

  • ErrCodeInternalFailureException "InternalFailureException" The service has encountered an unexpected error condition which prevents it from servicing the request.

  • ErrCodeServiceUnavailableException "ServiceUnavailableException" The service is temporarily unavailable. The request should be retried after some time delay.

  • ErrCodeUnauthorizedException "UnauthorizedException" Credentials of the caller are insufficient to authorize the request.

  • ErrCodeTooManyRequestsException "TooManyRequestsException" Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

  • ErrCodeBadRequestException "BadRequestException" The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

  • ErrCodeNotFoundException "NotFoundException" No entity can be found with the specified identifier.

  • ErrCodeAccountActionRequiredException "AccountActionRequiredException" Account Action is required in order to continue the request.

  • ErrCodeLimitExceededException "LimitExceededException" There are too many AWS Mobile Hub projects in the account or the account has exceeded the maximum number of resources in some AWS service. You should create another sub-account using AWS Organizations or remove some resources and retry your request.

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProject

func (*Mobile) UpdateProjectRequest

func (c *Mobile) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput)

UpdateProjectRequest generates a "aws/request.Request" representing the client's request for the UpdateProject operation. The "output" return value will be populated with the request's response once the request complets successfuly.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateProject for more information on using the UpdateProject API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateProjectRequest method.
req, resp := client.UpdateProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProject

func (*Mobile) UpdateProjectWithContext

func (c *Mobile) UpdateProjectWithContext(ctx aws.Context, input *UpdateProjectInput, opts ...request.Option) (*UpdateProjectOutput, error)

UpdateProjectWithContext is the same as UpdateProject with the addition of the ability to pass a context and additional request options.

See UpdateProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type ProjectDetails

type ProjectDetails struct {

	// Website URL for this project in the AWS Mobile Hub console.
	ConsoleUrl *string `locationName:"consoleUrl" type:"string"`

	// Date the project was created.
	CreatedDate *time.Time `locationName:"createdDate" type:"timestamp" timestampFormat:"unix"`

	// Date of the last modification of the project.
	LastUpdatedDate *time.Time `locationName:"lastUpdatedDate" type:"timestamp" timestampFormat:"unix"`

	// Name of the project.
	Name *string `locationName:"name" type:"string"`

	// Unique project identifier.
	ProjectId *string `locationName:"projectId" type:"string"`

	// Default region to use for AWS resource creation in the AWS Mobile Hub project.
	Region *string `locationName:"region" type:"string"`

	// List of AWS resources associated with a project.
	Resources []*Resource `locationName:"resources" type:"list"`

	// Synchronization state for a project.
	State *string `locationName:"state" type:"string" enum:"ProjectState"`
	// contains filtered or unexported fields
}

Detailed information about an AWS Mobile Hub project. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ProjectDetails

func (ProjectDetails) GoString

func (s ProjectDetails) GoString() string

GoString returns the string representation

func (*ProjectDetails) SetConsoleUrl

func (s *ProjectDetails) SetConsoleUrl(v string) *ProjectDetails

SetConsoleUrl sets the ConsoleUrl field's value.

func (*ProjectDetails) SetCreatedDate

func (s *ProjectDetails) SetCreatedDate(v time.Time) *ProjectDetails

SetCreatedDate sets the CreatedDate field's value.

func (*ProjectDetails) SetLastUpdatedDate

func (s *ProjectDetails) SetLastUpdatedDate(v time.Time) *ProjectDetails

SetLastUpdatedDate sets the LastUpdatedDate field's value.

func (*ProjectDetails) SetName

func (s *ProjectDetails) SetName(v string) *ProjectDetails

SetName sets the Name field's value.

func (*ProjectDetails) SetProjectId

func (s *ProjectDetails) SetProjectId(v string) *ProjectDetails

SetProjectId sets the ProjectId field's value.

func (*ProjectDetails) SetRegion

func (s *ProjectDetails) SetRegion(v string) *ProjectDetails

SetRegion sets the Region field's value.

func (*ProjectDetails) SetResources

func (s *ProjectDetails) SetResources(v []*Resource) *ProjectDetails

SetResources sets the Resources field's value.

func (*ProjectDetails) SetState

func (s *ProjectDetails) SetState(v string) *ProjectDetails

SetState sets the State field's value.

func (ProjectDetails) String

func (s ProjectDetails) String() string

String returns the string representation

type ProjectSummary

type ProjectSummary struct {

	// Name of the project.
	Name *string `locationName:"name" type:"string"`

	// Unique project identifier.
	ProjectId *string `locationName:"projectId" type:"string"`
	// contains filtered or unexported fields
}

Summary information about an AWS Mobile Hub project. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ProjectSummary

func (ProjectSummary) GoString

func (s ProjectSummary) GoString() string

GoString returns the string representation

func (*ProjectSummary) SetName

func (s *ProjectSummary) SetName(v string) *ProjectSummary

SetName sets the Name field's value.

func (*ProjectSummary) SetProjectId

func (s *ProjectSummary) SetProjectId(v string) *ProjectSummary

SetProjectId sets the ProjectId field's value.

func (ProjectSummary) String

func (s ProjectSummary) String() string

String returns the string representation

type Resource

type Resource struct {

	// AWS resource name which uniquely identifies the resource in AWS systems.
	Arn *string `locationName:"arn" type:"string"`

	// Key-value attribute pairs.
	Attributes map[string]*string `locationName:"attributes" type:"map"`

	// Identifies which feature in AWS Mobile Hub is associated with this AWS resource.
	Feature *string `locationName:"feature" type:"string"`

	// Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name
	// of the bucket).
	Name *string `locationName:"name" type:"string"`

	// Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket).
	Type *string `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

Information about an instance of an AWS resource associated with a project. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/Resource

func (Resource) GoString

func (s Resource) GoString() string

GoString returns the string representation

func (*Resource) SetArn

func (s *Resource) SetArn(v string) *Resource

SetArn sets the Arn field's value.

func (*Resource) SetAttributes

func (s *Resource) SetAttributes(v map[string]*string) *Resource

SetAttributes sets the Attributes field's value.

func (*Resource) SetFeature

func (s *Resource) SetFeature(v string) *Resource

SetFeature sets the Feature field's value.

func (*Resource) SetName

func (s *Resource) SetName(v string) *Resource

SetName sets the Name field's value.

func (*Resource) SetType

func (s *Resource) SetType(v string) *Resource

SetType sets the Type field's value.

func (Resource) String

func (s Resource) String() string

String returns the string representation

type UpdateProjectInput

type UpdateProjectInput struct {

	// ZIP or YAML file which contains project configuration to be updated. This
	// should be the contents of the file downloaded from the URL provided in an
	// export project operation.
	Contents []byte `locationName:"contents" type:"blob"`

	// Unique project identifier.
	//
	// ProjectId is a required field
	ProjectId *string `location:"querystring" locationName:"projectId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request structure used for requests to update project configuration. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProjectRequest

func (UpdateProjectInput) GoString

func (s UpdateProjectInput) GoString() string

GoString returns the string representation

func (*UpdateProjectInput) SetContents

func (s *UpdateProjectInput) SetContents(v []byte) *UpdateProjectInput

SetContents sets the Contents field's value.

func (*UpdateProjectInput) SetProjectId

func (s *UpdateProjectInput) SetProjectId(v string) *UpdateProjectInput

SetProjectId sets the ProjectId field's value.

func (UpdateProjectInput) String

func (s UpdateProjectInput) String() string

String returns the string representation

func (*UpdateProjectInput) Validate

func (s *UpdateProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateProjectOutput

type UpdateProjectOutput struct {

	// Detailed information about the updated AWS Mobile Hub project.
	Details *ProjectDetails `locationName:"details" type:"structure"`
	// contains filtered or unexported fields
}

Result structure used for requests to updated project configuration. See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/UpdateProjectResult

func (UpdateProjectOutput) GoString

func (s UpdateProjectOutput) GoString() string

GoString returns the string representation

func (*UpdateProjectOutput) SetDetails

SetDetails sets the Details field's value.

func (UpdateProjectOutput) String

func (s UpdateProjectOutput) String() string

String returns the string representation

Directories

Path Synopsis
Package mobileiface provides an interface to enable mocking the AWS Mobile service client for testing your code.
Package mobileiface provides an interface to enable mocking the AWS Mobile service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL