codeartifact

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 17

Documentation

Overview

Package codeartifact provides the client and types for making API requests to CodeArtifact.

AWS CodeArtifact is a fully managed artifact repository compatible with language-native package managers and build tools such as npm, Apache Maven, and pip. You can use CodeArtifact to share packages with development teams and pull packages. Packages can be pulled from both public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact repository and another repository, which effectively merges their contents from the point of view of a package manager client.

AWS CodeArtifact Components

Use the information in this guide to help you work with the following CodeArtifact components:

  • Repository: A CodeArtifact repository contains a set of package versions (https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html#welcome-concepts-package-version), each of which maps to a set of assets, or files. Repositories are polyglot, so a single repository can contain packages of any supported type. Each repository exposes endpoints for fetching and publishing packages using tools like the npm CLI, the Maven CLI ( mvn ), and pip . You can create up to 100 repositories per AWS account.

  • Domain: Repositories are aggregated into a higher-level entity known as a domain. All package assets and metadata are stored in the domain, but are consumed through repositories. A given package asset, such as a Maven JAR file, is stored once per domain, no matter how many repositories it's present in. All of the assets and metadata in a domain are encrypted with the same customer master key (CMK) stored in AWS Key Management Service (AWS KMS). Each repository is a member of a single domain and can't be moved to a different domain. The domain allows organizational policy to be applied across multiple repositories, such as which accounts can access repositories in the domain, and which public repositories can be used as sources of packages. Although an organization can have multiple domains, we recommend a single production domain that contains all published artifacts so that teams can find and share packages across their organization.

  • Package: A package is a bundle of software and the metadata required to resolve dependencies and install the software. CodeArtifact supports npm (https://docs.aws.amazon.com/codeartifact/latest/ug/using-npm.html), PyPI (https://docs.aws.amazon.com/codeartifact/latest/ug/using-python.html), and Maven (https://docs.aws.amazon.com/codeartifact/latest/ug/using-maven) package formats. In CodeArtifact, a package consists of: A name (for example, webpack is the name of a popular npm package) An optional namespace (for example, @types in @types/node) A set of versions (for example, 1.0.0, 1.0.1, 1.0.2, etc.) Package-level metadata (for example, npm tags)

  • Package version: A version of a package, such as @types/node 12.6.9. The version number format and semantics vary for different package formats. For example, npm package versions must conform to the Semantic Versioning specification (https://semver.org/). In CodeArtifact, a package version consists of the version identifier, metadata at the package version level, and a set of assets.

  • Upstream repository: One repository is upstream of another when the package versions in it can be accessed from the repository endpoint of the downstream repository, effectively merging the contents of the two repositories from the point of view of a client. CodeArtifact allows creating an upstream relationship between two repositories.

  • Asset: An individual file stored in CodeArtifact associated with a package version, such as an npm .tgz file or Maven POM and JAR files.

CodeArtifact supports these operations:

  • AssociateExternalConnection: Adds an existing external connection to a repository.

  • CopyPackageVersions: Copies package versions from one repository to another repository in the same domain.

  • CreateDomain: Creates a domain

  • CreateRepository: Creates a CodeArtifact repository in a domain.

  • DeleteDomain: Deletes a domain. You cannot delete a domain that contains repositories.

  • DeleteDomainPermissionsPolicy: Deletes the resource policy that is set on a domain.

  • DeletePackageVersions: Deletes versions of a package. After a package has been deleted, it can be republished, but its assets and metadata cannot be restored because they have been permanently removed from storage.

  • DeleteRepository: Deletes a repository.

  • DeleteRepositoryPermissionsPolicy: Deletes the resource policy that is set on a repository.

  • DescribeDomain: Returns a DomainDescription object that contains information about the requested domain.

  • DescribePackageVersion: Returns a PackageVersionDescription (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html) object that contains details about a package version.

  • DescribeRepository: Returns a RepositoryDescription object that contains detailed information about the requested repository.

  • DisposePackageVersions: Disposes versions of a package. A package version with the status Disposed cannot be restored because they have been permanently removed from storage.

  • DisassociateExternalConnection: Removes an existing external connection from a repository.

  • GetAuthorizationToken: Generates a temporary authorization token for accessing repositories in the domain. The token expires the authorization period has passed. The default authorization period is 12 hours and can be customized to any length with a maximum of 12 hours.

  • GetDomainPermissionsPolicy: Returns the policy of a resource that is attached to the specified domain.

  • GetPackageVersionAsset: Returns the contents of an asset that is in a package version.

  • GetPackageVersionReadme: Gets the readme file or descriptive text for a package version.

  • GetRepositoryEndpoint: Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format: npm pypi maven

  • GetRepositoryPermissionsPolicy: Returns the resource policy that is set on a repository.

  • ListDomains: Returns a list of DomainSummary objects. Each returned DomainSummary object contains information about a domain.

  • ListPackages: Lists the packages in a repository.

  • ListPackageVersionAssets: Lists the assets for a given package version.

  • ListPackageVersionDependencies: Returns a list of the direct dependencies for a package version.

  • ListPackageVersions: Returns a list of package versions for a specified package in a repository.

  • ListRepositories: Returns a list of repositories owned by the AWS account that called this method.

  • ListRepositoriesInDomain: Returns a list of the repositories in a domain.

  • PutDomainPermissionsPolicy: Attaches a resource policy to a domain.

  • PutRepositoryPermissionsPolicy: Sets the resource policy on a repository that specifies permissions to access it.

  • UpdatePackageVersionsStatus: Updates the status of one or more versions of a package.

  • UpdateRepository: Updates the properties of a repository.

See https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22 for more information on this service.

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

Using the Client

To use CodeArtifact 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 CodeArtifact client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/codeartifact/#New

Index

Constants

View Source
const (
	ServiceName = "CodeArtifact" // Service's name
	ServiceID   = "Codeartifact" // Service's identifier
	EndpointsID = "codeartifact" // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// The operation did not succeed because of an unauthorized access attempt.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// The operation did not succeed because prerequisites are not met.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// The operation did not succeed because of an error that occurred inside AWS
	// CodeArtifact.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The operation did not succeed because the resource requested is not found
	// in the service.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceQuotaExceededException for service response error code
	// "ServiceQuotaExceededException".
	//
	// The operation did not succeed because it would have exceeded a service limit
	// for your account.
	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// The operation did not succeed because too many requests are sent to the service.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// The operation did not succeed because a parameter in the request was sent
	// with an invalid value.
	ErrCodeValidationException = "ValidationException"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetSummary

type AssetSummary struct {

	// The hashes of the asset.
	Hashes map[string]string `locationName:"hashes" type:"map"`

	// The name of the asset.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// The size of the asset.
	Size *int64 `locationName:"size" type:"long"`
	// contains filtered or unexported fields
}

Contains details about a package version asset.

func (AssetSummary) MarshalFields

func (s AssetSummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (AssetSummary) String

func (s AssetSummary) String() string

String returns the string representation

type AssociateExternalConnectionInput

type AssociateExternalConnectionInput struct {

	// The name of the domain that contains the repository.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The name of the external connection to add to the repository. The following
	// values are supported:
	//
	//    * public:npmjs - for the npm public repository.
	//
	//    * public:pypi - for the Python Package Index.
	//
	//    * public:maven-central - for Maven Central.
	//
	//    * public:maven-googleandroid - for the Google Android repository.
	//
	//    * public:maven-gradleplugins - for the Gradle plugins repository.
	//
	//    * public:maven-commonsware - for the CommonsWare Android repository.
	//
	// ExternalConnection is a required field
	ExternalConnection *string `location:"querystring" locationName:"external-connection" type:"string" required:"true"`

	// The name of the repository to which the external connection is added.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AssociateExternalConnectionInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (AssociateExternalConnectionInput) String

String returns the string representation

func (*AssociateExternalConnectionInput) Validate

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

type AssociateExternalConnectionOutput

type AssociateExternalConnectionOutput struct {

	// Information about the connected repository after processing the request.
	Repository *RepositoryDescription `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (AssociateExternalConnectionOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (AssociateExternalConnectionOutput) String

String returns the string representation

type AssociateExternalConnectionRequest

type AssociateExternalConnectionRequest struct {
	*aws.Request
	Input *AssociateExternalConnectionInput
	Copy  func(*AssociateExternalConnectionInput) AssociateExternalConnectionRequest
}

AssociateExternalConnectionRequest is the request type for the AssociateExternalConnection API operation.

func (AssociateExternalConnectionRequest) Send

Send marshals and sends the AssociateExternalConnection API request.

type AssociateExternalConnectionResponse

type AssociateExternalConnectionResponse struct {
	*AssociateExternalConnectionOutput
	// contains filtered or unexported fields
}

AssociateExternalConnectionResponse is the response type for the AssociateExternalConnection API operation.

func (*AssociateExternalConnectionResponse) SDKResponseMetdata

func (r *AssociateExternalConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the AssociateExternalConnection request.

type Client

type Client struct {
	*aws.Client
}

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

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

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := codeartifact.New(myConfig)

func (*Client) AssociateExternalConnectionRequest

func (c *Client) AssociateExternalConnectionRequest(input *AssociateExternalConnectionInput) AssociateExternalConnectionRequest

AssociateExternalConnectionRequest returns a request value for making API operation for CodeArtifact.

Adds an existing external connection to a repository. One external connection is allowed per repository.

A repository can have one or more upstream repositories, or an external connection.

// Example sending a request using AssociateExternalConnectionRequest.
req := client.AssociateExternalConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnection

func (*Client) CopyPackageVersionsRequest

func (c *Client) CopyPackageVersionsRequest(input *CopyPackageVersionsInput) CopyPackageVersionsRequest

CopyPackageVersionsRequest returns a request value for making API operation for CodeArtifact.

Copies package versions from one repository to another repository in the same domain.

You must specify versions or versionRevisions. You cannot specify both.

// Example sending a request using CopyPackageVersionsRequest.
req := client.CopyPackageVersionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CopyPackageVersions

func (*Client) CreateDomainRequest

func (c *Client) CreateDomainRequest(input *CreateDomainInput) CreateDomainRequest

CreateDomainRequest returns a request value for making API operation for CodeArtifact.

Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts. An asset is stored only once in a domain, even if it's in multiple repositories.

Although you can have multiple domains, we recommend a single production domain that contains all published artifacts so that your development teams can find and share packages. You can use a second pre-production domain to test changes to the production domain configuration.

// Example sending a request using CreateDomainRequest.
req := client.CreateDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomain

func (*Client) CreateRepositoryRequest

func (c *Client) CreateRepositoryRequest(input *CreateRepositoryInput) CreateRepositoryRequest

CreateRepositoryRequest returns a request value for making API operation for CodeArtifact.

Creates a repository.

// Example sending a request using CreateRepositoryRequest.
req := client.CreateRepositoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepository

func (*Client) DeleteDomainPermissionsPolicyRequest

func (c *Client) DeleteDomainPermissionsPolicyRequest(input *DeleteDomainPermissionsPolicyInput) DeleteDomainPermissionsPolicyRequest

DeleteDomainPermissionsPolicyRequest returns a request value for making API operation for CodeArtifact.

Deletes the resource policy set on a domain.

// Example sending a request using DeleteDomainPermissionsPolicyRequest.
req := client.DeleteDomainPermissionsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomainPermissionsPolicy

func (*Client) DeleteDomainRequest

func (c *Client) DeleteDomainRequest(input *DeleteDomainInput) DeleteDomainRequest

DeleteDomainRequest returns a request value for making API operation for CodeArtifact.

Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.

// Example sending a request using DeleteDomainRequest.
req := client.DeleteDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomain

func (*Client) DeletePackageVersionsRequest

func (c *Client) DeletePackageVersionsRequest(input *DeletePackageVersionsInput) DeletePackageVersionsRequest

DeletePackageVersionsRequest returns a request value for making API operation for CodeArtifact.

Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived. Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, ListackageVersions (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html) ), but you can restore them using UpdatePackageVersionsStatus (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html) .

// Example sending a request using DeletePackageVersionsRequest.
req := client.DeletePackageVersionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageVersions

func (*Client) DeleteRepositoryPermissionsPolicyRequest

func (c *Client) DeleteRepositoryPermissionsPolicyRequest(input *DeleteRepositoryPermissionsPolicyInput) DeleteRepositoryPermissionsPolicyRequest

DeleteRepositoryPermissionsPolicyRequest returns a request value for making API operation for CodeArtifact.

Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate.

Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, AWS users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy.

// Example sending a request using DeleteRepositoryPermissionsPolicyRequest.
req := client.DeleteRepositoryPermissionsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepositoryPermissionsPolicy

func (*Client) DeleteRepositoryRequest

func (c *Client) DeleteRepositoryRequest(input *DeleteRepositoryInput) DeleteRepositoryRequest

DeleteRepositoryRequest returns a request value for making API operation for CodeArtifact.

Deletes a repository.

// Example sending a request using DeleteRepositoryRequest.
req := client.DeleteRepositoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepository

func (*Client) DescribeDomainRequest

func (c *Client) DescribeDomainRequest(input *DescribeDomainInput) DescribeDomainRequest

DescribeDomainRequest returns a request value for making API operation for CodeArtifact.

Returns a DomainDescription (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainDescription.html) object that contains information about the requested domain.

// Example sending a request using DescribeDomainRequest.
req := client.DescribeDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomain

func (*Client) DescribePackageVersionRequest

func (c *Client) DescribePackageVersionRequest(input *DescribePackageVersionInput) DescribePackageVersionRequest

DescribePackageVersionRequest returns a request value for making API operation for CodeArtifact.

Returns a PackageVersionDescription (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html) object that contains information about the requested package version.

// Example sending a request using DescribePackageVersionRequest.
req := client.DescribePackageVersionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribePackageVersion

func (*Client) DescribeRepositoryRequest

func (c *Client) DescribeRepositoryRequest(input *DescribeRepositoryInput) DescribeRepositoryRequest

DescribeRepositoryRequest returns a request value for making API operation for CodeArtifact.

Returns a RepositoryDescription object that contains detailed information about the requested repository.

// Example sending a request using DescribeRepositoryRequest.
req := client.DescribeRepositoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepository

func (*Client) DisassociateExternalConnectionRequest

func (c *Client) DisassociateExternalConnectionRequest(input *DisassociateExternalConnectionInput) DisassociateExternalConnectionRequest

DisassociateExternalConnectionRequest returns a request value for making API operation for CodeArtifact.

Removes an existing external connection from a repository.

// Example sending a request using DisassociateExternalConnectionRequest.
req := client.DisassociateExternalConnectionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnection

func (*Client) DisposePackageVersionsRequest

func (c *Client) DisposePackageVersionsRequest(input *DisposePackageVersionsInput) DisposePackageVersionsRequest

DisposePackageVersionsRequest returns a request value for making API operation for CodeArtifact.

Deletes the assets in package versions and sets the package versions' status to Disposed. A disposed package version cannot be restored in your repository because its assets are deleted.

To view all disposed package versions in a repository, use ListackageVersions (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html) and set the status (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax) parameter to Disposed.

To view information about a disposed package version, use ListPackageVersions (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html) and set the status (https://docs.aws.amazon.com/API_ListPackageVersions.html#codeartifact-ListPackageVersions-response-status) parameter to Disposed.

// Example sending a request using DisposePackageVersionsRequest.
req := client.DisposePackageVersionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisposePackageVersions

func (*Client) GetAuthorizationTokenRequest

func (c *Client) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) GetAuthorizationTokenRequest

GetAuthorizationTokenRequest returns a request value for making API operation for CodeArtifact.

Generates a temporary authentication token for accessing repositories in the domain. This API requires the codeartifact:GetAuthorizationToken and sts:GetServiceBearerToken permissions.

CodeArtifact authorization tokens are valid for a period of 12 hours when created with the login command. You can call login periodically to refresh the token. When you create an authorization token with the GetAuthorizationToken API, you can set a custom authorization period, up to a maximum of 12 hours, with the durationSeconds parameter.

The authorization period begins after login or GetAuthorizationToken is called. If login or GetAuthorizationToken is called while assuming a role, the token lifetime is independent of the maximum session duration of the role. For example, if you call sts assume-role and specify a session duration of 15 minutes, then generate a CodeArtifact authorization token, the token will be valid for the full authorization period even though this is longer than the 15-minute session duration.

See Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html) for more information on controlling session duration.

// Example sending a request using GetAuthorizationTokenRequest.
req := client.GetAuthorizationTokenRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetAuthorizationToken

func (*Client) GetDomainPermissionsPolicyRequest

func (c *Client) GetDomainPermissionsPolicyRequest(input *GetDomainPermissionsPolicyInput) GetDomainPermissionsPolicyRequest

GetDomainPermissionsPolicyRequest returns a request value for making API operation for CodeArtifact.

Returns the resource policy attached to the specified domain.

The policy is a resource-based policy, not an identity-based policy. For more information, see Identity-based policies and resource-based policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html) in the AWS Identity and Access Management User Guide.

// Example sending a request using GetDomainPermissionsPolicyRequest.
req := client.GetDomainPermissionsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetDomainPermissionsPolicy

func (*Client) GetPackageVersionAssetRequest

func (c *Client) GetPackageVersionAssetRequest(input *GetPackageVersionAssetInput) GetPackageVersionAssetRequest

GetPackageVersionAssetRequest returns a request value for making API operation for CodeArtifact.

Returns an asset (or file) that is in a package. For example, for a Maven package version, use GetPackageVersionAsset to download a JAR file, a POM file, or any other assets in the package version.

// Example sending a request using GetPackageVersionAssetRequest.
req := client.GetPackageVersionAssetRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionAsset

func (*Client) GetPackageVersionReadmeRequest

func (c *Client) GetPackageVersionReadmeRequest(input *GetPackageVersionReadmeInput) GetPackageVersionReadmeRequest

GetPackageVersionReadmeRequest returns a request value for making API operation for CodeArtifact.

Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact extracts a description from a metadata file. For example, from the <description> element in the pom.xml file of a Maven package.

The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.

// Example sending a request using GetPackageVersionReadmeRequest.
req := client.GetPackageVersionReadmeRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionReadme

func (*Client) GetRepositoryEndpointRequest

func (c *Client) GetRepositoryEndpointRequest(input *GetRepositoryEndpointInput) GetRepositoryEndpointRequest

GetRepositoryEndpointRequest returns a request value for making API operation for CodeArtifact.

Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:

  • npm

  • pypi

  • maven

    // Example sending a request using GetRepositoryEndpointRequest. req := client.GetRepositoryEndpointRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryEndpoint

func (*Client) GetRepositoryPermissionsPolicyRequest

func (c *Client) GetRepositoryPermissionsPolicyRequest(input *GetRepositoryPermissionsPolicyInput) GetRepositoryPermissionsPolicyRequest

GetRepositoryPermissionsPolicyRequest returns a request value for making API operation for CodeArtifact.

Returns the resource policy that is set on a repository.

// Example sending a request using GetRepositoryPermissionsPolicyRequest.
req := client.GetRepositoryPermissionsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryPermissionsPolicy

func (*Client) ListDomainsRequest

func (c *Client) ListDomainsRequest(input *ListDomainsInput) ListDomainsRequest

ListDomainsRequest returns a request value for making API operation for CodeArtifact.

Returns a list of DomainSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html) objects for all domains owned by the AWS account that makes this call. Each returned DomainSummary object contains information about a domain.

// Example sending a request using ListDomainsRequest.
req := client.ListDomainsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListDomains

func (*Client) ListPackageVersionAssetsRequest

func (c *Client) ListPackageVersionAssetsRequest(input *ListPackageVersionAssetsInput) ListPackageVersionAssetsRequest

ListPackageVersionAssetsRequest returns a request value for making API operation for CodeArtifact.

Returns a list of AssetSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html) objects for assets in a package version.

// Example sending a request using ListPackageVersionAssetsRequest.
req := client.ListPackageVersionAssetsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionAssets

func (*Client) ListPackageVersionDependenciesRequest

func (c *Client) ListPackageVersionDependenciesRequest(input *ListPackageVersionDependenciesInput) ListPackageVersionDependenciesRequest

ListPackageVersionDependenciesRequest returns a request value for making API operation for CodeArtifact.

Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html) objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the package.json file for npm packages and the pom.xml file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.

// Example sending a request using ListPackageVersionDependenciesRequest.
req := client.ListPackageVersionDependenciesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionDependencies

func (*Client) ListPackageVersionsRequest

func (c *Client) ListPackageVersionsRequest(input *ListPackageVersionsInput) ListPackageVersionsRequest

ListPackageVersionsRequest returns a request value for making API operation for CodeArtifact.

Returns a list of PackageVersionSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html) objects for package versions in a repository that match the request parameters.

// Example sending a request using ListPackageVersionsRequest.
req := client.ListPackageVersionsRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersions

func (*Client) ListPackagesRequest

func (c *Client) ListPackagesRequest(input *ListPackagesInput) ListPackagesRequest

ListPackagesRequest returns a request value for making API operation for CodeArtifact.

Returns a list of PackageSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html) objects for packages in a repository that match the request parameters.

// Example sending a request using ListPackagesRequest.
req := client.ListPackagesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackages

func (*Client) ListRepositoriesInDomainRequest

func (c *Client) ListRepositoriesInDomainRequest(input *ListRepositoriesInDomainInput) ListRepositoriesInDomainRequest

ListRepositoriesInDomainRequest returns a request value for making API operation for CodeArtifact.

Returns a list of RepositorySummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html) objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters.

// Example sending a request using ListRepositoriesInDomainRequest.
req := client.ListRepositoriesInDomainRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesInDomain

func (*Client) ListRepositoriesRequest

func (c *Client) ListRepositoriesRequest(input *ListRepositoriesInput) ListRepositoriesRequest

ListRepositoriesRequest returns a request value for making API operation for CodeArtifact.

Returns a list of RepositorySummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html) objects. Each RepositorySummary contains information about a repository in the specified AWS account and that matches the input parameters.

// Example sending a request using ListRepositoriesRequest.
req := client.ListRepositoriesRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositories

func (*Client) PutDomainPermissionsPolicyRequest

func (c *Client) PutDomainPermissionsPolicyRequest(input *PutDomainPermissionsPolicyInput) PutDomainPermissionsPolicyRequest

PutDomainPermissionsPolicyRequest returns a request value for making API operation for CodeArtifact.

Sets a resource policy on a domain that specifies permissions to access it.

// Example sending a request using PutDomainPermissionsPolicyRequest.
req := client.PutDomainPermissionsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutDomainPermissionsPolicy

func (*Client) PutRepositoryPermissionsPolicyRequest

func (c *Client) PutRepositoryPermissionsPolicyRequest(input *PutRepositoryPermissionsPolicyInput) PutRepositoryPermissionsPolicyRequest

PutRepositoryPermissionsPolicyRequest returns a request value for making API operation for CodeArtifact.

Sets the resource policy on a repository that specifies permissions to access it.

// Example sending a request using PutRepositoryPermissionsPolicyRequest.
req := client.PutRepositoryPermissionsPolicyRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutRepositoryPermissionsPolicy

func (*Client) UpdatePackageVersionsStatusRequest

func (c *Client) UpdatePackageVersionsStatusRequest(input *UpdatePackageVersionsStatusInput) UpdatePackageVersionsStatusRequest

UpdatePackageVersionsStatusRequest returns a request value for making API operation for CodeArtifact.

Updates the status of one or more versions of a package.

// Example sending a request using UpdatePackageVersionsStatusRequest.
req := client.UpdatePackageVersionsStatusRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdatePackageVersionsStatus

func (*Client) UpdateRepositoryRequest

func (c *Client) UpdateRepositoryRequest(input *UpdateRepositoryInput) UpdateRepositoryRequest

UpdateRepositoryRequest returns a request value for making API operation for CodeArtifact.

Update the properties of a repository.

// Example sending a request using UpdateRepositoryRequest.
req := client.UpdateRepositoryRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepository

type CopyPackageVersionsInput

type CopyPackageVersionsInput struct {

	// Set to true to overwrite a package version that already exists in the destination
	// repository. If set to false and the package version already exists in the
	// destination repository, the package version is returned in the failedVersions
	// field of the response with an ALREADY_EXISTS error code.
	AllowOverwrite *bool `locationName:"allowOverwrite" type:"boolean"`

	// The name of the repository into which package versions are copied.
	//
	// DestinationRepository is a required field
	DestinationRepository *string `location:"querystring" locationName:"destination-repository" min:"2" type:"string" required:"true"`

	// The name of the domain that contains the source and destination repositories.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The format of the package that is copied. The valid package types are:
	//
	//    * npm: A Node Package Manager (npm) package.
	//
	//    * pypi: A Python Package Index (PyPI) package.
	//
	//    * maven: A Maven package that contains compiled code in a distributable
	//    format, such as a JAR file.
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// Set to true to copy packages from repositories that are upstream from the
	// source repository to the destination repository. The default setting is false.
	// For more information, see Working with upstream repositories (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html).
	IncludeFromUpstream *bool `locationName:"includeFromUpstream" type:"boolean"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The name of the package that is copied.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// The name of the repository that contains the package versions to copy.
	//
	// SourceRepository is a required field
	SourceRepository *string `location:"querystring" locationName:"source-repository" min:"2" type:"string" required:"true"`

	// A list of key-value pairs. The keys are package versions and the values are
	// package version revisions. A CopyPackageVersion operation succeeds if the
	// specified versions in the source repository match the specified package version
	// revision.
	//
	// You must specify versions or versionRevisions. You cannot specify both.
	VersionRevisions map[string]string `locationName:"versionRevisions" type:"map"`

	// The versions of the package to copy.
	//
	// You must specify versions or versionRevisions. You cannot specify both.
	Versions []string `locationName:"versions" type:"list"`
	// contains filtered or unexported fields
}

func (CopyPackageVersionsInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CopyPackageVersionsInput) String

func (s CopyPackageVersionsInput) String() string

String returns the string representation

func (*CopyPackageVersionsInput) Validate

func (s *CopyPackageVersionsInput) Validate() error

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

type CopyPackageVersionsOutput

type CopyPackageVersionsOutput struct {

	// A map of package versions that failed to copy and their error codes. The
	// possible error codes are in the PackageVersionError data type. They are:
	//
	//    * ALREADY_EXISTS
	//
	//    * MISMATCHED_REVISION
	//
	//    * MISMATCHED_STATUS
	//
	//    * NOT_ALLOWED
	//
	//    * NOT_FOUND
	//
	//    * SKIPPED
	FailedVersions map[string]PackageVersionError `locationName:"failedVersions" type:"map"`

	// A list of the package versions that were successfully copied to your repository.
	SuccessfulVersions map[string]SuccessfulPackageVersionInfo `locationName:"successfulVersions" type:"map"`
	// contains filtered or unexported fields
}

func (CopyPackageVersionsOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CopyPackageVersionsOutput) String

func (s CopyPackageVersionsOutput) String() string

String returns the string representation

type CopyPackageVersionsRequest

type CopyPackageVersionsRequest struct {
	*aws.Request
	Input *CopyPackageVersionsInput
	Copy  func(*CopyPackageVersionsInput) CopyPackageVersionsRequest
}

CopyPackageVersionsRequest is the request type for the CopyPackageVersions API operation.

func (CopyPackageVersionsRequest) Send

Send marshals and sends the CopyPackageVersions API request.

type CopyPackageVersionsResponse

type CopyPackageVersionsResponse struct {
	*CopyPackageVersionsOutput
	// contains filtered or unexported fields
}

CopyPackageVersionsResponse is the response type for the CopyPackageVersions API operation.

func (*CopyPackageVersionsResponse) SDKResponseMetdata

func (r *CopyPackageVersionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CopyPackageVersions request.

type CreateDomainInput

type CreateDomainInput struct {

	// The name of the domain to create. All domain names in an AWS Region that
	// are in the same AWS account must be unique. The domain name is used as the
	// prefix in DNS hostnames. Do not use sensitive information in a domain name
	// because it is publicly discoverable.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The encryption key for the domain. This is used to encrypt content stored
	// in a domain. An encryption key can be a key ID, a key Amazon Resource Name
	// (ARN), a key alias, or a key alias ARN. To specify an encryptionKey, your
	// IAM role must have kms:DescribeKey and kms:CreateGrant permissions on the
	// encryption key that is used. For more information, see DescribeKey (https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestSyntax)
	// in the AWS Key Management Service API Reference and AWS KMS API Permissions
	// Reference (https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html)
	// in the AWS Key Management Service Developer Guide.
	//
	// CodeArtifact supports only symmetric CMKs. Do not associate an asymmetric
	// CMK with your domain. For more information, see Using symmetric and asymmetric
	// keys (https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html)
	// in the AWS Key Management Service Developer Guide.
	EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (CreateDomainInput) MarshalFields

func (s CreateDomainInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateDomainInput) String

func (s CreateDomainInput) String() string

String returns the string representation

func (*CreateDomainInput) Validate

func (s *CreateDomainInput) Validate() error

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

type CreateDomainOutput

type CreateDomainOutput struct {

	// Contains information about the created domain after processing the request.
	Domain *DomainDescription `locationName:"domain" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateDomainOutput) MarshalFields

func (s CreateDomainOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateDomainOutput) String

func (s CreateDomainOutput) String() string

String returns the string representation

type CreateDomainRequest

type CreateDomainRequest struct {
	*aws.Request
	Input *CreateDomainInput
	Copy  func(*CreateDomainInput) CreateDomainRequest
}

CreateDomainRequest is the request type for the CreateDomain API operation.

func (CreateDomainRequest) Send

Send marshals and sends the CreateDomain API request.

type CreateDomainResponse

type CreateDomainResponse struct {
	*CreateDomainOutput
	// contains filtered or unexported fields
}

CreateDomainResponse is the response type for the CreateDomain API operation.

func (*CreateDomainResponse) SDKResponseMetdata

func (r *CreateDomainResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateDomain request.

type CreateRepositoryInput

type CreateRepositoryInput struct {

	// A description of the created repository.
	Description *string `locationName:"description" type:"string"`

	// The domain that contains the created repository.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The name of the repository to create.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`

	// A list of upstream repositories to associate with the repository. The order
	// of the upstream repositories in the list determines their priority order
	// when AWS CodeArtifact looks for a requested package version. For more information,
	// see Working with upstream repositories (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html).
	Upstreams []UpstreamRepository `locationName:"upstreams" type:"list"`
	// contains filtered or unexported fields
}

func (CreateRepositoryInput) MarshalFields

func (s CreateRepositoryInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateRepositoryInput) String

func (s CreateRepositoryInput) String() string

String returns the string representation

func (*CreateRepositoryInput) Validate

func (s *CreateRepositoryInput) Validate() error

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

type CreateRepositoryOutput

type CreateRepositoryOutput struct {

	// Information about the created repository after processing the request.
	Repository *RepositoryDescription `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateRepositoryOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CreateRepositoryOutput) String

func (s CreateRepositoryOutput) String() string

String returns the string representation

type CreateRepositoryRequest

type CreateRepositoryRequest struct {
	*aws.Request
	Input *CreateRepositoryInput
	Copy  func(*CreateRepositoryInput) CreateRepositoryRequest
}

CreateRepositoryRequest is the request type for the CreateRepository API operation.

func (CreateRepositoryRequest) Send

Send marshals and sends the CreateRepository API request.

type CreateRepositoryResponse

type CreateRepositoryResponse struct {
	*CreateRepositoryOutput
	// contains filtered or unexported fields
}

CreateRepositoryResponse is the response type for the CreateRepository API operation.

func (*CreateRepositoryResponse) SDKResponseMetdata

func (r *CreateRepositoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CreateRepository request.

type DeleteDomainInput

type DeleteDomainInput struct {

	// The name of the domain to delete.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteDomainInput) MarshalFields

func (s DeleteDomainInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteDomainInput) String

func (s DeleteDomainInput) String() string

String returns the string representation

func (*DeleteDomainInput) Validate

func (s *DeleteDomainInput) Validate() error

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

type DeleteDomainOutput

type DeleteDomainOutput struct {

	// Contains information about the deleted domain after processing the request.
	Domain *DomainDescription `locationName:"domain" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteDomainOutput) MarshalFields

func (s DeleteDomainOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteDomainOutput) String

func (s DeleteDomainOutput) String() string

String returns the string representation

type DeleteDomainPermissionsPolicyInput

type DeleteDomainPermissionsPolicyInput struct {

	// The name of the domain associated with the resource policy to be deleted.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The current revision of the resource policy to be deleted. This revision
	// is used for optimistic locking, which prevents others from overwriting your
	// changes to the domain's resource policy.
	PolicyRevision *string `location:"querystring" locationName:"policy-revision" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteDomainPermissionsPolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteDomainPermissionsPolicyInput) String

String returns the string representation

func (*DeleteDomainPermissionsPolicyInput) Validate

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

type DeleteDomainPermissionsPolicyOutput

type DeleteDomainPermissionsPolicyOutput struct {

	// Information about the deleted resource policy after processing the request.
	Policy *ResourcePolicy `locationName:"policy" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteDomainPermissionsPolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteDomainPermissionsPolicyOutput) String

String returns the string representation

type DeleteDomainPermissionsPolicyRequest

type DeleteDomainPermissionsPolicyRequest struct {
	*aws.Request
	Input *DeleteDomainPermissionsPolicyInput
	Copy  func(*DeleteDomainPermissionsPolicyInput) DeleteDomainPermissionsPolicyRequest
}

DeleteDomainPermissionsPolicyRequest is the request type for the DeleteDomainPermissionsPolicy API operation.

func (DeleteDomainPermissionsPolicyRequest) Send

Send marshals and sends the DeleteDomainPermissionsPolicy API request.

type DeleteDomainPermissionsPolicyResponse

type DeleteDomainPermissionsPolicyResponse struct {
	*DeleteDomainPermissionsPolicyOutput
	// contains filtered or unexported fields
}

DeleteDomainPermissionsPolicyResponse is the response type for the DeleteDomainPermissionsPolicy API operation.

func (*DeleteDomainPermissionsPolicyResponse) SDKResponseMetdata

func (r *DeleteDomainPermissionsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteDomainPermissionsPolicy request.

type DeleteDomainRequest

type DeleteDomainRequest struct {
	*aws.Request
	Input *DeleteDomainInput
	Copy  func(*DeleteDomainInput) DeleteDomainRequest
}

DeleteDomainRequest is the request type for the DeleteDomain API operation.

func (DeleteDomainRequest) Send

Send marshals and sends the DeleteDomain API request.

type DeleteDomainResponse

type DeleteDomainResponse struct {
	*DeleteDomainOutput
	// contains filtered or unexported fields
}

DeleteDomainResponse is the response type for the DeleteDomain API operation.

func (*DeleteDomainResponse) SDKResponseMetdata

func (r *DeleteDomainResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteDomain request.

type DeletePackageVersionsInput

type DeletePackageVersionsInput struct {

	// The name of the domain that contains the package to delete.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The expected status of the package version to delete. Valid values are:
	//
	//    * Published
	//
	//    * Unfinished
	//
	//    * Unlisted
	//
	//    * Archived
	//
	//    * Disposed
	ExpectedStatus PackageVersionStatus `locationName:"expectedStatus" type:"string" enum:"true"`

	// The format of the package versions to delete. The valid values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The name of the package with the versions to delete.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// The name of the repository that contains the package versions to delete.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`

	// An array of strings that specify the versions of the package to delete.
	//
	// Versions is a required field
	Versions []string `locationName:"versions" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DeletePackageVersionsInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeletePackageVersionsInput) String

String returns the string representation

func (*DeletePackageVersionsInput) Validate

func (s *DeletePackageVersionsInput) Validate() error

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

type DeletePackageVersionsOutput

type DeletePackageVersionsOutput struct {

	// A PackageVersionError object that contains a map of errors codes for the
	// deleted package that failed. The possible error codes are:
	//
	//    * ALREADY_EXISTS
	//
	//    * MISMATCHED_REVISION
	//
	//    * MISMATCHED_STATUS
	//
	//    * NOT_ALLOWED
	//
	//    * NOT_FOUND
	//
	//    * SKIPPED
	FailedVersions map[string]PackageVersionError `locationName:"failedVersions" type:"map"`

	// A list of the package versions that were successfully deleted.
	SuccessfulVersions map[string]SuccessfulPackageVersionInfo `locationName:"successfulVersions" type:"map"`
	// contains filtered or unexported fields
}

func (DeletePackageVersionsOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeletePackageVersionsOutput) String

String returns the string representation

type DeletePackageVersionsRequest

type DeletePackageVersionsRequest struct {
	*aws.Request
	Input *DeletePackageVersionsInput
	Copy  func(*DeletePackageVersionsInput) DeletePackageVersionsRequest
}

DeletePackageVersionsRequest is the request type for the DeletePackageVersions API operation.

func (DeletePackageVersionsRequest) Send

Send marshals and sends the DeletePackageVersions API request.

type DeletePackageVersionsResponse

type DeletePackageVersionsResponse struct {
	*DeletePackageVersionsOutput
	// contains filtered or unexported fields
}

DeletePackageVersionsResponse is the response type for the DeletePackageVersions API operation.

func (*DeletePackageVersionsResponse) SDKResponseMetdata

func (r *DeletePackageVersionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeletePackageVersions request.

type DeleteRepositoryInput

type DeleteRepositoryInput struct {

	// The name of the domain that contains the repository to delete.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The name of the repository to delete.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryInput) MarshalFields

func (s DeleteRepositoryInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteRepositoryInput) String

func (s DeleteRepositoryInput) String() string

String returns the string representation

func (*DeleteRepositoryInput) Validate

func (s *DeleteRepositoryInput) Validate() error

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

type DeleteRepositoryOutput

type DeleteRepositoryOutput struct {

	// Information about the deleted repository after processing the request.
	Repository *RepositoryDescription `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteRepositoryOutput) String

func (s DeleteRepositoryOutput) String() string

String returns the string representation

type DeleteRepositoryPermissionsPolicyInput

type DeleteRepositoryPermissionsPolicyInput struct {

	// The name of the domain that contains the repository associated with the resource
	// policy to be deleted.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The revision of the repository's resource policy to be deleted. This revision
	// is used for optimistic locking, which prevents others from accidentally overwriting
	// your changes to the repository's resource policy.
	PolicyRevision *string `location:"querystring" locationName:"policy-revision" min:"1" type:"string"`

	// The name of the repository that is associated with the resource policy to
	// be deleted
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryPermissionsPolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteRepositoryPermissionsPolicyInput) String

String returns the string representation

func (*DeleteRepositoryPermissionsPolicyInput) Validate

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

type DeleteRepositoryPermissionsPolicyOutput

type DeleteRepositoryPermissionsPolicyOutput struct {

	// Information about the deleted policy after processing the request.
	Policy *ResourcePolicy `locationName:"policy" type:"structure"`
	// contains filtered or unexported fields
}

func (DeleteRepositoryPermissionsPolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DeleteRepositoryPermissionsPolicyOutput) String

String returns the string representation

type DeleteRepositoryPermissionsPolicyRequest

DeleteRepositoryPermissionsPolicyRequest is the request type for the DeleteRepositoryPermissionsPolicy API operation.

func (DeleteRepositoryPermissionsPolicyRequest) Send

Send marshals and sends the DeleteRepositoryPermissionsPolicy API request.

type DeleteRepositoryPermissionsPolicyResponse

type DeleteRepositoryPermissionsPolicyResponse struct {
	*DeleteRepositoryPermissionsPolicyOutput
	// contains filtered or unexported fields
}

DeleteRepositoryPermissionsPolicyResponse is the response type for the DeleteRepositoryPermissionsPolicy API operation.

func (*DeleteRepositoryPermissionsPolicyResponse) SDKResponseMetdata

func (r *DeleteRepositoryPermissionsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteRepositoryPermissionsPolicy request.

type DeleteRepositoryRequest

type DeleteRepositoryRequest struct {
	*aws.Request
	Input *DeleteRepositoryInput
	Copy  func(*DeleteRepositoryInput) DeleteRepositoryRequest
}

DeleteRepositoryRequest is the request type for the DeleteRepository API operation.

func (DeleteRepositoryRequest) Send

Send marshals and sends the DeleteRepository API request.

type DeleteRepositoryResponse

type DeleteRepositoryResponse struct {
	*DeleteRepositoryOutput
	// contains filtered or unexported fields
}

DeleteRepositoryResponse is the response type for the DeleteRepository API operation.

func (*DeleteRepositoryResponse) SDKResponseMetdata

func (r *DeleteRepositoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DeleteRepository request.

type DescribeDomainInput

type DescribeDomainInput struct {

	// A string that specifies the name of the requested domain.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`
	// contains filtered or unexported fields
}

func (DescribeDomainInput) MarshalFields

func (s DescribeDomainInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeDomainInput) String

func (s DescribeDomainInput) String() string

String returns the string representation

func (*DescribeDomainInput) Validate

func (s *DescribeDomainInput) Validate() error

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

type DescribeDomainOutput

type DescribeDomainOutput struct {

	// Information about a domain. A domain is a container for repositories. When
	// you create a domain, it is empty until you add one or more repositories.
	Domain *DomainDescription `locationName:"domain" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeDomainOutput) MarshalFields

func (s DescribeDomainOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeDomainOutput) String

func (s DescribeDomainOutput) String() string

String returns the string representation

type DescribeDomainRequest

type DescribeDomainRequest struct {
	*aws.Request
	Input *DescribeDomainInput
	Copy  func(*DescribeDomainInput) DescribeDomainRequest
}

DescribeDomainRequest is the request type for the DescribeDomain API operation.

func (DescribeDomainRequest) Send

Send marshals and sends the DescribeDomain API request.

type DescribeDomainResponse

type DescribeDomainResponse struct {
	*DescribeDomainOutput
	// contains filtered or unexported fields
}

DescribeDomainResponse is the response type for the DescribeDomain API operation.

func (*DescribeDomainResponse) SDKResponseMetdata

func (r *DescribeDomainResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeDomain request.

type DescribePackageVersionInput

type DescribePackageVersionInput struct {

	// The name of the domain that contains the repository that contains the package
	// version.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// A format that specifies the type of the requested package version. The valid
	// values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The name of the requested package version.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// A string that contains the package version (for example, 3.5.2).
	//
	// PackageVersion is a required field
	PackageVersion *string `location:"querystring" locationName:"version" min:"1" type:"string" required:"true"`

	// The name of the repository that contains the package version.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribePackageVersionInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribePackageVersionInput) String

String returns the string representation

func (*DescribePackageVersionInput) Validate

func (s *DescribePackageVersionInput) Validate() error

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

type DescribePackageVersionOutput

type DescribePackageVersionOutput struct {

	// A PackageVersionDescription (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html)
	// object that contains information about the requested package version.
	//
	// PackageVersion is a required field
	PackageVersion *PackageVersionDescription `locationName:"packageVersion" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (DescribePackageVersionOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribePackageVersionOutput) String

String returns the string representation

type DescribePackageVersionRequest

type DescribePackageVersionRequest struct {
	*aws.Request
	Input *DescribePackageVersionInput
	Copy  func(*DescribePackageVersionInput) DescribePackageVersionRequest
}

DescribePackageVersionRequest is the request type for the DescribePackageVersion API operation.

func (DescribePackageVersionRequest) Send

Send marshals and sends the DescribePackageVersion API request.

type DescribePackageVersionResponse

type DescribePackageVersionResponse struct {
	*DescribePackageVersionOutput
	// contains filtered or unexported fields
}

DescribePackageVersionResponse is the response type for the DescribePackageVersion API operation.

func (*DescribePackageVersionResponse) SDKResponseMetdata

func (r *DescribePackageVersionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribePackageVersion request.

type DescribeRepositoryInput

type DescribeRepositoryInput struct {

	// The name of the domain that contains the repository to describe.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// A string that specifies the name of the requested repository.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeRepositoryInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeRepositoryInput) String

func (s DescribeRepositoryInput) String() string

String returns the string representation

func (*DescribeRepositoryInput) Validate

func (s *DescribeRepositoryInput) Validate() error

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

type DescribeRepositoryOutput

type DescribeRepositoryOutput struct {

	// A RepositoryDescription object that contains the requested repository information.
	Repository *RepositoryDescription `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeRepositoryOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DescribeRepositoryOutput) String

func (s DescribeRepositoryOutput) String() string

String returns the string representation

type DescribeRepositoryRequest

type DescribeRepositoryRequest struct {
	*aws.Request
	Input *DescribeRepositoryInput
	Copy  func(*DescribeRepositoryInput) DescribeRepositoryRequest
}

DescribeRepositoryRequest is the request type for the DescribeRepository API operation.

func (DescribeRepositoryRequest) Send

Send marshals and sends the DescribeRepository API request.

type DescribeRepositoryResponse

type DescribeRepositoryResponse struct {
	*DescribeRepositoryOutput
	// contains filtered or unexported fields
}

DescribeRepositoryResponse is the response type for the DescribeRepository API operation.

func (*DescribeRepositoryResponse) SDKResponseMetdata

func (r *DescribeRepositoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DescribeRepository request.

type DisassociateExternalConnectionInput

type DisassociateExternalConnectionInput struct {

	// The name of the domain that contains the repository from which to remove
	// the external repository.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The name of the external connection to be removed from the repository.
	//
	// ExternalConnection is a required field
	ExternalConnection *string `location:"querystring" locationName:"external-connection" type:"string" required:"true"`

	// The name of the repository from which the external connection will be removed.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DisassociateExternalConnectionInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DisassociateExternalConnectionInput) String

String returns the string representation

func (*DisassociateExternalConnectionInput) Validate

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

type DisassociateExternalConnectionOutput

type DisassociateExternalConnectionOutput struct {

	// The repository associated with the removed external connection.
	Repository *RepositoryDescription `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (DisassociateExternalConnectionOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DisassociateExternalConnectionOutput) String

String returns the string representation

type DisassociateExternalConnectionRequest

type DisassociateExternalConnectionRequest struct {
	*aws.Request
	Input *DisassociateExternalConnectionInput
	Copy  func(*DisassociateExternalConnectionInput) DisassociateExternalConnectionRequest
}

DisassociateExternalConnectionRequest is the request type for the DisassociateExternalConnection API operation.

func (DisassociateExternalConnectionRequest) Send

Send marshals and sends the DisassociateExternalConnection API request.

type DisassociateExternalConnectionResponse

type DisassociateExternalConnectionResponse struct {
	*DisassociateExternalConnectionOutput
	// contains filtered or unexported fields
}

DisassociateExternalConnectionResponse is the response type for the DisassociateExternalConnection API operation.

func (*DisassociateExternalConnectionResponse) SDKResponseMetdata

func (r *DisassociateExternalConnectionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisassociateExternalConnection request.

type DisposePackageVersionsInput

type DisposePackageVersionsInput struct {

	// The name of the domain that contains the repository you want to dispose.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The expected status of the package version to dispose. Valid values are:
	//
	//    * Published
	//
	//    * Unfinished
	//
	//    * Unlisted
	//
	//    * Archived
	//
	//    * Disposed
	ExpectedStatus PackageVersionStatus `locationName:"expectedStatus" type:"string" enum:"true"`

	// A format that specifies the type of package versions you want to dispose.
	// The valid values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The name of the package with the versions you want to dispose.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// The name of the repository that contains the package versions you want to
	// dispose.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`

	// The revisions of the package versions you want to dispose.
	VersionRevisions map[string]string `locationName:"versionRevisions" type:"map"`

	// The versions of the package you want to dispose.
	//
	// Versions is a required field
	Versions []string `locationName:"versions" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (DisposePackageVersionsInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DisposePackageVersionsInput) String

String returns the string representation

func (*DisposePackageVersionsInput) Validate

func (s *DisposePackageVersionsInput) Validate() error

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

type DisposePackageVersionsOutput

type DisposePackageVersionsOutput struct {

	// A PackageVersionError object that contains a map of errors codes for the
	// disposed package versions that failed. The possible error codes are:
	//
	//    * ALREADY_EXISTS
	//
	//    * MISMATCHED_REVISION
	//
	//    * MISMATCHED_STATUS
	//
	//    * NOT_ALLOWED
	//
	//    * NOT_FOUND
	//
	//    * SKIPPED
	FailedVersions map[string]PackageVersionError `locationName:"failedVersions" type:"map"`

	// A list of the package versions that were successfully disposed.
	SuccessfulVersions map[string]SuccessfulPackageVersionInfo `locationName:"successfulVersions" type:"map"`
	// contains filtered or unexported fields
}

func (DisposePackageVersionsOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DisposePackageVersionsOutput) String

String returns the string representation

type DisposePackageVersionsRequest

type DisposePackageVersionsRequest struct {
	*aws.Request
	Input *DisposePackageVersionsInput
	Copy  func(*DisposePackageVersionsInput) DisposePackageVersionsRequest
}

DisposePackageVersionsRequest is the request type for the DisposePackageVersions API operation.

func (DisposePackageVersionsRequest) Send

Send marshals and sends the DisposePackageVersions API request.

type DisposePackageVersionsResponse

type DisposePackageVersionsResponse struct {
	*DisposePackageVersionsOutput
	// contains filtered or unexported fields
}

DisposePackageVersionsResponse is the response type for the DisposePackageVersions API operation.

func (*DisposePackageVersionsResponse) SDKResponseMetdata

func (r *DisposePackageVersionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the DisposePackageVersions request.

type DomainDescription

type DomainDescription struct {

	// The Amazon Resource Name (ARN) of the domain.
	Arn *string `locationName:"arn" min:"1" type:"string"`

	// The total size of all assets in the domain.
	AssetSizeBytes *int64 `locationName:"assetSizeBytes" type:"long"`

	// A timestamp that represents the date and time the domain was created.
	CreatedTime *time.Time `locationName:"createdTime" type:"timestamp"`

	// The ARN of an AWS Key Management Service (AWS KMS) key associated with a
	// domain.
	EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`

	// The name of the domain.
	Name *string `locationName:"name" min:"2" type:"string"`

	// The AWS account ID that owns the domain.
	Owner *string `locationName:"owner" min:"12" type:"string"`

	// The number of repositories in the domain.
	RepositoryCount *int64 `locationName:"repositoryCount" type:"integer"`

	// The current status of a domain. The valid values are
	//
	//    * Active
	//
	//    * Deleted
	Status DomainStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Information about a domain. A domain is a container for repositories. When you create a domain, it is empty until you add one or more repositories.

func (DomainDescription) MarshalFields

func (s DomainDescription) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DomainDescription) String

func (s DomainDescription) String() string

String returns the string representation

type DomainStatus

type DomainStatus string
const (
	DomainStatusActive  DomainStatus = "Active"
	DomainStatusDeleted DomainStatus = "Deleted"
)

Enum values for DomainStatus

func (DomainStatus) MarshalValue

func (enum DomainStatus) MarshalValue() (string, error)

func (DomainStatus) MarshalValueBuf

func (enum DomainStatus) MarshalValueBuf(b []byte) ([]byte, error)

type DomainSummary

type DomainSummary struct {

	// The ARN of the domain.
	Arn *string `locationName:"arn" min:"1" type:"string"`

	// A timestamp that contains the date and time the domain was created.
	CreatedTime *time.Time `locationName:"createdTime" type:"timestamp"`

	// The key used to encrypt the domain.
	EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`

	// The name of the domain.
	Name *string `locationName:"name" min:"2" type:"string"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	Owner *string `locationName:"owner" min:"12" type:"string"`

	// A string that contains the status of the domain. The valid values are:
	//
	//    * Active
	//
	//    * Deleted
	Status DomainStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Information about a domain, including its name, Amazon Resource Name (ARN), and status. The ListDomains (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListDomains.html) operation returns a list of DomainSummary objects.

func (DomainSummary) MarshalFields

func (s DomainSummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (DomainSummary) String

func (s DomainSummary) String() string

String returns the string representation

type ExternalConnectionStatus

type ExternalConnectionStatus string
const (
	ExternalConnectionStatusAvailable ExternalConnectionStatus = "Available"
)

Enum values for ExternalConnectionStatus

func (ExternalConnectionStatus) MarshalValue

func (enum ExternalConnectionStatus) MarshalValue() (string, error)

func (ExternalConnectionStatus) MarshalValueBuf

func (enum ExternalConnectionStatus) MarshalValueBuf(b []byte) ([]byte, error)

type GetAuthorizationTokenInput

type GetAuthorizationTokenInput struct {

	// The name of the domain that is in scope for the generated authorization token.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The time, in seconds, that the generated authorization token is valid.
	DurationSeconds *int64 `location:"querystring" locationName:"duration" type:"long"`
	// contains filtered or unexported fields
}

func (GetAuthorizationTokenInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetAuthorizationTokenInput) String

String returns the string representation

func (*GetAuthorizationTokenInput) Validate

func (s *GetAuthorizationTokenInput) Validate() error

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

type GetAuthorizationTokenOutput

type GetAuthorizationTokenOutput struct {

	// The returned authentication token.
	AuthorizationToken *string `locationName:"authorizationToken" type:"string"`

	// A timestamp that specifies the date and time the authorization token expires.
	Expiration *time.Time `locationName:"expiration" type:"timestamp"`
	// contains filtered or unexported fields
}

func (GetAuthorizationTokenOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetAuthorizationTokenOutput) String

String returns the string representation

type GetAuthorizationTokenRequest

type GetAuthorizationTokenRequest struct {
	*aws.Request
	Input *GetAuthorizationTokenInput
	Copy  func(*GetAuthorizationTokenInput) GetAuthorizationTokenRequest
}

GetAuthorizationTokenRequest is the request type for the GetAuthorizationToken API operation.

func (GetAuthorizationTokenRequest) Send

Send marshals and sends the GetAuthorizationToken API request.

type GetAuthorizationTokenResponse

type GetAuthorizationTokenResponse struct {
	*GetAuthorizationTokenOutput
	// contains filtered or unexported fields
}

GetAuthorizationTokenResponse is the response type for the GetAuthorizationToken API operation.

func (*GetAuthorizationTokenResponse) SDKResponseMetdata

func (r *GetAuthorizationTokenResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetAuthorizationToken request.

type GetDomainPermissionsPolicyInput

type GetDomainPermissionsPolicyInput struct {

	// The name of the domain to which the resource policy is attached.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`
	// contains filtered or unexported fields
}

func (GetDomainPermissionsPolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetDomainPermissionsPolicyInput) String

String returns the string representation

func (*GetDomainPermissionsPolicyInput) Validate

func (s *GetDomainPermissionsPolicyInput) Validate() error

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

type GetDomainPermissionsPolicyOutput

type GetDomainPermissionsPolicyOutput struct {

	// The returned resource policy.
	Policy *ResourcePolicy `locationName:"policy" type:"structure"`
	// contains filtered or unexported fields
}

func (GetDomainPermissionsPolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetDomainPermissionsPolicyOutput) String

String returns the string representation

type GetDomainPermissionsPolicyRequest

type GetDomainPermissionsPolicyRequest struct {
	*aws.Request
	Input *GetDomainPermissionsPolicyInput
	Copy  func(*GetDomainPermissionsPolicyInput) GetDomainPermissionsPolicyRequest
}

GetDomainPermissionsPolicyRequest is the request type for the GetDomainPermissionsPolicy API operation.

func (GetDomainPermissionsPolicyRequest) Send

Send marshals and sends the GetDomainPermissionsPolicy API request.

type GetDomainPermissionsPolicyResponse

type GetDomainPermissionsPolicyResponse struct {
	*GetDomainPermissionsPolicyOutput
	// contains filtered or unexported fields
}

GetDomainPermissionsPolicyResponse is the response type for the GetDomainPermissionsPolicy API operation.

func (*GetDomainPermissionsPolicyResponse) SDKResponseMetdata

func (r *GetDomainPermissionsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetDomainPermissionsPolicy request.

type GetPackageVersionAssetInput

type GetPackageVersionAssetInput struct {

	// The name of the requested asset.
	//
	// Asset is a required field
	Asset *string `location:"querystring" locationName:"asset" min:"1" type:"string" required:"true"`

	// The domain that contains the repository that contains the package version
	// with the requested asset.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// A format that specifies the type of the package version with the requested
	// asset file. The valid values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The name of the package that contains the requested asset.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// A string that contains the package version (for example, 3.5.2).
	//
	// PackageVersion is a required field
	PackageVersion *string `location:"querystring" locationName:"version" min:"1" type:"string" required:"true"`

	// The name of the package version revision that contains the requested asset.
	PackageVersionRevision *string `location:"querystring" locationName:"revision" min:"1" type:"string"`

	// The repository that contains the package version with the requested asset.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetPackageVersionAssetInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetPackageVersionAssetInput) String

String returns the string representation

func (*GetPackageVersionAssetInput) Validate

func (s *GetPackageVersionAssetInput) Validate() error

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

type GetPackageVersionAssetOutput

type GetPackageVersionAssetOutput struct {

	// The binary file, or asset, that is downloaded.
	Asset io.ReadCloser `locationName:"asset" type:"blob"`

	// The name of the asset that is downloaded.
	AssetName *string `location:"header" locationName:"X-AssetName" min:"1" type:"string"`

	// A string that contains the package version (for example, 3.5.2).
	PackageVersion *string `location:"header" locationName:"X-PackageVersion" min:"1" type:"string"`

	// The name of the package version revision that contains the downloaded asset.
	PackageVersionRevision *string `location:"header" locationName:"X-PackageVersionRevision" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetPackageVersionAssetOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetPackageVersionAssetOutput) String

String returns the string representation

type GetPackageVersionAssetRequest

type GetPackageVersionAssetRequest struct {
	*aws.Request
	Input *GetPackageVersionAssetInput
	Copy  func(*GetPackageVersionAssetInput) GetPackageVersionAssetRequest
}

GetPackageVersionAssetRequest is the request type for the GetPackageVersionAsset API operation.

func (GetPackageVersionAssetRequest) Send

Send marshals and sends the GetPackageVersionAsset API request.

type GetPackageVersionAssetResponse

type GetPackageVersionAssetResponse struct {
	*GetPackageVersionAssetOutput
	// contains filtered or unexported fields
}

GetPackageVersionAssetResponse is the response type for the GetPackageVersionAsset API operation.

func (*GetPackageVersionAssetResponse) SDKResponseMetdata

func (r *GetPackageVersionAssetResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetPackageVersionAsset request.

type GetPackageVersionReadmeInput

type GetPackageVersionReadmeInput struct {

	// The name of the domain that contains the repository that contains the package
	// version with the requested readme file.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// A format that specifies the type of the package version with the requested
	// readme file. The valid values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The name of the package version that contains the requested readme file.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// A string that contains the package version (for example, 3.5.2).
	//
	// PackageVersion is a required field
	PackageVersion *string `location:"querystring" locationName:"version" min:"1" type:"string" required:"true"`

	// The repository that contains the package with the requested readme file.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetPackageVersionReadmeInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetPackageVersionReadmeInput) String

String returns the string representation

func (*GetPackageVersionReadmeInput) Validate

func (s *GetPackageVersionReadmeInput) Validate() error

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

type GetPackageVersionReadmeOutput

type GetPackageVersionReadmeOutput struct {

	// The format of the package with the requested readme file. Valid format types
	// are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	Format PackageFormat `locationName:"format" type:"string" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `locationName:"namespace" min:"1" type:"string"`

	// The name of the package that contains the returned readme file.
	Package *string `locationName:"package" min:"1" type:"string"`

	// The text of the returned readme file.
	Readme *string `locationName:"readme" type:"string"`

	// The version of the package with the requested readme file.
	Version *string `locationName:"version" min:"1" type:"string"`

	// The current revision associated with the package version.
	VersionRevision *string `locationName:"versionRevision" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetPackageVersionReadmeOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetPackageVersionReadmeOutput) String

String returns the string representation

type GetPackageVersionReadmeRequest

type GetPackageVersionReadmeRequest struct {
	*aws.Request
	Input *GetPackageVersionReadmeInput
	Copy  func(*GetPackageVersionReadmeInput) GetPackageVersionReadmeRequest
}

GetPackageVersionReadmeRequest is the request type for the GetPackageVersionReadme API operation.

func (GetPackageVersionReadmeRequest) Send

Send marshals and sends the GetPackageVersionReadme API request.

type GetPackageVersionReadmeResponse

type GetPackageVersionReadmeResponse struct {
	*GetPackageVersionReadmeOutput
	// contains filtered or unexported fields
}

GetPackageVersionReadmeResponse is the response type for the GetPackageVersionReadme API operation.

func (*GetPackageVersionReadmeResponse) SDKResponseMetdata

func (r *GetPackageVersionReadmeResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetPackageVersionReadme request.

type GetRepositoryEndpointInput

type GetRepositoryEndpointInput struct {

	// The name of the domain that contains the repository.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain that
	// contains the repository. It does not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// Returns which endpoint of a repository to return. A repository has one endpoint
	// for each package format:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The name of the repository.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetRepositoryEndpointInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetRepositoryEndpointInput) String

String returns the string representation

func (*GetRepositoryEndpointInput) Validate

func (s *GetRepositoryEndpointInput) Validate() error

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

type GetRepositoryEndpointOutput

type GetRepositoryEndpointOutput struct {

	// A string that specifies the URL of the returned endpoint.
	RepositoryEndpoint *string `locationName:"repositoryEndpoint" type:"string"`
	// contains filtered or unexported fields
}

func (GetRepositoryEndpointOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetRepositoryEndpointOutput) String

String returns the string representation

type GetRepositoryEndpointRequest

type GetRepositoryEndpointRequest struct {
	*aws.Request
	Input *GetRepositoryEndpointInput
	Copy  func(*GetRepositoryEndpointInput) GetRepositoryEndpointRequest
}

GetRepositoryEndpointRequest is the request type for the GetRepositoryEndpoint API operation.

func (GetRepositoryEndpointRequest) Send

Send marshals and sends the GetRepositoryEndpoint API request.

type GetRepositoryEndpointResponse

type GetRepositoryEndpointResponse struct {
	*GetRepositoryEndpointOutput
	// contains filtered or unexported fields
}

GetRepositoryEndpointResponse is the response type for the GetRepositoryEndpoint API operation.

func (*GetRepositoryEndpointResponse) SDKResponseMetdata

func (r *GetRepositoryEndpointResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetRepositoryEndpoint request.

type GetRepositoryPermissionsPolicyInput

type GetRepositoryPermissionsPolicyInput struct {

	// The name of the domain containing the repository whose associated resource
	// policy is to be retrieved.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The name of the repository whose associated resource policy is to be retrieved.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetRepositoryPermissionsPolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetRepositoryPermissionsPolicyInput) String

String returns the string representation

func (*GetRepositoryPermissionsPolicyInput) Validate

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

type GetRepositoryPermissionsPolicyOutput

type GetRepositoryPermissionsPolicyOutput struct {

	// The returned resource policy.
	Policy *ResourcePolicy `locationName:"policy" type:"structure"`
	// contains filtered or unexported fields
}

func (GetRepositoryPermissionsPolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (GetRepositoryPermissionsPolicyOutput) String

String returns the string representation

type GetRepositoryPermissionsPolicyRequest

type GetRepositoryPermissionsPolicyRequest struct {
	*aws.Request
	Input *GetRepositoryPermissionsPolicyInput
	Copy  func(*GetRepositoryPermissionsPolicyInput) GetRepositoryPermissionsPolicyRequest
}

GetRepositoryPermissionsPolicyRequest is the request type for the GetRepositoryPermissionsPolicy API operation.

func (GetRepositoryPermissionsPolicyRequest) Send

Send marshals and sends the GetRepositoryPermissionsPolicy API request.

type GetRepositoryPermissionsPolicyResponse

type GetRepositoryPermissionsPolicyResponse struct {
	*GetRepositoryPermissionsPolicyOutput
	// contains filtered or unexported fields
}

GetRepositoryPermissionsPolicyResponse is the response type for the GetRepositoryPermissionsPolicy API operation.

func (*GetRepositoryPermissionsPolicyResponse) SDKResponseMetdata

func (r *GetRepositoryPermissionsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the GetRepositoryPermissionsPolicy request.

type HashAlgorithm

type HashAlgorithm string
const (
	HashAlgorithmMd5    HashAlgorithm = "MD5"
	HashAlgorithmSha1   HashAlgorithm = "SHA-1"
	HashAlgorithmSha256 HashAlgorithm = "SHA-256"
	HashAlgorithmSha512 HashAlgorithm = "SHA-512"
)

Enum values for HashAlgorithm

func (HashAlgorithm) MarshalValue

func (enum HashAlgorithm) MarshalValue() (string, error)

func (HashAlgorithm) MarshalValueBuf

func (enum HashAlgorithm) MarshalValueBuf(b []byte) ([]byte, error)

type LicenseInfo

type LicenseInfo struct {

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

	// The URL for license data.
	Url *string `locationName:"url" type:"string"`
	// contains filtered or unexported fields
}

Details of the license data.

func (LicenseInfo) MarshalFields

func (s LicenseInfo) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (LicenseInfo) String

func (s LicenseInfo) String() string

String returns the string representation

type ListDomainsInput

type ListDomainsInput struct {

	// The maximum number of results to return per page.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListDomainsInput) MarshalFields

func (s ListDomainsInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListDomainsInput) String

func (s ListDomainsInput) String() string

String returns the string representation

func (*ListDomainsInput) Validate

func (s *ListDomainsInput) Validate() error

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

type ListDomainsOutput

type ListDomainsOutput struct {

	// The returned list of DomainSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainSummary.html)
	// objects.
	Domains []DomainSummary `locationName:"domains" type:"list"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListDomainsOutput) MarshalFields

func (s ListDomainsOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListDomainsOutput) String

func (s ListDomainsOutput) String() string

String returns the string representation

type ListDomainsPaginator

type ListDomainsPaginator struct {
	aws.Pager
}

ListDomainsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListDomainsPaginator

func NewListDomainsPaginator(req ListDomainsRequest) ListDomainsPaginator

NewListDomainsRequestPaginator returns a paginator for ListDomains. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.ListDomainsRequest(input)
p := codeartifact.NewListDomainsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListDomainsPaginator) CurrentPage

func (p *ListDomainsPaginator) CurrentPage() *ListDomainsOutput

type ListDomainsRequest

type ListDomainsRequest struct {
	*aws.Request
	Input *ListDomainsInput
	Copy  func(*ListDomainsInput) ListDomainsRequest
}

ListDomainsRequest is the request type for the ListDomains API operation.

func (ListDomainsRequest) Send

Send marshals and sends the ListDomains API request.

type ListDomainsResponse

type ListDomainsResponse struct {
	*ListDomainsOutput
	// contains filtered or unexported fields
}

ListDomainsResponse is the response type for the ListDomains API operation.

func (*ListDomainsResponse) SDKResponseMetdata

func (r *ListDomainsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListDomains request.

type ListPackageVersionAssetsInput

type ListPackageVersionAssetsInput struct {

	// The name of the domain that contains the repository associated with the package
	// version assets.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The format of the package that contains the returned package version assets.
	// The valid package types are:
	//
	//    * npm: A Node Package Manager (npm) package.
	//
	//    * pypi: A Python Package Index (PyPI) package.
	//
	//    * maven: A Maven package that contains compiled code in a distributable
	//    format, such as a JAR file.
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The maximum number of results to return per page.
	MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `location:"querystring" locationName:"next-token" min:"1" type:"string"`

	// The name of the package that contains the returned package version assets.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// A string that contains the package version (for example, 3.5.2).
	//
	// PackageVersion is a required field
	PackageVersion *string `location:"querystring" locationName:"version" min:"1" type:"string" required:"true"`

	// The name of the repository that contains the package that contains the returned
	// package version assets.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListPackageVersionAssetsInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackageVersionAssetsInput) String

String returns the string representation

func (*ListPackageVersionAssetsInput) Validate

func (s *ListPackageVersionAssetsInput) Validate() error

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

type ListPackageVersionAssetsOutput

type ListPackageVersionAssetsOutput struct {

	// The returned list of AssetSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html)
	// objects.
	Assets []AssetSummary `locationName:"assets" type:"list"`

	// The format of the package that contains the returned package version assets.
	Format PackageFormat `locationName:"format" type:"string" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `locationName:"namespace" min:"1" type:"string"`

	// If there are additional results, this is the token for the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The name of the package that contains the returned package version assets.
	Package *string `locationName:"package" min:"1" type:"string"`

	// The version of the package associated with the returned assets.
	Version *string `locationName:"version" min:"1" type:"string"`

	// The current revision associated with the package version.
	VersionRevision *string `locationName:"versionRevision" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListPackageVersionAssetsOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackageVersionAssetsOutput) String

String returns the string representation

type ListPackageVersionAssetsPaginator

type ListPackageVersionAssetsPaginator struct {
	aws.Pager
}

ListPackageVersionAssetsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListPackageVersionAssetsPaginator

func NewListPackageVersionAssetsPaginator(req ListPackageVersionAssetsRequest) ListPackageVersionAssetsPaginator

NewListPackageVersionAssetsRequestPaginator returns a paginator for ListPackageVersionAssets. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.ListPackageVersionAssetsRequest(input)
p := codeartifact.NewListPackageVersionAssetsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListPackageVersionAssetsPaginator) CurrentPage

type ListPackageVersionAssetsRequest

type ListPackageVersionAssetsRequest struct {
	*aws.Request
	Input *ListPackageVersionAssetsInput
	Copy  func(*ListPackageVersionAssetsInput) ListPackageVersionAssetsRequest
}

ListPackageVersionAssetsRequest is the request type for the ListPackageVersionAssets API operation.

func (ListPackageVersionAssetsRequest) Send

Send marshals and sends the ListPackageVersionAssets API request.

type ListPackageVersionAssetsResponse

type ListPackageVersionAssetsResponse struct {
	*ListPackageVersionAssetsOutput
	// contains filtered or unexported fields
}

ListPackageVersionAssetsResponse is the response type for the ListPackageVersionAssets API operation.

func (*ListPackageVersionAssetsResponse) SDKResponseMetdata

func (r *ListPackageVersionAssetsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListPackageVersionAssets request.

type ListPackageVersionDependenciesInput

type ListPackageVersionDependenciesInput struct {

	// The domain that contains the repository that contains the requested package
	// version dependencies.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The format of the package with the requested dependencies. The valid package
	// types are:
	//
	//    * npm: A Node Package Manager (npm) package.
	//
	//    * pypi: A Python Package Index (PyPI) package.
	//
	//    * maven: A Maven package that contains compiled code in a distributable
	//    format, such as a JAR file.
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `location:"querystring" locationName:"next-token" min:"1" type:"string"`

	// The name of the package versions' package.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// A string that contains the package version (for example, 3.5.2).
	//
	// PackageVersion is a required field
	PackageVersion *string `location:"querystring" locationName:"version" min:"1" type:"string" required:"true"`

	// The name of the repository that contains the requested package version.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListPackageVersionDependenciesInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackageVersionDependenciesInput) String

String returns the string representation

func (*ListPackageVersionDependenciesInput) Validate

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

type ListPackageVersionDependenciesOutput

type ListPackageVersionDependenciesOutput struct {

	// The returned list of PackageDependency (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html)
	// objects.
	Dependencies []PackageDependency `locationName:"dependencies" type:"list"`

	// A format that specifies the type of the package that contains the returned
	// dependencies. The valid values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	Format PackageFormat `locationName:"format" type:"string" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `locationName:"namespace" min:"1" type:"string"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The name of the package that contains the returned package versions dependencies.
	Package *string `locationName:"package" min:"1" type:"string"`

	// The version of the package that is specified in the request.
	Version *string `locationName:"version" min:"1" type:"string"`

	// The current revision associated with the package version.
	VersionRevision *string `locationName:"versionRevision" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListPackageVersionDependenciesOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackageVersionDependenciesOutput) String

String returns the string representation

type ListPackageVersionDependenciesRequest

type ListPackageVersionDependenciesRequest struct {
	*aws.Request
	Input *ListPackageVersionDependenciesInput
	Copy  func(*ListPackageVersionDependenciesInput) ListPackageVersionDependenciesRequest
}

ListPackageVersionDependenciesRequest is the request type for the ListPackageVersionDependencies API operation.

func (ListPackageVersionDependenciesRequest) Send

Send marshals and sends the ListPackageVersionDependencies API request.

type ListPackageVersionDependenciesResponse

type ListPackageVersionDependenciesResponse struct {
	*ListPackageVersionDependenciesOutput
	// contains filtered or unexported fields
}

ListPackageVersionDependenciesResponse is the response type for the ListPackageVersionDependencies API operation.

func (*ListPackageVersionDependenciesResponse) SDKResponseMetdata

func (r *ListPackageVersionDependenciesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListPackageVersionDependencies request.

type ListPackageVersionsInput

type ListPackageVersionsInput struct {

	// The name of the domain that contains the repository that contains the returned
	// package versions.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The format of the returned packages. The valid package types are:
	//
	//    * npm: A Node Package Manager (npm) package.
	//
	//    * pypi: A Python Package Index (PyPI) package.
	//
	//    * maven: A Maven package that contains compiled code in a distributable
	//    format, such as a JAR file.
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The maximum number of results to return per page.
	MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `location:"querystring" locationName:"next-token" min:"1" type:"string"`

	// The name of the package for which you want to return a list of package versions.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// The name of the repository that contains the package.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`

	// How to sort the returned list of package versions.
	SortBy PackageVersionSortType `location:"querystring" locationName:"sortBy" type:"string" enum:"true"`

	// A string that specifies the status of the package versions to include in
	// the returned list. It can be one of the following:
	//
	//    * Published
	//
	//    * Unfinished
	//
	//    * Unlisted
	//
	//    * Archived
	//
	//    * Disposed
	Status PackageVersionStatus `location:"querystring" locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

func (ListPackageVersionsInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackageVersionsInput) String

func (s ListPackageVersionsInput) String() string

String returns the string representation

func (*ListPackageVersionsInput) Validate

func (s *ListPackageVersionsInput) Validate() error

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

type ListPackageVersionsOutput

type ListPackageVersionsOutput struct {

	// The default package version to display. This depends on the package format:
	//
	//    * For Maven and PyPI packages, it's the most recently published package
	//    version.
	//
	//    * For npm packages, it's the version referenced by the latest tag. If
	//    the latest tag is not set, it's the most recently published package version.
	DefaultDisplayVersion *string `locationName:"defaultDisplayVersion" min:"1" type:"string"`

	// A format of the package. Valid package format values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	Format PackageFormat `locationName:"format" type:"string" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `locationName:"namespace" min:"1" type:"string"`

	// If there are additional results, this is the token for the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The name of the package.
	Package *string `locationName:"package" min:"1" type:"string"`

	// The returned list of PackageVersionSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html)
	// objects.
	Versions []PackageVersionSummary `locationName:"versions" type:"list"`
	// contains filtered or unexported fields
}

func (ListPackageVersionsOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackageVersionsOutput) String

func (s ListPackageVersionsOutput) String() string

String returns the string representation

type ListPackageVersionsPaginator

type ListPackageVersionsPaginator struct {
	aws.Pager
}

ListPackageVersionsPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListPackageVersionsPaginator

func NewListPackageVersionsPaginator(req ListPackageVersionsRequest) ListPackageVersionsPaginator

NewListPackageVersionsRequestPaginator returns a paginator for ListPackageVersions. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.ListPackageVersionsRequest(input)
p := codeartifact.NewListPackageVersionsRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListPackageVersionsPaginator) CurrentPage

type ListPackageVersionsRequest

type ListPackageVersionsRequest struct {
	*aws.Request
	Input *ListPackageVersionsInput
	Copy  func(*ListPackageVersionsInput) ListPackageVersionsRequest
}

ListPackageVersionsRequest is the request type for the ListPackageVersions API operation.

func (ListPackageVersionsRequest) Send

Send marshals and sends the ListPackageVersions API request.

type ListPackageVersionsResponse

type ListPackageVersionsResponse struct {
	*ListPackageVersionsOutput
	// contains filtered or unexported fields
}

ListPackageVersionsResponse is the response type for the ListPackageVersions API operation.

func (*ListPackageVersionsResponse) SDKResponseMetdata

func (r *ListPackageVersionsResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListPackageVersions request.

type ListPackagesInput

type ListPackagesInput struct {

	// The domain that contains the repository that contains the requested list
	// of packages.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The format of the packages. The valid package types are:
	//
	//    * npm: A Node Package Manager (npm) package.
	//
	//    * pypi: A Python Package Index (PyPI) package.
	//
	//    * maven: A Maven package that contains compiled code in a distributable
	//    format, such as a JAR file.
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" enum:"true"`

	// The maximum number of results to return per page.
	MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `location:"querystring" locationName:"next-token" min:"1" type:"string"`

	// A prefix used to filter returned repositories. Only repositories with names
	// that start with repositoryPrefix are returned.
	PackagePrefix *string `location:"querystring" locationName:"package-prefix" min:"1" type:"string"`

	// The name of the repository from which packages are to be listed.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListPackagesInput) MarshalFields

func (s ListPackagesInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackagesInput) String

func (s ListPackagesInput) String() string

String returns the string representation

func (*ListPackagesInput) Validate

func (s *ListPackagesInput) Validate() error

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

type ListPackagesOutput

type ListPackagesOutput struct {

	// If there are additional results, this is the token for the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The list of returned PackageSummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html)
	// objects.
	Packages []PackageSummary `locationName:"packages" type:"list"`
	// contains filtered or unexported fields
}

func (ListPackagesOutput) MarshalFields

func (s ListPackagesOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListPackagesOutput) String

func (s ListPackagesOutput) String() string

String returns the string representation

type ListPackagesPaginator

type ListPackagesPaginator struct {
	aws.Pager
}

ListPackagesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListPackagesPaginator

func NewListPackagesPaginator(req ListPackagesRequest) ListPackagesPaginator

NewListPackagesRequestPaginator returns a paginator for ListPackages. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.ListPackagesRequest(input)
p := codeartifact.NewListPackagesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListPackagesPaginator) CurrentPage

func (p *ListPackagesPaginator) CurrentPage() *ListPackagesOutput

type ListPackagesRequest

type ListPackagesRequest struct {
	*aws.Request
	Input *ListPackagesInput
	Copy  func(*ListPackagesInput) ListPackagesRequest
}

ListPackagesRequest is the request type for the ListPackages API operation.

func (ListPackagesRequest) Send

Send marshals and sends the ListPackages API request.

type ListPackagesResponse

type ListPackagesResponse struct {
	*ListPackagesOutput
	// contains filtered or unexported fields
}

ListPackagesResponse is the response type for the ListPackages API operation.

func (*ListPackagesResponse) SDKResponseMetdata

func (r *ListPackagesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListPackages request.

type ListRepositoriesInDomainInput

type ListRepositoriesInDomainInput struct {

	// Filter the list of repositories to only include those that are managed by
	// the AWS account ID.
	AdministratorAccount *string `location:"querystring" locationName:"administrator-account" min:"12" type:"string"`

	// The name of the domain that contains the returned list of repositories.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The maximum number of results to return per page.
	MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `location:"querystring" locationName:"next-token" min:"1" type:"string"`

	// A prefix used to filter returned repositories. Only repositories with names
	// that start with repositoryPrefix are returned.
	RepositoryPrefix *string `location:"querystring" locationName:"repository-prefix" min:"2" type:"string"`
	// contains filtered or unexported fields
}

func (ListRepositoriesInDomainInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRepositoriesInDomainInput) String

String returns the string representation

func (*ListRepositoriesInDomainInput) Validate

func (s *ListRepositoriesInDomainInput) Validate() error

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

type ListRepositoriesInDomainOutput

type ListRepositoriesInDomainOutput struct {

	// If there are additional results, this is the token for the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The returned list of repositories.
	Repositories []RepositorySummary `locationName:"repositories" type:"list"`
	// contains filtered or unexported fields
}

func (ListRepositoriesInDomainOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRepositoriesInDomainOutput) String

String returns the string representation

type ListRepositoriesInDomainPaginator

type ListRepositoriesInDomainPaginator struct {
	aws.Pager
}

ListRepositoriesInDomainPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListRepositoriesInDomainPaginator

func NewListRepositoriesInDomainPaginator(req ListRepositoriesInDomainRequest) ListRepositoriesInDomainPaginator

NewListRepositoriesInDomainRequestPaginator returns a paginator for ListRepositoriesInDomain. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.ListRepositoriesInDomainRequest(input)
p := codeartifact.NewListRepositoriesInDomainRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListRepositoriesInDomainPaginator) CurrentPage

type ListRepositoriesInDomainRequest

type ListRepositoriesInDomainRequest struct {
	*aws.Request
	Input *ListRepositoriesInDomainInput
	Copy  func(*ListRepositoriesInDomainInput) ListRepositoriesInDomainRequest
}

ListRepositoriesInDomainRequest is the request type for the ListRepositoriesInDomain API operation.

func (ListRepositoriesInDomainRequest) Send

Send marshals and sends the ListRepositoriesInDomain API request.

type ListRepositoriesInDomainResponse

type ListRepositoriesInDomainResponse struct {
	*ListRepositoriesInDomainOutput
	// contains filtered or unexported fields
}

ListRepositoriesInDomainResponse is the response type for the ListRepositoriesInDomain API operation.

func (*ListRepositoriesInDomainResponse) SDKResponseMetdata

func (r *ListRepositoriesInDomainResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListRepositoriesInDomain request.

type ListRepositoriesInput

type ListRepositoriesInput struct {

	// The maximum number of results to return per page.
	MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"`

	// The token for the next set of results. Use the value returned in the previous
	// response in the next request to retrieve the next set of results.
	NextToken *string `location:"querystring" locationName:"next-token" min:"1" type:"string"`

	// A prefix used to filter returned repositories. Only repositories with names
	// that start with repositoryPrefix are returned.
	RepositoryPrefix *string `location:"querystring" locationName:"repository-prefix" min:"2" type:"string"`
	// contains filtered or unexported fields
}

func (ListRepositoriesInput) MarshalFields

func (s ListRepositoriesInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRepositoriesInput) String

func (s ListRepositoriesInput) String() string

String returns the string representation

func (*ListRepositoriesInput) Validate

func (s *ListRepositoriesInput) Validate() error

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

type ListRepositoriesOutput

type ListRepositoriesOutput struct {

	// If there are additional results, this is the token for the next set of results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The returned list of RepositorySummary (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html)
	// objects.
	Repositories []RepositorySummary `locationName:"repositories" type:"list"`
	// contains filtered or unexported fields
}

func (ListRepositoriesOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ListRepositoriesOutput) String

func (s ListRepositoriesOutput) String() string

String returns the string representation

type ListRepositoriesPaginator

type ListRepositoriesPaginator struct {
	aws.Pager
}

ListRepositoriesPaginator is used to paginate the request. This can be done by calling Next and CurrentPage.

func NewListRepositoriesPaginator

func NewListRepositoriesPaginator(req ListRepositoriesRequest) ListRepositoriesPaginator

NewListRepositoriesRequestPaginator returns a paginator for ListRepositories. Use Next method to get the next page, and CurrentPage to get the current response page from the paginator. Next will return false, if there are no more pages, or an error was encountered.

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

// Example iterating over pages.
req := client.ListRepositoriesRequest(input)
p := codeartifact.NewListRepositoriesRequestPaginator(req)

for p.Next(context.TODO()) {
    page := p.CurrentPage()
}

if err := p.Err(); err != nil {
    return err
}

func (*ListRepositoriesPaginator) CurrentPage

type ListRepositoriesRequest

type ListRepositoriesRequest struct {
	*aws.Request
	Input *ListRepositoriesInput
	Copy  func(*ListRepositoriesInput) ListRepositoriesRequest
}

ListRepositoriesRequest is the request type for the ListRepositories API operation.

func (ListRepositoriesRequest) Send

Send marshals and sends the ListRepositories API request.

type ListRepositoriesResponse

type ListRepositoriesResponse struct {
	*ListRepositoriesOutput
	// contains filtered or unexported fields
}

ListRepositoriesResponse is the response type for the ListRepositories API operation.

func (*ListRepositoriesResponse) SDKResponseMetdata

func (r *ListRepositoriesResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ListRepositories request.

type PackageDependency

type PackageDependency struct {

	// The type of a package dependency. The possible values depend on the package
	// type. Example types are compile, runtime, and test for Maven packages, and
	// dev, prod, and optional for npm packages.
	DependencyType *string `locationName:"dependencyType" type:"string"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `locationName:"namespace" min:"1" type:"string"`

	// The name of the package that this package depends on.
	Package *string `locationName:"package" min:"1" type:"string"`

	// The required version, or version range, of the package that this package
	// depends on. The version format is specific to the package type. For example,
	// the following are possible valid required versions: 1.2.3, ^2.3.4, or 4.x.
	VersionRequirement *string `locationName:"versionRequirement" type:"string"`
	// contains filtered or unexported fields
}

Details about a package dependency.

func (PackageDependency) MarshalFields

func (s PackageDependency) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PackageDependency) String

func (s PackageDependency) String() string

String returns the string representation

type PackageFormat

type PackageFormat string
const (
	PackageFormatNpm   PackageFormat = "npm"
	PackageFormatPypi  PackageFormat = "pypi"
	PackageFormatMaven PackageFormat = "maven"
)

Enum values for PackageFormat

func (PackageFormat) MarshalValue

func (enum PackageFormat) MarshalValue() (string, error)

func (PackageFormat) MarshalValueBuf

func (enum PackageFormat) MarshalValueBuf(b []byte) ([]byte, error)

type PackageSummary

type PackageSummary struct {

	// The format of the package. Valid values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	Format PackageFormat `locationName:"format" type:"string" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `locationName:"namespace" min:"1" type:"string"`

	// The name of the package.
	Package *string `locationName:"package" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Details about a package, including its format, namespace, and name. The ListPackages (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html) operation returns a list of PackageSummary objects.

func (PackageSummary) MarshalFields

func (s PackageSummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PackageSummary) String

func (s PackageSummary) String() string

String returns the string representation

type PackageVersionDescription

type PackageVersionDescription struct {

	// The name of the package that is displayed. The displayName varies depending
	// on the package version's format. For example, if an npm package is named
	// ui, is in the namespace vue, and has the format npm, then the displayName
	// is @vue/ui.
	DisplayName *string `locationName:"displayName" min:"1" type:"string"`

	// The format of the package version. The valid package formats are:
	//
	//    * npm: A Node Package Manager (npm) package.
	//
	//    * pypi: A Python Package Index (PyPI) package.
	//
	//    * maven: A Maven package that contains compiled code in a distributable
	//    format, such as a JAR file.
	Format PackageFormat `locationName:"format" type:"string" enum:"true"`

	// The homepage associated with the package.
	HomePage *string `locationName:"homePage" type:"string"`

	// Information about licenses associated with the package version.
	Licenses []LicenseInfo `locationName:"licenses" type:"list"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `locationName:"namespace" min:"1" type:"string"`

	// The name of the requested package.
	PackageName *string `locationName:"packageName" min:"1" type:"string"`

	// A timestamp that contains the date and time the package version was published.
	PublishedTime *time.Time `locationName:"publishedTime" type:"timestamp"`

	// The revision of the package version.
	Revision *string `locationName:"revision" min:"1" type:"string"`

	// The repository for the source code in the package version, or the source
	// code used to build it.
	SourceCodeRepository *string `locationName:"sourceCodeRepository" type:"string"`

	// A string that contains the status of the package version. It can be one of
	// the following:
	//
	//    * Published
	//
	//    * Unfinished
	//
	//    * Unlisted
	//
	//    * Archived
	//
	//    * Disposed
	Status PackageVersionStatus `locationName:"status" type:"string" enum:"true"`

	// A summary of the package version. The summary is extracted from the package.
	// The information in and detail level of the summary depends on the package
	// version's format.
	Summary *string `locationName:"summary" type:"string"`

	// The version of the package.
	Version *string `locationName:"version" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Details about a package version.

func (PackageVersionDescription) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PackageVersionDescription) String

func (s PackageVersionDescription) String() string

String returns the string representation

type PackageVersionError

type PackageVersionError struct {

	// The error code associated with the error. Valid error codes are:
	//
	//    * ALREADY_EXISTS
	//
	//    * MISMATCHED_REVISION
	//
	//    * MISMATCHED_STATUS
	//
	//    * NOT_ALLOWED
	//
	//    * NOT_FOUND
	//
	//    * SKIPPED
	ErrorCode PackageVersionErrorCode `locationName:"errorCode" type:"string" enum:"true"`

	// The error message associated with the error.
	ErrorMessage *string `locationName:"errorMessage" type:"string"`
	// contains filtered or unexported fields
}

An error associated with package.

func (PackageVersionError) MarshalFields

func (s PackageVersionError) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PackageVersionError) String

func (s PackageVersionError) String() string

String returns the string representation

type PackageVersionErrorCode

type PackageVersionErrorCode string
const (
	PackageVersionErrorCodeAlreadyExists      PackageVersionErrorCode = "ALREADY_EXISTS"
	PackageVersionErrorCodeMismatchedRevision PackageVersionErrorCode = "MISMATCHED_REVISION"
	PackageVersionErrorCodeMismatchedStatus   PackageVersionErrorCode = "MISMATCHED_STATUS"
	PackageVersionErrorCodeNotAllowed         PackageVersionErrorCode = "NOT_ALLOWED"
	PackageVersionErrorCodeNotFound           PackageVersionErrorCode = "NOT_FOUND"
	PackageVersionErrorCodeSkipped            PackageVersionErrorCode = "SKIPPED"
)

Enum values for PackageVersionErrorCode

func (PackageVersionErrorCode) MarshalValue

func (enum PackageVersionErrorCode) MarshalValue() (string, error)

func (PackageVersionErrorCode) MarshalValueBuf

func (enum PackageVersionErrorCode) MarshalValueBuf(b []byte) ([]byte, error)

type PackageVersionSortType

type PackageVersionSortType string
const (
	PackageVersionSortTypePublishedTime PackageVersionSortType = "PUBLISHED_TIME"
)

Enum values for PackageVersionSortType

func (PackageVersionSortType) MarshalValue

func (enum PackageVersionSortType) MarshalValue() (string, error)

func (PackageVersionSortType) MarshalValueBuf

func (enum PackageVersionSortType) MarshalValueBuf(b []byte) ([]byte, error)

type PackageVersionStatus

type PackageVersionStatus string
const (
	PackageVersionStatusPublished  PackageVersionStatus = "Published"
	PackageVersionStatusUnfinished PackageVersionStatus = "Unfinished"
	PackageVersionStatusUnlisted   PackageVersionStatus = "Unlisted"
	PackageVersionStatusArchived   PackageVersionStatus = "Archived"
	PackageVersionStatusDisposed   PackageVersionStatus = "Disposed"
	PackageVersionStatusDeleted    PackageVersionStatus = "Deleted"
)

Enum values for PackageVersionStatus

func (PackageVersionStatus) MarshalValue

func (enum PackageVersionStatus) MarshalValue() (string, error)

func (PackageVersionStatus) MarshalValueBuf

func (enum PackageVersionStatus) MarshalValueBuf(b []byte) ([]byte, error)

type PackageVersionSummary

type PackageVersionSummary struct {

	// The revision associated with a package version.
	Revision *string `locationName:"revision" min:"1" type:"string"`

	// A string that contains the status of the package version. It can be one of
	// the following:
	//
	//    * Published
	//
	//    * Unfinished
	//
	//    * Unlisted
	//
	//    * Archived
	//
	//    * Disposed
	//
	// Status is a required field
	Status PackageVersionStatus `locationName:"status" type:"string" required:"true" enum:"true"`

	// Information about a package version.
	//
	// Version is a required field
	Version *string `locationName:"version" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Details about a package version, including its status, version, and revision. The ListPackageVersions (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html) operation returns a list of PackageVersionSummary objects.

func (PackageVersionSummary) MarshalFields

func (s PackageVersionSummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PackageVersionSummary) String

func (s PackageVersionSummary) String() string

String returns the string representation

type PutDomainPermissionsPolicyInput

type PutDomainPermissionsPolicyInput struct {

	// The name of the domain on which to set the resource policy.
	//
	// Domain is a required field
	Domain *string `locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `locationName:"domainOwner" min:"12" type:"string"`

	// A valid displayable JSON Aspen policy string to be set as the access control
	// resource policy on the provided domain.
	//
	// PolicyDocument is a required field
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string" required:"true"`

	// The current revision of the resource policy to be set. This revision is used
	// for optimistic locking, which prevents others from overwriting your changes
	// to the domain's resource policy.
	PolicyRevision *string `locationName:"policyRevision" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (PutDomainPermissionsPolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutDomainPermissionsPolicyInput) String

String returns the string representation

func (*PutDomainPermissionsPolicyInput) Validate

func (s *PutDomainPermissionsPolicyInput) Validate() error

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

type PutDomainPermissionsPolicyOutput

type PutDomainPermissionsPolicyOutput struct {

	// The resource policy that was set after processing the request.
	Policy *ResourcePolicy `locationName:"policy" type:"structure"`
	// contains filtered or unexported fields
}

func (PutDomainPermissionsPolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutDomainPermissionsPolicyOutput) String

String returns the string representation

type PutDomainPermissionsPolicyRequest

type PutDomainPermissionsPolicyRequest struct {
	*aws.Request
	Input *PutDomainPermissionsPolicyInput
	Copy  func(*PutDomainPermissionsPolicyInput) PutDomainPermissionsPolicyRequest
}

PutDomainPermissionsPolicyRequest is the request type for the PutDomainPermissionsPolicy API operation.

func (PutDomainPermissionsPolicyRequest) Send

Send marshals and sends the PutDomainPermissionsPolicy API request.

type PutDomainPermissionsPolicyResponse

type PutDomainPermissionsPolicyResponse struct {
	*PutDomainPermissionsPolicyOutput
	// contains filtered or unexported fields
}

PutDomainPermissionsPolicyResponse is the response type for the PutDomainPermissionsPolicy API operation.

func (*PutDomainPermissionsPolicyResponse) SDKResponseMetdata

func (r *PutDomainPermissionsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutDomainPermissionsPolicy request.

type PutRepositoryPermissionsPolicyInput

type PutRepositoryPermissionsPolicyInput struct {

	// The name of the domain containing the repository to set the resource policy
	// on.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// A valid displayable JSON Aspen policy string to be set as the access control
	// resource policy on the provided repository.
	//
	// PolicyDocument is a required field
	PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string" required:"true"`

	// Sets the revision of the resource policy that specifies permissions to access
	// the repository. This revision is used for optimistic locking, which prevents
	// others from overwriting your changes to the repository's resource policy.
	PolicyRevision *string `locationName:"policyRevision" min:"1" type:"string"`

	// The name of the repository to set the resource policy on.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PutRepositoryPermissionsPolicyInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutRepositoryPermissionsPolicyInput) String

String returns the string representation

func (*PutRepositoryPermissionsPolicyInput) Validate

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

type PutRepositoryPermissionsPolicyOutput

type PutRepositoryPermissionsPolicyOutput struct {

	// The resource policy that was set after processing the request.
	Policy *ResourcePolicy `locationName:"policy" type:"structure"`
	// contains filtered or unexported fields
}

func (PutRepositoryPermissionsPolicyOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (PutRepositoryPermissionsPolicyOutput) String

String returns the string representation

type PutRepositoryPermissionsPolicyRequest

type PutRepositoryPermissionsPolicyRequest struct {
	*aws.Request
	Input *PutRepositoryPermissionsPolicyInput
	Copy  func(*PutRepositoryPermissionsPolicyInput) PutRepositoryPermissionsPolicyRequest
}

PutRepositoryPermissionsPolicyRequest is the request type for the PutRepositoryPermissionsPolicy API operation.

func (PutRepositoryPermissionsPolicyRequest) Send

Send marshals and sends the PutRepositoryPermissionsPolicy API request.

type PutRepositoryPermissionsPolicyResponse

type PutRepositoryPermissionsPolicyResponse struct {
	*PutRepositoryPermissionsPolicyOutput
	// contains filtered or unexported fields
}

PutRepositoryPermissionsPolicyResponse is the response type for the PutRepositoryPermissionsPolicy API operation.

func (*PutRepositoryPermissionsPolicyResponse) SDKResponseMetdata

func (r *PutRepositoryPermissionsPolicyResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the PutRepositoryPermissionsPolicy request.

type RepositoryDescription

type RepositoryDescription struct {

	// The 12-digit account number of the AWS account that manages the repository.
	AdministratorAccount *string `locationName:"administratorAccount" min:"12" type:"string"`

	// The Amazon Resource Name (ARN) of the repository.
	Arn *string `locationName:"arn" min:"1" type:"string"`

	// A text description of the repository.
	Description *string `locationName:"description" type:"string"`

	// The name of the domain that contains the repository.
	DomainName *string `locationName:"domainName" min:"2" type:"string"`

	// The 12-digit account number of the AWS account that owns the domain that
	// contains the repository. It does not include dashes or spaces.
	DomainOwner *string `locationName:"domainOwner" min:"12" type:"string"`

	// An array of external connections associated with the repository.
	ExternalConnections []RepositoryExternalConnectionInfo `locationName:"externalConnections" type:"list"`

	// The name of the repository.
	Name *string `locationName:"name" min:"2" type:"string"`

	// A list of upstream repositories to associate with the repository. The order
	// of the upstream repositories in the list determines their priority order
	// when AWS CodeArtifact looks for a requested package version. For more information,
	// see Working with upstream repositories (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html).
	Upstreams []UpstreamRepositoryInfo `locationName:"upstreams" type:"list"`
	// contains filtered or unexported fields
}

The details of a repository stored in AWS CodeArtifact. A CodeArtifact repository contains a set of package versions, each of which maps to a set of assets. Repositories are polyglot—a single repository can contain packages of any supported type. Each repository exposes endpoints for fetching and publishing packages using tools like the npm CLI, the Maven CLI (mvn), and pip. You can create up to 100 repositories per AWS account.

func (RepositoryDescription) MarshalFields

func (s RepositoryDescription) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RepositoryDescription) String

func (s RepositoryDescription) String() string

String returns the string representation

type RepositoryExternalConnectionInfo

type RepositoryExternalConnectionInfo struct {

	// The name of the external connection associated with a repository.
	ExternalConnectionName *string `locationName:"externalConnectionName" type:"string"`

	// The package format associated with a repository's external connection. The
	// valid package formats are:
	//
	//    * npm: A Node Package Manager (npm) package.
	//
	//    * pypi: A Python Package Index (PyPI) package.
	//
	//    * maven: A Maven package that contains compiled code in a distributable
	//    format, such as a JAR file.
	PackageFormat PackageFormat `locationName:"packageFormat" type:"string" enum:"true"`

	// The status of the external connection of a repository. There is one valid
	// value, Available.
	Status ExternalConnectionStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Contains information about the external connection of a repository.

func (RepositoryExternalConnectionInfo) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RepositoryExternalConnectionInfo) String

String returns the string representation

type RepositorySummary

type RepositorySummary struct {

	// The AWS account ID that manages the repository.
	AdministratorAccount *string `locationName:"administratorAccount" min:"12" type:"string"`

	// The ARN of the repository.
	Arn *string `locationName:"arn" min:"1" type:"string"`

	// The description of the repository.
	Description *string `locationName:"description" type:"string"`

	// The name of the domain that contains the repository.
	DomainName *string `locationName:"domainName" min:"2" type:"string"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `locationName:"domainOwner" min:"12" type:"string"`

	// The name of the repository.
	Name *string `locationName:"name" min:"2" type:"string"`
	// contains filtered or unexported fields
}

Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListRepositories.html) operation returns a list of RepositorySummary objects.

func (RepositorySummary) MarshalFields

func (s RepositorySummary) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RepositorySummary) String

func (s RepositorySummary) String() string

String returns the string representation

type ResourcePolicy

type ResourcePolicy struct {

	// The resource policy formatted in JSON.
	Document *string `locationName:"document" min:"1" type:"string"`

	// The ARN of the resource associated with the resource policy
	ResourceArn *string `locationName:"resourceArn" min:"1" type:"string"`

	// The current revision of the resource policy.
	Revision *string `locationName:"revision" min:"1" type:"string"`
	// contains filtered or unexported fields
}

An AWS CodeArtifact resource policy that contains a resource ARN, document details, and a revision.

func (ResourcePolicy) MarshalFields

func (s ResourcePolicy) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ResourcePolicy) String

func (s ResourcePolicy) String() string

String returns the string representation

type ResourceType

type ResourceType string
const (
	ResourceTypeDomain         ResourceType = "domain"
	ResourceTypeRepository     ResourceType = "repository"
	ResourceTypePackage        ResourceType = "package"
	ResourceTypePackageVersion ResourceType = "package-version"
	ResourceTypeAsset          ResourceType = "asset"
)

Enum values for ResourceType

func (ResourceType) MarshalValue

func (enum ResourceType) MarshalValue() (string, error)

func (ResourceType) MarshalValueBuf

func (enum ResourceType) MarshalValueBuf(b []byte) ([]byte, error)

type SuccessfulPackageVersionInfo

type SuccessfulPackageVersionInfo struct {

	// The revision of a package version.
	Revision *string `locationName:"revision" type:"string"`

	// The status of a package version. Valid statuses are:
	//
	//    * Published
	//
	//    * Unfinished
	//
	//    * Unlisted
	//
	//    * Archived
	//
	//    * Disposed
	Status PackageVersionStatus `locationName:"status" type:"string" enum:"true"`
	// contains filtered or unexported fields
}

Contains the revision and status of a package version.

func (SuccessfulPackageVersionInfo) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (SuccessfulPackageVersionInfo) String

String returns the string representation

type UpdatePackageVersionsStatusInput

type UpdatePackageVersionsStatusInput struct {

	// The domain that contains the repository that contains the package versions
	// with a status to be updated.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The package version’s expected status before it is updated. If expectedStatus
	// is provided, the package version's status is updated only if its status at
	// the time UpdatePackageVersionsStatus is called matches expectedStatus.
	ExpectedStatus PackageVersionStatus `locationName:"expectedStatus" type:"string" enum:"true"`

	// A format that specifies the type of the package with the statuses to update.
	// The valid values are:
	//
	//    * npm
	//
	//    * pypi
	//
	//    * maven
	//
	// Format is a required field
	Format PackageFormat `location:"querystring" locationName:"format" type:"string" required:"true" enum:"true"`

	// The namespace of the package. The package component that specifies its namespace
	// depends on its type. For example:
	//
	//    * The namespace of a Maven package is its groupId.
	//
	//    * The namespace of an npm package is its scope.
	//
	//    * A Python package does not contain a corresponding component, so Python
	//    packages do not have a namespace.
	Namespace *string `location:"querystring" locationName:"namespace" min:"1" type:"string"`

	// The name of the package with the version statuses to update.
	//
	// Package is a required field
	Package *string `location:"querystring" locationName:"package" min:"1" type:"string" required:"true"`

	// The repository that contains the package versions with the status you want
	// to update.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`

	// The status you want to change the package version status to.
	//
	// TargetStatus is a required field
	TargetStatus PackageVersionStatus `locationName:"targetStatus" type:"string" required:"true" enum:"true"`

	// A map of package versions and package version revisions. The map key is the
	// package version (for example, 3.5.2), and the map value is the package version
	// revision.
	VersionRevisions map[string]string `locationName:"versionRevisions" type:"map"`

	// An array of strings that specify the versions of the package with the statuses
	// to update.
	//
	// Versions is a required field
	Versions []string `locationName:"versions" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UpdatePackageVersionsStatusInput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdatePackageVersionsStatusInput) String

String returns the string representation

func (*UpdatePackageVersionsStatusInput) Validate

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

type UpdatePackageVersionsStatusOutput

type UpdatePackageVersionsStatusOutput struct {

	// A list of SuccessfulPackageVersionInfo objects, one for each package version
	// with a status that successfully updated.
	FailedVersions map[string]PackageVersionError `locationName:"failedVersions" type:"map"`

	// A list of PackageVersionError objects, one for each package version with
	// a status that failed to update.
	SuccessfulVersions map[string]SuccessfulPackageVersionInfo `locationName:"successfulVersions" type:"map"`
	// contains filtered or unexported fields
}

func (UpdatePackageVersionsStatusOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdatePackageVersionsStatusOutput) String

String returns the string representation

type UpdatePackageVersionsStatusRequest

type UpdatePackageVersionsStatusRequest struct {
	*aws.Request
	Input *UpdatePackageVersionsStatusInput
	Copy  func(*UpdatePackageVersionsStatusInput) UpdatePackageVersionsStatusRequest
}

UpdatePackageVersionsStatusRequest is the request type for the UpdatePackageVersionsStatus API operation.

func (UpdatePackageVersionsStatusRequest) Send

Send marshals and sends the UpdatePackageVersionsStatus API request.

type UpdatePackageVersionsStatusResponse

type UpdatePackageVersionsStatusResponse struct {
	*UpdatePackageVersionsStatusOutput
	// contains filtered or unexported fields
}

UpdatePackageVersionsStatusResponse is the response type for the UpdatePackageVersionsStatus API operation.

func (*UpdatePackageVersionsStatusResponse) SDKResponseMetdata

func (r *UpdatePackageVersionsStatusResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdatePackageVersionsStatus request.

type UpdateRepositoryInput

type UpdateRepositoryInput struct {

	// An updated repository description.
	Description *string `locationName:"description" type:"string"`

	// The name of the domain associated with the repository to update.
	//
	// Domain is a required field
	Domain *string `location:"querystring" locationName:"domain" min:"2" type:"string" required:"true"`

	// The 12-digit account number of the AWS account that owns the domain. It does
	// not include dashes or spaces.
	DomainOwner *string `location:"querystring" locationName:"domain-owner" min:"12" type:"string"`

	// The name of the repository to update.
	//
	// Repository is a required field
	Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`

	// A list of upstream repositories to associate with the repository. The order
	// of the upstream repositories in the list determines their priority order
	// when AWS CodeArtifact looks for a requested package version. For more information,
	// see Working with upstream repositories (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html).
	Upstreams []UpstreamRepository `locationName:"upstreams" type:"list"`
	// contains filtered or unexported fields
}

func (UpdateRepositoryInput) MarshalFields

func (s UpdateRepositoryInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdateRepositoryInput) String

func (s UpdateRepositoryInput) String() string

String returns the string representation

func (*UpdateRepositoryInput) Validate

func (s *UpdateRepositoryInput) Validate() error

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

type UpdateRepositoryOutput

type UpdateRepositoryOutput struct {

	// The updated repository.
	Repository *RepositoryDescription `locationName:"repository" type:"structure"`
	// contains filtered or unexported fields
}

func (UpdateRepositoryOutput) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdateRepositoryOutput) String

func (s UpdateRepositoryOutput) String() string

String returns the string representation

type UpdateRepositoryRequest

type UpdateRepositoryRequest struct {
	*aws.Request
	Input *UpdateRepositoryInput
	Copy  func(*UpdateRepositoryInput) UpdateRepositoryRequest
}

UpdateRepositoryRequest is the request type for the UpdateRepository API operation.

func (UpdateRepositoryRequest) Send

Send marshals and sends the UpdateRepository API request.

type UpdateRepositoryResponse

type UpdateRepositoryResponse struct {
	*UpdateRepositoryOutput
	// contains filtered or unexported fields
}

UpdateRepositoryResponse is the response type for the UpdateRepository API operation.

func (*UpdateRepositoryResponse) SDKResponseMetdata

func (r *UpdateRepositoryResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the UpdateRepository request.

type UpstreamRepository

type UpstreamRepository struct {

	// The name of an upstream repository.
	//
	// RepositoryName is a required field
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Information about an upstream repository. A list of UpstreamRepository objects is an input parameter to CreateRepository (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_CreateRepository.html) and UpdateRepository (https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdateRepository.html).

func (UpstreamRepository) MarshalFields

func (s UpstreamRepository) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpstreamRepository) String

func (s UpstreamRepository) String() string

String returns the string representation

func (*UpstreamRepository) Validate

func (s *UpstreamRepository) Validate() error

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

type UpstreamRepositoryInfo

type UpstreamRepositoryInfo struct {

	// The name of an upstream repository.
	RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`
	// contains filtered or unexported fields
}

Information about an upstream repository.

func (UpstreamRepositoryInfo) MarshalFields

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpstreamRepositoryInfo) String

func (s UpstreamRepositoryInfo) String() string

String returns the string representation

type ValidationExceptionReason

type ValidationExceptionReason string
const (
	ValidationExceptionReasonCannotParse           ValidationExceptionReason = "CANNOT_PARSE"
	ValidationExceptionReasonEncryptionKeyError    ValidationExceptionReason = "ENCRYPTION_KEY_ERROR"
	ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED"
	ValidationExceptionReasonUnknownOperation      ValidationExceptionReason = "UNKNOWN_OPERATION"
	ValidationExceptionReasonOther                 ValidationExceptionReason = "OTHER"
)

Enum values for ValidationExceptionReason

func (ValidationExceptionReason) MarshalValue

func (enum ValidationExceptionReason) MarshalValue() (string, error)

func (ValidationExceptionReason) MarshalValueBuf

func (enum ValidationExceptionReason) MarshalValueBuf(b []byte) ([]byte, error)

Directories

Path Synopsis
Package codeartifactiface provides an interface to enable mocking the CodeArtifact service client for testing your code.
Package codeartifactiface provides an interface to enable mocking the CodeArtifact service client for testing your code.

Jump to

Keyboard shortcuts

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