diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1cb7f12f9dc..56486cb02f2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,25 @@
+Release v1.31.15 (2020-06-10)
+===
+
+### Service Client Updates
+* `service/appconfig`: Updates service API and documentation
+* `service/codeartifact`: Adds new service
+* `service/compute-optimizer`: Updates service API and documentation
+* `service/dlm`: Updates service API
+* `service/ec2`: Updates service API
+ * New C6g instances powered by AWS Graviton2 processors and ideal for running advanced, compute-intensive workloads; New R6g instances powered by AWS Graviton2 processors and ideal for running memory-intensive workloads.
+* `service/lightsail`: Updates service documentation
+ * Documentation updates for lightsail
+* `service/macie2`: Updates service API and documentation
+* `service/servicecatalog`: Updates service documentation
+ * Service Catalog Documentation Update for Integration with AWS Organizations Delegated Administrator feature
+* `service/shield`: Updates service API and documentation
+ * Corrections to the supported format for contact phone numbers and to the description for the create subscription action.
+
+### SDK Enhancements
+* `aws/credentials`: Update documentation for shared credentials provider to specify the type of credentials it supports retrieving from shared credentials file.
+ * Related to [#3328](https://github.com/aws/aws-sdk-go/issues/3328)
+
Release v1.31.14 (2020-06-09)
===
diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md
index 67cd7b24e6d..8a1927a39ca 100644
--- a/CHANGELOG_PENDING.md
+++ b/CHANGELOG_PENDING.md
@@ -1,7 +1,5 @@
### SDK Features
### SDK Enhancements
-* `aws/credentials`: Update documentation for shared credentials provider to specify the type of credentials it supports retrieving from shared credentials file.
- * Related to [#3328](https://github.com/aws/aws-sdk-go/issues/3328)
### SDK Bugs
diff --git a/aws/version.go b/aws/version.go
index 117db659c4f..e933da58d51 100644
--- a/aws/version.go
+++ b/aws/version.go
@@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
-const SDKVersion = "1.31.14"
+const SDKVersion = "1.31.15"
diff --git a/models/apis/appconfig/2019-10-09/api-2.json b/models/apis/appconfig/2019-10-09/api-2.json
index 01fb8b4ad32..bab0839dba5 100644
--- a/models/apis/appconfig/2019-10-09/api-2.json
+++ b/models/apis/appconfig/2019-10-09/api-2.json
@@ -156,7 +156,6 @@
"errors":[
{"shape":"ResourceNotFoundException"},
{"shape":"InternalServerException"},
- {"shape":"ResourceNotFoundException"},
{"shape":"BadRequestException"}
]
},
@@ -476,7 +475,10 @@
"error":{"httpStatusCode":400},
"exception":true
},
- "Blob":{"type":"blob"},
+ "Blob":{
+ "type":"blob",
+ "sensitive":true
+ },
"Configuration":{
"type":"structure",
"members":{
@@ -502,7 +504,7 @@
"Name":{"shape":"Name"},
"Description":{"shape":"Description"},
"LocationUri":{"shape":"Uri"},
- "RetrievalRoleArn":{"shape":"Arn"},
+ "RetrievalRoleArn":{"shape":"RoleArn"},
"Validators":{"shape":"ValidatorList"}
}
},
@@ -561,7 +563,7 @@
"Name":{"shape":"Name"},
"Description":{"shape":"Description"},
"LocationUri":{"shape":"Uri"},
- "RetrievalRoleArn":{"shape":"Arn"},
+ "RetrievalRoleArn":{"shape":"RoleArn"},
"Validators":{"shape":"ValidatorList"},
"Tags":{"shape":"TagMap"}
}
@@ -753,7 +755,7 @@
},
"DeploymentStrategyId":{
"type":"string",
- "pattern":"([a-z0-9]{4,7}|arn:aws.*)"
+ "pattern":"(^[a-z0-9]{4,7}$|^AppConfig\\.[A-Za-z0-9]{9,40}$)"
},
"DeploymentStrategyList":{
"type":"list",
@@ -1101,7 +1103,7 @@
"type":"structure",
"members":{
"AlarmArn":{"shape":"Arn"},
- "AlarmRoleArn":{"shape":"Arn"}
+ "AlarmRoleArn":{"shape":"RoleArn"}
}
},
"MonitorList":{
@@ -1147,6 +1149,12 @@
"Tags":{"shape":"TagMap"}
}
},
+ "RoleArn":{
+ "type":"string",
+ "max":2048,
+ "min":20,
+ "pattern":"^((arn):(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):(iam)::\\d{12}:role[/].*)$"
+ },
"StartDeploymentRequest":{
"type":"structure",
"required":[
@@ -1204,7 +1212,8 @@
"StringWithLengthBetween0And32768":{
"type":"string",
"max":32768,
- "min":0
+ "min":0,
+ "sensitive":true
},
"StringWithLengthBetween1And64":{
"type":"string",
@@ -1308,7 +1317,7 @@
},
"Name":{"shape":"Name"},
"Description":{"shape":"Description"},
- "RetrievalRoleArn":{"shape":"Arn"},
+ "RetrievalRoleArn":{"shape":"RoleArn"},
"Validators":{"shape":"ValidatorList"}
}
},
diff --git a/models/apis/appconfig/2019-10-09/docs-2.json b/models/apis/appconfig/2019-10-09/docs-2.json
index 7c2a92d20a6..1179d185aa2 100644
--- a/models/apis/appconfig/2019-10-09/docs-2.json
+++ b/models/apis/appconfig/2019-10-09/docs-2.json
@@ -53,14 +53,10 @@
"Arn": {
"base": null,
"refs": {
- "ConfigurationProfile$RetrievalRoleArn": "
The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
",
- "CreateConfigurationProfileRequest$RetrievalRoleArn": "The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
",
"ListTagsForResourceRequest$ResourceArn": "The resource ARN.
",
"Monitor$AlarmArn": "ARN of the Amazon CloudWatch alarm.
",
- "Monitor$AlarmRoleArn": "ARN of an IAM role for AppConfig to monitor AlarmArn
.
",
"TagResourceRequest$ResourceArn": "The ARN of the resource for which to retrieve tags.
",
- "UntagResourceRequest$ResourceArn": "The ARN of the resource for which to remove tags.
",
- "UpdateConfigurationProfileRequest$RetrievalRoleArn": "The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
"
+ "UntagResourceRequest$ResourceArn": "The ARN of the resource for which to remove tags.
"
}
},
"BadRequestException": {
@@ -510,6 +506,15 @@
"refs": {
}
},
+ "RoleArn": {
+ "base": null,
+ "refs": {
+ "ConfigurationProfile$RetrievalRoleArn": "The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
",
+ "CreateConfigurationProfileRequest$RetrievalRoleArn": "The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
",
+ "Monitor$AlarmRoleArn": "ARN of an IAM role for AppConfig to monitor AlarmArn
.
",
+ "UpdateConfigurationProfileRequest$RetrievalRoleArn": "The ARN of an IAM role with permission to access the configuration at the specified LocationUri.
"
+ }
+ },
"StartDeploymentRequest": {
"base": null,
"refs": {
diff --git a/models/apis/codeartifact/2018-09-22/api-2.json b/models/apis/codeartifact/2018-09-22/api-2.json
new file mode 100644
index 00000000000..7f2527bb52d
--- /dev/null
+++ b/models/apis/codeartifact/2018-09-22/api-2.json
@@ -0,0 +1,2281 @@
+{
+ "version":"2.0",
+ "metadata":{
+ "apiVersion":"2018-09-22",
+ "endpointPrefix":"codeartifact",
+ "jsonVersion":"1.1",
+ "protocol":"rest-json",
+ "serviceFullName":"CodeArtifact",
+ "serviceId":"codeartifact",
+ "signatureVersion":"v4",
+ "signingName":"codeartifact",
+ "uid":"codeartifact-2018-09-22"
+ },
+ "operations":{
+ "AssociateExternalConnection":{
+ "name":"AssociateExternalConnection",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/repository/external-connection"
+ },
+ "input":{"shape":"AssociateExternalConnectionRequest"},
+ "output":{"shape":"AssociateExternalConnectionResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "CopyPackageVersions":{
+ "name":"CopyPackageVersions",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/package/versions/copy"
+ },
+ "input":{"shape":"CopyPackageVersionsRequest"},
+ "output":{"shape":"CopyPackageVersionsResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "CreateDomain":{
+ "name":"CreateDomain",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/domain"
+ },
+ "input":{"shape":"CreateDomainRequest"},
+ "output":{"shape":"CreateDomainResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "CreateRepository":{
+ "name":"CreateRepository",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/repository"
+ },
+ "input":{"shape":"CreateRepositoryRequest"},
+ "output":{"shape":"CreateRepositoryResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DeleteDomain":{
+ "name":"DeleteDomain",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/v1/domain"
+ },
+ "input":{"shape":"DeleteDomainRequest"},
+ "output":{"shape":"DeleteDomainResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DeleteDomainPermissionsPolicy":{
+ "name":"DeleteDomainPermissionsPolicy",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/v1/domain/permissions/policy"
+ },
+ "input":{"shape":"DeleteDomainPermissionsPolicyRequest"},
+ "output":{"shape":"DeleteDomainPermissionsPolicyResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DeletePackageVersions":{
+ "name":"DeletePackageVersions",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/package/versions/delete"
+ },
+ "input":{"shape":"DeletePackageVersionsRequest"},
+ "output":{"shape":"DeletePackageVersionsResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DeleteRepository":{
+ "name":"DeleteRepository",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/v1/repository"
+ },
+ "input":{"shape":"DeleteRepositoryRequest"},
+ "output":{"shape":"DeleteRepositoryResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DeleteRepositoryPermissionsPolicy":{
+ "name":"DeleteRepositoryPermissionsPolicy",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/v1/repository/permissions/policies"
+ },
+ "input":{"shape":"DeleteRepositoryPermissionsPolicyRequest"},
+ "output":{"shape":"DeleteRepositoryPermissionsPolicyResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DescribeDomain":{
+ "name":"DescribeDomain",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/domain"
+ },
+ "input":{"shape":"DescribeDomainRequest"},
+ "output":{"shape":"DescribeDomainResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DescribePackageVersion":{
+ "name":"DescribePackageVersion",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/package/version"
+ },
+ "input":{"shape":"DescribePackageVersionRequest"},
+ "output":{"shape":"DescribePackageVersionResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DescribeRepository":{
+ "name":"DescribeRepository",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/repository"
+ },
+ "input":{"shape":"DescribeRepositoryRequest"},
+ "output":{"shape":"DescribeRepositoryResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DisassociateExternalConnection":{
+ "name":"DisassociateExternalConnection",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/v1/repository/external-connection"
+ },
+ "input":{"shape":"DisassociateExternalConnectionRequest"},
+ "output":{"shape":"DisassociateExternalConnectionResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "DisposePackageVersions":{
+ "name":"DisposePackageVersions",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/package/versions/dispose"
+ },
+ "input":{"shape":"DisposePackageVersionsRequest"},
+ "output":{"shape":"DisposePackageVersionsResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "GetAuthorizationToken":{
+ "name":"GetAuthorizationToken",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/authorization-token"
+ },
+ "input":{"shape":"GetAuthorizationTokenRequest"},
+ "output":{"shape":"GetAuthorizationTokenResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "GetDomainPermissionsPolicy":{
+ "name":"GetDomainPermissionsPolicy",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/domain/permissions/policy"
+ },
+ "input":{"shape":"GetDomainPermissionsPolicyRequest"},
+ "output":{"shape":"GetDomainPermissionsPolicyResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "GetPackageVersionAsset":{
+ "name":"GetPackageVersionAsset",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/package/version/asset"
+ },
+ "input":{"shape":"GetPackageVersionAssetRequest"},
+ "output":{"shape":"GetPackageVersionAssetResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "GetPackageVersionReadme":{
+ "name":"GetPackageVersionReadme",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/package/version/readme"
+ },
+ "input":{"shape":"GetPackageVersionReadmeRequest"},
+ "output":{"shape":"GetPackageVersionReadmeResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "GetRepositoryEndpoint":{
+ "name":"GetRepositoryEndpoint",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/repository/endpoint"
+ },
+ "input":{"shape":"GetRepositoryEndpointRequest"},
+ "output":{"shape":"GetRepositoryEndpointResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "GetRepositoryPermissionsPolicy":{
+ "name":"GetRepositoryPermissionsPolicy",
+ "http":{
+ "method":"GET",
+ "requestUri":"/v1/repository/permissions/policy"
+ },
+ "input":{"shape":"GetRepositoryPermissionsPolicyRequest"},
+ "output":{"shape":"GetRepositoryPermissionsPolicyResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListDomains":{
+ "name":"ListDomains",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/domains"
+ },
+ "input":{"shape":"ListDomainsRequest"},
+ "output":{"shape":"ListDomainsResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListPackageVersionAssets":{
+ "name":"ListPackageVersionAssets",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/package/version/assets"
+ },
+ "input":{"shape":"ListPackageVersionAssetsRequest"},
+ "output":{"shape":"ListPackageVersionAssetsResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListPackageVersionDependencies":{
+ "name":"ListPackageVersionDependencies",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/package/version/dependencies"
+ },
+ "input":{"shape":"ListPackageVersionDependenciesRequest"},
+ "output":{"shape":"ListPackageVersionDependenciesResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListPackageVersions":{
+ "name":"ListPackageVersions",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/package/versions"
+ },
+ "input":{"shape":"ListPackageVersionsRequest"},
+ "output":{"shape":"ListPackageVersionsResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListPackages":{
+ "name":"ListPackages",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/packages"
+ },
+ "input":{"shape":"ListPackagesRequest"},
+ "output":{"shape":"ListPackagesResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListRepositories":{
+ "name":"ListRepositories",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/repositories"
+ },
+ "input":{"shape":"ListRepositoriesRequest"},
+ "output":{"shape":"ListRepositoriesResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "ListRepositoriesInDomain":{
+ "name":"ListRepositoriesInDomain",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/domain/repositories"
+ },
+ "input":{"shape":"ListRepositoriesInDomainRequest"},
+ "output":{"shape":"ListRepositoriesInDomainResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "PutDomainPermissionsPolicy":{
+ "name":"PutDomainPermissionsPolicy",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/v1/domain/permissions/policy"
+ },
+ "input":{"shape":"PutDomainPermissionsPolicyRequest"},
+ "output":{"shape":"PutDomainPermissionsPolicyResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "PutRepositoryPermissionsPolicy":{
+ "name":"PutRepositoryPermissionsPolicy",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/v1/repository/permissions/policy"
+ },
+ "input":{"shape":"PutRepositoryPermissionsPolicyRequest"},
+ "output":{"shape":"PutRepositoryPermissionsPolicyResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "UpdatePackageVersionsStatus":{
+ "name":"UpdatePackageVersionsStatus",
+ "http":{
+ "method":"POST",
+ "requestUri":"/v1/package/versions/update_status"
+ },
+ "input":{"shape":"UpdatePackageVersionsStatusRequest"},
+ "output":{"shape":"UpdatePackageVersionsStatusResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ },
+ "UpdateRepository":{
+ "name":"UpdateRepository",
+ "http":{
+ "method":"PUT",
+ "requestUri":"/v1/repository"
+ },
+ "input":{"shape":"UpdateRepositoryRequest"},
+ "output":{"shape":"UpdateRepositoryResult"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"}
+ ]
+ }
+ },
+ "shapes":{
+ "AccessDeniedException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"}
+ },
+ "error":{"httpStatusCode":403},
+ "exception":true
+ },
+ "AccountId":{
+ "type":"string",
+ "max":12,
+ "min":12,
+ "pattern":"[0-9]{12}"
+ },
+ "Arn":{
+ "type":"string",
+ "max":2048,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "Asset":{
+ "type":"blob",
+ "streaming":true
+ },
+ "AssetHashes":{
+ "type":"map",
+ "key":{"shape":"HashAlgorithm"},
+ "value":{"shape":"HashValue"}
+ },
+ "AssetName":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"\\P{C}+"
+ },
+ "AssetSummary":{
+ "type":"structure",
+ "required":["name"],
+ "members":{
+ "name":{"shape":"AssetName"},
+ "size":{"shape":"LongOptional"},
+ "hashes":{"shape":"AssetHashes"}
+ }
+ },
+ "AssetSummaryList":{
+ "type":"list",
+ "member":{"shape":"AssetSummary"}
+ },
+ "AssociateExternalConnectionRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "externalConnection"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "externalConnection":{
+ "shape":"ExternalConnectionName",
+ "location":"querystring",
+ "locationName":"external-connection"
+ }
+ }
+ },
+ "AssociateExternalConnectionResult":{
+ "type":"structure",
+ "members":{
+ "repository":{"shape":"RepositoryDescription"}
+ }
+ },
+ "AuthorizationTokenDurationSeconds":{
+ "type":"long",
+ "max":43200,
+ "min":0
+ },
+ "BooleanOptional":{"type":"boolean"},
+ "ConflictException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"},
+ "resourceId":{"shape":"String"},
+ "resourceType":{"shape":"ResourceType"}
+ },
+ "error":{"httpStatusCode":409},
+ "exception":true
+ },
+ "CopyPackageVersionsRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "sourceRepository",
+ "destinationRepository",
+ "format",
+ "package"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "sourceRepository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"source-repository"
+ },
+ "destinationRepository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"destination-repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "versions":{"shape":"PackageVersionList"},
+ "versionRevisions":{"shape":"PackageVersionRevisionMap"},
+ "allowOverwrite":{"shape":"BooleanOptional"},
+ "includeFromUpstream":{"shape":"BooleanOptional"}
+ }
+ },
+ "CopyPackageVersionsResult":{
+ "type":"structure",
+ "members":{
+ "successfulVersions":{"shape":"SuccessfulPackageVersionInfoMap"},
+ "failedVersions":{"shape":"PackageVersionErrorMap"}
+ }
+ },
+ "CreateDomainRequest":{
+ "type":"structure",
+ "required":["domain"],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "encryptionKey":{"shape":"Arn"}
+ }
+ },
+ "CreateDomainResult":{
+ "type":"structure",
+ "members":{
+ "domain":{"shape":"DomainDescription"}
+ }
+ },
+ "CreateRepositoryRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "description":{"shape":"Description"},
+ "upstreams":{"shape":"UpstreamRepositoryList"}
+ }
+ },
+ "CreateRepositoryResult":{
+ "type":"structure",
+ "members":{
+ "repository":{"shape":"RepositoryDescription"}
+ }
+ },
+ "DeleteDomainPermissionsPolicyRequest":{
+ "type":"structure",
+ "required":["domain"],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "policyRevision":{
+ "shape":"PolicyRevision",
+ "location":"querystring",
+ "locationName":"policy-revision"
+ }
+ }
+ },
+ "DeleteDomainPermissionsPolicyResult":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"ResourcePolicy"}
+ }
+ },
+ "DeleteDomainRequest":{
+ "type":"structure",
+ "required":["domain"],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ }
+ }
+ },
+ "DeleteDomainResult":{
+ "type":"structure",
+ "members":{
+ "domain":{"shape":"DomainDescription"}
+ }
+ },
+ "DeletePackageVersionsRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "versions"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "versions":{"shape":"PackageVersionList"},
+ "expectedStatus":{"shape":"PackageVersionStatus"}
+ }
+ },
+ "DeletePackageVersionsResult":{
+ "type":"structure",
+ "members":{
+ "successfulVersions":{"shape":"SuccessfulPackageVersionInfoMap"},
+ "failedVersions":{"shape":"PackageVersionErrorMap"}
+ }
+ },
+ "DeleteRepositoryPermissionsPolicyRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "policyRevision":{
+ "shape":"PolicyRevision",
+ "location":"querystring",
+ "locationName":"policy-revision"
+ }
+ }
+ },
+ "DeleteRepositoryPermissionsPolicyResult":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"ResourcePolicy"}
+ }
+ },
+ "DeleteRepositoryRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ }
+ }
+ },
+ "DeleteRepositoryResult":{
+ "type":"structure",
+ "members":{
+ "repository":{"shape":"RepositoryDescription"}
+ }
+ },
+ "DescribeDomainRequest":{
+ "type":"structure",
+ "required":["domain"],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ }
+ }
+ },
+ "DescribeDomainResult":{
+ "type":"structure",
+ "members":{
+ "domain":{"shape":"DomainDescription"}
+ }
+ },
+ "DescribePackageVersionRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "packageVersion"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "packageVersion":{
+ "shape":"PackageVersion",
+ "location":"querystring",
+ "locationName":"version"
+ }
+ }
+ },
+ "DescribePackageVersionResult":{
+ "type":"structure",
+ "required":["packageVersion"],
+ "members":{
+ "packageVersion":{"shape":"PackageVersionDescription"}
+ }
+ },
+ "DescribeRepositoryRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ }
+ }
+ },
+ "DescribeRepositoryResult":{
+ "type":"structure",
+ "members":{
+ "repository":{"shape":"RepositoryDescription"}
+ }
+ },
+ "Description":{
+ "type":"string",
+ "max":1000,
+ "pattern":"\\P{C}+"
+ },
+ "DisassociateExternalConnectionRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "externalConnection"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "externalConnection":{
+ "shape":"ExternalConnectionName",
+ "location":"querystring",
+ "locationName":"external-connection"
+ }
+ }
+ },
+ "DisassociateExternalConnectionResult":{
+ "type":"structure",
+ "members":{
+ "repository":{"shape":"RepositoryDescription"}
+ }
+ },
+ "DisposePackageVersionsRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "versions"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "versions":{"shape":"PackageVersionList"},
+ "versionRevisions":{"shape":"PackageVersionRevisionMap"},
+ "expectedStatus":{"shape":"PackageVersionStatus"}
+ }
+ },
+ "DisposePackageVersionsResult":{
+ "type":"structure",
+ "members":{
+ "successfulVersions":{"shape":"SuccessfulPackageVersionInfoMap"},
+ "failedVersions":{"shape":"PackageVersionErrorMap"}
+ }
+ },
+ "DomainDescription":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"DomainName"},
+ "owner":{"shape":"AccountId"},
+ "arn":{"shape":"Arn"},
+ "status":{"shape":"DomainStatus"},
+ "createdTime":{"shape":"Timestamp"},
+ "encryptionKey":{"shape":"Arn"},
+ "repositoryCount":{"shape":"Integer"},
+ "assetSizeBytes":{"shape":"Long"}
+ }
+ },
+ "DomainName":{
+ "type":"string",
+ "max":50,
+ "min":2,
+ "pattern":"[a-z][a-z0-9\\-]{0,48}[a-z0-9]"
+ },
+ "DomainStatus":{
+ "type":"string",
+ "enum":[
+ "Active",
+ "Deleted"
+ ]
+ },
+ "DomainSummary":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"DomainName"},
+ "owner":{"shape":"AccountId"},
+ "arn":{"shape":"Arn"},
+ "status":{"shape":"DomainStatus"},
+ "createdTime":{"shape":"Timestamp"},
+ "encryptionKey":{"shape":"Arn"}
+ }
+ },
+ "DomainSummaryList":{
+ "type":"list",
+ "member":{"shape":"DomainSummary"}
+ },
+ "ErrorMessage":{"type":"string"},
+ "ExternalConnectionName":{
+ "type":"string",
+ "pattern":"[A-Za-z0-9][A-Za-z0-9._\\-:]{1,99}"
+ },
+ "ExternalConnectionStatus":{
+ "type":"string",
+ "enum":["Available"]
+ },
+ "GetAuthorizationTokenRequest":{
+ "type":"structure",
+ "required":["domain"],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "durationSeconds":{
+ "shape":"AuthorizationTokenDurationSeconds",
+ "location":"querystring",
+ "locationName":"duration"
+ }
+ }
+ },
+ "GetAuthorizationTokenResult":{
+ "type":"structure",
+ "members":{
+ "authorizationToken":{"shape":"String"},
+ "expiration":{"shape":"Timestamp"}
+ }
+ },
+ "GetDomainPermissionsPolicyRequest":{
+ "type":"structure",
+ "required":["domain"],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ }
+ }
+ },
+ "GetDomainPermissionsPolicyResult":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"ResourcePolicy"}
+ }
+ },
+ "GetPackageVersionAssetRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "packageVersion",
+ "asset"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "packageVersion":{
+ "shape":"PackageVersion",
+ "location":"querystring",
+ "locationName":"version"
+ },
+ "asset":{
+ "shape":"AssetName",
+ "location":"querystring",
+ "locationName":"asset"
+ },
+ "packageVersionRevision":{
+ "shape":"PackageVersionRevision",
+ "location":"querystring",
+ "locationName":"revision"
+ }
+ }
+ },
+ "GetPackageVersionAssetResult":{
+ "type":"structure",
+ "members":{
+ "asset":{"shape":"Asset"},
+ "assetName":{
+ "shape":"AssetName",
+ "location":"header",
+ "locationName":"X-AssetName"
+ },
+ "packageVersion":{
+ "shape":"PackageVersion",
+ "location":"header",
+ "locationName":"X-PackageVersion"
+ },
+ "packageVersionRevision":{
+ "shape":"PackageVersionRevision",
+ "location":"header",
+ "locationName":"X-PackageVersionRevision"
+ }
+ },
+ "payload":"asset"
+ },
+ "GetPackageVersionReadmeRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "packageVersion"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "packageVersion":{
+ "shape":"PackageVersion",
+ "location":"querystring",
+ "locationName":"version"
+ }
+ }
+ },
+ "GetPackageVersionReadmeResult":{
+ "type":"structure",
+ "members":{
+ "format":{"shape":"PackageFormat"},
+ "namespace":{"shape":"PackageNamespace"},
+ "package":{"shape":"PackageName"},
+ "version":{"shape":"PackageVersion"},
+ "versionRevision":{"shape":"PackageVersionRevision"},
+ "readme":{"shape":"String"}
+ }
+ },
+ "GetRepositoryEndpointRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ }
+ }
+ },
+ "GetRepositoryEndpointResult":{
+ "type":"structure",
+ "members":{
+ "repositoryEndpoint":{"shape":"String"}
+ }
+ },
+ "GetRepositoryPermissionsPolicyRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ }
+ }
+ },
+ "GetRepositoryPermissionsPolicyResult":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"ResourcePolicy"}
+ }
+ },
+ "HashAlgorithm":{
+ "type":"string",
+ "enum":[
+ "MD5",
+ "SHA-1",
+ "SHA-256",
+ "SHA-512"
+ ]
+ },
+ "HashValue":{
+ "type":"string",
+ "max":512,
+ "min":32,
+ "pattern":"[0-9a-f]+"
+ },
+ "Integer":{"type":"integer"},
+ "InternalServerException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"}
+ },
+ "error":{"httpStatusCode":500},
+ "exception":true,
+ "fault":true
+ },
+ "LicenseInfo":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"String"},
+ "url":{"shape":"String"}
+ }
+ },
+ "LicenseInfoList":{
+ "type":"list",
+ "member":{"shape":"LicenseInfo"}
+ },
+ "ListDomainsMaxResults":{
+ "type":"integer",
+ "max":1000,
+ "min":1
+ },
+ "ListDomainsRequest":{
+ "type":"structure",
+ "members":{
+ "maxResults":{"shape":"ListDomainsMaxResults"},
+ "nextToken":{"shape":"PaginationToken"}
+ }
+ },
+ "ListDomainsResult":{
+ "type":"structure",
+ "members":{
+ "domains":{"shape":"DomainSummaryList"},
+ "nextToken":{"shape":"PaginationToken"}
+ }
+ },
+ "ListPackageVersionAssetsMaxResults":{
+ "type":"integer",
+ "max":1000,
+ "min":1
+ },
+ "ListPackageVersionAssetsRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "packageVersion"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "packageVersion":{
+ "shape":"PackageVersion",
+ "location":"querystring",
+ "locationName":"version"
+ },
+ "maxResults":{
+ "shape":"ListPackageVersionAssetsMaxResults",
+ "location":"querystring",
+ "locationName":"max-results"
+ },
+ "nextToken":{
+ "shape":"PaginationToken",
+ "location":"querystring",
+ "locationName":"next-token"
+ }
+ }
+ },
+ "ListPackageVersionAssetsResult":{
+ "type":"structure",
+ "members":{
+ "format":{"shape":"PackageFormat"},
+ "namespace":{"shape":"PackageNamespace"},
+ "package":{"shape":"PackageName"},
+ "version":{"shape":"PackageVersion"},
+ "versionRevision":{"shape":"PackageVersionRevision"},
+ "nextToken":{"shape":"PaginationToken"},
+ "assets":{"shape":"AssetSummaryList"}
+ }
+ },
+ "ListPackageVersionDependenciesRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "packageVersion"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "packageVersion":{
+ "shape":"PackageVersion",
+ "location":"querystring",
+ "locationName":"version"
+ },
+ "nextToken":{
+ "shape":"PaginationToken",
+ "location":"querystring",
+ "locationName":"next-token"
+ }
+ }
+ },
+ "ListPackageVersionDependenciesResult":{
+ "type":"structure",
+ "members":{
+ "format":{"shape":"PackageFormat"},
+ "namespace":{"shape":"PackageNamespace"},
+ "package":{"shape":"PackageName"},
+ "version":{"shape":"PackageVersion"},
+ "versionRevision":{"shape":"PackageVersionRevision"},
+ "nextToken":{"shape":"PaginationToken"},
+ "dependencies":{"shape":"PackageDependencyList"}
+ }
+ },
+ "ListPackageVersionsMaxResults":{
+ "type":"integer",
+ "max":1000,
+ "min":1
+ },
+ "ListPackageVersionsRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "status":{
+ "shape":"PackageVersionStatus",
+ "location":"querystring",
+ "locationName":"status"
+ },
+ "sortBy":{
+ "shape":"PackageVersionSortType",
+ "location":"querystring",
+ "locationName":"sortBy"
+ },
+ "maxResults":{
+ "shape":"ListPackageVersionsMaxResults",
+ "location":"querystring",
+ "locationName":"max-results"
+ },
+ "nextToken":{
+ "shape":"PaginationToken",
+ "location":"querystring",
+ "locationName":"next-token"
+ }
+ }
+ },
+ "ListPackageVersionsResult":{
+ "type":"structure",
+ "members":{
+ "defaultDisplayVersion":{"shape":"PackageVersion"},
+ "format":{"shape":"PackageFormat"},
+ "namespace":{"shape":"PackageNamespace"},
+ "package":{"shape":"PackageName"},
+ "versions":{"shape":"PackageVersionSummaryList"},
+ "nextToken":{"shape":"PaginationToken"}
+ }
+ },
+ "ListPackagesMaxResults":{
+ "type":"integer",
+ "max":1000,
+ "min":1
+ },
+ "ListPackagesRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "packagePrefix":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package-prefix"
+ },
+ "maxResults":{
+ "shape":"ListPackagesMaxResults",
+ "location":"querystring",
+ "locationName":"max-results"
+ },
+ "nextToken":{
+ "shape":"PaginationToken",
+ "location":"querystring",
+ "locationName":"next-token"
+ }
+ }
+ },
+ "ListPackagesResult":{
+ "type":"structure",
+ "members":{
+ "packages":{"shape":"PackageSummaryList"},
+ "nextToken":{"shape":"PaginationToken"}
+ }
+ },
+ "ListRepositoriesInDomainMaxResults":{
+ "type":"integer",
+ "max":1000,
+ "min":1
+ },
+ "ListRepositoriesInDomainRequest":{
+ "type":"structure",
+ "required":["domain"],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "administratorAccount":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"administrator-account"
+ },
+ "repositoryPrefix":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository-prefix"
+ },
+ "maxResults":{
+ "shape":"ListRepositoriesInDomainMaxResults",
+ "location":"querystring",
+ "locationName":"max-results"
+ },
+ "nextToken":{
+ "shape":"PaginationToken",
+ "location":"querystring",
+ "locationName":"next-token"
+ }
+ }
+ },
+ "ListRepositoriesInDomainResult":{
+ "type":"structure",
+ "members":{
+ "repositories":{"shape":"RepositorySummaryList"},
+ "nextToken":{"shape":"PaginationToken"}
+ }
+ },
+ "ListRepositoriesMaxResults":{
+ "type":"integer",
+ "max":1000,
+ "min":1
+ },
+ "ListRepositoriesRequest":{
+ "type":"structure",
+ "members":{
+ "repositoryPrefix":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository-prefix"
+ },
+ "maxResults":{
+ "shape":"ListRepositoriesMaxResults",
+ "location":"querystring",
+ "locationName":"max-results"
+ },
+ "nextToken":{
+ "shape":"PaginationToken",
+ "location":"querystring",
+ "locationName":"next-token"
+ }
+ }
+ },
+ "ListRepositoriesResult":{
+ "type":"structure",
+ "members":{
+ "repositories":{"shape":"RepositorySummaryList"},
+ "nextToken":{"shape":"PaginationToken"}
+ }
+ },
+ "Long":{"type":"long"},
+ "LongOptional":{"type":"long"},
+ "PackageDependency":{
+ "type":"structure",
+ "members":{
+ "namespace":{"shape":"PackageNamespace"},
+ "package":{"shape":"PackageName"},
+ "dependencyType":{"shape":"String"},
+ "versionRequirement":{"shape":"String"}
+ }
+ },
+ "PackageDependencyList":{
+ "type":"list",
+ "member":{"shape":"PackageDependency"}
+ },
+ "PackageFormat":{
+ "type":"string",
+ "enum":[
+ "npm",
+ "pypi",
+ "maven"
+ ]
+ },
+ "PackageName":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"[^!#/\\s]+"
+ },
+ "PackageNamespace":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"[^!#/\\s]+"
+ },
+ "PackageSummary":{
+ "type":"structure",
+ "members":{
+ "format":{"shape":"PackageFormat"},
+ "namespace":{"shape":"PackageNamespace"},
+ "package":{"shape":"PackageName"}
+ }
+ },
+ "PackageSummaryList":{
+ "type":"list",
+ "member":{"shape":"PackageSummary"}
+ },
+ "PackageVersion":{
+ "type":"string",
+ "max":255,
+ "min":1,
+ "pattern":"[^!#/\\s]+"
+ },
+ "PackageVersionDescription":{
+ "type":"structure",
+ "members":{
+ "format":{"shape":"PackageFormat"},
+ "namespace":{"shape":"PackageNamespace"},
+ "packageName":{"shape":"PackageName"},
+ "displayName":{"shape":"String255"},
+ "version":{"shape":"PackageVersion"},
+ "summary":{"shape":"String"},
+ "homePage":{"shape":"String"},
+ "sourceCodeRepository":{"shape":"String"},
+ "publishedTime":{"shape":"Timestamp"},
+ "licenses":{"shape":"LicenseInfoList"},
+ "revision":{"shape":"PackageVersionRevision"},
+ "status":{"shape":"PackageVersionStatus"}
+ }
+ },
+ "PackageVersionError":{
+ "type":"structure",
+ "members":{
+ "errorCode":{"shape":"PackageVersionErrorCode"},
+ "errorMessage":{"shape":"ErrorMessage"}
+ }
+ },
+ "PackageVersionErrorCode":{
+ "type":"string",
+ "enum":[
+ "ALREADY_EXISTS",
+ "MISMATCHED_REVISION",
+ "MISMATCHED_STATUS",
+ "NOT_ALLOWED",
+ "NOT_FOUND",
+ "SKIPPED"
+ ]
+ },
+ "PackageVersionErrorMap":{
+ "type":"map",
+ "key":{"shape":"PackageVersion"},
+ "value":{"shape":"PackageVersionError"}
+ },
+ "PackageVersionList":{
+ "type":"list",
+ "member":{"shape":"PackageVersion"}
+ },
+ "PackageVersionRevision":{
+ "type":"string",
+ "max":50,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "PackageVersionRevisionMap":{
+ "type":"map",
+ "key":{"shape":"PackageVersion"},
+ "value":{"shape":"PackageVersionRevision"}
+ },
+ "PackageVersionSortType":{
+ "type":"string",
+ "enum":["PUBLISHED_TIME"]
+ },
+ "PackageVersionStatus":{
+ "type":"string",
+ "enum":[
+ "Published",
+ "Unfinished",
+ "Unlisted",
+ "Archived",
+ "Disposed",
+ "Deleted"
+ ]
+ },
+ "PackageVersionSummary":{
+ "type":"structure",
+ "required":[
+ "version",
+ "status"
+ ],
+ "members":{
+ "version":{"shape":"PackageVersion"},
+ "revision":{"shape":"PackageVersionRevision"},
+ "status":{"shape":"PackageVersionStatus"}
+ }
+ },
+ "PackageVersionSummaryList":{
+ "type":"list",
+ "member":{"shape":"PackageVersionSummary"}
+ },
+ "PaginationToken":{
+ "type":"string",
+ "max":2000,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "PolicyDocument":{
+ "type":"string",
+ "max":5120,
+ "min":1
+ },
+ "PolicyRevision":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "PutDomainPermissionsPolicyRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "policyDocument"
+ ],
+ "members":{
+ "domain":{"shape":"DomainName"},
+ "domainOwner":{"shape":"AccountId"},
+ "policyRevision":{"shape":"PolicyRevision"},
+ "policyDocument":{"shape":"PolicyDocument"}
+ }
+ },
+ "PutDomainPermissionsPolicyResult":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"ResourcePolicy"}
+ }
+ },
+ "PutRepositoryPermissionsPolicyRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "policyDocument"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "policyRevision":{"shape":"PolicyRevision"},
+ "policyDocument":{"shape":"PolicyDocument"}
+ }
+ },
+ "PutRepositoryPermissionsPolicyResult":{
+ "type":"structure",
+ "members":{
+ "policy":{"shape":"ResourcePolicy"}
+ }
+ },
+ "RepositoryDescription":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"RepositoryName"},
+ "administratorAccount":{"shape":"AccountId"},
+ "domainName":{"shape":"DomainName"},
+ "domainOwner":{"shape":"AccountId"},
+ "arn":{"shape":"Arn"},
+ "description":{"shape":"Description"},
+ "upstreams":{"shape":"UpstreamRepositoryInfoList"},
+ "externalConnections":{"shape":"RepositoryExternalConnectionInfoList"}
+ }
+ },
+ "RepositoryExternalConnectionInfo":{
+ "type":"structure",
+ "members":{
+ "externalConnectionName":{"shape":"ExternalConnectionName"},
+ "packageFormat":{"shape":"PackageFormat"},
+ "status":{"shape":"ExternalConnectionStatus"}
+ }
+ },
+ "RepositoryExternalConnectionInfoList":{
+ "type":"list",
+ "member":{"shape":"RepositoryExternalConnectionInfo"}
+ },
+ "RepositoryName":{
+ "type":"string",
+ "max":100,
+ "min":2,
+ "pattern":"[A-Za-z0-9][A-Za-z0-9._\\-]{1,99}"
+ },
+ "RepositorySummary":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"RepositoryName"},
+ "administratorAccount":{"shape":"AccountId"},
+ "domainName":{"shape":"DomainName"},
+ "domainOwner":{"shape":"AccountId"},
+ "arn":{"shape":"Arn"},
+ "description":{"shape":"Description"}
+ }
+ },
+ "RepositorySummaryList":{
+ "type":"list",
+ "member":{"shape":"RepositorySummary"}
+ },
+ "ResourceNotFoundException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"},
+ "resourceId":{"shape":"String"},
+ "resourceType":{"shape":"ResourceType"}
+ },
+ "error":{"httpStatusCode":404},
+ "exception":true
+ },
+ "ResourcePolicy":{
+ "type":"structure",
+ "members":{
+ "resourceArn":{"shape":"Arn"},
+ "revision":{"shape":"PolicyRevision"},
+ "document":{"shape":"PolicyDocument"}
+ }
+ },
+ "ResourceType":{
+ "type":"string",
+ "enum":[
+ "domain",
+ "repository",
+ "package",
+ "package-version",
+ "asset"
+ ]
+ },
+ "RetryAfterSeconds":{"type":"integer"},
+ "ServiceQuotaExceededException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"},
+ "resourceId":{"shape":"String"},
+ "resourceType":{"shape":"ResourceType"}
+ },
+ "error":{"httpStatusCode":402},
+ "exception":true
+ },
+ "String":{"type":"string"},
+ "String255":{
+ "type":"string",
+ "max":255,
+ "min":1
+ },
+ "SuccessfulPackageVersionInfo":{
+ "type":"structure",
+ "members":{
+ "revision":{"shape":"String"},
+ "status":{"shape":"PackageVersionStatus"}
+ }
+ },
+ "SuccessfulPackageVersionInfoMap":{
+ "type":"map",
+ "key":{"shape":"PackageVersion"},
+ "value":{"shape":"SuccessfulPackageVersionInfo"}
+ },
+ "ThrottlingException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"},
+ "retryAfterSeconds":{
+ "shape":"RetryAfterSeconds",
+ "location":"header",
+ "locationName":"Retry-After"
+ }
+ },
+ "error":{"httpStatusCode":429},
+ "exception":true
+ },
+ "Timestamp":{"type":"timestamp"},
+ "UpdatePackageVersionsStatusRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository",
+ "format",
+ "package",
+ "versions",
+ "targetStatus"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "format":{
+ "shape":"PackageFormat",
+ "location":"querystring",
+ "locationName":"format"
+ },
+ "namespace":{
+ "shape":"PackageNamespace",
+ "location":"querystring",
+ "locationName":"namespace"
+ },
+ "package":{
+ "shape":"PackageName",
+ "location":"querystring",
+ "locationName":"package"
+ },
+ "versions":{"shape":"PackageVersionList"},
+ "versionRevisions":{"shape":"PackageVersionRevisionMap"},
+ "expectedStatus":{"shape":"PackageVersionStatus"},
+ "targetStatus":{"shape":"PackageVersionStatus"}
+ }
+ },
+ "UpdatePackageVersionsStatusResult":{
+ "type":"structure",
+ "members":{
+ "successfulVersions":{"shape":"SuccessfulPackageVersionInfoMap"},
+ "failedVersions":{"shape":"PackageVersionErrorMap"}
+ }
+ },
+ "UpdateRepositoryRequest":{
+ "type":"structure",
+ "required":[
+ "domain",
+ "repository"
+ ],
+ "members":{
+ "domain":{
+ "shape":"DomainName",
+ "location":"querystring",
+ "locationName":"domain"
+ },
+ "domainOwner":{
+ "shape":"AccountId",
+ "location":"querystring",
+ "locationName":"domain-owner"
+ },
+ "repository":{
+ "shape":"RepositoryName",
+ "location":"querystring",
+ "locationName":"repository"
+ },
+ "description":{"shape":"Description"},
+ "upstreams":{"shape":"UpstreamRepositoryList"}
+ }
+ },
+ "UpdateRepositoryResult":{
+ "type":"structure",
+ "members":{
+ "repository":{"shape":"RepositoryDescription"}
+ }
+ },
+ "UpstreamRepository":{
+ "type":"structure",
+ "required":["repositoryName"],
+ "members":{
+ "repositoryName":{"shape":"RepositoryName"}
+ }
+ },
+ "UpstreamRepositoryInfo":{
+ "type":"structure",
+ "members":{
+ "repositoryName":{"shape":"RepositoryName"}
+ }
+ },
+ "UpstreamRepositoryInfoList":{
+ "type":"list",
+ "member":{"shape":"UpstreamRepositoryInfo"}
+ },
+ "UpstreamRepositoryList":{
+ "type":"list",
+ "member":{"shape":"UpstreamRepository"}
+ },
+ "ValidationException":{
+ "type":"structure",
+ "required":["message"],
+ "members":{
+ "message":{"shape":"String"},
+ "reason":{"shape":"ValidationExceptionReason"}
+ },
+ "error":{"httpStatusCode":400},
+ "exception":true
+ },
+ "ValidationExceptionReason":{
+ "type":"string",
+ "enum":[
+ "CANNOT_PARSE",
+ "ENCRYPTION_KEY_ERROR",
+ "FIELD_VALIDATION_FAILED",
+ "UNKNOWN_OPERATION",
+ "OTHER"
+ ]
+ }
+ }
+}
diff --git a/models/apis/codeartifact/2018-09-22/docs-2.json b/models/apis/codeartifact/2018-09-22/docs-2.json
new file mode 100644
index 00000000000..6e23f25ff7e
--- /dev/null
+++ b/models/apis/codeartifact/2018-09-22/docs-2.json
@@ -0,0 +1,1075 @@
+{
+ "version": "2.0",
+ "service": " 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, 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, PyPI, and 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. 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
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:
-
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.
",
+ "operations": {
+ "AssociateExternalConnection": "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.
",
+ "CopyPackageVersions": " Copies package versions from one repository to another repository in the same domain.
You must specify versions
or versionRevisions
. You cannot specify both.
",
+ "CreateDomain": " 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.
",
+ "CreateRepository": " Creates a repository.
",
+ "DeleteDomain": " Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.
",
+ "DeleteDomainPermissionsPolicy": " Deletes the resource policy set on a domain.
",
+ "DeletePackageVersions": " 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
), but you can restore them using UpdatePackageVersionsStatus
.
",
+ "DeleteRepository": " Deletes a repository.
",
+ "DeleteRepositoryPermissionsPolicy": " 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.
",
+ "DescribeDomain": " Returns a DomainDescription
object that contains information about the requested domain.
",
+ "DescribePackageVersion": " Returns a PackageVersionDescription
object that contains information about the requested package version.
",
+ "DescribeRepository": " Returns a RepositoryDescription
object that contains detailed information about the requested repository.
",
+ "DisassociateExternalConnection": " Removes an existing external connection from a repository.
",
+ "DisposePackageVersions": " 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
and set the status
parameter to Disposed
.
To view information about a disposed package version, use ListPackageVersions
and set the status
parameter to Disposed
.
",
+ "GetAuthorizationToken": " 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 for more information on controlling session duration.
",
+ "GetDomainPermissionsPolicy": " 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 in the AWS Identity and Access Management User Guide.
",
+ "GetPackageVersionAsset": " 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.
",
+ "GetPackageVersionReadme": " 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.
",
+ "GetRepositoryEndpoint": " Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:
",
+ "GetRepositoryPermissionsPolicy": " Returns the resource policy that is set on a repository.
",
+ "ListDomains": " Returns a list of DomainSummary
objects for all domains owned by the AWS account that makes this call. Each returned DomainSummary
object contains information about a domain.
",
+ "ListPackageVersionAssets": " Returns a list of AssetSummary
objects for assets in a package version.
",
+ "ListPackageVersionDependencies": " Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency
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.
",
+ "ListPackageVersions": " Returns a list of PackageVersionSummary
objects for package versions in a repository that match the request parameters.
",
+ "ListPackages": " Returns a list of PackageSummary
objects for packages in a repository that match the request parameters.
",
+ "ListRepositories": " Returns a list of RepositorySummary
objects. Each RepositorySummary
contains information about a repository in the specified AWS account and that matches the input parameters.
",
+ "ListRepositoriesInDomain": " Returns a list of RepositorySummary
objects. Each RepositorySummary
contains information about a repository in the specified domain and that matches the input parameters.
",
+ "PutDomainPermissionsPolicy": " Sets a resource policy on a domain that specifies permissions to access it.
",
+ "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": " Update the properties of a repository.
"
+ },
+ "shapes": {
+ "AccessDeniedException": {
+ "base": " The operation did not succeed because of an unauthorized access attempt.
",
+ "refs": {
+ }
+ },
+ "AccountId": {
+ "base": null,
+ "refs": {
+ "AssociateExternalConnectionRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "CopyPackageVersionsRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "CreateRepositoryRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DeleteDomainPermissionsPolicyRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DeleteDomainRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DeletePackageVersionsRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DeleteRepositoryPermissionsPolicyRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DeleteRepositoryRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DescribeDomainRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DescribePackageVersionRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DescribeRepositoryRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DisassociateExternalConnectionRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DisposePackageVersionsRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "DomainDescription$owner": " The AWS account ID that owns the domain.
",
+ "DomainSummary$owner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "GetAuthorizationTokenRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "GetDomainPermissionsPolicyRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "GetPackageVersionAssetRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "GetPackageVersionReadmeRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "GetRepositoryEndpointRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
",
+ "GetRepositoryPermissionsPolicyRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "ListPackageVersionAssetsRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "ListPackageVersionDependenciesRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "ListPackageVersionsRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "ListPackagesRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "ListRepositoriesInDomainRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "ListRepositoriesInDomainRequest$administratorAccount": " Filter the list of repositories to only include those that are managed by the AWS account ID.
",
+ "PutDomainPermissionsPolicyRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "PutRepositoryPermissionsPolicyRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "RepositoryDescription$administratorAccount": " The 12-digit account number of the AWS account that manages the repository.
",
+ "RepositoryDescription$domainOwner": " The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
",
+ "RepositorySummary$administratorAccount": " The AWS account ID that manages the repository.
",
+ "RepositorySummary$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "UpdatePackageVersionsStatusRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
",
+ "UpdateRepositoryRequest$domainOwner": " The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
"
+ }
+ },
+ "Arn": {
+ "base": null,
+ "refs": {
+ "CreateDomainRequest$encryptionKey": " 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 in the AWS Key Management Service API Reference and AWS KMS API Permissions Reference 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 in the AWS Key Management Service Developer Guide.
",
+ "DomainDescription$arn": " The Amazon Resource Name (ARN) of the domain.
",
+ "DomainDescription$encryptionKey": " The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain.
",
+ "DomainSummary$arn": " The ARN of the domain.
",
+ "DomainSummary$encryptionKey": " The key used to encrypt the domain.
",
+ "RepositoryDescription$arn": " The Amazon Resource Name (ARN) of the repository.
",
+ "RepositorySummary$arn": " The ARN of the repository.
",
+ "ResourcePolicy$resourceArn": " The ARN of the resource associated with the resource policy
"
+ }
+ },
+ "Asset": {
+ "base": null,
+ "refs": {
+ "GetPackageVersionAssetResult$asset": " The binary file, or asset, that is downloaded.
"
+ }
+ },
+ "AssetHashes": {
+ "base": null,
+ "refs": {
+ "AssetSummary$hashes": " The hashes of the asset.
"
+ }
+ },
+ "AssetName": {
+ "base": null,
+ "refs": {
+ "AssetSummary$name": " The name of the asset.
",
+ "GetPackageVersionAssetRequest$asset": " The name of the requested asset.
",
+ "GetPackageVersionAssetResult$assetName": " The name of the asset that is downloaded.
"
+ }
+ },
+ "AssetSummary": {
+ "base": " Contains details about a package version asset.
",
+ "refs": {
+ "AssetSummaryList$member": null
+ }
+ },
+ "AssetSummaryList": {
+ "base": null,
+ "refs": {
+ "ListPackageVersionAssetsResult$assets": " The returned list of AssetSummary
objects.
"
+ }
+ },
+ "AssociateExternalConnectionRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "AssociateExternalConnectionResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "AuthorizationTokenDurationSeconds": {
+ "base": null,
+ "refs": {
+ "GetAuthorizationTokenRequest$durationSeconds": "The time, in seconds, that the generated authorization token is valid.
"
+ }
+ },
+ "BooleanOptional": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsRequest$allowOverwrite": " 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.
",
+ "CopyPackageVersionsRequest$includeFromUpstream": " 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.
"
+ }
+ },
+ "ConflictException": {
+ "base": " The operation did not succeed because prerequisites are not met.
",
+ "refs": {
+ }
+ },
+ "CopyPackageVersionsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CopyPackageVersionsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateDomainRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateDomainResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateRepositoryRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateRepositoryResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDomainPermissionsPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDomainPermissionsPolicyResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDomainRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDomainResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeletePackageVersionsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeletePackageVersionsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteRepositoryPermissionsPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteRepositoryPermissionsPolicyResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteRepositoryRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteRepositoryResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeDomainRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeDomainResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribePackageVersionRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribePackageVersionResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeRepositoryRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeRepositoryResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "Description": {
+ "base": null,
+ "refs": {
+ "CreateRepositoryRequest$description": " A description of the created repository.
",
+ "RepositoryDescription$description": " A text description of the repository.
",
+ "RepositorySummary$description": " The description of the repository.
",
+ "UpdateRepositoryRequest$description": " An updated repository description.
"
+ }
+ },
+ "DisassociateExternalConnectionRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DisassociateExternalConnectionResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DisposePackageVersionsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DisposePackageVersionsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DomainDescription": {
+ "base": " 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.
",
+ "refs": {
+ "CreateDomainResult$domain": " Contains information about the created domain after processing the request.
",
+ "DeleteDomainResult$domain": " Contains information about the deleted domain after processing the request.
",
+ "DescribeDomainResult$domain": null
+ }
+ },
+ "DomainName": {
+ "base": null,
+ "refs": {
+ "AssociateExternalConnectionRequest$domain": "The name of the domain that contains the repository.
",
+ "CopyPackageVersionsRequest$domain": " The name of the domain that contains the source and destination repositories.
",
+ "CreateDomainRequest$domain": " 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.
",
+ "CreateRepositoryRequest$domain": " The domain that contains the created repository.
",
+ "DeleteDomainPermissionsPolicyRequest$domain": " The name of the domain associated with the resource policy to be deleted.
",
+ "DeleteDomainRequest$domain": " The name of the domain to delete.
",
+ "DeletePackageVersionsRequest$domain": " The name of the domain that contains the package to delete.
",
+ "DeleteRepositoryPermissionsPolicyRequest$domain": " The name of the domain that contains the repository associated with the resource policy to be deleted.
",
+ "DeleteRepositoryRequest$domain": " The name of the domain that contains the repository to delete.
",
+ "DescribeDomainRequest$domain": " A string that specifies the name of the requested domain.
",
+ "DescribePackageVersionRequest$domain": " The name of the domain that contains the repository that contains the package version.
",
+ "DescribeRepositoryRequest$domain": " The name of the domain that contains the repository to describe.
",
+ "DisassociateExternalConnectionRequest$domain": "The name of the domain that contains the repository from which to remove the external repository.
",
+ "DisposePackageVersionsRequest$domain": " The name of the domain that contains the repository you want to dispose.
",
+ "DomainDescription$name": " The name of the domain.
",
+ "DomainSummary$name": " The name of the domain.
",
+ "GetAuthorizationTokenRequest$domain": " The name of the domain that is in scope for the generated authorization token.
",
+ "GetDomainPermissionsPolicyRequest$domain": " The name of the domain to which the resource policy is attached.
",
+ "GetPackageVersionAssetRequest$domain": " The domain that contains the repository that contains the package version with the requested asset.
",
+ "GetPackageVersionReadmeRequest$domain": " The name of the domain that contains the repository that contains the package version with the requested readme file.
",
+ "GetRepositoryEndpointRequest$domain": " The name of the domain that contains the repository.
",
+ "GetRepositoryPermissionsPolicyRequest$domain": " The name of the domain containing the repository whose associated resource policy is to be retrieved.
",
+ "ListPackageVersionAssetsRequest$domain": " The name of the domain that contains the repository associated with the package version assets.
",
+ "ListPackageVersionDependenciesRequest$domain": " The domain that contains the repository that contains the requested package version dependencies.
",
+ "ListPackageVersionsRequest$domain": " The name of the domain that contains the repository that contains the returned package versions.
",
+ "ListPackagesRequest$domain": " The domain that contains the repository that contains the requested list of packages.
",
+ "ListRepositoriesInDomainRequest$domain": " The name of the domain that contains the returned list of repositories.
",
+ "PutDomainPermissionsPolicyRequest$domain": " The name of the domain on which to set the resource policy.
",
+ "PutRepositoryPermissionsPolicyRequest$domain": " The name of the domain containing the repository to set the resource policy on.
",
+ "RepositoryDescription$domainName": " The name of the domain that contains the repository.
",
+ "RepositorySummary$domainName": " The name of the domain that contains the repository.
",
+ "UpdatePackageVersionsStatusRequest$domain": " The domain that contains the repository that contains the package versions with a status to be updated.
",
+ "UpdateRepositoryRequest$domain": " The name of the domain associated with the repository to update.
"
+ }
+ },
+ "DomainStatus": {
+ "base": null,
+ "refs": {
+ "DomainDescription$status": " The current status of a domain. The valid values are
",
+ "DomainSummary$status": " A string that contains the status of the domain. The valid values are:
"
+ }
+ },
+ "DomainSummary": {
+ "base": " Information about a domain, including its name, Amazon Resource Name (ARN), and status. The ListDomains
operation returns a list of DomainSummary
objects.
",
+ "refs": {
+ "DomainSummaryList$member": null
+ }
+ },
+ "DomainSummaryList": {
+ "base": null,
+ "refs": {
+ "ListDomainsResult$domains": " The returned list of DomainSummary
objects.
"
+ }
+ },
+ "ErrorMessage": {
+ "base": null,
+ "refs": {
+ "PackageVersionError$errorMessage": " The error message associated with the error.
"
+ }
+ },
+ "ExternalConnectionName": {
+ "base": null,
+ "refs": {
+ "AssociateExternalConnectionRequest$externalConnection": " 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.
",
+ "DisassociateExternalConnectionRequest$externalConnection": "The name of the external connection to be removed from the repository.
",
+ "RepositoryExternalConnectionInfo$externalConnectionName": " The name of the external connection associated with a repository.
"
+ }
+ },
+ "ExternalConnectionStatus": {
+ "base": null,
+ "refs": {
+ "RepositoryExternalConnectionInfo$status": " The status of the external connection of a repository. There is one valid value, Available
.
"
+ }
+ },
+ "GetAuthorizationTokenRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetAuthorizationTokenResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDomainPermissionsPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetDomainPermissionsPolicyResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetPackageVersionAssetRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetPackageVersionAssetResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetPackageVersionReadmeRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetPackageVersionReadmeResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetRepositoryEndpointRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetRepositoryEndpointResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetRepositoryPermissionsPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "GetRepositoryPermissionsPolicyResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "HashAlgorithm": {
+ "base": null,
+ "refs": {
+ "AssetHashes$key": null
+ }
+ },
+ "HashValue": {
+ "base": null,
+ "refs": {
+ "AssetHashes$value": null
+ }
+ },
+ "Integer": {
+ "base": null,
+ "refs": {
+ "DomainDescription$repositoryCount": " The number of repositories in the domain.
"
+ }
+ },
+ "InternalServerException": {
+ "base": " The operation did not succeed because of an error that occurred inside AWS CodeArtifact.
",
+ "refs": {
+ }
+ },
+ "LicenseInfo": {
+ "base": " Details of the license data.
",
+ "refs": {
+ "LicenseInfoList$member": null
+ }
+ },
+ "LicenseInfoList": {
+ "base": null,
+ "refs": {
+ "PackageVersionDescription$licenses": " Information about licenses associated with the package version.
"
+ }
+ },
+ "ListDomainsMaxResults": {
+ "base": null,
+ "refs": {
+ "ListDomainsRequest$maxResults": " The maximum number of results to return per page.
"
+ }
+ },
+ "ListDomainsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListDomainsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackageVersionAssetsMaxResults": {
+ "base": null,
+ "refs": {
+ "ListPackageVersionAssetsRequest$maxResults": " The maximum number of results to return per page.
"
+ }
+ },
+ "ListPackageVersionAssetsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackageVersionAssetsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackageVersionDependenciesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackageVersionDependenciesResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackageVersionsMaxResults": {
+ "base": null,
+ "refs": {
+ "ListPackageVersionsRequest$maxResults": " The maximum number of results to return per page.
"
+ }
+ },
+ "ListPackageVersionsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackageVersionsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackagesMaxResults": {
+ "base": null,
+ "refs": {
+ "ListPackagesRequest$maxResults": " The maximum number of results to return per page.
"
+ }
+ },
+ "ListPackagesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPackagesResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListRepositoriesInDomainMaxResults": {
+ "base": null,
+ "refs": {
+ "ListRepositoriesInDomainRequest$maxResults": " The maximum number of results to return per page.
"
+ }
+ },
+ "ListRepositoriesInDomainRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListRepositoriesInDomainResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListRepositoriesMaxResults": {
+ "base": null,
+ "refs": {
+ "ListRepositoriesRequest$maxResults": " The maximum number of results to return per page.
"
+ }
+ },
+ "ListRepositoriesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListRepositoriesResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "Long": {
+ "base": null,
+ "refs": {
+ "DomainDescription$assetSizeBytes": " The total size of all assets in the domain.
"
+ }
+ },
+ "LongOptional": {
+ "base": null,
+ "refs": {
+ "AssetSummary$size": " The size of the asset.
"
+ }
+ },
+ "PackageDependency": {
+ "base": " Details about a package dependency.
",
+ "refs": {
+ "PackageDependencyList$member": null
+ }
+ },
+ "PackageDependencyList": {
+ "base": null,
+ "refs": {
+ "ListPackageVersionDependenciesResult$dependencies": " The returned list of PackageDependency
objects.
"
+ }
+ },
+ "PackageFormat": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsRequest$format": " 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.
",
+ "DeletePackageVersionsRequest$format": " The format of the package versions to delete. The valid values are:
",
+ "DescribePackageVersionRequest$format": " A format that specifies the type of the requested package version. The valid values are:
",
+ "DisposePackageVersionsRequest$format": " A format that specifies the type of package versions you want to dispose. The valid values are:
",
+ "GetPackageVersionAssetRequest$format": " A format that specifies the type of the package version with the requested asset file. The valid values are:
",
+ "GetPackageVersionReadmeRequest$format": " A format that specifies the type of the package version with the requested readme file. The valid values are:
",
+ "GetPackageVersionReadmeResult$format": " The format of the package with the requested readme file. Valid format types are:
",
+ "GetRepositoryEndpointRequest$format": " Returns which endpoint of a repository to return. A repository has one endpoint for each package format:
",
+ "ListPackageVersionAssetsRequest$format": " 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.
",
+ "ListPackageVersionAssetsResult$format": " The format of the package that contains the returned package version assets.
",
+ "ListPackageVersionDependenciesRequest$format": " 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.
",
+ "ListPackageVersionDependenciesResult$format": " A format that specifies the type of the package that contains the returned dependencies. The valid values are:
",
+ "ListPackageVersionsRequest$format": " 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.
",
+ "ListPackageVersionsResult$format": " A format of the package. Valid package format values are:
",
+ "ListPackagesRequest$format": " 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.
",
+ "PackageSummary$format": " The format of the package. Valid values are:
",
+ "PackageVersionDescription$format": " 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.
",
+ "RepositoryExternalConnectionInfo$packageFormat": " 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.
",
+ "UpdatePackageVersionsStatusRequest$format": " A format that specifies the type of the package with the statuses to update. The valid values are:
"
+ }
+ },
+ "PackageName": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsRequest$package": " The name of the package that is copied.
",
+ "DeletePackageVersionsRequest$package": " The name of the package with the versions to delete.
",
+ "DescribePackageVersionRequest$package": " The name of the requested package version.
",
+ "DisposePackageVersionsRequest$package": " The name of the package with the versions you want to dispose.
",
+ "GetPackageVersionAssetRequest$package": " The name of the package that contains the requested asset.
",
+ "GetPackageVersionReadmeRequest$package": " The name of the package version that contains the requested readme file.
",
+ "GetPackageVersionReadmeResult$package": " The name of the package that contains the returned readme file.
",
+ "ListPackageVersionAssetsRequest$package": " The name of the package that contains the returned package version assets.
",
+ "ListPackageVersionAssetsResult$package": " The name of the package that contains the returned package version assets.
",
+ "ListPackageVersionDependenciesRequest$package": " The name of the package versions' package.
",
+ "ListPackageVersionDependenciesResult$package": " The name of the package that contains the returned package versions dependencies.
",
+ "ListPackageVersionsRequest$package": " The name of the package for which you want to return a list of package versions.
",
+ "ListPackageVersionsResult$package": " The name of the package.
",
+ "ListPackagesRequest$packagePrefix": " A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix
are returned.
",
+ "PackageDependency$package": " The name of the package that this package depends on.
",
+ "PackageSummary$package": " The name of the package.
",
+ "PackageVersionDescription$packageName": " The name of the requested package.
",
+ "UpdatePackageVersionsStatusRequest$package": " The name of the package with the version statuses to update.
"
+ }
+ },
+ "PackageNamespace": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsRequest$namespace": " 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.
",
+ "DeletePackageVersionsRequest$namespace": " 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.
",
+ "DescribePackageVersionRequest$namespace": " 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.
",
+ "DisposePackageVersionsRequest$namespace": " 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.
",
+ "GetPackageVersionAssetRequest$namespace": " 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.
",
+ "GetPackageVersionReadmeRequest$namespace": " 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.
",
+ "GetPackageVersionReadmeResult$namespace": " 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.
",
+ "ListPackageVersionAssetsRequest$namespace": " 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.
",
+ "ListPackageVersionAssetsResult$namespace": " 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.
",
+ "ListPackageVersionDependenciesRequest$namespace": " 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.
",
+ "ListPackageVersionDependenciesResult$namespace": " 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.
",
+ "ListPackageVersionsRequest$namespace": " 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.
",
+ "ListPackageVersionsResult$namespace": " 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.
",
+ "ListPackagesRequest$namespace": " 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.
",
+ "PackageDependency$namespace": " 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.
",
+ "PackageSummary$namespace": " 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.
",
+ "PackageVersionDescription$namespace": " 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.
",
+ "UpdatePackageVersionsStatusRequest$namespace": " 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.
"
+ }
+ },
+ "PackageSummary": {
+ "base": " Details about a package, including its format, namespace, and name. The ListPackages
operation returns a list of PackageSummary
objects.
",
+ "refs": {
+ "PackageSummaryList$member": null
+ }
+ },
+ "PackageSummaryList": {
+ "base": null,
+ "refs": {
+ "ListPackagesResult$packages": " The list of returned PackageSummary
objects.
"
+ }
+ },
+ "PackageVersion": {
+ "base": null,
+ "refs": {
+ "DescribePackageVersionRequest$packageVersion": " A string that contains the package version (for example, 3.5.2
).
",
+ "GetPackageVersionAssetRequest$packageVersion": " A string that contains the package version (for example, 3.5.2
).
",
+ "GetPackageVersionAssetResult$packageVersion": " A string that contains the package version (for example, 3.5.2
).
",
+ "GetPackageVersionReadmeRequest$packageVersion": " A string that contains the package version (for example, 3.5.2
).
",
+ "GetPackageVersionReadmeResult$version": " The version of the package with the requested readme file.
",
+ "ListPackageVersionAssetsRequest$packageVersion": " A string that contains the package version (for example, 3.5.2
).
",
+ "ListPackageVersionAssetsResult$version": " The version of the package associated with the returned assets.
",
+ "ListPackageVersionDependenciesRequest$packageVersion": " A string that contains the package version (for example, 3.5.2
).
",
+ "ListPackageVersionDependenciesResult$version": " The version of the package that is specified in the request.
",
+ "ListPackageVersionsResult$defaultDisplayVersion": " 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.
",
+ "PackageVersionDescription$version": " The version of the package.
",
+ "PackageVersionErrorMap$key": null,
+ "PackageVersionList$member": null,
+ "PackageVersionRevisionMap$key": null,
+ "PackageVersionSummary$version": " Information about a package version.
",
+ "SuccessfulPackageVersionInfoMap$key": null
+ }
+ },
+ "PackageVersionDescription": {
+ "base": " Details about a package version.
",
+ "refs": {
+ "DescribePackageVersionResult$packageVersion": " A PackageVersionDescription
object that contains information about the requested package version.
"
+ }
+ },
+ "PackageVersionError": {
+ "base": " An error associated with package.
",
+ "refs": {
+ "PackageVersionErrorMap$value": null
+ }
+ },
+ "PackageVersionErrorCode": {
+ "base": null,
+ "refs": {
+ "PackageVersionError$errorCode": " The error code associated with the error. Valid error codes are:
-
ALREADY_EXISTS
-
MISMATCHED_REVISION
-
MISMATCHED_STATUS
-
NOT_ALLOWED
-
NOT_FOUND
-
SKIPPED
"
+ }
+ },
+ "PackageVersionErrorMap": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsResult$failedVersions": " 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
",
+ "DeletePackageVersionsResult$failedVersions": " 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
",
+ "DisposePackageVersionsResult$failedVersions": " 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
",
+ "UpdatePackageVersionsStatusResult$failedVersions": " A list of SuccessfulPackageVersionInfo
objects, one for each package version with a status that successfully updated.
"
+ }
+ },
+ "PackageVersionList": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsRequest$versions": " The versions of the package to copy.
You must specify versions
or versionRevisions
. You cannot specify both.
",
+ "DeletePackageVersionsRequest$versions": " An array of strings that specify the versions of the package to delete.
",
+ "DisposePackageVersionsRequest$versions": " The versions of the package you want to dispose.
",
+ "UpdatePackageVersionsStatusRequest$versions": " An array of strings that specify the versions of the package with the statuses to update.
"
+ }
+ },
+ "PackageVersionRevision": {
+ "base": null,
+ "refs": {
+ "GetPackageVersionAssetRequest$packageVersionRevision": " The name of the package version revision that contains the requested asset.
",
+ "GetPackageVersionAssetResult$packageVersionRevision": " The name of the package version revision that contains the downloaded asset.
",
+ "GetPackageVersionReadmeResult$versionRevision": " The current revision associated with the package version.
",
+ "ListPackageVersionAssetsResult$versionRevision": " The current revision associated with the package version.
",
+ "ListPackageVersionDependenciesResult$versionRevision": " The current revision associated with the package version.
",
+ "PackageVersionDescription$revision": " The revision of the package version.
",
+ "PackageVersionRevisionMap$value": null,
+ "PackageVersionSummary$revision": " The revision associated with a package version.
"
+ }
+ },
+ "PackageVersionRevisionMap": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsRequest$versionRevisions": " 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.
",
+ "DisposePackageVersionsRequest$versionRevisions": " The revisions of the package versions you want to dispose.
",
+ "UpdatePackageVersionsStatusRequest$versionRevisions": " 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.
"
+ }
+ },
+ "PackageVersionSortType": {
+ "base": null,
+ "refs": {
+ "ListPackageVersionsRequest$sortBy": " How to sort the returned list of package versions.
"
+ }
+ },
+ "PackageVersionStatus": {
+ "base": null,
+ "refs": {
+ "DeletePackageVersionsRequest$expectedStatus": " The expected status of the package version to delete. Valid values are:
-
Published
-
Unfinished
-
Unlisted
-
Archived
-
Disposed
",
+ "DisposePackageVersionsRequest$expectedStatus": " The expected status of the package version to dispose. Valid values are:
-
Published
-
Unfinished
-
Unlisted
-
Archived
-
Disposed
",
+ "ListPackageVersionsRequest$status": " 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
",
+ "PackageVersionDescription$status": " A string that contains the status of the package version. It can be one of the following:
-
Published
-
Unfinished
-
Unlisted
-
Archived
-
Disposed
",
+ "PackageVersionSummary$status": " A string that contains the status of the package version. It can be one of the following:
-
Published
-
Unfinished
-
Unlisted
-
Archived
-
Disposed
",
+ "SuccessfulPackageVersionInfo$status": " The status of a package version. Valid statuses are:
-
Published
-
Unfinished
-
Unlisted
-
Archived
-
Disposed
",
+ "UpdatePackageVersionsStatusRequest$expectedStatus": " 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
.
",
+ "UpdatePackageVersionsStatusRequest$targetStatus": " The status you want to change the package version status to.
"
+ }
+ },
+ "PackageVersionSummary": {
+ "base": " Details about a package version, including its status, version, and revision. The ListPackageVersions
operation returns a list of PackageVersionSummary
objects.
",
+ "refs": {
+ "PackageVersionSummaryList$member": null
+ }
+ },
+ "PackageVersionSummaryList": {
+ "base": null,
+ "refs": {
+ "ListPackageVersionsResult$versions": " The returned list of PackageVersionSummary
objects.
"
+ }
+ },
+ "PaginationToken": {
+ "base": null,
+ "refs": {
+ "ListDomainsRequest$nextToken": " 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.
",
+ "ListDomainsResult$nextToken": " 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.
",
+ "ListPackageVersionAssetsRequest$nextToken": " 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.
",
+ "ListPackageVersionAssetsResult$nextToken": " If there are additional results, this is the token for the next set of results.
",
+ "ListPackageVersionDependenciesRequest$nextToken": " 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.
",
+ "ListPackageVersionDependenciesResult$nextToken": " 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.
",
+ "ListPackageVersionsRequest$nextToken": " 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.
",
+ "ListPackageVersionsResult$nextToken": " If there are additional results, this is the token for the next set of results.
",
+ "ListPackagesRequest$nextToken": " 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.
",
+ "ListPackagesResult$nextToken": " If there are additional results, this is the token for the next set of results.
",
+ "ListRepositoriesInDomainRequest$nextToken": " 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.
",
+ "ListRepositoriesInDomainResult$nextToken": " If there are additional results, this is the token for the next set of results.
",
+ "ListRepositoriesRequest$nextToken": " 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.
",
+ "ListRepositoriesResult$nextToken": " If there are additional results, this is the token for the next set of results.
"
+ }
+ },
+ "PolicyDocument": {
+ "base": null,
+ "refs": {
+ "PutDomainPermissionsPolicyRequest$policyDocument": " A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided domain.
",
+ "PutRepositoryPermissionsPolicyRequest$policyDocument": " A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.
",
+ "ResourcePolicy$document": " The resource policy formatted in JSON.
"
+ }
+ },
+ "PolicyRevision": {
+ "base": null,
+ "refs": {
+ "DeleteDomainPermissionsPolicyRequest$policyRevision": " 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.
",
+ "DeleteRepositoryPermissionsPolicyRequest$policyRevision": " 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.
",
+ "PutDomainPermissionsPolicyRequest$policyRevision": " 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.
",
+ "PutRepositoryPermissionsPolicyRequest$policyRevision": " 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.
",
+ "ResourcePolicy$revision": " The current revision of the resource policy.
"
+ }
+ },
+ "PutDomainPermissionsPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutDomainPermissionsPolicyResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutRepositoryPermissionsPolicyRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutRepositoryPermissionsPolicyResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "RepositoryDescription": {
+ "base": " 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.
",
+ "refs": {
+ "AssociateExternalConnectionResult$repository": " Information about the connected repository after processing the request.
",
+ "CreateRepositoryResult$repository": " Information about the created repository after processing the request.
",
+ "DeleteRepositoryResult$repository": " Information about the deleted repository after processing the request.
",
+ "DescribeRepositoryResult$repository": " A RepositoryDescription
object that contains the requested repository information.
",
+ "DisassociateExternalConnectionResult$repository": " The repository associated with the removed external connection.
",
+ "UpdateRepositoryResult$repository": " The updated repository.
"
+ }
+ },
+ "RepositoryExternalConnectionInfo": {
+ "base": " Contains information about the external connection of a repository.
",
+ "refs": {
+ "RepositoryExternalConnectionInfoList$member": null
+ }
+ },
+ "RepositoryExternalConnectionInfoList": {
+ "base": null,
+ "refs": {
+ "RepositoryDescription$externalConnections": " An array of external connections associated with the repository.
"
+ }
+ },
+ "RepositoryName": {
+ "base": null,
+ "refs": {
+ "AssociateExternalConnectionRequest$repository": " The name of the repository to which the external connection is added.
",
+ "CopyPackageVersionsRequest$sourceRepository": " The name of the repository that contains the package versions to copy.
",
+ "CopyPackageVersionsRequest$destinationRepository": " The name of the repository into which package versions are copied.
",
+ "CreateRepositoryRequest$repository": " The name of the repository to create.
",
+ "DeletePackageVersionsRequest$repository": " The name of the repository that contains the package versions to delete.
",
+ "DeleteRepositoryPermissionsPolicyRequest$repository": " The name of the repository that is associated with the resource policy to be deleted
",
+ "DeleteRepositoryRequest$repository": " The name of the repository to delete.
",
+ "DescribePackageVersionRequest$repository": " The name of the repository that contains the package version.
",
+ "DescribeRepositoryRequest$repository": " A string that specifies the name of the requested repository.
",
+ "DisassociateExternalConnectionRequest$repository": "The name of the repository from which the external connection will be removed.
",
+ "DisposePackageVersionsRequest$repository": " The name of the repository that contains the package versions you want to dispose.
",
+ "GetPackageVersionAssetRequest$repository": " The repository that contains the package version with the requested asset.
",
+ "GetPackageVersionReadmeRequest$repository": " The repository that contains the package with the requested readme file.
",
+ "GetRepositoryEndpointRequest$repository": " The name of the repository.
",
+ "GetRepositoryPermissionsPolicyRequest$repository": " The name of the repository whose associated resource policy is to be retrieved.
",
+ "ListPackageVersionAssetsRequest$repository": " The name of the repository that contains the package that contains the returned package version assets.
",
+ "ListPackageVersionDependenciesRequest$repository": " The name of the repository that contains the requested package version.
",
+ "ListPackageVersionsRequest$repository": " The name of the repository that contains the package.
",
+ "ListPackagesRequest$repository": " The name of the repository from which packages are to be listed.
",
+ "ListRepositoriesInDomainRequest$repositoryPrefix": " A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix
are returned.
",
+ "ListRepositoriesRequest$repositoryPrefix": " A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix
are returned.
",
+ "PutRepositoryPermissionsPolicyRequest$repository": " The name of the repository to set the resource policy on.
",
+ "RepositoryDescription$name": " The name of the repository.
",
+ "RepositorySummary$name": " The name of the repository.
",
+ "UpdatePackageVersionsStatusRequest$repository": " The repository that contains the package versions with the status you want to update.
",
+ "UpdateRepositoryRequest$repository": " The name of the repository to update.
",
+ "UpstreamRepository$repositoryName": " The name of an upstream repository.
",
+ "UpstreamRepositoryInfo$repositoryName": " The name of an upstream repository.
"
+ }
+ },
+ "RepositorySummary": {
+ "base": " Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories
operation returns a list of RepositorySummary
objects.
",
+ "refs": {
+ "RepositorySummaryList$member": null
+ }
+ },
+ "RepositorySummaryList": {
+ "base": null,
+ "refs": {
+ "ListRepositoriesInDomainResult$repositories": " The returned list of repositories.
",
+ "ListRepositoriesResult$repositories": " The returned list of RepositorySummary
objects.
"
+ }
+ },
+ "ResourceNotFoundException": {
+ "base": " The operation did not succeed because the resource requested is not found in the service.
",
+ "refs": {
+ }
+ },
+ "ResourcePolicy": {
+ "base": " An AWS CodeArtifact resource policy that contains a resource ARN, document details, and a revision.
",
+ "refs": {
+ "DeleteDomainPermissionsPolicyResult$policy": " Information about the deleted resource policy after processing the request.
",
+ "DeleteRepositoryPermissionsPolicyResult$policy": " Information about the deleted policy after processing the request.
",
+ "GetDomainPermissionsPolicyResult$policy": " The returned resource policy.
",
+ "GetRepositoryPermissionsPolicyResult$policy": " The returned resource policy.
",
+ "PutDomainPermissionsPolicyResult$policy": " The resource policy that was set after processing the request.
",
+ "PutRepositoryPermissionsPolicyResult$policy": " The resource policy that was set after processing the request.
"
+ }
+ },
+ "ResourceType": {
+ "base": null,
+ "refs": {
+ "ConflictException$resourceType": " The type of AWS resource.
",
+ "ResourceNotFoundException$resourceType": " The type of AWS resource.
",
+ "ServiceQuotaExceededException$resourceType": " The type of AWS resource.
"
+ }
+ },
+ "RetryAfterSeconds": {
+ "base": null,
+ "refs": {
+ "ThrottlingException$retryAfterSeconds": " The time period, in seconds, to wait before retrying the request.
"
+ }
+ },
+ "ServiceQuotaExceededException": {
+ "base": " The operation did not succeed because it would have exceeded a service limit for your account.
",
+ "refs": {
+ }
+ },
+ "String": {
+ "base": null,
+ "refs": {
+ "AccessDeniedException$message": null,
+ "ConflictException$message": null,
+ "ConflictException$resourceId": " The ID of the resource.
",
+ "GetAuthorizationTokenResult$authorizationToken": " The returned authentication token.
",
+ "GetPackageVersionReadmeResult$readme": " The text of the returned readme file.
",
+ "GetRepositoryEndpointResult$repositoryEndpoint": " A string that specifies the URL of the returned endpoint.
",
+ "InternalServerException$message": null,
+ "LicenseInfo$name": " Name of the license.
",
+ "LicenseInfo$url": " The URL for license data.
",
+ "PackageDependency$dependencyType": " 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.
",
+ "PackageDependency$versionRequirement": " 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
.
",
+ "PackageVersionDescription$summary": " 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.
",
+ "PackageVersionDescription$homePage": " The homepage associated with the package.
",
+ "PackageVersionDescription$sourceCodeRepository": " The repository for the source code in the package version, or the source code used to build it.
",
+ "ResourceNotFoundException$message": null,
+ "ResourceNotFoundException$resourceId": " The ID of the resource.
",
+ "ServiceQuotaExceededException$message": null,
+ "ServiceQuotaExceededException$resourceId": " The ID of the resource.
",
+ "SuccessfulPackageVersionInfo$revision": " The revision of a package version.
",
+ "ThrottlingException$message": null,
+ "ValidationException$message": null
+ }
+ },
+ "String255": {
+ "base": null,
+ "refs": {
+ "PackageVersionDescription$displayName": " 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
.
"
+ }
+ },
+ "SuccessfulPackageVersionInfo": {
+ "base": " Contains the revision and status of a package version.
",
+ "refs": {
+ "SuccessfulPackageVersionInfoMap$value": null
+ }
+ },
+ "SuccessfulPackageVersionInfoMap": {
+ "base": null,
+ "refs": {
+ "CopyPackageVersionsResult$successfulVersions": " A list of the package versions that were successfully copied to your repository.
",
+ "DeletePackageVersionsResult$successfulVersions": " A list of the package versions that were successfully deleted.
",
+ "DisposePackageVersionsResult$successfulVersions": " A list of the package versions that were successfully disposed.
",
+ "UpdatePackageVersionsStatusResult$successfulVersions": " A list of PackageVersionError
objects, one for each package version with a status that failed to update.
"
+ }
+ },
+ "ThrottlingException": {
+ "base": " The operation did not succeed because too many requests are sent to the service.
",
+ "refs": {
+ }
+ },
+ "Timestamp": {
+ "base": null,
+ "refs": {
+ "DomainDescription$createdTime": " A timestamp that represents the date and time the domain was created.
",
+ "DomainSummary$createdTime": " A timestamp that contains the date and time the domain was created.
",
+ "GetAuthorizationTokenResult$expiration": " A timestamp that specifies the date and time the authorization token expires.
",
+ "PackageVersionDescription$publishedTime": " A timestamp that contains the date and time the package version was published.
"
+ }
+ },
+ "UpdatePackageVersionsStatusRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdatePackageVersionsStatusResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateRepositoryRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateRepositoryResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpstreamRepository": {
+ "base": " Information about an upstream repository. A list of UpstreamRepository
objects is an input parameter to CreateRepository
and UpdateRepository
.
",
+ "refs": {
+ "UpstreamRepositoryList$member": null
+ }
+ },
+ "UpstreamRepositoryInfo": {
+ "base": " Information about an upstream repository.
",
+ "refs": {
+ "UpstreamRepositoryInfoList$member": null
+ }
+ },
+ "UpstreamRepositoryInfoList": {
+ "base": null,
+ "refs": {
+ "RepositoryDescription$upstreams": " 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.
"
+ }
+ },
+ "UpstreamRepositoryList": {
+ "base": null,
+ "refs": {
+ "CreateRepositoryRequest$upstreams": " 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.
",
+ "UpdateRepositoryRequest$upstreams": " 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.
"
+ }
+ },
+ "ValidationException": {
+ "base": " The operation did not succeed because a parameter in the request was sent with an invalid value.
",
+ "refs": {
+ }
+ },
+ "ValidationExceptionReason": {
+ "base": null,
+ "refs": {
+ "ValidationException$reason": "
"
+ }
+ }
+ }
+}
diff --git a/models/apis/codeartifact/2018-09-22/examples-1.json b/models/apis/codeartifact/2018-09-22/examples-1.json
new file mode 100644
index 00000000000..0ea7e3b0bbe
--- /dev/null
+++ b/models/apis/codeartifact/2018-09-22/examples-1.json
@@ -0,0 +1,5 @@
+{
+ "version": "1.0",
+ "examples": {
+ }
+}
diff --git a/models/apis/codeartifact/2018-09-22/paginators-1.json b/models/apis/codeartifact/2018-09-22/paginators-1.json
new file mode 100644
index 00000000000..ef8602842eb
--- /dev/null
+++ b/models/apis/codeartifact/2018-09-22/paginators-1.json
@@ -0,0 +1,40 @@
+{
+ "pagination": {
+ "ListDomains": {
+ "input_token": "nextToken",
+ "output_token": "nextToken",
+ "limit_key": "maxResults",
+ "result_key": "domains"
+ },
+ "ListPackageVersionAssets": {
+ "input_token": "nextToken",
+ "output_token": "nextToken",
+ "limit_key": "maxResults",
+ "result_key": "assets"
+ },
+ "ListPackageVersions": {
+ "input_token": "nextToken",
+ "output_token": "nextToken",
+ "limit_key": "maxResults",
+ "result_key": "versions"
+ },
+ "ListPackages": {
+ "input_token": "nextToken",
+ "output_token": "nextToken",
+ "limit_key": "maxResults",
+ "result_key": "packages"
+ },
+ "ListRepositories": {
+ "input_token": "nextToken",
+ "output_token": "nextToken",
+ "limit_key": "maxResults",
+ "result_key": "repositories"
+ },
+ "ListRepositoriesInDomain": {
+ "input_token": "nextToken",
+ "output_token": "nextToken",
+ "limit_key": "maxResults",
+ "result_key": "repositories"
+ }
+ }
+}
diff --git a/models/apis/compute-optimizer/2019-11-01/api-2.json b/models/apis/compute-optimizer/2019-11-01/api-2.json
index aa62548e680..01e08e73ff3 100644
--- a/models/apis/compute-optimizer/2019-11-01/api-2.json
+++ b/models/apis/compute-optimizer/2019-11-01/api-2.json
@@ -13,6 +13,63 @@
"uid":"compute-optimizer-2019-11-01"
},
"operations":{
+ "DescribeRecommendationExportJobs":{
+ "name":"DescribeRecommendationExportJobs",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeRecommendationExportJobsRequest"},
+ "output":{"shape":"DescribeRecommendationExportJobsResponse"},
+ "errors":[
+ {"shape":"OptInRequiredException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"MissingAuthenticationToken"},
+ {"shape":"ThrottlingException"}
+ ]
+ },
+ "ExportAutoScalingGroupRecommendations":{
+ "name":"ExportAutoScalingGroupRecommendations",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ExportAutoScalingGroupRecommendationsRequest"},
+ "output":{"shape":"ExportAutoScalingGroupRecommendationsResponse"},
+ "errors":[
+ {"shape":"OptInRequiredException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"MissingAuthenticationToken"},
+ {"shape":"ThrottlingException"},
+ {"shape":"LimitExceededException"}
+ ]
+ },
+ "ExportEC2InstanceRecommendations":{
+ "name":"ExportEC2InstanceRecommendations",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ExportEC2InstanceRecommendationsRequest"},
+ "output":{"shape":"ExportEC2InstanceRecommendationsResponse"},
+ "errors":[
+ {"shape":"OptInRequiredException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ServiceUnavailableException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InvalidParameterValueException"},
+ {"shape":"MissingAuthenticationToken"},
+ {"shape":"ThrottlingException"},
+ {"shape":"LimitExceededException"}
+ ]
+ },
"GetAutoScalingGroupRecommendations":{
"name":"GetAutoScalingGroupRecommendations",
"http":{
@@ -184,9 +241,158 @@
"member":{"shape":"AutoScalingGroupRecommendation"}
},
"Code":{"type":"string"},
+ "CreationTimestamp":{"type":"timestamp"},
"CurrentInstanceType":{"type":"string"},
+ "DescribeRecommendationExportJobsRequest":{
+ "type":"structure",
+ "members":{
+ "jobIds":{"shape":"JobIds"},
+ "filters":{"shape":"JobFilters"},
+ "nextToken":{"shape":"NextToken"},
+ "maxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeRecommendationExportJobsResponse":{
+ "type":"structure",
+ "members":{
+ "recommendationExportJobs":{"shape":"RecommendationExportJobs"},
+ "nextToken":{"shape":"NextToken"}
+ }
+ },
"DesiredCapacity":{"type":"integer"},
+ "DestinationBucket":{"type":"string"},
+ "DestinationKey":{"type":"string"},
+ "DestinationKeyPrefix":{"type":"string"},
"ErrorMessage":{"type":"string"},
+ "ExportAutoScalingGroupRecommendationsRequest":{
+ "type":"structure",
+ "required":["s3DestinationConfig"],
+ "members":{
+ "accountIds":{"shape":"AccountIds"},
+ "filters":{"shape":"Filters"},
+ "fieldsToExport":{"shape":"ExportableAutoScalingGroupFields"},
+ "s3DestinationConfig":{"shape":"S3DestinationConfig"},
+ "fileFormat":{"shape":"FileFormat"},
+ "includeMemberAccounts":{"shape":"IncludeMemberAccounts"}
+ }
+ },
+ "ExportAutoScalingGroupRecommendationsResponse":{
+ "type":"structure",
+ "members":{
+ "jobId":{"shape":"JobId"},
+ "s3Destination":{"shape":"S3Destination"}
+ }
+ },
+ "ExportDestination":{
+ "type":"structure",
+ "members":{
+ "s3":{"shape":"S3Destination"}
+ }
+ },
+ "ExportEC2InstanceRecommendationsRequest":{
+ "type":"structure",
+ "required":["s3DestinationConfig"],
+ "members":{
+ "accountIds":{"shape":"AccountIds"},
+ "filters":{"shape":"Filters"},
+ "fieldsToExport":{"shape":"ExportableInstanceFields"},
+ "s3DestinationConfig":{"shape":"S3DestinationConfig"},
+ "fileFormat":{"shape":"FileFormat"},
+ "includeMemberAccounts":{"shape":"IncludeMemberAccounts"}
+ }
+ },
+ "ExportEC2InstanceRecommendationsResponse":{
+ "type":"structure",
+ "members":{
+ "jobId":{"shape":"JobId"},
+ "s3Destination":{"shape":"S3Destination"}
+ }
+ },
+ "ExportableAutoScalingGroupField":{
+ "type":"string",
+ "enum":[
+ "AccountId",
+ "AutoScalingGroupArn",
+ "AutoScalingGroupName",
+ "Finding",
+ "UtilizationMetricsCpuMaximum",
+ "UtilizationMetricsMemoryMaximum",
+ "LookbackPeriodInDays",
+ "CurrentConfigurationInstanceType",
+ "CurrentConfigurationDesiredCapacity",
+ "CurrentConfigurationMinSize",
+ "CurrentConfigurationMaxSize",
+ "CurrentOnDemandPrice",
+ "CurrentStandardOneYearNoUpfrontReservedPrice",
+ "CurrentStandardThreeYearNoUpfrontReservedPrice",
+ "CurrentVCpus",
+ "CurrentMemory",
+ "CurrentStorage",
+ "CurrentNetwork",
+ "RecommendationOptionsConfigurationInstanceType",
+ "RecommendationOptionsConfigurationDesiredCapacity",
+ "RecommendationOptionsConfigurationMinSize",
+ "RecommendationOptionsConfigurationMaxSize",
+ "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum",
+ "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum",
+ "RecommendationOptionsPerformanceRisk",
+ "RecommendationOptionsOnDemandPrice",
+ "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice",
+ "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice",
+ "RecommendationOptionsVcpus",
+ "RecommendationOptionsMemory",
+ "RecommendationOptionsStorage",
+ "RecommendationOptionsNetwork",
+ "LastRefreshTimestamp"
+ ]
+ },
+ "ExportableAutoScalingGroupFields":{
+ "type":"list",
+ "member":{"shape":"ExportableAutoScalingGroupField"}
+ },
+ "ExportableInstanceField":{
+ "type":"string",
+ "enum":[
+ "AccountId",
+ "InstanceArn",
+ "InstanceName",
+ "Finding",
+ "LookbackPeriodInDays",
+ "CurrentInstanceType",
+ "UtilizationMetricsCpuMaximum",
+ "UtilizationMetricsMemoryMaximum",
+ "CurrentOnDemandPrice",
+ "CurrentStandardOneYearNoUpfrontReservedPrice",
+ "CurrentStandardThreeYearNoUpfrontReservedPrice",
+ "CurrentVCpus",
+ "CurrentMemory",
+ "CurrentStorage",
+ "CurrentNetwork",
+ "RecommendationOptionsInstanceType",
+ "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum",
+ "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum",
+ "RecommendationOptionsPerformanceRisk",
+ "RecommendationOptionsVcpus",
+ "RecommendationOptionsMemory",
+ "RecommendationOptionsStorage",
+ "RecommendationOptionsNetwork",
+ "RecommendationOptionsOnDemandPrice",
+ "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice",
+ "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice",
+ "RecommendationsSourcesRecommendationSourceArn",
+ "RecommendationsSourcesRecommendationSourceType",
+ "LastRefreshTimestamp"
+ ]
+ },
+ "ExportableInstanceFields":{
+ "type":"list",
+ "member":{"shape":"ExportableInstanceField"}
+ },
+ "FailureReason":{"type":"string"},
+ "FileFormat":{
+ "type":"string",
+ "enum":["Csv"]
+ },
"Filter":{
"type":"structure",
"members":{
@@ -371,7 +577,48 @@
"exception":true,
"synthetic":true
},
+ "JobFilter":{
+ "type":"structure",
+ "members":{
+ "name":{"shape":"JobFilterName"},
+ "values":{"shape":"FilterValues"}
+ }
+ },
+ "JobFilterName":{
+ "type":"string",
+ "enum":[
+ "ResourceType",
+ "JobStatus"
+ ]
+ },
+ "JobFilters":{
+ "type":"list",
+ "member":{"shape":"JobFilter"}
+ },
+ "JobId":{"type":"string"},
+ "JobIds":{
+ "type":"list",
+ "member":{"shape":"JobId"}
+ },
+ "JobStatus":{
+ "type":"string",
+ "enum":[
+ "Queued",
+ "InProgress",
+ "Complete",
+ "Failed"
+ ]
+ },
"LastRefreshTimestamp":{"type":"timestamp"},
+ "LastUpdatedTimestamp":{"type":"timestamp"},
+ "LimitExceededException":{
+ "type":"structure",
+ "members":{
+ "message":{"shape":"ErrorMessage"}
+ },
+ "exception":true,
+ "synthetic":true
+ },
"LookBackPeriodInDays":{"type":"double"},
"MaxResults":{
"type":"integer",
@@ -380,6 +627,7 @@
"MaxSize":{"type":"integer"},
"MemberAccountsEnrolled":{"type":"boolean"},
"Message":{"type":"string"},
+ "MetadataKey":{"type":"string"},
"MetricName":{
"type":"string",
"enum":[
@@ -440,6 +688,22 @@
"member":{"shape":"UtilizationMetric"}
},
"Rank":{"type":"integer"},
+ "RecommendationExportJob":{
+ "type":"structure",
+ "members":{
+ "jobId":{"shape":"JobId"},
+ "destination":{"shape":"ExportDestination"},
+ "resourceType":{"shape":"ResourceType"},
+ "status":{"shape":"JobStatus"},
+ "creationTimestamp":{"shape":"CreationTimestamp"},
+ "lastUpdatedTimestamp":{"shape":"LastUpdatedTimestamp"},
+ "failureReason":{"shape":"FailureReason"}
+ }
+ },
+ "RecommendationExportJobs":{
+ "type":"list",
+ "member":{"shape":"RecommendationExportJob"}
+ },
"RecommendationOptions":{
"type":"list",
"member":{"shape":"InstanceRecommendationOption"}
@@ -496,6 +760,28 @@
"exception":true,
"synthetic":true
},
+ "ResourceType":{
+ "type":"string",
+ "enum":[
+ "Ec2Instance",
+ "AutoScalingGroup"
+ ]
+ },
+ "S3Destination":{
+ "type":"structure",
+ "members":{
+ "bucket":{"shape":"DestinationBucket"},
+ "key":{"shape":"DestinationKey"},
+ "metadataKey":{"shape":"MetadataKey"}
+ }
+ },
+ "S3DestinationConfig":{
+ "type":"structure",
+ "members":{
+ "bucket":{"shape":"DestinationBucket"},
+ "keyPrefix":{"shape":"DestinationKeyPrefix"}
+ }
+ },
"ServiceUnavailableException":{
"type":"structure",
"members":{
diff --git a/models/apis/compute-optimizer/2019-11-01/docs-2.json b/models/apis/compute-optimizer/2019-11-01/docs-2.json
index 6170ed32007..43e314bed9e 100644
--- a/models/apis/compute-optimizer/2019-11-01/docs-2.json
+++ b/models/apis/compute-optimizer/2019-11-01/docs-2.json
@@ -1,13 +1,16 @@
{
"version": "2.0",
- "service": "AWS Compute Optimizer is a service that analyzes the configuration and utilization metrics of your AWS resources, such as EC2 instances and Auto Scaling groups. It reports whether your resources are optimal, and generates optimization recommendations to reduce the cost and improve the performance of your workloads. Compute Optimizer also provides recent utilization metric data, as well as projected utilization metric data for the recommendations, which you can use to evaluate which recommendation provides the best price-performance trade-off. The analysis of your usage patterns can help you decide when to move or resize your running resources, and still meet your performance and capacity requirements. For more information about Compute Optimizer, see the AWS Compute Optimizer User Guide.
",
+ "service": "AWS Compute Optimizer is a service that analyzes the configuration and utilization metrics of your AWS resources, such as EC2 instances and Auto Scaling groups. It reports whether your resources are optimal, and generates optimization recommendations to reduce the cost and improve the performance of your workloads. Compute Optimizer also provides recent utilization metric data, as well as projected utilization metric data for the recommendations, which you can use to evaluate which recommendation provides the best price-performance trade-off. The analysis of your usage patterns can help you decide when to move or resize your running resources, and still meet your performance and capacity requirements. For more information about Compute Optimizer, including the required permissions to use the service, see the AWS Compute Optimizer User Guide.
",
"operations": {
+ "DescribeRecommendationExportJobs": "Describes recommendation export jobs created in the last seven days.
Use the ExportAutoScalingGroupRecommendations
or ExportEC2InstanceRecommendations
actions to request an export of your recommendations. Then use the DescribeRecommendationExportJobs
action to view your export jobs.
",
+ "ExportAutoScalingGroupRecommendations": "Exports optimization recommendations for Auto Scaling groups.
Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Auto Scaling group export job in progress per AWS Region.
",
+ "ExportEC2InstanceRecommendations": "Exports optimization recommendations for Amazon EC2 instances.
Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one Amazon EC2 instance export job in progress per AWS Region.
",
"GetAutoScalingGroupRecommendations": "Returns Auto Scaling group recommendations.
AWS Compute Optimizer currently generates recommendations for Auto Scaling groups that are configured to run instances of the M, C, R, T, and X instance families. The service does not generate recommendations for Auto Scaling groups that have a scaling policy attached to them, or that do not have the same values for desired, minimum, and maximum capacity. In order for Compute Optimizer to analyze your Auto Scaling groups, they must be of a fixed size. For more information, see the AWS Compute Optimizer User Guide.
",
"GetEC2InstanceRecommendations": "Returns Amazon EC2 instance recommendations.
AWS Compute Optimizer currently generates recommendations for Amazon Elastic Compute Cloud (Amazon EC2) and Amazon EC2 Auto Scaling. It generates recommendations for M, C, R, T, and X instance families. For more information, see the AWS Compute Optimizer User Guide.
",
"GetEC2RecommendationProjectedMetrics": "Returns the projected utilization metrics of Amazon EC2 instance recommendations.
",
- "GetEnrollmentStatus": "Returns the enrollment (opt in) status of an account to the AWS Compute Optimizer service.
If the account is a master account of an organization, this operation also confirms the enrollment status of member accounts within the organization.
",
+ "GetEnrollmentStatus": "Returns the enrollment (opt in) status of an account to the AWS Compute Optimizer service.
If the account is the master account of an organization, this action also confirms the enrollment status of member accounts within the organization.
",
"GetRecommendationSummaries": "Returns the optimization findings for an account.
For example, it returns the number of Amazon EC2 instances in an account that are under-provisioned, over-provisioned, or optimized. It also returns the number of Auto Scaling groups in an account that are not optimized, or optimized.
",
- "UpdateEnrollmentStatus": "Updates the enrollment (opt in) status of an account to the AWS Compute Optimizer service.
If the account is a master account of an organization, this operation can also enroll member accounts within the organization.
"
+ "UpdateEnrollmentStatus": "Updates the enrollment (opt in) status of an account to the AWS Compute Optimizer service.
If the account is a master account of an organization, this action can also be used to enroll member accounts within the organization.
"
},
"shapes": {
"AccessDeniedException": {
@@ -20,16 +23,18 @@
"refs": {
"AccountIds$member": null,
"AutoScalingGroupRecommendation$accountId": "The AWS account ID of the Auto Scaling group.
",
- "InstanceRecommendation$accountId": "The AWS account ID of the instance recommendation.
",
+ "InstanceRecommendation$accountId": "The AWS account ID of the instance.
",
"RecommendationSummary$accountId": "The AWS account ID of the recommendation summary.
"
}
},
"AccountIds": {
"base": null,
"refs": {
- "GetAutoScalingGroupRecommendationsRequest$accountIds": "The AWS account IDs for which to return Auto Scaling group recommendations.
Only one account ID can be specified per request.
",
- "GetEC2InstanceRecommendationsRequest$accountIds": "The AWS account IDs for which to return instance recommendations.
Only one account ID can be specified per request.
",
- "GetRecommendationSummariesRequest$accountIds": "The AWS account IDs for which to return recommendation summaries.
Only one account ID can be specified per request.
"
+ "ExportAutoScalingGroupRecommendationsRequest$accountIds": "The IDs of the AWS accounts for which to export Auto Scaling group recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
",
+ "ExportEC2InstanceRecommendationsRequest$accountIds": "The IDs of the AWS accounts for which to export instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
",
+ "GetAutoScalingGroupRecommendationsRequest$accountIds": "The IDs of the AWS accounts for which to return Auto Scaling group recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return Auto Scaling group recommendations.
Only one account ID can be specified per request.
",
+ "GetEC2InstanceRecommendationsRequest$accountIds": "The IDs of the AWS accounts for which to return instance recommendations.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return instance recommendations.
Only one account ID can be specified per request.
",
+ "GetRecommendationSummariesRequest$accountIds": "The IDs of the AWS accounts for which to return recommendation summaries.
If your account is the master account of an organization, use this parameter to specify the member accounts for which you want to return recommendation summaries.
Only one account ID can be specified per request.
"
}
},
"AutoScalingGroupArn": {
@@ -88,24 +93,60 @@
"GetRecommendationError$code": "The error code.
"
}
},
+ "CreationTimestamp": {
+ "base": null,
+ "refs": {
+ "RecommendationExportJob$creationTimestamp": "The timestamp of when the export job was created.
"
+ }
+ },
"CurrentInstanceType": {
"base": null,
"refs": {
"InstanceRecommendation$currentInstanceType": "The instance type of the current instance.
"
}
},
+ "DescribeRecommendationExportJobsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeRecommendationExportJobsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"DesiredCapacity": {
"base": null,
"refs": {
"AutoScalingGroupConfiguration$desiredCapacity": "The desired capacity, or number of instances, for the Auto Scaling group.
"
}
},
+ "DestinationBucket": {
+ "base": null,
+ "refs": {
+ "S3Destination$bucket": "The name of the Amazon S3 bucket used as the destination of an export file.
",
+ "S3DestinationConfig$bucket": "The name of the Amazon S3 bucket to use as the destination for an export job.
"
+ }
+ },
+ "DestinationKey": {
+ "base": null,
+ "refs": {
+ "S3Destination$key": "The Amazon S3 bucket key of an export file.
The key uniquely identifies the object, or export file, in the S3 bucket.
"
+ }
+ },
+ "DestinationKeyPrefix": {
+ "base": null,
+ "refs": {
+ "S3DestinationConfig$keyPrefix": "The Amazon S3 bucket prefix for an export job.
"
+ }
+ },
"ErrorMessage": {
"base": null,
"refs": {
"AccessDeniedException$message": null,
"InternalServerException$message": null,
"InvalidParameterValueException$message": null,
+ "LimitExceededException$message": null,
"MissingAuthenticationToken$message": null,
"OptInRequiredException$message": null,
"ResourceNotFoundException$message": null,
@@ -113,6 +154,69 @@
"ThrottlingException$message": null
}
},
+ "ExportAutoScalingGroupRecommendationsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ExportAutoScalingGroupRecommendationsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ExportDestination": {
+ "base": "Describes the destination of the recommendations export and metadata files.
",
+ "refs": {
+ "RecommendationExportJob$destination": "An object that describes the destination of the export file.
"
+ }
+ },
+ "ExportEC2InstanceRecommendationsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ExportEC2InstanceRecommendationsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ExportableAutoScalingGroupField": {
+ "base": null,
+ "refs": {
+ "ExportableAutoScalingGroupFields$member": null
+ }
+ },
+ "ExportableAutoScalingGroupFields": {
+ "base": null,
+ "refs": {
+ "ExportAutoScalingGroupRecommendationsRequest$fieldsToExport": "The recommendations data to include in the export file.
"
+ }
+ },
+ "ExportableInstanceField": {
+ "base": null,
+ "refs": {
+ "ExportableInstanceFields$member": null
+ }
+ },
+ "ExportableInstanceFields": {
+ "base": null,
+ "refs": {
+ "ExportEC2InstanceRecommendationsRequest$fieldsToExport": "The recommendations data to include in the export file.
"
+ }
+ },
+ "FailureReason": {
+ "base": null,
+ "refs": {
+ "RecommendationExportJob$failureReason": "The reason for an export job failure.
"
+ }
+ },
+ "FileFormat": {
+ "base": null,
+ "refs": {
+ "ExportAutoScalingGroupRecommendationsRequest$fileFormat": "The format of the export file.
The only export file format currently supported is Csv
.
",
+ "ExportEC2InstanceRecommendationsRequest$fileFormat": "The format of the export file.
The only export file format currently supported is Csv
.
"
+ }
+ },
"Filter": {
"base": "Describes a filter that returns a more specific list of recommendations.
",
"refs": {
@@ -122,7 +226,7 @@
"FilterName": {
"base": null,
"refs": {
- "Filter$name": "The name of the filter.
Specify Finding
to filter the results to a specific findings classification.
Specify RecommendationSourceType
to filter the results to a specific resource type.
"
+ "Filter$name": "The name of the filter.
Specify Finding
to return recommendations with a specific findings classification (e.g., Overprovisioned
).
Specify RecommendationSourceType
to return recommendations of a specific resource type (e.g., AutoScalingGroup
).
"
}
},
"FilterValue": {
@@ -134,12 +238,15 @@
"FilterValues": {
"base": null,
"refs": {
- "Filter$values": "The value of the filter.
If you specify the name
parameter as Finding
, and you're recommendations for an instance, then the valid values are Underprovisioned
, Overprovisioned
, NotOptimized
, or Optimized
.
If you specify the name
parameter as Finding
, and you're recommendations for an Auto Scaling group, then the valid values are Optimized
, or NotOptimized
.
If you specify the name
parameter as RecommendationSourceType
, then the valid values are EC2Instance
, or AutoScalingGroup
.
"
+ "Filter$values": "The value of the filter.
If you specify the name
parameter as Finding
, and you request recommendations for an instance, then the valid values are Underprovisioned
, Overprovisioned
, NotOptimized
, or Optimized
.
If you specify the name
parameter as Finding
, and you request recommendations for an Auto Scaling group, then the valid values are Optimized
, or NotOptimized
.
If you specify the name
parameter as RecommendationSourceType
, then the valid values are Ec2Instance
, or AutoScalingGroup
.
",
+ "JobFilter$values": "The value of the filter.
If you specify the name
parameter as ResourceType
, the valid values are Ec2Instance
or AutoScalingGroup
.
If you specify the name
parameter as JobStatus
, the valid values are Queued
, InProgress
, Complete
, or Failed
.
"
}
},
"Filters": {
"base": null,
"refs": {
+ "ExportAutoScalingGroupRecommendationsRequest$filters": "An array of objects that describe a filter to export a more specific set of Auto Scaling group recommendations.
",
+ "ExportEC2InstanceRecommendationsRequest$filters": "An array of objects that describe a filter to export a more specific set of instance recommendations.
",
"GetAutoScalingGroupRecommendationsRequest$filters": "An array of objects that describe a filter that returns a more specific list of Auto Scaling group recommendations.
",
"GetEC2InstanceRecommendationsRequest$filters": "An array of objects that describe a filter that returns a more specific list of instance recommendations.
"
}
@@ -224,7 +331,9 @@
"IncludeMemberAccounts": {
"base": null,
"refs": {
- "UpdateEnrollmentStatusRequest$includeMemberAccounts": "Indicates whether to enroll member accounts within the organization, if the account is a master account of an organization.
"
+ "ExportAutoScalingGroupRecommendationsRequest$includeMemberAccounts": "Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the master account of an organization.
The member accounts must also be opted in to Compute Optimizer.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
",
+ "ExportEC2InstanceRecommendationsRequest$includeMemberAccounts": "Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the master account of an organization.
The member accounts must also be opted in to Compute Optimizer.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
",
+ "UpdateEnrollmentStatusRequest$includeMemberAccounts": "Indicates whether to enroll member accounts of the organization if the your account is the master account of an organization.
"
}
},
"InstanceArn": {
@@ -273,7 +382,7 @@
}
},
"InternalServerException": {
- "base": "The request processing has failed because of an unknown error, exception, or failure.
",
+ "base": "An internal error has occurred. Try your call again.
",
"refs": {
}
},
@@ -282,6 +391,45 @@
"refs": {
}
},
+ "JobFilter": {
+ "base": "Describes a filter that returns a more specific list of recommendation export jobs.
This filter is used with the DescribeRecommendationExportJobs
action.
",
+ "refs": {
+ "JobFilters$member": null
+ }
+ },
+ "JobFilterName": {
+ "base": null,
+ "refs": {
+ "JobFilter$name": "The name of the filter.
Specify ResourceType
to return export jobs of a specific resource type (e.g., Ec2Instance
).
Specify JobStatus
to return export jobs with a specific status (e.g, Complete
).
"
+ }
+ },
+ "JobFilters": {
+ "base": null,
+ "refs": {
+ "DescribeRecommendationExportJobsRequest$filters": "An array of objects that describe a filter to return a more specific list of export jobs.
"
+ }
+ },
+ "JobId": {
+ "base": null,
+ "refs": {
+ "ExportAutoScalingGroupRecommendationsResponse$jobId": "The identification number of the export job.
Use the DescribeRecommendationExportJobs
action, and specify the job ID to view the status of an export job.
",
+ "ExportEC2InstanceRecommendationsResponse$jobId": "The identification number of the export job.
Use the DescribeRecommendationExportJobs
action, and specify the job ID to view the status of an export job.
",
+ "JobIds$member": null,
+ "RecommendationExportJob$jobId": "The identification number of the export job.
"
+ }
+ },
+ "JobIds": {
+ "base": null,
+ "refs": {
+ "DescribeRecommendationExportJobsRequest$jobIds": "The identification numbers of the export jobs to return.
An export job ID is returned when you create an export using the ExportAutoScalingGroupRecommendations
or ExportEC2InstanceRecommendations
actions.
All export jobs created in the last seven days are returned if this parameter is omitted.
"
+ }
+ },
+ "JobStatus": {
+ "base": null,
+ "refs": {
+ "RecommendationExportJob$status": "The status of the export job.
"
+ }
+ },
"LastRefreshTimestamp": {
"base": null,
"refs": {
@@ -289,6 +437,17 @@
"InstanceRecommendation$lastRefreshTimestamp": "The time stamp of when the instance recommendation was last refreshed.
"
}
},
+ "LastUpdatedTimestamp": {
+ "base": null,
+ "refs": {
+ "RecommendationExportJob$lastUpdatedTimestamp": "The timestamp of when the export job was last updated.
"
+ }
+ },
+ "LimitExceededException": {
+ "base": "The request exceeds a limit of the service.
",
+ "refs": {
+ }
+ },
"LookBackPeriodInDays": {
"base": null,
"refs": {
@@ -299,9 +458,10 @@
"MaxResults": {
"base": null,
"refs": {
- "GetAutoScalingGroupRecommendationsRequest$maxResults": "The maximum number of Auto Scaling group recommendations to return with a single call.
To retrieve the remaining results, make another call with the returned NextToken
value.
",
- "GetEC2InstanceRecommendationsRequest$maxResults": "The maximum number of instance recommendations to return with a single call.
To retrieve the remaining results, make another call with the returned NextToken
value.
",
- "GetRecommendationSummariesRequest$maxResults": "The maximum number of recommendation summaries to return with a single call.
To retrieve the remaining results, make another call with the returned NextToken
value.
"
+ "DescribeRecommendationExportJobsRequest$maxResults": "The maximum number of export jobs to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
",
+ "GetAutoScalingGroupRecommendationsRequest$maxResults": "The maximum number of Auto Scaling group recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
",
+ "GetEC2InstanceRecommendationsRequest$maxResults": "The maximum number of instance recommendations to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
",
+ "GetRecommendationSummariesRequest$maxResults": "The maximum number of recommendation summaries to return with a single request.
To retrieve the remaining results, make another request with the returned NextToken
value.
"
}
},
"MaxSize": {
@@ -322,6 +482,12 @@
"GetRecommendationError$message": "The message, or reason, for the error.
"
}
},
+ "MetadataKey": {
+ "base": null,
+ "refs": {
+ "S3Destination$metadataKey": "The Amazon S3 bucket key of a metadata file.
The key uniquely identifies the object, or metadata file, in the S3 bucket.
"
+ }
+ },
"MetricName": {
"base": null,
"refs": {
@@ -363,6 +529,8 @@
"NextToken": {
"base": null,
"refs": {
+ "DescribeRecommendationExportJobsRequest$nextToken": "The token to advance to the next page of export jobs.
",
+ "DescribeRecommendationExportJobsResponse$nextToken": "The token to use to advance to the next page of export jobs.
This value is null when there are no more pages of export jobs to return.
",
"GetAutoScalingGroupRecommendationsRequest$nextToken": "The token to advance to the next page of Auto Scaling group recommendations.
",
"GetAutoScalingGroupRecommendationsResponse$nextToken": "The token to use to advance to the next page of Auto Scaling group recommendations.
This value is null when there are no more pages of Auto Scaling group recommendations to return.
",
"GetEC2InstanceRecommendationsRequest$nextToken": "The token to advance to the next page of instance recommendations.
",
@@ -372,7 +540,7 @@
}
},
"OptInRequiredException": {
- "base": "You must opt in to the service to perform this action.
",
+ "base": "The account is not opted in to AWS Compute Optimizer.
",
"refs": {
}
},
@@ -416,6 +584,18 @@
"RecommendedOptionProjectedMetric$rank": "The rank of the recommendation option projected metric.
The top recommendation option is ranked as 1
.
The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked as 1
is related to the recommendation option that is also ranked as 1
in the same response.
"
}
},
+ "RecommendationExportJob": {
+ "base": "Describes a recommendation export job.
Use the DescribeRecommendationExportJobs
action to view your recommendation export jobs.
Use the ExportAutoScalingGroupRecommendations
or ExportEC2InstanceRecommendations
actions to request an export of your recommendations.
",
+ "refs": {
+ "RecommendationExportJobs$member": null
+ }
+ },
+ "RecommendationExportJobs": {
+ "base": null,
+ "refs": {
+ "DescribeRecommendationExportJobsResponse$recommendationExportJobs": "An array of objects that describe recommendation export jobs.
"
+ }
+ },
"RecommendationOptions": {
"base": null,
"refs": {
@@ -478,8 +658,29 @@
}
},
"ResourceNotFoundException": {
- "base": "The specified resource was not found.
",
+ "base": "A resource that is required for the action doesn't exist.
",
+ "refs": {
+ }
+ },
+ "ResourceType": {
+ "base": null,
+ "refs": {
+ "RecommendationExportJob$resourceType": "The resource type of the exported recommendations.
"
+ }
+ },
+ "S3Destination": {
+ "base": "Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.
",
+ "refs": {
+ "ExportAutoScalingGroupRecommendationsResponse$s3Destination": "An object that describes the destination Amazon S3 bucket of a recommendations export file.
",
+ "ExportDestination$s3": "An object that describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.
",
+ "ExportEC2InstanceRecommendationsResponse$s3Destination": "An object that describes the destination Amazon S3 bucket of a recommendations export file.
"
+ }
+ },
+ "S3DestinationConfig": {
+ "base": "Describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for a recommendations export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.
",
"refs": {
+ "ExportAutoScalingGroupRecommendationsRequest$s3DestinationConfig": "An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.
",
+ "ExportEC2InstanceRecommendationsRequest$s3DestinationConfig": "An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.
You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.
"
}
},
"ServiceUnavailableException": {
@@ -521,7 +722,7 @@
}
},
"ThrottlingException": {
- "base": "The limit on the number of requests per second was exceeded.
",
+ "base": "The request was denied due to request throttling.
",
"refs": {
}
},
diff --git a/models/apis/dlm/2018-01-12/api-2.json b/models/apis/dlm/2018-01-12/api-2.json
index 434a7e61173..7ac95eb028a 100644
--- a/models/apis/dlm/2018-01-12/api-2.json
+++ b/models/apis/dlm/2018-01-12/api-2.json
@@ -507,7 +507,7 @@
},
"ScheduleName":{
"type":"string",
- "max":500,
+ "max":120,
"min":0,
"pattern":"[\\p{all}]*"
},
diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json
index 14183119e9e..f508fd62d29 100755
--- a/models/apis/ec2/2016-11-15/api-2.json
+++ b/models/apis/ec2/2016-11-15/api-2.json
@@ -17921,6 +17921,15 @@
"r5ad.12xlarge",
"r5ad.16xlarge",
"r5ad.24xlarge",
+ "r6g.metal",
+ "r6g.medium",
+ "r6g.large",
+ "r6g.xlarge",
+ "r6g.2xlarge",
+ "r6g.4xlarge",
+ "r6g.8xlarge",
+ "r6g.12xlarge",
+ "r6g.16xlarge",
"x1.16xlarge",
"x1.32xlarge",
"x1e.xlarge",
@@ -17994,6 +18003,15 @@
"c5n.4xlarge",
"c5n.9xlarge",
"c5n.18xlarge",
+ "c6g.metal",
+ "c6g.medium",
+ "c6g.large",
+ "c6g.xlarge",
+ "c6g.2xlarge",
+ "c6g.4xlarge",
+ "c6g.8xlarge",
+ "c6g.12xlarge",
+ "c6g.16xlarge",
"cc1.4xlarge",
"cc2.8xlarge",
"g2.2xlarge",
diff --git a/models/apis/lightsail/2016-11-28/docs-2.json b/models/apis/lightsail/2016-11-28/docs-2.json
index f72c7b4ea6d..a7d56e62101 100644
--- a/models/apis/lightsail/2016-11-28/docs-2.json
+++ b/models/apis/lightsail/2016-11-28/docs-2.json
@@ -1544,7 +1544,7 @@
"InstanceMetricName": {
"base": null,
"refs": {
- "GetInstanceMetricDataRequest$metricName": "The metric for which you want to return information.
Valid instance metric names are listed below, along with the most useful statistics
to include in your request, and the published unit
value.
-
BurstCapacityPercentage
- The percentage of CPU performance available for your instance to burst above its baseline. Your instance continously accrues and consumes burst capacity. Burst capacity stops accruing when your instance's BurstCapacityPercentage
reaches 100%. For more information, see Viewing instance burst capacity in Amazon Lightsail.
Statistics
: The most useful statistics are Maximum
and Average
.
Unit
: The published unit is Percent
.
-
BurstCapacityTime
- The available amount of time for your instance to burst at 100% CPU utilization. Your instance continously accrues and consumes burst capacity. Burst capacity time stops accruing when your instance's BurstCapacityPercentage
metric reaches 100%.
Burst capacity time is consumed at the full rate only when your instance operates at 100% CPU utilization. For example, if your instance operates at 50% CPU utilization in the burstable zone for a 5-minute period, then it consumes CPU burst capacity minutes at a 50% rate in that period. Your instance consumed 2 minutes and 30 seconds of CPU burst capacity minutes in the 5-minute period. For more information, see Viewing instance burst capacity in Amazon Lightsail.
Statistics
: The most useful statistics are Maximum
and Average
.
Unit
: The published unit is Seconds
.
-
CPUUtilization
- The percentage of allocated compute units that are currently in use on the instance. This metric identifies the processing power to run the applications on the instance. Tools in your operating system can show a lower percentage than Lightsail when the instance is not allocated a full processor core.
Statistics
: The most useful statistics are Maximum
and Average
.
Unit
: The published unit is Percent
.
-
NetworkIn
- The number of bytes received on all network interfaces by the instance. This metric identifies the volume of incoming network traffic to the instance. The number reported is the number of bytes received during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Bytes
.
-
NetworkOut
- The number of bytes sent out on all network interfaces by the instance. This metric identifies the volume of outgoing network traffic from the instance. The number reported is the number of bytes sent during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Bytes
.
-
StatusCheckFailed
- Reports whether the instance passed or failed both the instance status check and the system status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Count
.
-
StatusCheckFailed_Instance
- Reports whether the instance passed or failed the instance status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Count
.
-
StatusCheckFailed_System
- Reports whether the instance passed or failed the system status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Count
.
",
+ "GetInstanceMetricDataRequest$metricName": "The metric for which you want to return information.
Valid instance metric names are listed below, along with the most useful statistics
to include in your request, and the published unit
value.
-
BurstCapacityPercentage
- The percentage of CPU performance available for your instance to burst above its baseline. Your instance continuously accrues and consumes burst capacity. Burst capacity stops accruing when your instance's BurstCapacityPercentage
reaches 100%. For more information, see Viewing instance burst capacity in Amazon Lightsail.
Statistics
: The most useful statistics are Maximum
and Average
.
Unit
: The published unit is Percent
.
-
BurstCapacityTime
- The available amount of time for your instance to burst at 100% CPU utilization. Your instance continuously accrues and consumes burst capacity. Burst capacity time stops accruing when your instance's BurstCapacityPercentage
metric reaches 100%.
Burst capacity time is consumed at the full rate only when your instance operates at 100% CPU utilization. For example, if your instance operates at 50% CPU utilization in the burstable zone for a 5-minute period, then it consumes CPU burst capacity minutes at a 50% rate in that period. Your instance consumed 2 minutes and 30 seconds of CPU burst capacity minutes in the 5-minute period. For more information, see Viewing instance burst capacity in Amazon Lightsail.
Statistics
: The most useful statistics are Maximum
and Average
.
Unit
: The published unit is Seconds
.
-
CPUUtilization
- The percentage of allocated compute units that are currently in use on the instance. This metric identifies the processing power to run the applications on the instance. Tools in your operating system can show a lower percentage than Lightsail when the instance is not allocated a full processor core.
Statistics
: The most useful statistics are Maximum
and Average
.
Unit
: The published unit is Percent
.
-
NetworkIn
- The number of bytes received on all network interfaces by the instance. This metric identifies the volume of incoming network traffic to the instance. The number reported is the number of bytes received during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Bytes
.
-
NetworkOut
- The number of bytes sent out on all network interfaces by the instance. This metric identifies the volume of outgoing network traffic from the instance. The number reported is the number of bytes sent during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Bytes
.
-
StatusCheckFailed
- Reports whether the instance passed or failed both the instance status check and the system status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Count
.
-
StatusCheckFailed_Instance
- Reports whether the instance passed or failed the instance status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Count
.
-
StatusCheckFailed_System
- Reports whether the instance passed or failed the system status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.
Statistics
: The most useful statistic is Sum
.
Unit
: The published unit is Count
.
",
"GetInstanceMetricDataResult$metricName": "The name of the metric returned.
"
}
},
@@ -1921,9 +1921,9 @@
"NetworkProtocol": {
"base": null,
"refs": {
- "InstancePortInfo$protocol": "The IP protocol name.
The name can be one of the following:
-
tcp
- Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.
-
all
- All transport layer protocol types. For more general information, see Transport layer on Wikipedia.
-
udp
- With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.
-
icmp
- Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached.
Ping is the only communication supported through the ICMP protocol in Lightsail. To configure ping, specify the fromPort
parameter as 8
, and the toPort
parameter as -1
.
",
- "InstancePortState$protocol": "The IP protocol name.
The name can be one of the following:
-
tcp
- Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.
-
all
- All transport layer protocol types. For more general information, see Transport layer on Wikipedia.
-
udp
- With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.
-
icmp
- Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached.
Ping is the only communication supported through the ICMP protocol in Lightsail. To configure ping, specify the fromPort
parameter as 8
, and the toPort
parameter as -1
.
",
- "PortInfo$protocol": "The IP protocol name.
The name can be one of the following:
-
tcp
- Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.
-
all
- All transport layer protocol types. For more general information, see Transport layer on Wikipedia.
-
udp
- With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.
-
icmp
- Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached.
Ping is the only communication supported through the ICMP protocol in Lightsail. To configure ping, specify the fromPort
parameter as 8
, and the toPort
parameter as -1
.
"
+ "InstancePortInfo$protocol": "The IP protocol name.
The name can be one of the following:
-
tcp
- Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.
-
all
- All transport layer protocol types. For more general information, see Transport layer on Wikipedia.
-
udp
- With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.
-
icmp
- Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp
as the protocol
, you must specify the ICMP type using the fromPort
parameter, and ICMP code using the toPort
parameter.
",
+ "InstancePortState$protocol": "The IP protocol name.
The name can be one of the following:
-
tcp
- Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.
-
all
- All transport layer protocol types. For more general information, see Transport layer on Wikipedia.
-
udp
- With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.
-
icmp
- Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp
as the protocol
, you must specify the ICMP type using the fromPort
parameter, and ICMP code using the toPort
parameter.
",
+ "PortInfo$protocol": "The IP protocol name.
The name can be one of the following:
-
tcp
- Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.
-
all
- All transport layer protocol types. For more general information, see Transport layer on Wikipedia.
-
udp
- With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.
-
icmp
- Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp
as the protocol
, you must specify the ICMP type using the fromPort
parameter, and ICMP code using the toPort
parameter.
"
}
},
"NonEmptyString": {
@@ -2164,12 +2164,12 @@
"base": null,
"refs": {
"CreateLoadBalancerRequest$instancePort": "The instance port where you're creating your load balancer.
",
- "InstancePortInfo$fromPort": "The first port in a range of open ports on an instance.
Allowed ports:
",
- "InstancePortInfo$toPort": "The last port in a range of open ports on an instance.
Allowed ports:
",
- "InstancePortState$fromPort": "The first port in a range of open ports on an instance.
Allowed ports:
",
- "InstancePortState$toPort": "The last port in a range of open ports on an instance.
Allowed ports:
",
- "PortInfo$fromPort": "The first port in a range of open ports on an instance.
Allowed ports:
",
- "PortInfo$toPort": "The last port in a range of open ports on an instance.
Allowed ports:
",
+ "InstancePortInfo$fromPort": "The first port in a range of open ports on an instance.
Allowed ports:
-
TCP and UDP - 0
to 65535
-
ICMP - The ICMP type. For example, specify 8
as the fromPort
(ICMP type), and -1
as the toPort
(ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.
",
+ "InstancePortInfo$toPort": "The last port in a range of open ports on an instance.
Allowed ports:
-
TCP and UDP - 0
to 65535
-
ICMP - The ICMP code. For example, specify 8
as the fromPort
(ICMP type), and -1
as the toPort
(ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.
",
+ "InstancePortState$fromPort": "The first port in a range of open ports on an instance.
Allowed ports:
-
TCP and UDP - 0
to 65535
-
ICMP - The ICMP type. For example, specify 8
as the fromPort
(ICMP type), and -1
as the toPort
(ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.
",
+ "InstancePortState$toPort": "The last port in a range of open ports on an instance.
Allowed ports:
-
TCP and UDP - 0
to 65535
-
ICMP - The ICMP code. For example, specify 8
as the fromPort
(ICMP type), and -1
as the toPort
(ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.
",
+ "PortInfo$fromPort": "The first port in a range of open ports on an instance.
Allowed ports:
-
TCP and UDP - 0
to 65535
-
ICMP - The ICMP type. For example, specify 8
as the fromPort
(ICMP type), and -1
as the toPort
(ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.
",
+ "PortInfo$toPort": "The last port in a range of open ports on an instance.
Allowed ports:
-
TCP and UDP - 0
to 65535
-
ICMP - The ICMP code. For example, specify 8
as the fromPort
(ICMP type), and -1
as the toPort
(ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.
",
"PortList$member": null
}
},
diff --git a/models/apis/macie2/2020-01-01/api-2.json b/models/apis/macie2/2020-01-01/api-2.json
index 923202be0fe..fd1a972901f 100644
--- a/models/apis/macie2/2020-01-01/api-2.json
+++ b/models/apis/macie2/2020-01-01/api-2.json
@@ -48,43 +48,6 @@
}
]
},
- "ArchiveFindings": {
- "name": "ArchiveFindings",
- "http": {
- "method": "POST",
- "requestUri": "/findings/archive",
- "responseCode": 200
- },
- "input": {
- "shape": "ArchiveFindingsRequest"
- },
- "output": {
- "shape": "ArchiveFindingsResponse"
- },
- "errors": [
- {
- "shape": "ValidationException"
- },
- {
- "shape": "InternalServerException"
- },
- {
- "shape": "ServiceQuotaExceededException"
- },
- {
- "shape": "AccessDeniedException"
- },
- {
- "shape": "ResourceNotFoundException"
- },
- {
- "shape": "ThrottlingException"
- },
- {
- "shape": "ConflictException"
- }
- ]
- },
"BatchGetCustomDataIdentifiers": {
"name": "BatchGetCustomDataIdentifiers",
"http": {
@@ -1669,43 +1632,6 @@
}
]
},
- "UnarchiveFindings": {
- "name": "UnarchiveFindings",
- "http": {
- "method": "POST",
- "requestUri": "/findings/unarchive",
- "responseCode": 200
- },
- "input": {
- "shape": "UnarchiveFindingsRequest"
- },
- "output": {
- "shape": "UnarchiveFindingsResponse"
- },
- "errors": [
- {
- "shape": "ValidationException"
- },
- {
- "shape": "InternalServerException"
- },
- {
- "shape": "ServiceQuotaExceededException"
- },
- {
- "shape": "AccessDeniedException"
- },
- {
- "shape": "ResourceNotFoundException"
- },
- {
- "shape": "ThrottlingException"
- },
- {
- "shape": "ConflictException"
- }
- ]
- },
"UntagResource": {
"name": "UntagResource",
"http": {
@@ -2022,22 +1948,6 @@
}
}
},
- "ArchiveFindingsRequest": {
- "type": "structure",
- "members": {
- "findingIds": {
- "shape": "__listOf__string",
- "locationName": "findingIds"
- }
- },
- "required": [
- "findingIds"
- ]
- },
- "ArchiveFindingsResponse": {
- "type": "structure",
- "members": {}
- },
"AssumedRole": {
"type": "structure",
"members": {
@@ -3185,7 +3095,8 @@
"enum": [
"NONE",
"AES256",
- "aws:kms"
+ "aws:kms",
+ "UNKNOWN"
]
},
"ErrorCode": {
@@ -5050,22 +4961,6 @@
"httpStatusCode": 429
}
},
- "UnarchiveFindingsRequest": {
- "type": "structure",
- "members": {
- "findingIds": {
- "shape": "__listOf__string",
- "locationName": "findingIds"
- }
- },
- "required": [
- "findingIds"
- ]
- },
- "UnarchiveFindingsResponse": {
- "type": "structure",
- "members": {}
- },
"Unit": {
"type": "string",
"enum": [
diff --git a/models/apis/macie2/2020-01-01/docs-2.json b/models/apis/macie2/2020-01-01/docs-2.json
index 4671c53a288..ad96e4756c5 100644
--- a/models/apis/macie2/2020-01-01/docs-2.json
+++ b/models/apis/macie2/2020-01-01/docs-2.json
@@ -3,7 +3,6 @@
"service" : "Amazon Macie
",
"operations" : {
"AcceptInvitation" : "Accepts an Amazon Macie membership invitation that was received from a specific account.
",
- "ArchiveFindings" : " Archives one or more findings.
",
"BatchGetCustomDataIdentifiers" : "Retrieves information about one or more custom data identifiers.
",
"CreateClassificationJob" : " Creates and defines the settings for a classification job.
",
"CreateCustomDataIdentifier" : "Creates and defines the criteria and other settings for a custom data identifier.
",
@@ -48,7 +47,6 @@
"PutClassificationExportConfiguration" : "Creates or updates the configuration settings for exporting data classification results.
",
"TagResource" : "Adds or updates one or more tags (keys and values) that are associated with a classification job, custom data identifier, findings filter, or member account.
",
"TestCustomDataIdentifier" : "Tests a custom data identifier.
",
- "UnarchiveFindings" : " Reactivates (unarchives) one or more findings.
",
"UntagResource" : "Removes one or more tags (keys and values) from a classification job, custom data identifier, findings filter, or member account.
",
"UpdateClassificationJob" : "Cancels a classification job.
",
"UpdateFindingsFilter" : "Updates the criteria and other settings for a findings filter.
",
@@ -101,10 +99,6 @@
"FindingAction$ApiCallDetails" : "For the affected resource:
The name of the operation that was invoked most recently and produced the finding (api).
The first date and time when any operation was invoked and produced the finding (firstSeen).
The most recent date and time when the specified operation was invoked and produced the finding (lastSeen).
All date and time values are in UTC and extended ISO 8601 format.
"
}
},
- "ArchiveFindingsRequest" : {
- "base" : "Specifies one or more findings to archive.
",
- "refs" : { }
- },
"AssumedRole" : {
"base" : "Reserved for future use.
",
"refs" : {
@@ -1044,10 +1038,6 @@
"base" : "Provides information about an error that occurred because too many requests were sent during a certain amount of time.
",
"refs" : { }
},
- "UnarchiveFindingsRequest" : {
- "base" : "Specifies one or more findings to reactivate (unarchive).
",
- "refs" : { }
- },
"Unit" : {
"base" : null,
"refs" : {
@@ -1357,7 +1347,6 @@
"__listOf__string" : {
"base" : null,
"refs" : {
- "ArchiveFindingsRequest$FindingIds" : "An array of strings that lists the unique identifiers for the findings to archive.
",
"BatchGetCustomDataIdentifiersRequest$Ids" : "An array of strings that lists the unique identifiers for the custom data identifiers to retrieve information about.
",
"BatchGetCustomDataIdentifiersResponse$NotFoundIdentifierIds" : "An array of identifiers, one for each identifier that was specified in the request, but doesn't correlate to an existing custom data identifier.
",
"BucketCriteriaAdditionalProperties$Eq" : "An equal to condition to apply to a specified attribute value for buckets.
",
diff --git a/models/apis/servicecatalog/2015-12-10/docs-2.json b/models/apis/servicecatalog/2015-12-10/docs-2.json
index c1db751cdd6..4a3480b964e 100644
--- a/models/apis/servicecatalog/2015-12-10/docs-2.json
+++ b/models/apis/servicecatalog/2015-12-10/docs-2.json
@@ -5,32 +5,32 @@
"AcceptPortfolioShare": "Accepts an offer to share the specified portfolio.
",
"AssociateBudgetWithResource": "Associates the specified budget with the specified resource.
",
"AssociatePrincipalWithPortfolio": "Associates the specified principal ARN with the specified portfolio.
",
- "AssociateProductWithPortfolio": "Associates the specified product with the specified portfolio.
",
+ "AssociateProductWithPortfolio": "Associates the specified product with the specified portfolio.
A delegated admin is authorized to invoke this command.
",
"AssociateServiceActionWithProvisioningArtifact": "Associates a self-service action with a provisioning artifact.
",
"AssociateTagOptionWithResource": "Associate the specified TagOption with the specified portfolio or product.
",
"BatchAssociateServiceActionWithProvisioningArtifact": "Associates multiple self-service actions with provisioning artifacts.
",
"BatchDisassociateServiceActionFromProvisioningArtifact": "Disassociates a batch of self-service actions from the specified provisioning artifact.
",
"CopyProduct": "Copies the specified source product to the specified target product or a new product.
You can copy a product to the same account or another account. You can copy a product to the same region or another region.
This operation is performed asynchronously. To track the progress of the operation, use DescribeCopyProductStatus.
",
- "CreateConstraint": "Creates a constraint.
",
- "CreatePortfolio": "Creates a portfolio.
",
- "CreatePortfolioShare": "Shares the specified portfolio with the specified account or organization node. Shares to an organization node can only be created by the master account of an Organization. AWSOrganizationsAccess must be enabled in order to create a portfolio share to an organization node.
",
- "CreateProduct": "Creates a product.
",
+ "CreateConstraint": "Creates a constraint.
A delegated admin is authorized to invoke this command.
",
+ "CreatePortfolio": "Creates a portfolio.
A delegated admin is authorized to invoke this command.
",
+ "CreatePortfolioShare": "Shares the specified portfolio with the specified account or organization node. Shares to an organization node can only be created by the master account of an organization or by a delegated administrator. You can share portfolios to an organization, an organizational unit, or a specific account.
Note that if a delegated admin is de-registered, they can no longer create portfolio shares.
AWSOrganizationsAccess
must be enabled in order to create a portfolio share to an organization node.
",
+ "CreateProduct": "Creates a product.
A delegated admin is authorized to invoke this command.
",
"CreateProvisionedProductPlan": "Creates a plan. A plan includes the list of resources to be created (when provisioning a new product) or modified (when updating a provisioned product) when the plan is executed.
You can create one plan per provisioned product. To create a plan for an existing provisioned product, the product status must be AVAILBLE or TAINTED.
To view the resource changes in the change set, use DescribeProvisionedProductPlan. To create or modify the provisioned product, use ExecuteProvisionedProductPlan.
",
"CreateProvisioningArtifact": "Creates a provisioning artifact (also known as a version) for the specified product.
You cannot create a provisioning artifact for a product that was shared with you.
",
"CreateServiceAction": "Creates a self-service action.
",
"CreateTagOption": "Creates a TagOption.
",
- "DeleteConstraint": "Deletes the specified constraint.
",
- "DeletePortfolio": "Deletes the specified portfolio.
You cannot delete a portfolio if it was shared with you or if it has associated products, users, constraints, or shared accounts.
",
- "DeletePortfolioShare": "Stops sharing the specified portfolio with the specified account or organization node. Shares to an organization node can only be deleted by the master account of an Organization.
",
- "DeleteProduct": "Deletes the specified product.
You cannot delete a product if it was shared with you or is associated with a portfolio.
",
+ "DeleteConstraint": "Deletes the specified constraint.
A delegated admin is authorized to invoke this command.
",
+ "DeletePortfolio": "Deletes the specified portfolio.
You cannot delete a portfolio if it was shared with you or if it has associated products, users, constraints, or shared accounts.
A delegated admin is authorized to invoke this command.
",
+ "DeletePortfolioShare": "Stops sharing the specified portfolio with the specified account or organization node. Shares to an organization node can only be deleted by the master account of an organization or by a delegated administrator.
Note that if a delegated admin is de-registered, portfolio shares created from that account are removed.
",
+ "DeleteProduct": "Deletes the specified product.
You cannot delete a product if it was shared with you or is associated with a portfolio.
A delegated admin is authorized to invoke this command.
",
"DeleteProvisionedProductPlan": "Deletes the specified plan.
",
"DeleteProvisioningArtifact": "Deletes the specified provisioning artifact (also known as a version) for the specified product.
You cannot delete a provisioning artifact associated with a product that was shared with you. You cannot delete the last provisioning artifact for a product, because a product must have at least one provisioning artifact.
",
"DeleteServiceAction": "Deletes a self-service action.
",
"DeleteTagOption": "Deletes the specified TagOption.
You cannot delete a TagOption if it is associated with a product or portfolio.
",
"DescribeConstraint": "Gets information about the specified constraint.
",
"DescribeCopyProductStatus": "Gets the status of the specified copy product operation.
",
- "DescribePortfolio": "Gets information about the specified portfolio.
",
- "DescribePortfolioShareStatus": "Gets the status of the specified portfolio share operation. This API can only be called by the master account in the organization.
",
+ "DescribePortfolio": "Gets information about the specified portfolio.
A delegated admin is authorized to invoke this command.
",
+ "DescribePortfolioShareStatus": "Gets the status of the specified portfolio share operation. This API can only be called by the master account in the organization or by a delegated admin.
",
"DescribeProduct": "Gets information about the specified product.
",
"DescribeProductAsAdmin": "Gets information about the specified product. This operation is run with administrator access.
",
"DescribeProductView": "Gets information about the specified product.
",
@@ -42,22 +42,22 @@
"DescribeServiceAction": "Describes a self-service action.
",
"DescribeServiceActionExecutionParameters": "Finds the default parameters for a specific self-service action on a specific provisioned product and returns a map of the results to the user.
",
"DescribeTagOption": "Gets information about the specified TagOption.
",
- "DisableAWSOrganizationsAccess": "Disable portfolio sharing through AWS Organizations feature. This feature will not delete your current shares but it will prevent you from creating new shares throughout your organization. Current shares will not be in sync with your organization structure if it changes after calling this API. This API can only be called by the master account in the organization.
",
+ "DisableAWSOrganizationsAccess": "Disable portfolio sharing through AWS Organizations feature. This feature will not delete your current shares but it will prevent you from creating new shares throughout your organization. Current shares will not be in sync with your organization structure if it changes after calling this API. This API can only be called by the master account in the organization.
This API can't be invoked if there are active delegated administrators in the organization.
Note that a delegated administrator is not authorized to invoke DisableAWSOrganizationsAccess
.
",
"DisassociateBudgetFromResource": "Disassociates the specified budget from the specified resource.
",
"DisassociatePrincipalFromPortfolio": "Disassociates a previously associated principal ARN from a specified portfolio.
",
- "DisassociateProductFromPortfolio": "Disassociates the specified product from the specified portfolio.
",
+ "DisassociateProductFromPortfolio": "Disassociates the specified product from the specified portfolio.
A delegated admin is authorized to invoke this command.
",
"DisassociateServiceActionFromProvisioningArtifact": "Disassociates the specified self-service action association from the specified provisioning artifact.
",
"DisassociateTagOptionFromResource": "Disassociates the specified TagOption from the specified resource.
",
- "EnableAWSOrganizationsAccess": "Enable portfolio sharing feature through AWS Organizations. This API will allow Service Catalog to receive updates on your organization in order to sync your shares with the current structure. This API can only be called by the master account in the organization.
By calling this API Service Catalog will make a call to organizations:EnableAWSServiceAccess on your behalf so that your shares can be in sync with any changes in your AWS Organizations structure.
",
+ "EnableAWSOrganizationsAccess": "Enable portfolio sharing feature through AWS Organizations. This API will allow Service Catalog to receive updates on your organization in order to sync your shares with the current structure. This API can only be called by the master account in the organization.
By calling this API Service Catalog will make a call to organizations:EnableAWSServiceAccess on your behalf so that your shares can be in sync with any changes in your AWS Organizations structure.
Note that a delegated administrator is not authorized to invoke EnableAWSOrganizationsAccess
.
",
"ExecuteProvisionedProductPlan": "Provisions or modifies a product based on the resource changes for the specified plan.
",
"ExecuteProvisionedProductServiceAction": "Executes a self-service action against a provisioned product.
",
- "GetAWSOrganizationsAccessStatus": "Get the Access Status for AWS Organization portfolio share feature. This API can only be called by the master account in the organization.
",
+ "GetAWSOrganizationsAccessStatus": "Get the Access Status for AWS Organization portfolio share feature. This API can only be called by the master account in the organization or by a delegated admin.
",
"ListAcceptedPortfolioShares": "Lists all portfolios for which sharing was accepted by this account.
",
"ListBudgetsForResource": "Lists all the budgets associated to the specified resource.
",
"ListConstraintsForPortfolio": "Lists the constraints for the specified portfolio and product.
",
"ListLaunchPaths": "Lists the paths to the specified product. A path is how the user has access to a specified product, and is necessary when provisioning a product. A path also determines the constraints put on the product.
",
- "ListOrganizationPortfolioAccess": "Lists the organization nodes that have access to the specified portfolio. This API can only be called by the master account in the organization.
",
- "ListPortfolioAccess": "Lists the account IDs that have access to the specified portfolio.
",
+ "ListOrganizationPortfolioAccess": "Lists the organization nodes that have access to the specified portfolio. This API can only be called by the master account in the organization or by a delegated admin.
If a delegated admin is de-registered, they can no longer perform this operation.
",
+ "ListPortfolioAccess": "Lists the account IDs that have access to the specified portfolio.
A delegated admin can list the accounts that have access to the shared portfolio. Note that if a delegated admin is de-registered, they can no longer perform this operation.
",
"ListPortfolios": "Lists all portfolios in the catalog.
",
"ListPortfoliosForProduct": "Lists all portfolios that the specified product is associated with.
",
"ListPrincipalsForPortfolio": "Lists all principal ARNs associated with the specified portfolio.
",
diff --git a/models/apis/shield/2016-06-02/api-2.json b/models/apis/shield/2016-06-02/api-2.json
index 9ed90a03db7..4e82f5e0c39 100644
--- a/models/apis/shield/2016-06-02/api-2.json
+++ b/models/apis/shield/2016-06-02/api-2.json
@@ -884,9 +884,9 @@
},
"PhoneNumber":{
"type":"string",
- "max":40,
+ "max":16,
"min":1,
- "pattern":"^.*$"
+ "pattern":"^\\+[1-9]\\d{1,14}$"
},
"ProactiveEngagementStatus":{
"type":"string",
diff --git a/models/apis/shield/2016-06-02/docs-2.json b/models/apis/shield/2016-06-02/docs-2.json
index e7da4b1d009..e16daeb25bb 100644
--- a/models/apis/shield/2016-06-02/docs-2.json
+++ b/models/apis/shield/2016-06-02/docs-2.json
@@ -7,7 +7,7 @@
"AssociateHealthCheck": "Adds health-based detection to the Shield Advanced protection for a resource. Shield Advanced health-based detection uses the health of your AWS resource to improve responsiveness and accuracy in attack detection and mitigation.
You define the health check in Route 53 and then associate it with your Shield Advanced protection. For more information, see Shield Advanced Health-Based Detection in the AWS WAF and AWS Shield Developer Guide.
",
"AssociateProactiveEngagementDetails": "Initializes proactive engagement and sets the list of contacts for the DDoS Response Team (DRT) to use. You must provide at least one phone number in the emergency contact list.
After you have initialized proactive engagement using this call, to disable or enable proactive engagement, use the calls DisableProactiveEngagement
and EnableProactiveEngagement
.
This call defines the list of email addresses and phone numbers that the DDoS Response Team (DRT) can use to contact you for escalations to the DRT and to initiate proactive customer support.
The contacts that you provide in the request replace any contacts that were already defined. If you already have contacts defined and want to use them, retrieve the list using DescribeEmergencyContactSettings
and then provide it to this call.
",
"CreateProtection": "Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.
You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console. For more information see Getting Started with AWS Shield Advanced and Add AWS Shield Advanced Protection to more AWS Resources.
",
- "CreateSubscription": "Activates AWS Shield Advanced for an account.
As part of this request you can specify EmergencySettings
that automaticaly grant the DDoS response team (DRT) needed permissions to assist you during a suspected DDoS attack. For more information see Authorize the DDoS Response Team to Create Rules and Web ACLs on Your Behalf.
To use the services of the DRT, you must be subscribed to the Business Support plan or the Enterprise Support plan.
When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription
request.
",
+ "CreateSubscription": "Activates AWS Shield Advanced for an account.
When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription
request.
",
"DeleteProtection": "Deletes an AWS Shield Advanced Protection.
",
"DeleteSubscription": "Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.
",
"DescribeAttack": "Describes the details of a DDoS attack.
",
diff --git a/service/appconfig/api.go b/service/appconfig/api.go
index cf0e1ec5612..688597fea7e 100644
--- a/service/appconfig/api.go
+++ b/service/appconfig/api.go
@@ -887,9 +887,6 @@ func (c *AppConfig) GetConfigurationRequest(input *GetConfigurationInput) (req *
// * InternalServerException
// There was an internal failure in the AppConfig service.
//
-// * ResourceNotFoundException
-// The requested resource could not be found.
-//
// * BadRequestException
// The input fails to satisfy the constraints specified by an AWS service.
//
@@ -4565,7 +4562,7 @@ type GetConfigurationOutput struct {
ConfigurationVersion *string `location:"header" locationName:"Configuration-Version" min:"1" type:"string"`
// The content of the configuration or the configuration data.
- Content []byte `type:"blob"`
+ Content []byte `type:"blob" sensitive:"true"`
// A standard MIME type describing the format of the configuration content.
// For more information, see Content-Type (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17).
@@ -7412,7 +7409,7 @@ type Validator struct {
// Lambda function.
//
// Content is a required field
- Content *string `type:"string" required:"true"`
+ Content *string `type:"string" required:"true" sensitive:"true"`
// AppConfig supports validators of type JSON_SCHEMA and LAMBDA
//
diff --git a/service/codeartifact/api.go b/service/codeartifact/api.go
new file mode 100644
index 00000000000..a459d70ab59
--- /dev/null
+++ b/service/codeartifact/api.go
@@ -0,0 +1,9500 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package codeartifact
+
+import (
+ "fmt"
+ "io"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/awsutil"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/private/protocol"
+)
+
+const opAssociateExternalConnection = "AssociateExternalConnection"
+
+// AssociateExternalConnectionRequest generates a "aws/request.Request" representing the
+// client's request for the AssociateExternalConnection operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See AssociateExternalConnection for more information on using the AssociateExternalConnection
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the AssociateExternalConnectionRequest method.
+// req, resp := client.AssociateExternalConnectionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnection
+func (c *CodeArtifact) AssociateExternalConnectionRequest(input *AssociateExternalConnectionInput) (req *request.Request, output *AssociateExternalConnectionOutput) {
+ op := &request.Operation{
+ Name: opAssociateExternalConnection,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/repository/external-connection",
+ }
+
+ if input == nil {
+ input = &AssociateExternalConnectionInput{}
+ }
+
+ output = &AssociateExternalConnectionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// AssociateExternalConnection 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation AssociateExternalConnection for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnection
+func (c *CodeArtifact) AssociateExternalConnection(input *AssociateExternalConnectionInput) (*AssociateExternalConnectionOutput, error) {
+ req, out := c.AssociateExternalConnectionRequest(input)
+ return out, req.Send()
+}
+
+// AssociateExternalConnectionWithContext is the same as AssociateExternalConnection with the addition of
+// the ability to pass a context and additional request options.
+//
+// See AssociateExternalConnection for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) AssociateExternalConnectionWithContext(ctx aws.Context, input *AssociateExternalConnectionInput, opts ...request.Option) (*AssociateExternalConnectionOutput, error) {
+ req, out := c.AssociateExternalConnectionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCopyPackageVersions = "CopyPackageVersions"
+
+// CopyPackageVersionsRequest generates a "aws/request.Request" representing the
+// client's request for the CopyPackageVersions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CopyPackageVersions for more information on using the CopyPackageVersions
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the CopyPackageVersionsRequest method.
+// req, resp := client.CopyPackageVersionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CopyPackageVersions
+func (c *CodeArtifact) CopyPackageVersionsRequest(input *CopyPackageVersionsInput) (req *request.Request, output *CopyPackageVersionsOutput) {
+ op := &request.Operation{
+ Name: opCopyPackageVersions,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/package/versions/copy",
+ }
+
+ if input == nil {
+ input = &CopyPackageVersionsInput{}
+ }
+
+ output = &CopyPackageVersionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CopyPackageVersions 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation CopyPackageVersions for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CopyPackageVersions
+func (c *CodeArtifact) CopyPackageVersions(input *CopyPackageVersionsInput) (*CopyPackageVersionsOutput, error) {
+ req, out := c.CopyPackageVersionsRequest(input)
+ return out, req.Send()
+}
+
+// CopyPackageVersionsWithContext is the same as CopyPackageVersions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CopyPackageVersions for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) CopyPackageVersionsWithContext(ctx aws.Context, input *CopyPackageVersionsInput, opts ...request.Option) (*CopyPackageVersionsOutput, error) {
+ req, out := c.CopyPackageVersionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateDomain = "CreateDomain"
+
+// CreateDomainRequest generates a "aws/request.Request" representing the
+// client's request for the CreateDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateDomain for more information on using the CreateDomain
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the CreateDomainRequest method.
+// req, resp := client.CreateDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomain
+func (c *CodeArtifact) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) {
+ op := &request.Operation{
+ Name: opCreateDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/domain",
+ }
+
+ if input == nil {
+ input = &CreateDomainInput{}
+ }
+
+ output = &CreateDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateDomain 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation CreateDomain for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomain
+func (c *CodeArtifact) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) {
+ req, out := c.CreateDomainRequest(input)
+ return out, req.Send()
+}
+
+// CreateDomainWithContext is the same as CreateDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateDomain for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) CreateDomainWithContext(ctx aws.Context, input *CreateDomainInput, opts ...request.Option) (*CreateDomainOutput, error) {
+ req, out := c.CreateDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateRepository = "CreateRepository"
+
+// CreateRepositoryRequest generates a "aws/request.Request" representing the
+// client's request for the CreateRepository operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateRepository for more information on using the CreateRepository
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the CreateRepositoryRequest method.
+// req, resp := client.CreateRepositoryRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepository
+func (c *CodeArtifact) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) {
+ op := &request.Operation{
+ Name: opCreateRepository,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/repository",
+ }
+
+ if input == nil {
+ input = &CreateRepositoryInput{}
+ }
+
+ output = &CreateRepositoryOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateRepository API operation for CodeArtifact.
+//
+// Creates a repository.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation CreateRepository for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepository
+func (c *CodeArtifact) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) {
+ req, out := c.CreateRepositoryRequest(input)
+ return out, req.Send()
+}
+
+// CreateRepositoryWithContext is the same as CreateRepository with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateRepository for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) CreateRepositoryWithContext(ctx aws.Context, input *CreateRepositoryInput, opts ...request.Option) (*CreateRepositoryOutput, error) {
+ req, out := c.CreateRepositoryRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteDomain = "DeleteDomain"
+
+// DeleteDomainRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteDomain for more information on using the DeleteDomain
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteDomainRequest method.
+// req, resp := client.DeleteDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomain
+func (c *CodeArtifact) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) {
+ op := &request.Operation{
+ Name: opDeleteDomain,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v1/domain",
+ }
+
+ if input == nil {
+ input = &DeleteDomainInput{}
+ }
+
+ output = &DeleteDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteDomain 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DeleteDomain for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomain
+func (c *CodeArtifact) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) {
+ req, out := c.DeleteDomainRequest(input)
+ return out, req.Send()
+}
+
+// DeleteDomainWithContext is the same as DeleteDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteDomain for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error) {
+ req, out := c.DeleteDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteDomainPermissionsPolicy = "DeleteDomainPermissionsPolicy"
+
+// DeleteDomainPermissionsPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDomainPermissionsPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteDomainPermissionsPolicy for more information on using the DeleteDomainPermissionsPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteDomainPermissionsPolicyRequest method.
+// req, resp := client.DeleteDomainPermissionsPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomainPermissionsPolicy
+func (c *CodeArtifact) DeleteDomainPermissionsPolicyRequest(input *DeleteDomainPermissionsPolicyInput) (req *request.Request, output *DeleteDomainPermissionsPolicyOutput) {
+ op := &request.Operation{
+ Name: opDeleteDomainPermissionsPolicy,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v1/domain/permissions/policy",
+ }
+
+ if input == nil {
+ input = &DeleteDomainPermissionsPolicyInput{}
+ }
+
+ output = &DeleteDomainPermissionsPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteDomainPermissionsPolicy API operation for CodeArtifact.
+//
+// Deletes the resource policy set on a domain.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DeleteDomainPermissionsPolicy for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomainPermissionsPolicy
+func (c *CodeArtifact) DeleteDomainPermissionsPolicy(input *DeleteDomainPermissionsPolicyInput) (*DeleteDomainPermissionsPolicyOutput, error) {
+ req, out := c.DeleteDomainPermissionsPolicyRequest(input)
+ return out, req.Send()
+}
+
+// DeleteDomainPermissionsPolicyWithContext is the same as DeleteDomainPermissionsPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteDomainPermissionsPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DeleteDomainPermissionsPolicyWithContext(ctx aws.Context, input *DeleteDomainPermissionsPolicyInput, opts ...request.Option) (*DeleteDomainPermissionsPolicyOutput, error) {
+ req, out := c.DeleteDomainPermissionsPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeletePackageVersions = "DeletePackageVersions"
+
+// DeletePackageVersionsRequest generates a "aws/request.Request" representing the
+// client's request for the DeletePackageVersions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeletePackageVersions for more information on using the DeletePackageVersions
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeletePackageVersionsRequest method.
+// req, resp := client.DeletePackageVersionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageVersions
+func (c *CodeArtifact) DeletePackageVersionsRequest(input *DeletePackageVersionsInput) (req *request.Request, output *DeletePackageVersionsOutput) {
+ op := &request.Operation{
+ Name: opDeletePackageVersions,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/package/versions/delete",
+ }
+
+ if input == nil {
+ input = &DeletePackageVersionsInput{}
+ }
+
+ output = &DeletePackageVersionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeletePackageVersions 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) .
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DeletePackageVersions for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageVersions
+func (c *CodeArtifact) DeletePackageVersions(input *DeletePackageVersionsInput) (*DeletePackageVersionsOutput, error) {
+ req, out := c.DeletePackageVersionsRequest(input)
+ return out, req.Send()
+}
+
+// DeletePackageVersionsWithContext is the same as DeletePackageVersions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeletePackageVersions for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DeletePackageVersionsWithContext(ctx aws.Context, input *DeletePackageVersionsInput, opts ...request.Option) (*DeletePackageVersionsOutput, error) {
+ req, out := c.DeletePackageVersionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteRepository = "DeleteRepository"
+
+// DeleteRepositoryRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteRepository operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteRepository for more information on using the DeleteRepository
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteRepositoryRequest method.
+// req, resp := client.DeleteRepositoryRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepository
+func (c *CodeArtifact) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) {
+ op := &request.Operation{
+ Name: opDeleteRepository,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v1/repository",
+ }
+
+ if input == nil {
+ input = &DeleteRepositoryInput{}
+ }
+
+ output = &DeleteRepositoryOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteRepository API operation for CodeArtifact.
+//
+// Deletes a repository.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DeleteRepository for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepository
+func (c *CodeArtifact) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) {
+ req, out := c.DeleteRepositoryRequest(input)
+ return out, req.Send()
+}
+
+// DeleteRepositoryWithContext is the same as DeleteRepository with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteRepository for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DeleteRepositoryWithContext(ctx aws.Context, input *DeleteRepositoryInput, opts ...request.Option) (*DeleteRepositoryOutput, error) {
+ req, out := c.DeleteRepositoryRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteRepositoryPermissionsPolicy = "DeleteRepositoryPermissionsPolicy"
+
+// DeleteRepositoryPermissionsPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteRepositoryPermissionsPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteRepositoryPermissionsPolicy for more information on using the DeleteRepositoryPermissionsPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteRepositoryPermissionsPolicyRequest method.
+// req, resp := client.DeleteRepositoryPermissionsPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepositoryPermissionsPolicy
+func (c *CodeArtifact) DeleteRepositoryPermissionsPolicyRequest(input *DeleteRepositoryPermissionsPolicyInput) (req *request.Request, output *DeleteRepositoryPermissionsPolicyOutput) {
+ op := &request.Operation{
+ Name: opDeleteRepositoryPermissionsPolicy,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v1/repository/permissions/policies",
+ }
+
+ if input == nil {
+ input = &DeleteRepositoryPermissionsPolicyInput{}
+ }
+
+ output = &DeleteRepositoryPermissionsPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteRepositoryPermissionsPolicy 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DeleteRepositoryPermissionsPolicy for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepositoryPermissionsPolicy
+func (c *CodeArtifact) DeleteRepositoryPermissionsPolicy(input *DeleteRepositoryPermissionsPolicyInput) (*DeleteRepositoryPermissionsPolicyOutput, error) {
+ req, out := c.DeleteRepositoryPermissionsPolicyRequest(input)
+ return out, req.Send()
+}
+
+// DeleteRepositoryPermissionsPolicyWithContext is the same as DeleteRepositoryPermissionsPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteRepositoryPermissionsPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DeleteRepositoryPermissionsPolicyWithContext(ctx aws.Context, input *DeleteRepositoryPermissionsPolicyInput, opts ...request.Option) (*DeleteRepositoryPermissionsPolicyOutput, error) {
+ req, out := c.DeleteRepositoryPermissionsPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeDomain = "DescribeDomain"
+
+// DescribeDomainRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeDomain for more information on using the DescribeDomain
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeDomainRequest method.
+// req, resp := client.DescribeDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomain
+func (c *CodeArtifact) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) {
+ op := &request.Operation{
+ Name: opDescribeDomain,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/domain",
+ }
+
+ if input == nil {
+ input = &DescribeDomainInput{}
+ }
+
+ output = &DescribeDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeDomain 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DescribeDomain for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomain
+func (c *CodeArtifact) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) {
+ req, out := c.DescribeDomainRequest(input)
+ return out, req.Send()
+}
+
+// DescribeDomainWithContext is the same as DescribeDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeDomain for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DescribeDomainWithContext(ctx aws.Context, input *DescribeDomainInput, opts ...request.Option) (*DescribeDomainOutput, error) {
+ req, out := c.DescribeDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribePackageVersion = "DescribePackageVersion"
+
+// DescribePackageVersionRequest generates a "aws/request.Request" representing the
+// client's request for the DescribePackageVersion operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribePackageVersion for more information on using the DescribePackageVersion
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribePackageVersionRequest method.
+// req, resp := client.DescribePackageVersionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribePackageVersion
+func (c *CodeArtifact) DescribePackageVersionRequest(input *DescribePackageVersionInput) (req *request.Request, output *DescribePackageVersionOutput) {
+ op := &request.Operation{
+ Name: opDescribePackageVersion,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/package/version",
+ }
+
+ if input == nil {
+ input = &DescribePackageVersionInput{}
+ }
+
+ output = &DescribePackageVersionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribePackageVersion 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DescribePackageVersion for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribePackageVersion
+func (c *CodeArtifact) DescribePackageVersion(input *DescribePackageVersionInput) (*DescribePackageVersionOutput, error) {
+ req, out := c.DescribePackageVersionRequest(input)
+ return out, req.Send()
+}
+
+// DescribePackageVersionWithContext is the same as DescribePackageVersion with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribePackageVersion for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DescribePackageVersionWithContext(ctx aws.Context, input *DescribePackageVersionInput, opts ...request.Option) (*DescribePackageVersionOutput, error) {
+ req, out := c.DescribePackageVersionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeRepository = "DescribeRepository"
+
+// DescribeRepositoryRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeRepository operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeRepository for more information on using the DescribeRepository
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeRepositoryRequest method.
+// req, resp := client.DescribeRepositoryRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepository
+func (c *CodeArtifact) DescribeRepositoryRequest(input *DescribeRepositoryInput) (req *request.Request, output *DescribeRepositoryOutput) {
+ op := &request.Operation{
+ Name: opDescribeRepository,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/repository",
+ }
+
+ if input == nil {
+ input = &DescribeRepositoryInput{}
+ }
+
+ output = &DescribeRepositoryOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeRepository API operation for CodeArtifact.
+//
+// Returns a RepositoryDescription object that contains detailed information
+// about the requested repository.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DescribeRepository for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepository
+func (c *CodeArtifact) DescribeRepository(input *DescribeRepositoryInput) (*DescribeRepositoryOutput, error) {
+ req, out := c.DescribeRepositoryRequest(input)
+ return out, req.Send()
+}
+
+// DescribeRepositoryWithContext is the same as DescribeRepository with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeRepository for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DescribeRepositoryWithContext(ctx aws.Context, input *DescribeRepositoryInput, opts ...request.Option) (*DescribeRepositoryOutput, error) {
+ req, out := c.DescribeRepositoryRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDisassociateExternalConnection = "DisassociateExternalConnection"
+
+// DisassociateExternalConnectionRequest generates a "aws/request.Request" representing the
+// client's request for the DisassociateExternalConnection operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DisassociateExternalConnection for more information on using the DisassociateExternalConnection
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DisassociateExternalConnectionRequest method.
+// req, resp := client.DisassociateExternalConnectionRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnection
+func (c *CodeArtifact) DisassociateExternalConnectionRequest(input *DisassociateExternalConnectionInput) (req *request.Request, output *DisassociateExternalConnectionOutput) {
+ op := &request.Operation{
+ Name: opDisassociateExternalConnection,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/v1/repository/external-connection",
+ }
+
+ if input == nil {
+ input = &DisassociateExternalConnectionInput{}
+ }
+
+ output = &DisassociateExternalConnectionOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DisassociateExternalConnection API operation for CodeArtifact.
+//
+// Removes an existing external connection from a repository.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DisassociateExternalConnection for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnection
+func (c *CodeArtifact) DisassociateExternalConnection(input *DisassociateExternalConnectionInput) (*DisassociateExternalConnectionOutput, error) {
+ req, out := c.DisassociateExternalConnectionRequest(input)
+ return out, req.Send()
+}
+
+// DisassociateExternalConnectionWithContext is the same as DisassociateExternalConnection with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DisassociateExternalConnection for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DisassociateExternalConnectionWithContext(ctx aws.Context, input *DisassociateExternalConnectionInput, opts ...request.Option) (*DisassociateExternalConnectionOutput, error) {
+ req, out := c.DisassociateExternalConnectionRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDisposePackageVersions = "DisposePackageVersions"
+
+// DisposePackageVersionsRequest generates a "aws/request.Request" representing the
+// client's request for the DisposePackageVersions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DisposePackageVersions for more information on using the DisposePackageVersions
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DisposePackageVersionsRequest method.
+// req, resp := client.DisposePackageVersionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisposePackageVersions
+func (c *CodeArtifact) DisposePackageVersionsRequest(input *DisposePackageVersionsInput) (req *request.Request, output *DisposePackageVersionsOutput) {
+ op := &request.Operation{
+ Name: opDisposePackageVersions,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/package/versions/dispose",
+ }
+
+ if input == nil {
+ input = &DisposePackageVersionsInput{}
+ }
+
+ output = &DisposePackageVersionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DisposePackageVersions 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation DisposePackageVersions for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisposePackageVersions
+func (c *CodeArtifact) DisposePackageVersions(input *DisposePackageVersionsInput) (*DisposePackageVersionsOutput, error) {
+ req, out := c.DisposePackageVersionsRequest(input)
+ return out, req.Send()
+}
+
+// DisposePackageVersionsWithContext is the same as DisposePackageVersions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DisposePackageVersions for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) DisposePackageVersionsWithContext(ctx aws.Context, input *DisposePackageVersionsInput, opts ...request.Option) (*DisposePackageVersionsOutput, error) {
+ req, out := c.DisposePackageVersionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetAuthorizationToken = "GetAuthorizationToken"
+
+// GetAuthorizationTokenRequest generates a "aws/request.Request" representing the
+// client's request for the GetAuthorizationToken operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetAuthorizationToken for more information on using the GetAuthorizationToken
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the GetAuthorizationTokenRequest method.
+// req, resp := client.GetAuthorizationTokenRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetAuthorizationToken
+func (c *CodeArtifact) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (req *request.Request, output *GetAuthorizationTokenOutput) {
+ op := &request.Operation{
+ Name: opGetAuthorizationToken,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/authorization-token",
+ }
+
+ if input == nil {
+ input = &GetAuthorizationTokenInput{}
+ }
+
+ output = &GetAuthorizationTokenOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetAuthorizationToken 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation GetAuthorizationToken for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetAuthorizationToken
+func (c *CodeArtifact) GetAuthorizationToken(input *GetAuthorizationTokenInput) (*GetAuthorizationTokenOutput, error) {
+ req, out := c.GetAuthorizationTokenRequest(input)
+ return out, req.Send()
+}
+
+// GetAuthorizationTokenWithContext is the same as GetAuthorizationToken with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetAuthorizationToken for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) GetAuthorizationTokenWithContext(ctx aws.Context, input *GetAuthorizationTokenInput, opts ...request.Option) (*GetAuthorizationTokenOutput, error) {
+ req, out := c.GetAuthorizationTokenRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetDomainPermissionsPolicy = "GetDomainPermissionsPolicy"
+
+// GetDomainPermissionsPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the GetDomainPermissionsPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetDomainPermissionsPolicy for more information on using the GetDomainPermissionsPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the GetDomainPermissionsPolicyRequest method.
+// req, resp := client.GetDomainPermissionsPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetDomainPermissionsPolicy
+func (c *CodeArtifact) GetDomainPermissionsPolicyRequest(input *GetDomainPermissionsPolicyInput) (req *request.Request, output *GetDomainPermissionsPolicyOutput) {
+ op := &request.Operation{
+ Name: opGetDomainPermissionsPolicy,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/domain/permissions/policy",
+ }
+
+ if input == nil {
+ input = &GetDomainPermissionsPolicyInput{}
+ }
+
+ output = &GetDomainPermissionsPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetDomainPermissionsPolicy 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation GetDomainPermissionsPolicy for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetDomainPermissionsPolicy
+func (c *CodeArtifact) GetDomainPermissionsPolicy(input *GetDomainPermissionsPolicyInput) (*GetDomainPermissionsPolicyOutput, error) {
+ req, out := c.GetDomainPermissionsPolicyRequest(input)
+ return out, req.Send()
+}
+
+// GetDomainPermissionsPolicyWithContext is the same as GetDomainPermissionsPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetDomainPermissionsPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) GetDomainPermissionsPolicyWithContext(ctx aws.Context, input *GetDomainPermissionsPolicyInput, opts ...request.Option) (*GetDomainPermissionsPolicyOutput, error) {
+ req, out := c.GetDomainPermissionsPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetPackageVersionAsset = "GetPackageVersionAsset"
+
+// GetPackageVersionAssetRequest generates a "aws/request.Request" representing the
+// client's request for the GetPackageVersionAsset operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetPackageVersionAsset for more information on using the GetPackageVersionAsset
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the GetPackageVersionAssetRequest method.
+// req, resp := client.GetPackageVersionAssetRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionAsset
+func (c *CodeArtifact) GetPackageVersionAssetRequest(input *GetPackageVersionAssetInput) (req *request.Request, output *GetPackageVersionAssetOutput) {
+ op := &request.Operation{
+ Name: opGetPackageVersionAsset,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/package/version/asset",
+ }
+
+ if input == nil {
+ input = &GetPackageVersionAssetInput{}
+ }
+
+ output = &GetPackageVersionAssetOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetPackageVersionAsset 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation GetPackageVersionAsset for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionAsset
+func (c *CodeArtifact) GetPackageVersionAsset(input *GetPackageVersionAssetInput) (*GetPackageVersionAssetOutput, error) {
+ req, out := c.GetPackageVersionAssetRequest(input)
+ return out, req.Send()
+}
+
+// GetPackageVersionAssetWithContext is the same as GetPackageVersionAsset with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetPackageVersionAsset for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) GetPackageVersionAssetWithContext(ctx aws.Context, input *GetPackageVersionAssetInput, opts ...request.Option) (*GetPackageVersionAssetOutput, error) {
+ req, out := c.GetPackageVersionAssetRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetPackageVersionReadme = "GetPackageVersionReadme"
+
+// GetPackageVersionReadmeRequest generates a "aws/request.Request" representing the
+// client's request for the GetPackageVersionReadme operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetPackageVersionReadme for more information on using the GetPackageVersionReadme
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the GetPackageVersionReadmeRequest method.
+// req, resp := client.GetPackageVersionReadmeRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionReadme
+func (c *CodeArtifact) GetPackageVersionReadmeRequest(input *GetPackageVersionReadmeInput) (req *request.Request, output *GetPackageVersionReadmeOutput) {
+ op := &request.Operation{
+ Name: opGetPackageVersionReadme,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/package/version/readme",
+ }
+
+ if input == nil {
+ input = &GetPackageVersionReadmeInput{}
+ }
+
+ output = &GetPackageVersionReadmeOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetPackageVersionReadme 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 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation GetPackageVersionReadme for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionReadme
+func (c *CodeArtifact) GetPackageVersionReadme(input *GetPackageVersionReadmeInput) (*GetPackageVersionReadmeOutput, error) {
+ req, out := c.GetPackageVersionReadmeRequest(input)
+ return out, req.Send()
+}
+
+// GetPackageVersionReadmeWithContext is the same as GetPackageVersionReadme with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetPackageVersionReadme for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) GetPackageVersionReadmeWithContext(ctx aws.Context, input *GetPackageVersionReadmeInput, opts ...request.Option) (*GetPackageVersionReadmeOutput, error) {
+ req, out := c.GetPackageVersionReadmeRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetRepositoryEndpoint = "GetRepositoryEndpoint"
+
+// GetRepositoryEndpointRequest generates a "aws/request.Request" representing the
+// client's request for the GetRepositoryEndpoint operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetRepositoryEndpoint for more information on using the GetRepositoryEndpoint
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the GetRepositoryEndpointRequest method.
+// req, resp := client.GetRepositoryEndpointRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryEndpoint
+func (c *CodeArtifact) GetRepositoryEndpointRequest(input *GetRepositoryEndpointInput) (req *request.Request, output *GetRepositoryEndpointOutput) {
+ op := &request.Operation{
+ Name: opGetRepositoryEndpoint,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/repository/endpoint",
+ }
+
+ if input == nil {
+ input = &GetRepositoryEndpointInput{}
+ }
+
+ output = &GetRepositoryEndpointOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetRepositoryEndpoint 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
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation GetRepositoryEndpoint for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryEndpoint
+func (c *CodeArtifact) GetRepositoryEndpoint(input *GetRepositoryEndpointInput) (*GetRepositoryEndpointOutput, error) {
+ req, out := c.GetRepositoryEndpointRequest(input)
+ return out, req.Send()
+}
+
+// GetRepositoryEndpointWithContext is the same as GetRepositoryEndpoint with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetRepositoryEndpoint for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) GetRepositoryEndpointWithContext(ctx aws.Context, input *GetRepositoryEndpointInput, opts ...request.Option) (*GetRepositoryEndpointOutput, error) {
+ req, out := c.GetRepositoryEndpointRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opGetRepositoryPermissionsPolicy = "GetRepositoryPermissionsPolicy"
+
+// GetRepositoryPermissionsPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the GetRepositoryPermissionsPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See GetRepositoryPermissionsPolicy for more information on using the GetRepositoryPermissionsPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the GetRepositoryPermissionsPolicyRequest method.
+// req, resp := client.GetRepositoryPermissionsPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryPermissionsPolicy
+func (c *CodeArtifact) GetRepositoryPermissionsPolicyRequest(input *GetRepositoryPermissionsPolicyInput) (req *request.Request, output *GetRepositoryPermissionsPolicyOutput) {
+ op := &request.Operation{
+ Name: opGetRepositoryPermissionsPolicy,
+ HTTPMethod: "GET",
+ HTTPPath: "/v1/repository/permissions/policy",
+ }
+
+ if input == nil {
+ input = &GetRepositoryPermissionsPolicyInput{}
+ }
+
+ output = &GetRepositoryPermissionsPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// GetRepositoryPermissionsPolicy API operation for CodeArtifact.
+//
+// Returns the resource policy that is set on a repository.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation GetRepositoryPermissionsPolicy for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryPermissionsPolicy
+func (c *CodeArtifact) GetRepositoryPermissionsPolicy(input *GetRepositoryPermissionsPolicyInput) (*GetRepositoryPermissionsPolicyOutput, error) {
+ req, out := c.GetRepositoryPermissionsPolicyRequest(input)
+ return out, req.Send()
+}
+
+// GetRepositoryPermissionsPolicyWithContext is the same as GetRepositoryPermissionsPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See GetRepositoryPermissionsPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) GetRepositoryPermissionsPolicyWithContext(ctx aws.Context, input *GetRepositoryPermissionsPolicyInput, opts ...request.Option) (*GetRepositoryPermissionsPolicyOutput, error) {
+ req, out := c.GetRepositoryPermissionsPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opListDomains = "ListDomains"
+
+// ListDomainsRequest generates a "aws/request.Request" representing the
+// client's request for the ListDomains operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListDomains for more information on using the ListDomains
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListDomainsRequest method.
+// req, resp := client.ListDomainsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListDomains
+func (c *CodeArtifact) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) {
+ op := &request.Operation{
+ Name: opListDomains,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/domains",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "maxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListDomainsInput{}
+ }
+
+ output = &ListDomainsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListDomains 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation ListDomains for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListDomains
+func (c *CodeArtifact) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) {
+ req, out := c.ListDomainsRequest(input)
+ return out, req.Send()
+}
+
+// ListDomainsWithContext is the same as ListDomains with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListDomains for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListDomainsWithContext(ctx aws.Context, input *ListDomainsInput, opts ...request.Option) (*ListDomainsOutput, error) {
+ req, out := c.ListDomainsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListDomainsPages iterates over the pages of a ListDomains operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListDomains method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListDomains operation.
+// pageNum := 0
+// err := client.ListDomainsPages(params,
+// func(page *codeartifact.ListDomainsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *CodeArtifact) ListDomainsPages(input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool) error {
+ return c.ListDomainsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListDomainsPagesWithContext same as ListDomainsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListDomainsPagesWithContext(ctx aws.Context, input *ListDomainsInput, fn func(*ListDomainsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListDomainsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListDomainsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListDomainsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListPackageVersionAssets = "ListPackageVersionAssets"
+
+// ListPackageVersionAssetsRequest generates a "aws/request.Request" representing the
+// client's request for the ListPackageVersionAssets operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListPackageVersionAssets for more information on using the ListPackageVersionAssets
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListPackageVersionAssetsRequest method.
+// req, resp := client.ListPackageVersionAssetsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionAssets
+func (c *CodeArtifact) ListPackageVersionAssetsRequest(input *ListPackageVersionAssetsInput) (req *request.Request, output *ListPackageVersionAssetsOutput) {
+ op := &request.Operation{
+ Name: opListPackageVersionAssets,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/package/version/assets",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "maxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListPackageVersionAssetsInput{}
+ }
+
+ output = &ListPackageVersionAssetsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListPackageVersionAssets 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation ListPackageVersionAssets for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionAssets
+func (c *CodeArtifact) ListPackageVersionAssets(input *ListPackageVersionAssetsInput) (*ListPackageVersionAssetsOutput, error) {
+ req, out := c.ListPackageVersionAssetsRequest(input)
+ return out, req.Send()
+}
+
+// ListPackageVersionAssetsWithContext is the same as ListPackageVersionAssets with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListPackageVersionAssets for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListPackageVersionAssetsWithContext(ctx aws.Context, input *ListPackageVersionAssetsInput, opts ...request.Option) (*ListPackageVersionAssetsOutput, error) {
+ req, out := c.ListPackageVersionAssetsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListPackageVersionAssetsPages iterates over the pages of a ListPackageVersionAssets operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListPackageVersionAssets method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListPackageVersionAssets operation.
+// pageNum := 0
+// err := client.ListPackageVersionAssetsPages(params,
+// func(page *codeartifact.ListPackageVersionAssetsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *CodeArtifact) ListPackageVersionAssetsPages(input *ListPackageVersionAssetsInput, fn func(*ListPackageVersionAssetsOutput, bool) bool) error {
+ return c.ListPackageVersionAssetsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListPackageVersionAssetsPagesWithContext same as ListPackageVersionAssetsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListPackageVersionAssetsPagesWithContext(ctx aws.Context, input *ListPackageVersionAssetsInput, fn func(*ListPackageVersionAssetsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListPackageVersionAssetsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListPackageVersionAssetsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListPackageVersionAssetsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListPackageVersionDependencies = "ListPackageVersionDependencies"
+
+// ListPackageVersionDependenciesRequest generates a "aws/request.Request" representing the
+// client's request for the ListPackageVersionDependencies operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListPackageVersionDependencies for more information on using the ListPackageVersionDependencies
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListPackageVersionDependenciesRequest method.
+// req, resp := client.ListPackageVersionDependenciesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionDependencies
+func (c *CodeArtifact) ListPackageVersionDependenciesRequest(input *ListPackageVersionDependenciesInput) (req *request.Request, output *ListPackageVersionDependenciesOutput) {
+ op := &request.Operation{
+ Name: opListPackageVersionDependencies,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/package/version/dependencies",
+ }
+
+ if input == nil {
+ input = &ListPackageVersionDependenciesInput{}
+ }
+
+ output = &ListPackageVersionDependenciesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListPackageVersionDependencies 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation ListPackageVersionDependencies for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionDependencies
+func (c *CodeArtifact) ListPackageVersionDependencies(input *ListPackageVersionDependenciesInput) (*ListPackageVersionDependenciesOutput, error) {
+ req, out := c.ListPackageVersionDependenciesRequest(input)
+ return out, req.Send()
+}
+
+// ListPackageVersionDependenciesWithContext is the same as ListPackageVersionDependencies with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListPackageVersionDependencies for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListPackageVersionDependenciesWithContext(ctx aws.Context, input *ListPackageVersionDependenciesInput, opts ...request.Option) (*ListPackageVersionDependenciesOutput, error) {
+ req, out := c.ListPackageVersionDependenciesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opListPackageVersions = "ListPackageVersions"
+
+// ListPackageVersionsRequest generates a "aws/request.Request" representing the
+// client's request for the ListPackageVersions operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListPackageVersions for more information on using the ListPackageVersions
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListPackageVersionsRequest method.
+// req, resp := client.ListPackageVersionsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersions
+func (c *CodeArtifact) ListPackageVersionsRequest(input *ListPackageVersionsInput) (req *request.Request, output *ListPackageVersionsOutput) {
+ op := &request.Operation{
+ Name: opListPackageVersions,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/package/versions",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "maxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListPackageVersionsInput{}
+ }
+
+ output = &ListPackageVersionsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListPackageVersions 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation ListPackageVersions for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersions
+func (c *CodeArtifact) ListPackageVersions(input *ListPackageVersionsInput) (*ListPackageVersionsOutput, error) {
+ req, out := c.ListPackageVersionsRequest(input)
+ return out, req.Send()
+}
+
+// ListPackageVersionsWithContext is the same as ListPackageVersions with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListPackageVersions for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListPackageVersionsWithContext(ctx aws.Context, input *ListPackageVersionsInput, opts ...request.Option) (*ListPackageVersionsOutput, error) {
+ req, out := c.ListPackageVersionsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListPackageVersionsPages iterates over the pages of a ListPackageVersions operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListPackageVersions method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListPackageVersions operation.
+// pageNum := 0
+// err := client.ListPackageVersionsPages(params,
+// func(page *codeartifact.ListPackageVersionsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *CodeArtifact) ListPackageVersionsPages(input *ListPackageVersionsInput, fn func(*ListPackageVersionsOutput, bool) bool) error {
+ return c.ListPackageVersionsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListPackageVersionsPagesWithContext same as ListPackageVersionsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListPackageVersionsPagesWithContext(ctx aws.Context, input *ListPackageVersionsInput, fn func(*ListPackageVersionsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListPackageVersionsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListPackageVersionsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListPackageVersionsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListPackages = "ListPackages"
+
+// ListPackagesRequest generates a "aws/request.Request" representing the
+// client's request for the ListPackages operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListPackages for more information on using the ListPackages
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListPackagesRequest method.
+// req, resp := client.ListPackagesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackages
+func (c *CodeArtifact) ListPackagesRequest(input *ListPackagesInput) (req *request.Request, output *ListPackagesOutput) {
+ op := &request.Operation{
+ Name: opListPackages,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/packages",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "maxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListPackagesInput{}
+ }
+
+ output = &ListPackagesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListPackages 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation ListPackages for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackages
+func (c *CodeArtifact) ListPackages(input *ListPackagesInput) (*ListPackagesOutput, error) {
+ req, out := c.ListPackagesRequest(input)
+ return out, req.Send()
+}
+
+// ListPackagesWithContext is the same as ListPackages with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListPackages for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListPackagesWithContext(ctx aws.Context, input *ListPackagesInput, opts ...request.Option) (*ListPackagesOutput, error) {
+ req, out := c.ListPackagesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListPackagesPages iterates over the pages of a ListPackages operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListPackages method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListPackages operation.
+// pageNum := 0
+// err := client.ListPackagesPages(params,
+// func(page *codeartifact.ListPackagesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *CodeArtifact) ListPackagesPages(input *ListPackagesInput, fn func(*ListPackagesOutput, bool) bool) error {
+ return c.ListPackagesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListPackagesPagesWithContext same as ListPackagesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListPackagesPagesWithContext(ctx aws.Context, input *ListPackagesInput, fn func(*ListPackagesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListPackagesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListPackagesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListPackagesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListRepositories = "ListRepositories"
+
+// ListRepositoriesRequest generates a "aws/request.Request" representing the
+// client's request for the ListRepositories operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListRepositories for more information on using the ListRepositories
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListRepositoriesRequest method.
+// req, resp := client.ListRepositoriesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositories
+func (c *CodeArtifact) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput) {
+ op := &request.Operation{
+ Name: opListRepositories,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/repositories",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "maxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListRepositoriesInput{}
+ }
+
+ output = &ListRepositoriesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListRepositories 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation ListRepositories for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositories
+func (c *CodeArtifact) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) {
+ req, out := c.ListRepositoriesRequest(input)
+ return out, req.Send()
+}
+
+// ListRepositoriesWithContext is the same as ListRepositories with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListRepositories for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListRepositoriesWithContext(ctx aws.Context, input *ListRepositoriesInput, opts ...request.Option) (*ListRepositoriesOutput, error) {
+ req, out := c.ListRepositoriesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListRepositoriesPages iterates over the pages of a ListRepositories operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListRepositories method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListRepositories operation.
+// pageNum := 0
+// err := client.ListRepositoriesPages(params,
+// func(page *codeartifact.ListRepositoriesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *CodeArtifact) ListRepositoriesPages(input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool) error {
+ return c.ListRepositoriesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListRepositoriesPagesWithContext same as ListRepositoriesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListRepositoriesPagesWithContext(ctx aws.Context, input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListRepositoriesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListRepositoriesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListRepositoriesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListRepositoriesInDomain = "ListRepositoriesInDomain"
+
+// ListRepositoriesInDomainRequest generates a "aws/request.Request" representing the
+// client's request for the ListRepositoriesInDomain operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListRepositoriesInDomain for more information on using the ListRepositoriesInDomain
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListRepositoriesInDomainRequest method.
+// req, resp := client.ListRepositoriesInDomainRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesInDomain
+func (c *CodeArtifact) ListRepositoriesInDomainRequest(input *ListRepositoriesInDomainInput) (req *request.Request, output *ListRepositoriesInDomainOutput) {
+ op := &request.Operation{
+ Name: opListRepositoriesInDomain,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/domain/repositories",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"nextToken"},
+ OutputTokens: []string{"nextToken"},
+ LimitToken: "maxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListRepositoriesInDomainInput{}
+ }
+
+ output = &ListRepositoriesInDomainOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListRepositoriesInDomain 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.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation ListRepositoriesInDomain for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesInDomain
+func (c *CodeArtifact) ListRepositoriesInDomain(input *ListRepositoriesInDomainInput) (*ListRepositoriesInDomainOutput, error) {
+ req, out := c.ListRepositoriesInDomainRequest(input)
+ return out, req.Send()
+}
+
+// ListRepositoriesInDomainWithContext is the same as ListRepositoriesInDomain with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListRepositoriesInDomain for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListRepositoriesInDomainWithContext(ctx aws.Context, input *ListRepositoriesInDomainInput, opts ...request.Option) (*ListRepositoriesInDomainOutput, error) {
+ req, out := c.ListRepositoriesInDomainRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListRepositoriesInDomainPages iterates over the pages of a ListRepositoriesInDomain operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListRepositoriesInDomain method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListRepositoriesInDomain operation.
+// pageNum := 0
+// err := client.ListRepositoriesInDomainPages(params,
+// func(page *codeartifact.ListRepositoriesInDomainOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *CodeArtifact) ListRepositoriesInDomainPages(input *ListRepositoriesInDomainInput, fn func(*ListRepositoriesInDomainOutput, bool) bool) error {
+ return c.ListRepositoriesInDomainPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListRepositoriesInDomainPagesWithContext same as ListRepositoriesInDomainPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) ListRepositoriesInDomainPagesWithContext(ctx aws.Context, input *ListRepositoriesInDomainInput, fn func(*ListRepositoriesInDomainOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListRepositoriesInDomainInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListRepositoriesInDomainRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListRepositoriesInDomainOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opPutDomainPermissionsPolicy = "PutDomainPermissionsPolicy"
+
+// PutDomainPermissionsPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutDomainPermissionsPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutDomainPermissionsPolicy for more information on using the PutDomainPermissionsPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the PutDomainPermissionsPolicyRequest method.
+// req, resp := client.PutDomainPermissionsPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutDomainPermissionsPolicy
+func (c *CodeArtifact) PutDomainPermissionsPolicyRequest(input *PutDomainPermissionsPolicyInput) (req *request.Request, output *PutDomainPermissionsPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutDomainPermissionsPolicy,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v1/domain/permissions/policy",
+ }
+
+ if input == nil {
+ input = &PutDomainPermissionsPolicyInput{}
+ }
+
+ output = &PutDomainPermissionsPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PutDomainPermissionsPolicy API operation for CodeArtifact.
+//
+// Sets a resource policy on a domain that specifies permissions to access it.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation PutDomainPermissionsPolicy for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutDomainPermissionsPolicy
+func (c *CodeArtifact) PutDomainPermissionsPolicy(input *PutDomainPermissionsPolicyInput) (*PutDomainPermissionsPolicyOutput, error) {
+ req, out := c.PutDomainPermissionsPolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutDomainPermissionsPolicyWithContext is the same as PutDomainPermissionsPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutDomainPermissionsPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) PutDomainPermissionsPolicyWithContext(ctx aws.Context, input *PutDomainPermissionsPolicyInput, opts ...request.Option) (*PutDomainPermissionsPolicyOutput, error) {
+ req, out := c.PutDomainPermissionsPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutRepositoryPermissionsPolicy = "PutRepositoryPermissionsPolicy"
+
+// PutRepositoryPermissionsPolicyRequest generates a "aws/request.Request" representing the
+// client's request for the PutRepositoryPermissionsPolicy operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutRepositoryPermissionsPolicy for more information on using the PutRepositoryPermissionsPolicy
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the PutRepositoryPermissionsPolicyRequest method.
+// req, resp := client.PutRepositoryPermissionsPolicyRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutRepositoryPermissionsPolicy
+func (c *CodeArtifact) PutRepositoryPermissionsPolicyRequest(input *PutRepositoryPermissionsPolicyInput) (req *request.Request, output *PutRepositoryPermissionsPolicyOutput) {
+ op := &request.Operation{
+ Name: opPutRepositoryPermissionsPolicy,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v1/repository/permissions/policy",
+ }
+
+ if input == nil {
+ input = &PutRepositoryPermissionsPolicyInput{}
+ }
+
+ output = &PutRepositoryPermissionsPolicyOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PutRepositoryPermissionsPolicy API operation for CodeArtifact.
+//
+// Sets the resource policy on a repository that specifies permissions to access
+// it.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation PutRepositoryPermissionsPolicy for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutRepositoryPermissionsPolicy
+func (c *CodeArtifact) PutRepositoryPermissionsPolicy(input *PutRepositoryPermissionsPolicyInput) (*PutRepositoryPermissionsPolicyOutput, error) {
+ req, out := c.PutRepositoryPermissionsPolicyRequest(input)
+ return out, req.Send()
+}
+
+// PutRepositoryPermissionsPolicyWithContext is the same as PutRepositoryPermissionsPolicy with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutRepositoryPermissionsPolicy for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) PutRepositoryPermissionsPolicyWithContext(ctx aws.Context, input *PutRepositoryPermissionsPolicyInput, opts ...request.Option) (*PutRepositoryPermissionsPolicyOutput, error) {
+ req, out := c.PutRepositoryPermissionsPolicyRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdatePackageVersionsStatus = "UpdatePackageVersionsStatus"
+
+// UpdatePackageVersionsStatusRequest generates a "aws/request.Request" representing the
+// client's request for the UpdatePackageVersionsStatus operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdatePackageVersionsStatus for more information on using the UpdatePackageVersionsStatus
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the UpdatePackageVersionsStatusRequest method.
+// req, resp := client.UpdatePackageVersionsStatusRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdatePackageVersionsStatus
+func (c *CodeArtifact) UpdatePackageVersionsStatusRequest(input *UpdatePackageVersionsStatusInput) (req *request.Request, output *UpdatePackageVersionsStatusOutput) {
+ op := &request.Operation{
+ Name: opUpdatePackageVersionsStatus,
+ HTTPMethod: "POST",
+ HTTPPath: "/v1/package/versions/update_status",
+ }
+
+ if input == nil {
+ input = &UpdatePackageVersionsStatusInput{}
+ }
+
+ output = &UpdatePackageVersionsStatusOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdatePackageVersionsStatus API operation for CodeArtifact.
+//
+// Updates the status of one or more versions of a package.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation UpdatePackageVersionsStatus for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdatePackageVersionsStatus
+func (c *CodeArtifact) UpdatePackageVersionsStatus(input *UpdatePackageVersionsStatusInput) (*UpdatePackageVersionsStatusOutput, error) {
+ req, out := c.UpdatePackageVersionsStatusRequest(input)
+ return out, req.Send()
+}
+
+// UpdatePackageVersionsStatusWithContext is the same as UpdatePackageVersionsStatus with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdatePackageVersionsStatus for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) UpdatePackageVersionsStatusWithContext(ctx aws.Context, input *UpdatePackageVersionsStatusInput, opts ...request.Option) (*UpdatePackageVersionsStatusOutput, error) {
+ req, out := c.UpdatePackageVersionsStatusRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateRepository = "UpdateRepository"
+
+// UpdateRepositoryRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateRepository operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateRepository for more information on using the UpdateRepository
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the UpdateRepositoryRequest method.
+// req, resp := client.UpdateRepositoryRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepository
+func (c *CodeArtifact) UpdateRepositoryRequest(input *UpdateRepositoryInput) (req *request.Request, output *UpdateRepositoryOutput) {
+ op := &request.Operation{
+ Name: opUpdateRepository,
+ HTTPMethod: "PUT",
+ HTTPPath: "/v1/repository",
+ }
+
+ if input == nil {
+ input = &UpdateRepositoryInput{}
+ }
+
+ output = &UpdateRepositoryOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateRepository API operation for CodeArtifact.
+//
+// Update the properties of a repository.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for CodeArtifact's
+// API operation UpdateRepository for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// The operation did not succeed because of an unauthorized access attempt.
+//
+// * ConflictException
+// The operation did not succeed because prerequisites are not met.
+//
+// * InternalServerException
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+//
+// * ResourceNotFoundException
+// The operation did not succeed because the resource requested is not found
+// in the service.
+//
+// * ServiceQuotaExceededException
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+//
+// * ThrottlingException
+// The operation did not succeed because too many requests are sent to the service.
+//
+// * ValidationException
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepository
+func (c *CodeArtifact) UpdateRepository(input *UpdateRepositoryInput) (*UpdateRepositoryOutput, error) {
+ req, out := c.UpdateRepositoryRequest(input)
+ return out, req.Send()
+}
+
+// UpdateRepositoryWithContext is the same as UpdateRepository with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateRepository for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *CodeArtifact) UpdateRepositoryWithContext(ctx aws.Context, input *UpdateRepositoryInput, opts ...request.Option) (*UpdateRepositoryOutput, error) {
+ req, out := c.UpdateRepositoryRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// The operation did not succeed because of an unauthorized access attempt.
+type AccessDeniedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s AccessDeniedException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AccessDeniedException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
+ return &AccessDeniedException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccessDeniedException) Code() string {
+ return "AccessDeniedException"
+}
+
+// Message returns the exception's message.
+func (s *AccessDeniedException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccessDeniedException) OrigErr() error {
+ return nil
+}
+
+func (s *AccessDeniedException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Contains details about a package version asset.
+type AssetSummary struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s AssetSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssetSummary) GoString() string {
+ return s.String()
+}
+
+// SetHashes sets the Hashes field's value.
+func (s *AssetSummary) SetHashes(v map[string]*string) *AssetSummary {
+ s.Hashes = v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *AssetSummary) SetName(v string) *AssetSummary {
+ s.Name = &v
+ return s
+}
+
+// SetSize sets the Size field's value.
+func (s *AssetSummary) SetSize(v int64) *AssetSummary {
+ s.Size = &v
+ return s
+}
+
+type AssociateExternalConnectionInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s AssociateExternalConnectionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssociateExternalConnectionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AssociateExternalConnectionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AssociateExternalConnectionInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.ExternalConnection == nil {
+ invalidParams.Add(request.NewErrParamRequired("ExternalConnection"))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *AssociateExternalConnectionInput) SetDomain(v string) *AssociateExternalConnectionInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *AssociateExternalConnectionInput) SetDomainOwner(v string) *AssociateExternalConnectionInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetExternalConnection sets the ExternalConnection field's value.
+func (s *AssociateExternalConnectionInput) SetExternalConnection(v string) *AssociateExternalConnectionInput {
+ s.ExternalConnection = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *AssociateExternalConnectionInput) SetRepository(v string) *AssociateExternalConnectionInput {
+ s.Repository = &v
+ return s
+}
+
+type AssociateExternalConnectionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Information about the connected repository after processing the request.
+ Repository *RepositoryDescription `locationName:"repository" type:"structure"`
+}
+
+// String returns the string representation
+func (s AssociateExternalConnectionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s AssociateExternalConnectionOutput) GoString() string {
+ return s.String()
+}
+
+// SetRepository sets the Repository field's value.
+func (s *AssociateExternalConnectionOutput) SetRepository(v *RepositoryDescription) *AssociateExternalConnectionOutput {
+ s.Repository = v
+ return s
+}
+
+// The operation did not succeed because prerequisites are not met.
+type ConflictException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ // The ID of the resource.
+ ResourceId *string `locationName:"resourceId" type:"string"`
+
+ // The type of AWS resource.
+ ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
+}
+
+// String returns the string representation
+func (s ConflictException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ConflictException) GoString() string {
+ return s.String()
+}
+
+func newErrorConflictException(v protocol.ResponseMetadata) error {
+ return &ConflictException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ConflictException) Code() string {
+ return "ConflictException"
+}
+
+// Message returns the exception's message.
+func (s *ConflictException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ConflictException) OrigErr() error {
+ return nil
+}
+
+func (s *ConflictException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type CopyPackageVersionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s CopyPackageVersionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CopyPackageVersionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CopyPackageVersionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CopyPackageVersionsInput"}
+ if s.DestinationRepository == nil {
+ invalidParams.Add(request.NewErrParamRequired("DestinationRepository"))
+ }
+ if s.DestinationRepository != nil && len(*s.DestinationRepository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("DestinationRepository", 2))
+ }
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.SourceRepository == nil {
+ invalidParams.Add(request.NewErrParamRequired("SourceRepository"))
+ }
+ if s.SourceRepository != nil && len(*s.SourceRepository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("SourceRepository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAllowOverwrite sets the AllowOverwrite field's value.
+func (s *CopyPackageVersionsInput) SetAllowOverwrite(v bool) *CopyPackageVersionsInput {
+ s.AllowOverwrite = &v
+ return s
+}
+
+// SetDestinationRepository sets the DestinationRepository field's value.
+func (s *CopyPackageVersionsInput) SetDestinationRepository(v string) *CopyPackageVersionsInput {
+ s.DestinationRepository = &v
+ return s
+}
+
+// SetDomain sets the Domain field's value.
+func (s *CopyPackageVersionsInput) SetDomain(v string) *CopyPackageVersionsInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *CopyPackageVersionsInput) SetDomainOwner(v string) *CopyPackageVersionsInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *CopyPackageVersionsInput) SetFormat(v string) *CopyPackageVersionsInput {
+ s.Format = &v
+ return s
+}
+
+// SetIncludeFromUpstream sets the IncludeFromUpstream field's value.
+func (s *CopyPackageVersionsInput) SetIncludeFromUpstream(v bool) *CopyPackageVersionsInput {
+ s.IncludeFromUpstream = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *CopyPackageVersionsInput) SetNamespace(v string) *CopyPackageVersionsInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *CopyPackageVersionsInput) SetPackage(v string) *CopyPackageVersionsInput {
+ s.Package = &v
+ return s
+}
+
+// SetSourceRepository sets the SourceRepository field's value.
+func (s *CopyPackageVersionsInput) SetSourceRepository(v string) *CopyPackageVersionsInput {
+ s.SourceRepository = &v
+ return s
+}
+
+// SetVersionRevisions sets the VersionRevisions field's value.
+func (s *CopyPackageVersionsInput) SetVersionRevisions(v map[string]*string) *CopyPackageVersionsInput {
+ s.VersionRevisions = v
+ return s
+}
+
+// SetVersions sets the Versions field's value.
+func (s *CopyPackageVersionsInput) SetVersions(v []*string) *CopyPackageVersionsInput {
+ s.Versions = v
+ return s
+}
+
+type CopyPackageVersionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s CopyPackageVersionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CopyPackageVersionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetFailedVersions sets the FailedVersions field's value.
+func (s *CopyPackageVersionsOutput) SetFailedVersions(v map[string]*PackageVersionError) *CopyPackageVersionsOutput {
+ s.FailedVersions = v
+ return s
+}
+
+// SetSuccessfulVersions sets the SuccessfulVersions field's value.
+func (s *CopyPackageVersionsOutput) SetSuccessfulVersions(v map[string]*SuccessfulPackageVersionInfo) *CopyPackageVersionsOutput {
+ s.SuccessfulVersions = v
+ return s
+}
+
+type CreateDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s CreateDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *CreateDomainInput) SetDomain(v string) *CreateDomainInput {
+ s.Domain = &v
+ return s
+}
+
+// SetEncryptionKey sets the EncryptionKey field's value.
+func (s *CreateDomainInput) SetEncryptionKey(v string) *CreateDomainInput {
+ s.EncryptionKey = &v
+ return s
+}
+
+type CreateDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about the created domain after processing the request.
+ Domain *DomainDescription `locationName:"domain" type:"structure"`
+}
+
+// String returns the string representation
+func (s CreateDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomain sets the Domain field's value.
+func (s *CreateDomainOutput) SetDomain(v *DomainDescription) *CreateDomainOutput {
+ s.Domain = v
+ return s
+}
+
+type CreateRepositoryInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s CreateRepositoryInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateRepositoryInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateRepositoryInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+ if s.Upstreams != nil {
+ for i, v := range s.Upstreams {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Upstreams", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDescription sets the Description field's value.
+func (s *CreateRepositoryInput) SetDescription(v string) *CreateRepositoryInput {
+ s.Description = &v
+ return s
+}
+
+// SetDomain sets the Domain field's value.
+func (s *CreateRepositoryInput) SetDomain(v string) *CreateRepositoryInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *CreateRepositoryInput) SetDomainOwner(v string) *CreateRepositoryInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *CreateRepositoryInput) SetRepository(v string) *CreateRepositoryInput {
+ s.Repository = &v
+ return s
+}
+
+// SetUpstreams sets the Upstreams field's value.
+func (s *CreateRepositoryInput) SetUpstreams(v []*UpstreamRepository) *CreateRepositoryInput {
+ s.Upstreams = v
+ return s
+}
+
+type CreateRepositoryOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Information about the created repository after processing the request.
+ Repository *RepositoryDescription `locationName:"repository" type:"structure"`
+}
+
+// String returns the string representation
+func (s CreateRepositoryOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s CreateRepositoryOutput) GoString() string {
+ return s.String()
+}
+
+// SetRepository sets the Repository field's value.
+func (s *CreateRepositoryOutput) SetRepository(v *RepositoryDescription) *CreateRepositoryOutput {
+ s.Repository = v
+ return s
+}
+
+type DeleteDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DeleteDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DeleteDomainInput) SetDomain(v string) *DeleteDomainInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DeleteDomainInput) SetDomainOwner(v string) *DeleteDomainInput {
+ s.DomainOwner = &v
+ return s
+}
+
+type DeleteDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Contains information about the deleted domain after processing the request.
+ Domain *DomainDescription `locationName:"domain" type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DeleteDomainOutput) SetDomain(v *DomainDescription) *DeleteDomainOutput {
+ s.Domain = v
+ return s
+}
+
+type DeleteDomainPermissionsPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DeleteDomainPermissionsPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteDomainPermissionsPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDomainPermissionsPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDomainPermissionsPolicyInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.PolicyRevision != nil && len(*s.PolicyRevision) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PolicyRevision", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DeleteDomainPermissionsPolicyInput) SetDomain(v string) *DeleteDomainPermissionsPolicyInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DeleteDomainPermissionsPolicyInput) SetDomainOwner(v string) *DeleteDomainPermissionsPolicyInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetPolicyRevision sets the PolicyRevision field's value.
+func (s *DeleteDomainPermissionsPolicyInput) SetPolicyRevision(v string) *DeleteDomainPermissionsPolicyInput {
+ s.PolicyRevision = &v
+ return s
+}
+
+type DeleteDomainPermissionsPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Information about the deleted resource policy after processing the request.
+ Policy *ResourcePolicy `locationName:"policy" type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteDomainPermissionsPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteDomainPermissionsPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *DeleteDomainPermissionsPolicyOutput) SetPolicy(v *ResourcePolicy) *DeleteDomainPermissionsPolicyOutput {
+ s.Policy = v
+ return s
+}
+
+type DeletePackageVersionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"expectedStatus" type:"string" enum:"PackageVersionStatus"`
+
+ // The format of the package versions to delete. The valid values are:
+ //
+ // * npm
+ //
+ // * pypi
+ //
+ // * maven
+ //
+ // Format is a required field
+ Format *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DeletePackageVersionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePackageVersionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeletePackageVersionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeletePackageVersionsInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+ if s.Versions == nil {
+ invalidParams.Add(request.NewErrParamRequired("Versions"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DeletePackageVersionsInput) SetDomain(v string) *DeletePackageVersionsInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DeletePackageVersionsInput) SetDomainOwner(v string) *DeletePackageVersionsInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetExpectedStatus sets the ExpectedStatus field's value.
+func (s *DeletePackageVersionsInput) SetExpectedStatus(v string) *DeletePackageVersionsInput {
+ s.ExpectedStatus = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *DeletePackageVersionsInput) SetFormat(v string) *DeletePackageVersionsInput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *DeletePackageVersionsInput) SetNamespace(v string) *DeletePackageVersionsInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *DeletePackageVersionsInput) SetPackage(v string) *DeletePackageVersionsInput {
+ s.Package = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DeletePackageVersionsInput) SetRepository(v string) *DeletePackageVersionsInput {
+ s.Repository = &v
+ return s
+}
+
+// SetVersions sets the Versions field's value.
+func (s *DeletePackageVersionsInput) SetVersions(v []*string) *DeletePackageVersionsInput {
+ s.Versions = v
+ return s
+}
+
+type DeletePackageVersionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DeletePackageVersionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeletePackageVersionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetFailedVersions sets the FailedVersions field's value.
+func (s *DeletePackageVersionsOutput) SetFailedVersions(v map[string]*PackageVersionError) *DeletePackageVersionsOutput {
+ s.FailedVersions = v
+ return s
+}
+
+// SetSuccessfulVersions sets the SuccessfulVersions field's value.
+func (s *DeletePackageVersionsOutput) SetSuccessfulVersions(v map[string]*SuccessfulPackageVersionInfo) *DeletePackageVersionsOutput {
+ s.SuccessfulVersions = v
+ return s
+}
+
+type DeleteRepositoryInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DeleteRepositoryInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteRepositoryInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteRepositoryInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DeleteRepositoryInput) SetDomain(v string) *DeleteRepositoryInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DeleteRepositoryInput) SetDomainOwner(v string) *DeleteRepositoryInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DeleteRepositoryInput) SetRepository(v string) *DeleteRepositoryInput {
+ s.Repository = &v
+ return s
+}
+
+type DeleteRepositoryOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Information about the deleted repository after processing the request.
+ Repository *RepositoryDescription `locationName:"repository" type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteRepositoryOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteRepositoryOutput) GoString() string {
+ return s.String()
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DeleteRepositoryOutput) SetRepository(v *RepositoryDescription) *DeleteRepositoryOutput {
+ s.Repository = v
+ return s
+}
+
+type DeleteRepositoryPermissionsPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DeleteRepositoryPermissionsPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteRepositoryPermissionsPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteRepositoryPermissionsPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryPermissionsPolicyInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.PolicyRevision != nil && len(*s.PolicyRevision) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PolicyRevision", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DeleteRepositoryPermissionsPolicyInput) SetDomain(v string) *DeleteRepositoryPermissionsPolicyInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DeleteRepositoryPermissionsPolicyInput) SetDomainOwner(v string) *DeleteRepositoryPermissionsPolicyInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetPolicyRevision sets the PolicyRevision field's value.
+func (s *DeleteRepositoryPermissionsPolicyInput) SetPolicyRevision(v string) *DeleteRepositoryPermissionsPolicyInput {
+ s.PolicyRevision = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DeleteRepositoryPermissionsPolicyInput) SetRepository(v string) *DeleteRepositoryPermissionsPolicyInput {
+ s.Repository = &v
+ return s
+}
+
+type DeleteRepositoryPermissionsPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // Information about the deleted policy after processing the request.
+ Policy *ResourcePolicy `locationName:"policy" type:"structure"`
+}
+
+// String returns the string representation
+func (s DeleteRepositoryPermissionsPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DeleteRepositoryPermissionsPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *DeleteRepositoryPermissionsPolicyOutput) SetPolicy(v *ResourcePolicy) *DeleteRepositoryPermissionsPolicyOutput {
+ s.Policy = v
+ return s
+}
+
+type DescribeDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DescribeDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeDomainInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DescribeDomainInput) SetDomain(v string) *DescribeDomainInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DescribeDomainInput) SetDomainOwner(v string) *DescribeDomainInput {
+ s.DomainOwner = &v
+ return s
+}
+
+type DescribeDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DescribeDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DescribeDomainOutput) SetDomain(v *DomainDescription) *DescribeDomainOutput {
+ s.Domain = v
+ return s
+}
+
+type DescribePackageVersionInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DescribePackageVersionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribePackageVersionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribePackageVersionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribePackageVersionInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.PackageVersion == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageVersion"))
+ }
+ if s.PackageVersion != nil && len(*s.PackageVersion) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageVersion", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DescribePackageVersionInput) SetDomain(v string) *DescribePackageVersionInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DescribePackageVersionInput) SetDomainOwner(v string) *DescribePackageVersionInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *DescribePackageVersionInput) SetFormat(v string) *DescribePackageVersionInput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *DescribePackageVersionInput) SetNamespace(v string) *DescribePackageVersionInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *DescribePackageVersionInput) SetPackage(v string) *DescribePackageVersionInput {
+ s.Package = &v
+ return s
+}
+
+// SetPackageVersion sets the PackageVersion field's value.
+func (s *DescribePackageVersionInput) SetPackageVersion(v string) *DescribePackageVersionInput {
+ s.PackageVersion = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DescribePackageVersionInput) SetRepository(v string) *DescribePackageVersionInput {
+ s.Repository = &v
+ return s
+}
+
+type DescribePackageVersionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DescribePackageVersionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribePackageVersionOutput) GoString() string {
+ return s.String()
+}
+
+// SetPackageVersion sets the PackageVersion field's value.
+func (s *DescribePackageVersionOutput) SetPackageVersion(v *PackageVersionDescription) *DescribePackageVersionOutput {
+ s.PackageVersion = v
+ return s
+}
+
+type DescribeRepositoryInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DescribeRepositoryInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeRepositoryInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeRepositoryInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeRepositoryInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DescribeRepositoryInput) SetDomain(v string) *DescribeRepositoryInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DescribeRepositoryInput) SetDomainOwner(v string) *DescribeRepositoryInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DescribeRepositoryInput) SetRepository(v string) *DescribeRepositoryInput {
+ s.Repository = &v
+ return s
+}
+
+type DescribeRepositoryOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A RepositoryDescription object that contains the requested repository information.
+ Repository *RepositoryDescription `locationName:"repository" type:"structure"`
+}
+
+// String returns the string representation
+func (s DescribeRepositoryOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeRepositoryOutput) GoString() string {
+ return s.String()
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DescribeRepositoryOutput) SetRepository(v *RepositoryDescription) *DescribeRepositoryOutput {
+ s.Repository = v
+ return s
+}
+
+type DisassociateExternalConnectionInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DisassociateExternalConnectionInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisassociateExternalConnectionInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisassociateExternalConnectionInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisassociateExternalConnectionInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.ExternalConnection == nil {
+ invalidParams.Add(request.NewErrParamRequired("ExternalConnection"))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DisassociateExternalConnectionInput) SetDomain(v string) *DisassociateExternalConnectionInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DisassociateExternalConnectionInput) SetDomainOwner(v string) *DisassociateExternalConnectionInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetExternalConnection sets the ExternalConnection field's value.
+func (s *DisassociateExternalConnectionInput) SetExternalConnection(v string) *DisassociateExternalConnectionInput {
+ s.ExternalConnection = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DisassociateExternalConnectionInput) SetRepository(v string) *DisassociateExternalConnectionInput {
+ s.Repository = &v
+ return s
+}
+
+type DisassociateExternalConnectionOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The repository associated with the removed external connection.
+ Repository *RepositoryDescription `locationName:"repository" type:"structure"`
+}
+
+// String returns the string representation
+func (s DisassociateExternalConnectionOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisassociateExternalConnectionOutput) GoString() string {
+ return s.String()
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DisassociateExternalConnectionOutput) SetRepository(v *RepositoryDescription) *DisassociateExternalConnectionOutput {
+ s.Repository = v
+ return s
+}
+
+type DisposePackageVersionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"expectedStatus" type:"string" enum:"PackageVersionStatus"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DisposePackageVersionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisposePackageVersionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisposePackageVersionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisposePackageVersionsInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+ if s.Versions == nil {
+ invalidParams.Add(request.NewErrParamRequired("Versions"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *DisposePackageVersionsInput) SetDomain(v string) *DisposePackageVersionsInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *DisposePackageVersionsInput) SetDomainOwner(v string) *DisposePackageVersionsInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetExpectedStatus sets the ExpectedStatus field's value.
+func (s *DisposePackageVersionsInput) SetExpectedStatus(v string) *DisposePackageVersionsInput {
+ s.ExpectedStatus = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *DisposePackageVersionsInput) SetFormat(v string) *DisposePackageVersionsInput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *DisposePackageVersionsInput) SetNamespace(v string) *DisposePackageVersionsInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *DisposePackageVersionsInput) SetPackage(v string) *DisposePackageVersionsInput {
+ s.Package = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *DisposePackageVersionsInput) SetRepository(v string) *DisposePackageVersionsInput {
+ s.Repository = &v
+ return s
+}
+
+// SetVersionRevisions sets the VersionRevisions field's value.
+func (s *DisposePackageVersionsInput) SetVersionRevisions(v map[string]*string) *DisposePackageVersionsInput {
+ s.VersionRevisions = v
+ return s
+}
+
+// SetVersions sets the Versions field's value.
+func (s *DisposePackageVersionsInput) SetVersions(v []*string) *DisposePackageVersionsInput {
+ s.Versions = v
+ return s
+}
+
+type DisposePackageVersionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s DisposePackageVersionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DisposePackageVersionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetFailedVersions sets the FailedVersions field's value.
+func (s *DisposePackageVersionsOutput) SetFailedVersions(v map[string]*PackageVersionError) *DisposePackageVersionsOutput {
+ s.FailedVersions = v
+ return s
+}
+
+// SetSuccessfulVersions sets the SuccessfulVersions field's value.
+func (s *DisposePackageVersionsOutput) SetSuccessfulVersions(v map[string]*SuccessfulPackageVersionInfo) *DisposePackageVersionsOutput {
+ s.SuccessfulVersions = v
+ return s
+}
+
+// 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.
+type DomainDescription struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"status" type:"string" enum:"DomainStatus"`
+}
+
+// String returns the string representation
+func (s DomainDescription) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DomainDescription) GoString() string {
+ return s.String()
+}
+
+// SetArn sets the Arn field's value.
+func (s *DomainDescription) SetArn(v string) *DomainDescription {
+ s.Arn = &v
+ return s
+}
+
+// SetAssetSizeBytes sets the AssetSizeBytes field's value.
+func (s *DomainDescription) SetAssetSizeBytes(v int64) *DomainDescription {
+ s.AssetSizeBytes = &v
+ return s
+}
+
+// SetCreatedTime sets the CreatedTime field's value.
+func (s *DomainDescription) SetCreatedTime(v time.Time) *DomainDescription {
+ s.CreatedTime = &v
+ return s
+}
+
+// SetEncryptionKey sets the EncryptionKey field's value.
+func (s *DomainDescription) SetEncryptionKey(v string) *DomainDescription {
+ s.EncryptionKey = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *DomainDescription) SetName(v string) *DomainDescription {
+ s.Name = &v
+ return s
+}
+
+// SetOwner sets the Owner field's value.
+func (s *DomainDescription) SetOwner(v string) *DomainDescription {
+ s.Owner = &v
+ return s
+}
+
+// SetRepositoryCount sets the RepositoryCount field's value.
+func (s *DomainDescription) SetRepositoryCount(v int64) *DomainDescription {
+ s.RepositoryCount = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *DomainDescription) SetStatus(v string) *DomainDescription {
+ s.Status = &v
+ return s
+}
+
+// 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.
+type DomainSummary struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"status" type:"string" enum:"DomainStatus"`
+}
+
+// String returns the string representation
+func (s DomainSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DomainSummary) GoString() string {
+ return s.String()
+}
+
+// SetArn sets the Arn field's value.
+func (s *DomainSummary) SetArn(v string) *DomainSummary {
+ s.Arn = &v
+ return s
+}
+
+// SetCreatedTime sets the CreatedTime field's value.
+func (s *DomainSummary) SetCreatedTime(v time.Time) *DomainSummary {
+ s.CreatedTime = &v
+ return s
+}
+
+// SetEncryptionKey sets the EncryptionKey field's value.
+func (s *DomainSummary) SetEncryptionKey(v string) *DomainSummary {
+ s.EncryptionKey = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *DomainSummary) SetName(v string) *DomainSummary {
+ s.Name = &v
+ return s
+}
+
+// SetOwner sets the Owner field's value.
+func (s *DomainSummary) SetOwner(v string) *DomainSummary {
+ s.Owner = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *DomainSummary) SetStatus(v string) *DomainSummary {
+ s.Status = &v
+ return s
+}
+
+type GetAuthorizationTokenInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetAuthorizationTokenInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetAuthorizationTokenInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetAuthorizationTokenInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetAuthorizationTokenInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *GetAuthorizationTokenInput) SetDomain(v string) *GetAuthorizationTokenInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *GetAuthorizationTokenInput) SetDomainOwner(v string) *GetAuthorizationTokenInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetDurationSeconds sets the DurationSeconds field's value.
+func (s *GetAuthorizationTokenInput) SetDurationSeconds(v int64) *GetAuthorizationTokenInput {
+ s.DurationSeconds = &v
+ return s
+}
+
+type GetAuthorizationTokenOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetAuthorizationTokenOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetAuthorizationTokenOutput) GoString() string {
+ return s.String()
+}
+
+// SetAuthorizationToken sets the AuthorizationToken field's value.
+func (s *GetAuthorizationTokenOutput) SetAuthorizationToken(v string) *GetAuthorizationTokenOutput {
+ s.AuthorizationToken = &v
+ return s
+}
+
+// SetExpiration sets the Expiration field's value.
+func (s *GetAuthorizationTokenOutput) SetExpiration(v time.Time) *GetAuthorizationTokenOutput {
+ s.Expiration = &v
+ return s
+}
+
+type GetDomainPermissionsPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetDomainPermissionsPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetDomainPermissionsPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetDomainPermissionsPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetDomainPermissionsPolicyInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *GetDomainPermissionsPolicyInput) SetDomain(v string) *GetDomainPermissionsPolicyInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *GetDomainPermissionsPolicyInput) SetDomainOwner(v string) *GetDomainPermissionsPolicyInput {
+ s.DomainOwner = &v
+ return s
+}
+
+type GetDomainPermissionsPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The returned resource policy.
+ Policy *ResourcePolicy `locationName:"policy" type:"structure"`
+}
+
+// String returns the string representation
+func (s GetDomainPermissionsPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetDomainPermissionsPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *GetDomainPermissionsPolicyOutput) SetPolicy(v *ResourcePolicy) *GetDomainPermissionsPolicyOutput {
+ s.Policy = v
+ return s
+}
+
+type GetPackageVersionAssetInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetPackageVersionAssetInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetPackageVersionAssetInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetPackageVersionAssetInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetPackageVersionAssetInput"}
+ if s.Asset == nil {
+ invalidParams.Add(request.NewErrParamRequired("Asset"))
+ }
+ if s.Asset != nil && len(*s.Asset) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Asset", 1))
+ }
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.PackageVersion == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageVersion"))
+ }
+ if s.PackageVersion != nil && len(*s.PackageVersion) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageVersion", 1))
+ }
+ if s.PackageVersionRevision != nil && len(*s.PackageVersionRevision) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageVersionRevision", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAsset sets the Asset field's value.
+func (s *GetPackageVersionAssetInput) SetAsset(v string) *GetPackageVersionAssetInput {
+ s.Asset = &v
+ return s
+}
+
+// SetDomain sets the Domain field's value.
+func (s *GetPackageVersionAssetInput) SetDomain(v string) *GetPackageVersionAssetInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *GetPackageVersionAssetInput) SetDomainOwner(v string) *GetPackageVersionAssetInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *GetPackageVersionAssetInput) SetFormat(v string) *GetPackageVersionAssetInput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *GetPackageVersionAssetInput) SetNamespace(v string) *GetPackageVersionAssetInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *GetPackageVersionAssetInput) SetPackage(v string) *GetPackageVersionAssetInput {
+ s.Package = &v
+ return s
+}
+
+// SetPackageVersion sets the PackageVersion field's value.
+func (s *GetPackageVersionAssetInput) SetPackageVersion(v string) *GetPackageVersionAssetInput {
+ s.PackageVersion = &v
+ return s
+}
+
+// SetPackageVersionRevision sets the PackageVersionRevision field's value.
+func (s *GetPackageVersionAssetInput) SetPackageVersionRevision(v string) *GetPackageVersionAssetInput {
+ s.PackageVersionRevision = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *GetPackageVersionAssetInput) SetRepository(v string) *GetPackageVersionAssetInput {
+ s.Repository = &v
+ return s
+}
+
+type GetPackageVersionAssetOutput struct {
+ _ struct{} `type:"structure" payload:"Asset"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetPackageVersionAssetOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetPackageVersionAssetOutput) GoString() string {
+ return s.String()
+}
+
+// SetAsset sets the Asset field's value.
+func (s *GetPackageVersionAssetOutput) SetAsset(v io.ReadCloser) *GetPackageVersionAssetOutput {
+ s.Asset = v
+ return s
+}
+
+// SetAssetName sets the AssetName field's value.
+func (s *GetPackageVersionAssetOutput) SetAssetName(v string) *GetPackageVersionAssetOutput {
+ s.AssetName = &v
+ return s
+}
+
+// SetPackageVersion sets the PackageVersion field's value.
+func (s *GetPackageVersionAssetOutput) SetPackageVersion(v string) *GetPackageVersionAssetOutput {
+ s.PackageVersion = &v
+ return s
+}
+
+// SetPackageVersionRevision sets the PackageVersionRevision field's value.
+func (s *GetPackageVersionAssetOutput) SetPackageVersionRevision(v string) *GetPackageVersionAssetOutput {
+ s.PackageVersionRevision = &v
+ return s
+}
+
+type GetPackageVersionReadmeInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetPackageVersionReadmeInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetPackageVersionReadmeInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetPackageVersionReadmeInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetPackageVersionReadmeInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.PackageVersion == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageVersion"))
+ }
+ if s.PackageVersion != nil && len(*s.PackageVersion) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageVersion", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *GetPackageVersionReadmeInput) SetDomain(v string) *GetPackageVersionReadmeInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *GetPackageVersionReadmeInput) SetDomainOwner(v string) *GetPackageVersionReadmeInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *GetPackageVersionReadmeInput) SetFormat(v string) *GetPackageVersionReadmeInput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *GetPackageVersionReadmeInput) SetNamespace(v string) *GetPackageVersionReadmeInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *GetPackageVersionReadmeInput) SetPackage(v string) *GetPackageVersionReadmeInput {
+ s.Package = &v
+ return s
+}
+
+// SetPackageVersion sets the PackageVersion field's value.
+func (s *GetPackageVersionReadmeInput) SetPackageVersion(v string) *GetPackageVersionReadmeInput {
+ s.PackageVersion = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *GetPackageVersionReadmeInput) SetRepository(v string) *GetPackageVersionReadmeInput {
+ s.Repository = &v
+ return s
+}
+
+type GetPackageVersionReadmeOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The format of the package with the requested readme file. Valid format types
+ // are:
+ //
+ // * npm
+ //
+ // * pypi
+ //
+ // * maven
+ Format *string `locationName:"format" type:"string" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetPackageVersionReadmeOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetPackageVersionReadmeOutput) GoString() string {
+ return s.String()
+}
+
+// SetFormat sets the Format field's value.
+func (s *GetPackageVersionReadmeOutput) SetFormat(v string) *GetPackageVersionReadmeOutput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *GetPackageVersionReadmeOutput) SetNamespace(v string) *GetPackageVersionReadmeOutput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *GetPackageVersionReadmeOutput) SetPackage(v string) *GetPackageVersionReadmeOutput {
+ s.Package = &v
+ return s
+}
+
+// SetReadme sets the Readme field's value.
+func (s *GetPackageVersionReadmeOutput) SetReadme(v string) *GetPackageVersionReadmeOutput {
+ s.Readme = &v
+ return s
+}
+
+// SetVersion sets the Version field's value.
+func (s *GetPackageVersionReadmeOutput) SetVersion(v string) *GetPackageVersionReadmeOutput {
+ s.Version = &v
+ return s
+}
+
+// SetVersionRevision sets the VersionRevision field's value.
+func (s *GetPackageVersionReadmeOutput) SetVersionRevision(v string) *GetPackageVersionReadmeOutput {
+ s.VersionRevision = &v
+ return s
+}
+
+type GetRepositoryEndpointInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // The name of the repository.
+ //
+ // Repository is a required field
+ Repository *string `location:"querystring" locationName:"repository" min:"2" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s GetRepositoryEndpointInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetRepositoryEndpointInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetRepositoryEndpointInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetRepositoryEndpointInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *GetRepositoryEndpointInput) SetDomain(v string) *GetRepositoryEndpointInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *GetRepositoryEndpointInput) SetDomainOwner(v string) *GetRepositoryEndpointInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *GetRepositoryEndpointInput) SetFormat(v string) *GetRepositoryEndpointInput {
+ s.Format = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *GetRepositoryEndpointInput) SetRepository(v string) *GetRepositoryEndpointInput {
+ s.Repository = &v
+ return s
+}
+
+type GetRepositoryEndpointOutput struct {
+ _ struct{} `type:"structure"`
+
+ // A string that specifies the URL of the returned endpoint.
+ RepositoryEndpoint *string `locationName:"repositoryEndpoint" type:"string"`
+}
+
+// String returns the string representation
+func (s GetRepositoryEndpointOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetRepositoryEndpointOutput) GoString() string {
+ return s.String()
+}
+
+// SetRepositoryEndpoint sets the RepositoryEndpoint field's value.
+func (s *GetRepositoryEndpointOutput) SetRepositoryEndpoint(v string) *GetRepositoryEndpointOutput {
+ s.RepositoryEndpoint = &v
+ return s
+}
+
+type GetRepositoryPermissionsPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s GetRepositoryPermissionsPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetRepositoryPermissionsPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *GetRepositoryPermissionsPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "GetRepositoryPermissionsPolicyInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *GetRepositoryPermissionsPolicyInput) SetDomain(v string) *GetRepositoryPermissionsPolicyInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *GetRepositoryPermissionsPolicyInput) SetDomainOwner(v string) *GetRepositoryPermissionsPolicyInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *GetRepositoryPermissionsPolicyInput) SetRepository(v string) *GetRepositoryPermissionsPolicyInput {
+ s.Repository = &v
+ return s
+}
+
+type GetRepositoryPermissionsPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The returned resource policy.
+ Policy *ResourcePolicy `locationName:"policy" type:"structure"`
+}
+
+// String returns the string representation
+func (s GetRepositoryPermissionsPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s GetRepositoryPermissionsPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *GetRepositoryPermissionsPolicyOutput) SetPolicy(v *ResourcePolicy) *GetRepositoryPermissionsPolicyOutput {
+ s.Policy = v
+ return s
+}
+
+// The operation did not succeed because of an error that occurred inside AWS
+// CodeArtifact.
+type InternalServerException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s InternalServerException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s InternalServerException) GoString() string {
+ return s.String()
+}
+
+func newErrorInternalServerException(v protocol.ResponseMetadata) error {
+ return &InternalServerException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *InternalServerException) Code() string {
+ return "InternalServerException"
+}
+
+// Message returns the exception's message.
+func (s *InternalServerException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *InternalServerException) OrigErr() error {
+ return nil
+}
+
+func (s *InternalServerException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Details of the license data.
+type LicenseInfo struct {
+ _ struct{} `type:"structure"`
+
+ // Name of the license.
+ Name *string `locationName:"name" type:"string"`
+
+ // The URL for license data.
+ Url *string `locationName:"url" type:"string"`
+}
+
+// String returns the string representation
+func (s LicenseInfo) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s LicenseInfo) GoString() string {
+ return s.String()
+}
+
+// SetName sets the Name field's value.
+func (s *LicenseInfo) SetName(v string) *LicenseInfo {
+ s.Name = &v
+ return s
+}
+
+// SetUrl sets the Url field's value.
+func (s *LicenseInfo) SetUrl(v string) *LicenseInfo {
+ s.Url = &v
+ return s
+}
+
+type ListDomainsInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListDomainsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDomainsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListDomainsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListDomainsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListDomainsInput) SetMaxResults(v int64) *ListDomainsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDomainsInput) SetNextToken(v string) *ListDomainsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListDomainsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListDomainsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListDomainsOutput) GoString() string {
+ return s.String()
+}
+
+// SetDomains sets the Domains field's value.
+func (s *ListDomainsOutput) SetDomains(v []*DomainSummary) *ListDomainsOutput {
+ s.Domains = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListDomainsOutput) SetNextToken(v string) *ListDomainsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type ListPackageVersionAssetsInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListPackageVersionAssetsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackageVersionAssetsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListPackageVersionAssetsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListPackageVersionAssetsInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.PackageVersion == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageVersion"))
+ }
+ if s.PackageVersion != nil && len(*s.PackageVersion) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageVersion", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *ListPackageVersionAssetsInput) SetDomain(v string) *ListPackageVersionAssetsInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *ListPackageVersionAssetsInput) SetDomainOwner(v string) *ListPackageVersionAssetsInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *ListPackageVersionAssetsInput) SetFormat(v string) *ListPackageVersionAssetsInput {
+ s.Format = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListPackageVersionAssetsInput) SetMaxResults(v int64) *ListPackageVersionAssetsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *ListPackageVersionAssetsInput) SetNamespace(v string) *ListPackageVersionAssetsInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackageVersionAssetsInput) SetNextToken(v string) *ListPackageVersionAssetsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *ListPackageVersionAssetsInput) SetPackage(v string) *ListPackageVersionAssetsInput {
+ s.Package = &v
+ return s
+}
+
+// SetPackageVersion sets the PackageVersion field's value.
+func (s *ListPackageVersionAssetsInput) SetPackageVersion(v string) *ListPackageVersionAssetsInput {
+ s.PackageVersion = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *ListPackageVersionAssetsInput) SetRepository(v string) *ListPackageVersionAssetsInput {
+ s.Repository = &v
+ return s
+}
+
+type ListPackageVersionAssetsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"format" type:"string" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListPackageVersionAssetsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackageVersionAssetsOutput) GoString() string {
+ return s.String()
+}
+
+// SetAssets sets the Assets field's value.
+func (s *ListPackageVersionAssetsOutput) SetAssets(v []*AssetSummary) *ListPackageVersionAssetsOutput {
+ s.Assets = v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *ListPackageVersionAssetsOutput) SetFormat(v string) *ListPackageVersionAssetsOutput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *ListPackageVersionAssetsOutput) SetNamespace(v string) *ListPackageVersionAssetsOutput {
+ s.Namespace = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackageVersionAssetsOutput) SetNextToken(v string) *ListPackageVersionAssetsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *ListPackageVersionAssetsOutput) SetPackage(v string) *ListPackageVersionAssetsOutput {
+ s.Package = &v
+ return s
+}
+
+// SetVersion sets the Version field's value.
+func (s *ListPackageVersionAssetsOutput) SetVersion(v string) *ListPackageVersionAssetsOutput {
+ s.Version = &v
+ return s
+}
+
+// SetVersionRevision sets the VersionRevision field's value.
+func (s *ListPackageVersionAssetsOutput) SetVersionRevision(v string) *ListPackageVersionAssetsOutput {
+ s.VersionRevision = &v
+ return s
+}
+
+type ListPackageVersionDependenciesInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListPackageVersionDependenciesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackageVersionDependenciesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListPackageVersionDependenciesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListPackageVersionDependenciesInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.PackageVersion == nil {
+ invalidParams.Add(request.NewErrParamRequired("PackageVersion"))
+ }
+ if s.PackageVersion != nil && len(*s.PackageVersion) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackageVersion", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *ListPackageVersionDependenciesInput) SetDomain(v string) *ListPackageVersionDependenciesInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *ListPackageVersionDependenciesInput) SetDomainOwner(v string) *ListPackageVersionDependenciesInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *ListPackageVersionDependenciesInput) SetFormat(v string) *ListPackageVersionDependenciesInput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *ListPackageVersionDependenciesInput) SetNamespace(v string) *ListPackageVersionDependenciesInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackageVersionDependenciesInput) SetNextToken(v string) *ListPackageVersionDependenciesInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *ListPackageVersionDependenciesInput) SetPackage(v string) *ListPackageVersionDependenciesInput {
+ s.Package = &v
+ return s
+}
+
+// SetPackageVersion sets the PackageVersion field's value.
+func (s *ListPackageVersionDependenciesInput) SetPackageVersion(v string) *ListPackageVersionDependenciesInput {
+ s.PackageVersion = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *ListPackageVersionDependenciesInput) SetRepository(v string) *ListPackageVersionDependenciesInput {
+ s.Repository = &v
+ return s
+}
+
+type ListPackageVersionDependenciesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"format" type:"string" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListPackageVersionDependenciesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackageVersionDependenciesOutput) GoString() string {
+ return s.String()
+}
+
+// SetDependencies sets the Dependencies field's value.
+func (s *ListPackageVersionDependenciesOutput) SetDependencies(v []*PackageDependency) *ListPackageVersionDependenciesOutput {
+ s.Dependencies = v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *ListPackageVersionDependenciesOutput) SetFormat(v string) *ListPackageVersionDependenciesOutput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *ListPackageVersionDependenciesOutput) SetNamespace(v string) *ListPackageVersionDependenciesOutput {
+ s.Namespace = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackageVersionDependenciesOutput) SetNextToken(v string) *ListPackageVersionDependenciesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *ListPackageVersionDependenciesOutput) SetPackage(v string) *ListPackageVersionDependenciesOutput {
+ s.Package = &v
+ return s
+}
+
+// SetVersion sets the Version field's value.
+func (s *ListPackageVersionDependenciesOutput) SetVersion(v string) *ListPackageVersionDependenciesOutput {
+ s.Version = &v
+ return s
+}
+
+// SetVersionRevision sets the VersionRevision field's value.
+func (s *ListPackageVersionDependenciesOutput) SetVersionRevision(v string) *ListPackageVersionDependenciesOutput {
+ s.VersionRevision = &v
+ return s
+}
+
+type ListPackageVersionsInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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 *string `location:"querystring" locationName:"sortBy" type:"string" enum:"PackageVersionSortType"`
+
+ // 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 *string `location:"querystring" locationName:"status" type:"string" enum:"PackageVersionStatus"`
+}
+
+// String returns the string representation
+func (s ListPackageVersionsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackageVersionsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListPackageVersionsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListPackageVersionsInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *ListPackageVersionsInput) SetDomain(v string) *ListPackageVersionsInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *ListPackageVersionsInput) SetDomainOwner(v string) *ListPackageVersionsInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *ListPackageVersionsInput) SetFormat(v string) *ListPackageVersionsInput {
+ s.Format = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListPackageVersionsInput) SetMaxResults(v int64) *ListPackageVersionsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *ListPackageVersionsInput) SetNamespace(v string) *ListPackageVersionsInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackageVersionsInput) SetNextToken(v string) *ListPackageVersionsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *ListPackageVersionsInput) SetPackage(v string) *ListPackageVersionsInput {
+ s.Package = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *ListPackageVersionsInput) SetRepository(v string) *ListPackageVersionsInput {
+ s.Repository = &v
+ return s
+}
+
+// SetSortBy sets the SortBy field's value.
+func (s *ListPackageVersionsInput) SetSortBy(v string) *ListPackageVersionsInput {
+ s.SortBy = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *ListPackageVersionsInput) SetStatus(v string) *ListPackageVersionsInput {
+ s.Status = &v
+ return s
+}
+
+type ListPackageVersionsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"format" type:"string" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListPackageVersionsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackageVersionsOutput) GoString() string {
+ return s.String()
+}
+
+// SetDefaultDisplayVersion sets the DefaultDisplayVersion field's value.
+func (s *ListPackageVersionsOutput) SetDefaultDisplayVersion(v string) *ListPackageVersionsOutput {
+ s.DefaultDisplayVersion = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *ListPackageVersionsOutput) SetFormat(v string) *ListPackageVersionsOutput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *ListPackageVersionsOutput) SetNamespace(v string) *ListPackageVersionsOutput {
+ s.Namespace = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackageVersionsOutput) SetNextToken(v string) *ListPackageVersionsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *ListPackageVersionsOutput) SetPackage(v string) *ListPackageVersionsOutput {
+ s.Package = &v
+ return s
+}
+
+// SetVersions sets the Versions field's value.
+func (s *ListPackageVersionsOutput) SetVersions(v []*PackageVersionSummary) *ListPackageVersionsOutput {
+ s.Versions = v
+ return s
+}
+
+type ListPackagesInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListPackagesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackagesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListPackagesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListPackagesInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.PackagePrefix != nil && len(*s.PackagePrefix) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PackagePrefix", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *ListPackagesInput) SetDomain(v string) *ListPackagesInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *ListPackagesInput) SetDomainOwner(v string) *ListPackagesInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *ListPackagesInput) SetFormat(v string) *ListPackagesInput {
+ s.Format = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListPackagesInput) SetMaxResults(v int64) *ListPackagesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *ListPackagesInput) SetNamespace(v string) *ListPackagesInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackagesInput) SetNextToken(v string) *ListPackagesInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackagePrefix sets the PackagePrefix field's value.
+func (s *ListPackagesInput) SetPackagePrefix(v string) *ListPackagesInput {
+ s.PackagePrefix = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *ListPackagesInput) SetRepository(v string) *ListPackagesInput {
+ s.Repository = &v
+ return s
+}
+
+type ListPackagesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListPackagesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListPackagesOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPackagesOutput) SetNextToken(v string) *ListPackagesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPackages sets the Packages field's value.
+func (s *ListPackagesOutput) SetPackages(v []*PackageSummary) *ListPackagesOutput {
+ s.Packages = v
+ return s
+}
+
+type ListRepositoriesInDomainInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListRepositoriesInDomainInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListRepositoriesInDomainInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListRepositoriesInDomainInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListRepositoriesInDomainInput"}
+ if s.AdministratorAccount != nil && len(*s.AdministratorAccount) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("AdministratorAccount", 12))
+ }
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.RepositoryPrefix != nil && len(*s.RepositoryPrefix) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("RepositoryPrefix", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAdministratorAccount sets the AdministratorAccount field's value.
+func (s *ListRepositoriesInDomainInput) SetAdministratorAccount(v string) *ListRepositoriesInDomainInput {
+ s.AdministratorAccount = &v
+ return s
+}
+
+// SetDomain sets the Domain field's value.
+func (s *ListRepositoriesInDomainInput) SetDomain(v string) *ListRepositoriesInDomainInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *ListRepositoriesInDomainInput) SetDomainOwner(v string) *ListRepositoriesInDomainInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListRepositoriesInDomainInput) SetMaxResults(v int64) *ListRepositoriesInDomainInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListRepositoriesInDomainInput) SetNextToken(v string) *ListRepositoriesInDomainInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetRepositoryPrefix sets the RepositoryPrefix field's value.
+func (s *ListRepositoriesInDomainInput) SetRepositoryPrefix(v string) *ListRepositoriesInDomainInput {
+ s.RepositoryPrefix = &v
+ return s
+}
+
+type ListRepositoriesInDomainOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListRepositoriesInDomainOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListRepositoriesInDomainOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListRepositoriesInDomainOutput) SetNextToken(v string) *ListRepositoriesInDomainOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetRepositories sets the Repositories field's value.
+func (s *ListRepositoriesInDomainOutput) SetRepositories(v []*RepositorySummary) *ListRepositoriesInDomainOutput {
+ s.Repositories = v
+ return s
+}
+
+type ListRepositoriesInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListRepositoriesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListRepositoriesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListRepositoriesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListRepositoriesInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.RepositoryPrefix != nil && len(*s.RepositoryPrefix) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("RepositoryPrefix", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListRepositoriesInput) SetMaxResults(v int64) *ListRepositoriesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetRepositoryPrefix sets the RepositoryPrefix field's value.
+func (s *ListRepositoriesInput) SetRepositoryPrefix(v string) *ListRepositoriesInput {
+ s.RepositoryPrefix = &v
+ return s
+}
+
+type ListRepositoriesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ListRepositoriesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ListRepositoriesOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetRepositories sets the Repositories field's value.
+func (s *ListRepositoriesOutput) SetRepositories(v []*RepositorySummary) *ListRepositoriesOutput {
+ s.Repositories = v
+ return s
+}
+
+// Details about a package dependency.
+type PackageDependency struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s PackageDependency) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PackageDependency) GoString() string {
+ return s.String()
+}
+
+// SetDependencyType sets the DependencyType field's value.
+func (s *PackageDependency) SetDependencyType(v string) *PackageDependency {
+ s.DependencyType = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *PackageDependency) SetNamespace(v string) *PackageDependency {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *PackageDependency) SetPackage(v string) *PackageDependency {
+ s.Package = &v
+ return s
+}
+
+// SetVersionRequirement sets the VersionRequirement field's value.
+func (s *PackageDependency) SetVersionRequirement(v string) *PackageDependency {
+ s.VersionRequirement = &v
+ return s
+}
+
+// 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.
+type PackageSummary struct {
+ _ struct{} `type:"structure"`
+
+ // The format of the package. Valid values are:
+ //
+ // * npm
+ //
+ // * pypi
+ //
+ // * maven
+ Format *string `locationName:"format" type:"string" enum:"PackageFormat"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s PackageSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PackageSummary) GoString() string {
+ return s.String()
+}
+
+// SetFormat sets the Format field's value.
+func (s *PackageSummary) SetFormat(v string) *PackageSummary {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *PackageSummary) SetNamespace(v string) *PackageSummary {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *PackageSummary) SetPackage(v string) *PackageSummary {
+ s.Package = &v
+ return s
+}
+
+// Details about a package version.
+type PackageVersionDescription struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"format" type:"string" enum:"PackageFormat"`
+
+ // 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 *string `locationName:"status" type:"string" enum:"PackageVersionStatus"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s PackageVersionDescription) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PackageVersionDescription) GoString() string {
+ return s.String()
+}
+
+// SetDisplayName sets the DisplayName field's value.
+func (s *PackageVersionDescription) SetDisplayName(v string) *PackageVersionDescription {
+ s.DisplayName = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *PackageVersionDescription) SetFormat(v string) *PackageVersionDescription {
+ s.Format = &v
+ return s
+}
+
+// SetHomePage sets the HomePage field's value.
+func (s *PackageVersionDescription) SetHomePage(v string) *PackageVersionDescription {
+ s.HomePage = &v
+ return s
+}
+
+// SetLicenses sets the Licenses field's value.
+func (s *PackageVersionDescription) SetLicenses(v []*LicenseInfo) *PackageVersionDescription {
+ s.Licenses = v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *PackageVersionDescription) SetNamespace(v string) *PackageVersionDescription {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackageName sets the PackageName field's value.
+func (s *PackageVersionDescription) SetPackageName(v string) *PackageVersionDescription {
+ s.PackageName = &v
+ return s
+}
+
+// SetPublishedTime sets the PublishedTime field's value.
+func (s *PackageVersionDescription) SetPublishedTime(v time.Time) *PackageVersionDescription {
+ s.PublishedTime = &v
+ return s
+}
+
+// SetRevision sets the Revision field's value.
+func (s *PackageVersionDescription) SetRevision(v string) *PackageVersionDescription {
+ s.Revision = &v
+ return s
+}
+
+// SetSourceCodeRepository sets the SourceCodeRepository field's value.
+func (s *PackageVersionDescription) SetSourceCodeRepository(v string) *PackageVersionDescription {
+ s.SourceCodeRepository = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *PackageVersionDescription) SetStatus(v string) *PackageVersionDescription {
+ s.Status = &v
+ return s
+}
+
+// SetSummary sets the Summary field's value.
+func (s *PackageVersionDescription) SetSummary(v string) *PackageVersionDescription {
+ s.Summary = &v
+ return s
+}
+
+// SetVersion sets the Version field's value.
+func (s *PackageVersionDescription) SetVersion(v string) *PackageVersionDescription {
+ s.Version = &v
+ return s
+}
+
+// An error associated with package.
+type PackageVersionError struct {
+ _ struct{} `type:"structure"`
+
+ // The error code associated with the error. Valid error codes are:
+ //
+ // * ALREADY_EXISTS
+ //
+ // * MISMATCHED_REVISION
+ //
+ // * MISMATCHED_STATUS
+ //
+ // * NOT_ALLOWED
+ //
+ // * NOT_FOUND
+ //
+ // * SKIPPED
+ ErrorCode *string `locationName:"errorCode" type:"string" enum:"PackageVersionErrorCode"`
+
+ // The error message associated with the error.
+ ErrorMessage *string `locationName:"errorMessage" type:"string"`
+}
+
+// String returns the string representation
+func (s PackageVersionError) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PackageVersionError) GoString() string {
+ return s.String()
+}
+
+// SetErrorCode sets the ErrorCode field's value.
+func (s *PackageVersionError) SetErrorCode(v string) *PackageVersionError {
+ s.ErrorCode = &v
+ return s
+}
+
+// SetErrorMessage sets the ErrorMessage field's value.
+func (s *PackageVersionError) SetErrorMessage(v string) *PackageVersionError {
+ s.ErrorMessage = &v
+ return s
+}
+
+// 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.
+type PackageVersionSummary struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"status" type:"string" required:"true" enum:"PackageVersionStatus"`
+
+ // Information about a package version.
+ //
+ // Version is a required field
+ Version *string `locationName:"version" min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s PackageVersionSummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PackageVersionSummary) GoString() string {
+ return s.String()
+}
+
+// SetRevision sets the Revision field's value.
+func (s *PackageVersionSummary) SetRevision(v string) *PackageVersionSummary {
+ s.Revision = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *PackageVersionSummary) SetStatus(v string) *PackageVersionSummary {
+ s.Status = &v
+ return s
+}
+
+// SetVersion sets the Version field's value.
+func (s *PackageVersionSummary) SetVersion(v string) *PackageVersionSummary {
+ s.Version = &v
+ return s
+}
+
+type PutDomainPermissionsPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s PutDomainPermissionsPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutDomainPermissionsPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutDomainPermissionsPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutDomainPermissionsPolicyInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.PolicyDocument == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
+ }
+ if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1))
+ }
+ if s.PolicyRevision != nil && len(*s.PolicyRevision) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PolicyRevision", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *PutDomainPermissionsPolicyInput) SetDomain(v string) *PutDomainPermissionsPolicyInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *PutDomainPermissionsPolicyInput) SetDomainOwner(v string) *PutDomainPermissionsPolicyInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetPolicyDocument sets the PolicyDocument field's value.
+func (s *PutDomainPermissionsPolicyInput) SetPolicyDocument(v string) *PutDomainPermissionsPolicyInput {
+ s.PolicyDocument = &v
+ return s
+}
+
+// SetPolicyRevision sets the PolicyRevision field's value.
+func (s *PutDomainPermissionsPolicyInput) SetPolicyRevision(v string) *PutDomainPermissionsPolicyInput {
+ s.PolicyRevision = &v
+ return s
+}
+
+type PutDomainPermissionsPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The resource policy that was set after processing the request.
+ Policy *ResourcePolicy `locationName:"policy" type:"structure"`
+}
+
+// String returns the string representation
+func (s PutDomainPermissionsPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutDomainPermissionsPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *PutDomainPermissionsPolicyOutput) SetPolicy(v *ResourcePolicy) *PutDomainPermissionsPolicyOutput {
+ s.Policy = v
+ return s
+}
+
+type PutRepositoryPermissionsPolicyInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s PutRepositoryPermissionsPolicyInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutRepositoryPermissionsPolicyInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutRepositoryPermissionsPolicyInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutRepositoryPermissionsPolicyInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.PolicyDocument == nil {
+ invalidParams.Add(request.NewErrParamRequired("PolicyDocument"))
+ }
+ if s.PolicyDocument != nil && len(*s.PolicyDocument) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PolicyDocument", 1))
+ }
+ if s.PolicyRevision != nil && len(*s.PolicyRevision) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PolicyRevision", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *PutRepositoryPermissionsPolicyInput) SetDomain(v string) *PutRepositoryPermissionsPolicyInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *PutRepositoryPermissionsPolicyInput) SetDomainOwner(v string) *PutRepositoryPermissionsPolicyInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetPolicyDocument sets the PolicyDocument field's value.
+func (s *PutRepositoryPermissionsPolicyInput) SetPolicyDocument(v string) *PutRepositoryPermissionsPolicyInput {
+ s.PolicyDocument = &v
+ return s
+}
+
+// SetPolicyRevision sets the PolicyRevision field's value.
+func (s *PutRepositoryPermissionsPolicyInput) SetPolicyRevision(v string) *PutRepositoryPermissionsPolicyInput {
+ s.PolicyRevision = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *PutRepositoryPermissionsPolicyInput) SetRepository(v string) *PutRepositoryPermissionsPolicyInput {
+ s.Repository = &v
+ return s
+}
+
+type PutRepositoryPermissionsPolicyOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The resource policy that was set after processing the request.
+ Policy *ResourcePolicy `locationName:"policy" type:"structure"`
+}
+
+// String returns the string representation
+func (s PutRepositoryPermissionsPolicyOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s PutRepositoryPermissionsPolicyOutput) GoString() string {
+ return s.String()
+}
+
+// SetPolicy sets the Policy field's value.
+func (s *PutRepositoryPermissionsPolicyOutput) SetPolicy(v *ResourcePolicy) *PutRepositoryPermissionsPolicyOutput {
+ s.Policy = v
+ return s
+}
+
+// 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.
+type RepositoryDescription struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s RepositoryDescription) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RepositoryDescription) GoString() string {
+ return s.String()
+}
+
+// SetAdministratorAccount sets the AdministratorAccount field's value.
+func (s *RepositoryDescription) SetAdministratorAccount(v string) *RepositoryDescription {
+ s.AdministratorAccount = &v
+ return s
+}
+
+// SetArn sets the Arn field's value.
+func (s *RepositoryDescription) SetArn(v string) *RepositoryDescription {
+ s.Arn = &v
+ return s
+}
+
+// SetDescription sets the Description field's value.
+func (s *RepositoryDescription) SetDescription(v string) *RepositoryDescription {
+ s.Description = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *RepositoryDescription) SetDomainName(v string) *RepositoryDescription {
+ s.DomainName = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *RepositoryDescription) SetDomainOwner(v string) *RepositoryDescription {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetExternalConnections sets the ExternalConnections field's value.
+func (s *RepositoryDescription) SetExternalConnections(v []*RepositoryExternalConnectionInfo) *RepositoryDescription {
+ s.ExternalConnections = v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *RepositoryDescription) SetName(v string) *RepositoryDescription {
+ s.Name = &v
+ return s
+}
+
+// SetUpstreams sets the Upstreams field's value.
+func (s *RepositoryDescription) SetUpstreams(v []*UpstreamRepositoryInfo) *RepositoryDescription {
+ s.Upstreams = v
+ return s
+}
+
+// Contains information about the external connection of a repository.
+type RepositoryExternalConnectionInfo struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"packageFormat" type:"string" enum:"PackageFormat"`
+
+ // The status of the external connection of a repository. There is one valid
+ // value, Available.
+ Status *string `locationName:"status" type:"string" enum:"ExternalConnectionStatus"`
+}
+
+// String returns the string representation
+func (s RepositoryExternalConnectionInfo) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RepositoryExternalConnectionInfo) GoString() string {
+ return s.String()
+}
+
+// SetExternalConnectionName sets the ExternalConnectionName field's value.
+func (s *RepositoryExternalConnectionInfo) SetExternalConnectionName(v string) *RepositoryExternalConnectionInfo {
+ s.ExternalConnectionName = &v
+ return s
+}
+
+// SetPackageFormat sets the PackageFormat field's value.
+func (s *RepositoryExternalConnectionInfo) SetPackageFormat(v string) *RepositoryExternalConnectionInfo {
+ s.PackageFormat = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *RepositoryExternalConnectionInfo) SetStatus(v string) *RepositoryExternalConnectionInfo {
+ s.Status = &v
+ return s
+}
+
+// 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.
+type RepositorySummary struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s RepositorySummary) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RepositorySummary) GoString() string {
+ return s.String()
+}
+
+// SetAdministratorAccount sets the AdministratorAccount field's value.
+func (s *RepositorySummary) SetAdministratorAccount(v string) *RepositorySummary {
+ s.AdministratorAccount = &v
+ return s
+}
+
+// SetArn sets the Arn field's value.
+func (s *RepositorySummary) SetArn(v string) *RepositorySummary {
+ s.Arn = &v
+ return s
+}
+
+// SetDescription sets the Description field's value.
+func (s *RepositorySummary) SetDescription(v string) *RepositorySummary {
+ s.Description = &v
+ return s
+}
+
+// SetDomainName sets the DomainName field's value.
+func (s *RepositorySummary) SetDomainName(v string) *RepositorySummary {
+ s.DomainName = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *RepositorySummary) SetDomainOwner(v string) *RepositorySummary {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *RepositorySummary) SetName(v string) *RepositorySummary {
+ s.Name = &v
+ return s
+}
+
+// The operation did not succeed because the resource requested is not found
+// in the service.
+type ResourceNotFoundException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ // The ID of the resource.
+ ResourceId *string `locationName:"resourceId" type:"string"`
+
+ // The type of AWS resource.
+ ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
+}
+
+// String returns the string representation
+func (s ResourceNotFoundException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResourceNotFoundException) GoString() string {
+ return s.String()
+}
+
+func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
+ return &ResourceNotFoundException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ResourceNotFoundException) Code() string {
+ return "ResourceNotFoundException"
+}
+
+// Message returns the exception's message.
+func (s *ResourceNotFoundException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ResourceNotFoundException) OrigErr() error {
+ return nil
+}
+
+func (s *ResourceNotFoundException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// An AWS CodeArtifact resource policy that contains a resource ARN, document
+// details, and a revision.
+type ResourcePolicy struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s ResourcePolicy) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ResourcePolicy) GoString() string {
+ return s.String()
+}
+
+// SetDocument sets the Document field's value.
+func (s *ResourcePolicy) SetDocument(v string) *ResourcePolicy {
+ s.Document = &v
+ return s
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ResourcePolicy) SetResourceArn(v string) *ResourcePolicy {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetRevision sets the Revision field's value.
+func (s *ResourcePolicy) SetRevision(v string) *ResourcePolicy {
+ s.Revision = &v
+ return s
+}
+
+// The operation did not succeed because it would have exceeded a service limit
+// for your account.
+type ServiceQuotaExceededException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ // The ID of the resource.
+ ResourceId *string `locationName:"resourceId" type:"string"`
+
+ // The type of AWS resource.
+ ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
+}
+
+// String returns the string representation
+func (s ServiceQuotaExceededException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ServiceQuotaExceededException) GoString() string {
+ return s.String()
+}
+
+func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
+ return &ServiceQuotaExceededException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ServiceQuotaExceededException) Code() string {
+ return "ServiceQuotaExceededException"
+}
+
+// Message returns the exception's message.
+func (s *ServiceQuotaExceededException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ServiceQuotaExceededException) OrigErr() error {
+ return nil
+}
+
+func (s *ServiceQuotaExceededException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ServiceQuotaExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ServiceQuotaExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Contains the revision and status of a package version.
+type SuccessfulPackageVersionInfo struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"status" type:"string" enum:"PackageVersionStatus"`
+}
+
+// String returns the string representation
+func (s SuccessfulPackageVersionInfo) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s SuccessfulPackageVersionInfo) GoString() string {
+ return s.String()
+}
+
+// SetRevision sets the Revision field's value.
+func (s *SuccessfulPackageVersionInfo) SetRevision(v string) *SuccessfulPackageVersionInfo {
+ s.Revision = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *SuccessfulPackageVersionInfo) SetStatus(v string) *SuccessfulPackageVersionInfo {
+ s.Status = &v
+ return s
+}
+
+// The operation did not succeed because too many requests are sent to the service.
+type ThrottlingException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ // The time period, in seconds, to wait before retrying the request.
+ RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"`
+}
+
+// String returns the string representation
+func (s ThrottlingException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ThrottlingException) GoString() string {
+ return s.String()
+}
+
+func newErrorThrottlingException(v protocol.ResponseMetadata) error {
+ return &ThrottlingException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ThrottlingException) Code() string {
+ return "ThrottlingException"
+}
+
+// Message returns the exception's message.
+func (s *ThrottlingException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ThrottlingException) OrigErr() error {
+ return nil
+}
+
+func (s *ThrottlingException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type UpdatePackageVersionsStatusInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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 *string `locationName:"expectedStatus" type:"string" enum:"PackageVersionStatus"`
+
+ // 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 *string `location:"querystring" locationName:"format" type:"string" required:"true" enum:"PackageFormat"`
+
+ // 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 *string `locationName:"targetStatus" type:"string" required:"true" enum:"PackageVersionStatus"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s UpdatePackageVersionsStatusInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdatePackageVersionsStatusInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdatePackageVersionsStatusInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdatePackageVersionsStatusInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Format == nil {
+ invalidParams.Add(request.NewErrParamRequired("Format"))
+ }
+ if s.Namespace != nil && len(*s.Namespace) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Namespace", 1))
+ }
+ if s.Package == nil {
+ invalidParams.Add(request.NewErrParamRequired("Package"))
+ }
+ if s.Package != nil && len(*s.Package) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Package", 1))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+ if s.TargetStatus == nil {
+ invalidParams.Add(request.NewErrParamRequired("TargetStatus"))
+ }
+ if s.Versions == nil {
+ invalidParams.Add(request.NewErrParamRequired("Versions"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDomain sets the Domain field's value.
+func (s *UpdatePackageVersionsStatusInput) SetDomain(v string) *UpdatePackageVersionsStatusInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *UpdatePackageVersionsStatusInput) SetDomainOwner(v string) *UpdatePackageVersionsStatusInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetExpectedStatus sets the ExpectedStatus field's value.
+func (s *UpdatePackageVersionsStatusInput) SetExpectedStatus(v string) *UpdatePackageVersionsStatusInput {
+ s.ExpectedStatus = &v
+ return s
+}
+
+// SetFormat sets the Format field's value.
+func (s *UpdatePackageVersionsStatusInput) SetFormat(v string) *UpdatePackageVersionsStatusInput {
+ s.Format = &v
+ return s
+}
+
+// SetNamespace sets the Namespace field's value.
+func (s *UpdatePackageVersionsStatusInput) SetNamespace(v string) *UpdatePackageVersionsStatusInput {
+ s.Namespace = &v
+ return s
+}
+
+// SetPackage sets the Package field's value.
+func (s *UpdatePackageVersionsStatusInput) SetPackage(v string) *UpdatePackageVersionsStatusInput {
+ s.Package = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *UpdatePackageVersionsStatusInput) SetRepository(v string) *UpdatePackageVersionsStatusInput {
+ s.Repository = &v
+ return s
+}
+
+// SetTargetStatus sets the TargetStatus field's value.
+func (s *UpdatePackageVersionsStatusInput) SetTargetStatus(v string) *UpdatePackageVersionsStatusInput {
+ s.TargetStatus = &v
+ return s
+}
+
+// SetVersionRevisions sets the VersionRevisions field's value.
+func (s *UpdatePackageVersionsStatusInput) SetVersionRevisions(v map[string]*string) *UpdatePackageVersionsStatusInput {
+ s.VersionRevisions = v
+ return s
+}
+
+// SetVersions sets the Versions field's value.
+func (s *UpdatePackageVersionsStatusInput) SetVersions(v []*string) *UpdatePackageVersionsStatusInput {
+ s.Versions = v
+ return s
+}
+
+type UpdatePackageVersionsStatusOutput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s UpdatePackageVersionsStatusOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdatePackageVersionsStatusOutput) GoString() string {
+ return s.String()
+}
+
+// SetFailedVersions sets the FailedVersions field's value.
+func (s *UpdatePackageVersionsStatusOutput) SetFailedVersions(v map[string]*PackageVersionError) *UpdatePackageVersionsStatusOutput {
+ s.FailedVersions = v
+ return s
+}
+
+// SetSuccessfulVersions sets the SuccessfulVersions field's value.
+func (s *UpdatePackageVersionsStatusOutput) SetSuccessfulVersions(v map[string]*SuccessfulPackageVersionInfo) *UpdatePackageVersionsStatusOutput {
+ s.SuccessfulVersions = v
+ return s
+}
+
+type UpdateRepositoryInput struct {
+ _ struct{} `type:"structure"`
+
+ // 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"`
+}
+
+// String returns the string representation
+func (s UpdateRepositoryInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateRepositoryInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateRepositoryInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateRepositoryInput"}
+ if s.Domain == nil {
+ invalidParams.Add(request.NewErrParamRequired("Domain"))
+ }
+ if s.Domain != nil && len(*s.Domain) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Domain", 2))
+ }
+ if s.DomainOwner != nil && len(*s.DomainOwner) < 12 {
+ invalidParams.Add(request.NewErrParamMinLen("DomainOwner", 12))
+ }
+ if s.Repository == nil {
+ invalidParams.Add(request.NewErrParamRequired("Repository"))
+ }
+ if s.Repository != nil && len(*s.Repository) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("Repository", 2))
+ }
+ if s.Upstreams != nil {
+ for i, v := range s.Upstreams {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Upstreams", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDescription sets the Description field's value.
+func (s *UpdateRepositoryInput) SetDescription(v string) *UpdateRepositoryInput {
+ s.Description = &v
+ return s
+}
+
+// SetDomain sets the Domain field's value.
+func (s *UpdateRepositoryInput) SetDomain(v string) *UpdateRepositoryInput {
+ s.Domain = &v
+ return s
+}
+
+// SetDomainOwner sets the DomainOwner field's value.
+func (s *UpdateRepositoryInput) SetDomainOwner(v string) *UpdateRepositoryInput {
+ s.DomainOwner = &v
+ return s
+}
+
+// SetRepository sets the Repository field's value.
+func (s *UpdateRepositoryInput) SetRepository(v string) *UpdateRepositoryInput {
+ s.Repository = &v
+ return s
+}
+
+// SetUpstreams sets the Upstreams field's value.
+func (s *UpdateRepositoryInput) SetUpstreams(v []*UpstreamRepository) *UpdateRepositoryInput {
+ s.Upstreams = v
+ return s
+}
+
+type UpdateRepositoryOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The updated repository.
+ Repository *RepositoryDescription `locationName:"repository" type:"structure"`
+}
+
+// String returns the string representation
+func (s UpdateRepositoryOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpdateRepositoryOutput) GoString() string {
+ return s.String()
+}
+
+// SetRepository sets the Repository field's value.
+func (s *UpdateRepositoryOutput) SetRepository(v *RepositoryDescription) *UpdateRepositoryOutput {
+ s.Repository = v
+ return s
+}
+
+// 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).
+type UpstreamRepository struct {
+ _ struct{} `type:"structure"`
+
+ // The name of an upstream repository.
+ //
+ // RepositoryName is a required field
+ RepositoryName *string `locationName:"repositoryName" min:"2" type:"string" required:"true"`
+}
+
+// String returns the string representation
+func (s UpstreamRepository) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpstreamRepository) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpstreamRepository) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpstreamRepository"}
+ if s.RepositoryName == nil {
+ invalidParams.Add(request.NewErrParamRequired("RepositoryName"))
+ }
+ if s.RepositoryName != nil && len(*s.RepositoryName) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 2))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetRepositoryName sets the RepositoryName field's value.
+func (s *UpstreamRepository) SetRepositoryName(v string) *UpstreamRepository {
+ s.RepositoryName = &v
+ return s
+}
+
+// Information about an upstream repository.
+type UpstreamRepositoryInfo struct {
+ _ struct{} `type:"structure"`
+
+ // The name of an upstream repository.
+ RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"`
+}
+
+// String returns the string representation
+func (s UpstreamRepositoryInfo) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s UpstreamRepositoryInfo) GoString() string {
+ return s.String()
+}
+
+// SetRepositoryName sets the RepositoryName field's value.
+func (s *UpstreamRepositoryInfo) SetRepositoryName(v string) *UpstreamRepositoryInfo {
+ s.RepositoryName = &v
+ return s
+}
+
+// The operation did not succeed because a parameter in the request was sent
+// with an invalid value.
+type ValidationException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ Reason *string `locationName:"reason" type:"string" enum:"ValidationExceptionReason"`
+}
+
+// String returns the string representation
+func (s ValidationException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ValidationException) GoString() string {
+ return s.String()
+}
+
+func newErrorValidationException(v protocol.ResponseMetadata) error {
+ return &ValidationException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ValidationException) Code() string {
+ return "ValidationException"
+}
+
+// Message returns the exception's message.
+func (s *ValidationException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ValidationException) OrigErr() error {
+ return nil
+}
+
+func (s *ValidationException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+const (
+ // DomainStatusActive is a DomainStatus enum value
+ DomainStatusActive = "Active"
+
+ // DomainStatusDeleted is a DomainStatus enum value
+ DomainStatusDeleted = "Deleted"
+)
+
+const (
+ // ExternalConnectionStatusAvailable is a ExternalConnectionStatus enum value
+ ExternalConnectionStatusAvailable = "Available"
+)
+
+const (
+ // HashAlgorithmMd5 is a HashAlgorithm enum value
+ HashAlgorithmMd5 = "MD5"
+
+ // HashAlgorithmSha1 is a HashAlgorithm enum value
+ HashAlgorithmSha1 = "SHA-1"
+
+ // HashAlgorithmSha256 is a HashAlgorithm enum value
+ HashAlgorithmSha256 = "SHA-256"
+
+ // HashAlgorithmSha512 is a HashAlgorithm enum value
+ HashAlgorithmSha512 = "SHA-512"
+)
+
+const (
+ // PackageFormatNpm is a PackageFormat enum value
+ PackageFormatNpm = "npm"
+
+ // PackageFormatPypi is a PackageFormat enum value
+ PackageFormatPypi = "pypi"
+
+ // PackageFormatMaven is a PackageFormat enum value
+ PackageFormatMaven = "maven"
+)
+
+const (
+ // PackageVersionErrorCodeAlreadyExists is a PackageVersionErrorCode enum value
+ PackageVersionErrorCodeAlreadyExists = "ALREADY_EXISTS"
+
+ // PackageVersionErrorCodeMismatchedRevision is a PackageVersionErrorCode enum value
+ PackageVersionErrorCodeMismatchedRevision = "MISMATCHED_REVISION"
+
+ // PackageVersionErrorCodeMismatchedStatus is a PackageVersionErrorCode enum value
+ PackageVersionErrorCodeMismatchedStatus = "MISMATCHED_STATUS"
+
+ // PackageVersionErrorCodeNotAllowed is a PackageVersionErrorCode enum value
+ PackageVersionErrorCodeNotAllowed = "NOT_ALLOWED"
+
+ // PackageVersionErrorCodeNotFound is a PackageVersionErrorCode enum value
+ PackageVersionErrorCodeNotFound = "NOT_FOUND"
+
+ // PackageVersionErrorCodeSkipped is a PackageVersionErrorCode enum value
+ PackageVersionErrorCodeSkipped = "SKIPPED"
+)
+
+const (
+ // PackageVersionSortTypePublishedTime is a PackageVersionSortType enum value
+ PackageVersionSortTypePublishedTime = "PUBLISHED_TIME"
+)
+
+const (
+ // PackageVersionStatusPublished is a PackageVersionStatus enum value
+ PackageVersionStatusPublished = "Published"
+
+ // PackageVersionStatusUnfinished is a PackageVersionStatus enum value
+ PackageVersionStatusUnfinished = "Unfinished"
+
+ // PackageVersionStatusUnlisted is a PackageVersionStatus enum value
+ PackageVersionStatusUnlisted = "Unlisted"
+
+ // PackageVersionStatusArchived is a PackageVersionStatus enum value
+ PackageVersionStatusArchived = "Archived"
+
+ // PackageVersionStatusDisposed is a PackageVersionStatus enum value
+ PackageVersionStatusDisposed = "Disposed"
+
+ // PackageVersionStatusDeleted is a PackageVersionStatus enum value
+ PackageVersionStatusDeleted = "Deleted"
+)
+
+const (
+ // ResourceTypeDomain is a ResourceType enum value
+ ResourceTypeDomain = "domain"
+
+ // ResourceTypeRepository is a ResourceType enum value
+ ResourceTypeRepository = "repository"
+
+ // ResourceTypePackage is a ResourceType enum value
+ ResourceTypePackage = "package"
+
+ // ResourceTypePackageVersion is a ResourceType enum value
+ ResourceTypePackageVersion = "package-version"
+
+ // ResourceTypeAsset is a ResourceType enum value
+ ResourceTypeAsset = "asset"
+)
+
+const (
+ // ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value
+ ValidationExceptionReasonCannotParse = "CANNOT_PARSE"
+
+ // ValidationExceptionReasonEncryptionKeyError is a ValidationExceptionReason enum value
+ ValidationExceptionReasonEncryptionKeyError = "ENCRYPTION_KEY_ERROR"
+
+ // ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value
+ ValidationExceptionReasonFieldValidationFailed = "FIELD_VALIDATION_FAILED"
+
+ // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value
+ ValidationExceptionReasonUnknownOperation = "UNKNOWN_OPERATION"
+
+ // ValidationExceptionReasonOther is a ValidationExceptionReason enum value
+ ValidationExceptionReasonOther = "OTHER"
+)
diff --git a/service/codeartifact/codeartifactiface/interface.go b/service/codeartifact/codeartifactiface/interface.go
new file mode 100644
index 00000000000..b7aef5a97d1
--- /dev/null
+++ b/service/codeartifact/codeartifactiface/interface.go
@@ -0,0 +1,206 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+// Package codeartifactiface provides an interface to enable mocking the CodeArtifact service client
+// for testing your code.
+//
+// It is important to note that this interface will have breaking changes
+// when the service model is updated and adds new API operations, paginators,
+// and waiters.
+package codeartifactiface
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/service/codeartifact"
+)
+
+// CodeArtifactAPI provides an interface to enable mocking the
+// codeartifact.CodeArtifact service client's API operation,
+// paginators, and waiters. This make unit testing your code that calls out
+// to the SDK's service client's calls easier.
+//
+// The best way to use this interface is so the SDK's service client's calls
+// can be stubbed out for unit testing your code with the SDK without needing
+// to inject custom request handlers into the SDK's request pipeline.
+//
+// // myFunc uses an SDK service client to make a request to
+// // CodeArtifact.
+// func myFunc(svc codeartifactiface.CodeArtifactAPI) bool {
+// // Make svc.AssociateExternalConnection request
+// }
+//
+// func main() {
+// sess := session.New()
+// svc := codeartifact.New(sess)
+//
+// myFunc(svc)
+// }
+//
+// In your _test.go file:
+//
+// // Define a mock struct to be used in your unit tests of myFunc.
+// type mockCodeArtifactClient struct {
+// codeartifactiface.CodeArtifactAPI
+// }
+// func (m *mockCodeArtifactClient) AssociateExternalConnection(input *codeartifact.AssociateExternalConnectionInput) (*codeartifact.AssociateExternalConnectionOutput, error) {
+// // mock response/functionality
+// }
+//
+// func TestMyFunc(t *testing.T) {
+// // Setup Test
+// mockSvc := &mockCodeArtifactClient{}
+//
+// myfunc(mockSvc)
+//
+// // Verify myFunc's functionality
+// }
+//
+// It is important to note that this interface will have breaking changes
+// when the service model is updated and adds new API operations, paginators,
+// and waiters. Its suggested to use the pattern above for testing, or using
+// tooling to generate mocks to satisfy the interfaces.
+type CodeArtifactAPI interface {
+ AssociateExternalConnection(*codeartifact.AssociateExternalConnectionInput) (*codeartifact.AssociateExternalConnectionOutput, error)
+ AssociateExternalConnectionWithContext(aws.Context, *codeartifact.AssociateExternalConnectionInput, ...request.Option) (*codeartifact.AssociateExternalConnectionOutput, error)
+ AssociateExternalConnectionRequest(*codeartifact.AssociateExternalConnectionInput) (*request.Request, *codeartifact.AssociateExternalConnectionOutput)
+
+ CopyPackageVersions(*codeartifact.CopyPackageVersionsInput) (*codeartifact.CopyPackageVersionsOutput, error)
+ CopyPackageVersionsWithContext(aws.Context, *codeartifact.CopyPackageVersionsInput, ...request.Option) (*codeartifact.CopyPackageVersionsOutput, error)
+ CopyPackageVersionsRequest(*codeartifact.CopyPackageVersionsInput) (*request.Request, *codeartifact.CopyPackageVersionsOutput)
+
+ CreateDomain(*codeartifact.CreateDomainInput) (*codeartifact.CreateDomainOutput, error)
+ CreateDomainWithContext(aws.Context, *codeartifact.CreateDomainInput, ...request.Option) (*codeartifact.CreateDomainOutput, error)
+ CreateDomainRequest(*codeartifact.CreateDomainInput) (*request.Request, *codeartifact.CreateDomainOutput)
+
+ CreateRepository(*codeartifact.CreateRepositoryInput) (*codeartifact.CreateRepositoryOutput, error)
+ CreateRepositoryWithContext(aws.Context, *codeartifact.CreateRepositoryInput, ...request.Option) (*codeartifact.CreateRepositoryOutput, error)
+ CreateRepositoryRequest(*codeartifact.CreateRepositoryInput) (*request.Request, *codeartifact.CreateRepositoryOutput)
+
+ DeleteDomain(*codeartifact.DeleteDomainInput) (*codeartifact.DeleteDomainOutput, error)
+ DeleteDomainWithContext(aws.Context, *codeartifact.DeleteDomainInput, ...request.Option) (*codeartifact.DeleteDomainOutput, error)
+ DeleteDomainRequest(*codeartifact.DeleteDomainInput) (*request.Request, *codeartifact.DeleteDomainOutput)
+
+ DeleteDomainPermissionsPolicy(*codeartifact.DeleteDomainPermissionsPolicyInput) (*codeartifact.DeleteDomainPermissionsPolicyOutput, error)
+ DeleteDomainPermissionsPolicyWithContext(aws.Context, *codeartifact.DeleteDomainPermissionsPolicyInput, ...request.Option) (*codeartifact.DeleteDomainPermissionsPolicyOutput, error)
+ DeleteDomainPermissionsPolicyRequest(*codeartifact.DeleteDomainPermissionsPolicyInput) (*request.Request, *codeartifact.DeleteDomainPermissionsPolicyOutput)
+
+ DeletePackageVersions(*codeartifact.DeletePackageVersionsInput) (*codeartifact.DeletePackageVersionsOutput, error)
+ DeletePackageVersionsWithContext(aws.Context, *codeartifact.DeletePackageVersionsInput, ...request.Option) (*codeartifact.DeletePackageVersionsOutput, error)
+ DeletePackageVersionsRequest(*codeartifact.DeletePackageVersionsInput) (*request.Request, *codeartifact.DeletePackageVersionsOutput)
+
+ DeleteRepository(*codeartifact.DeleteRepositoryInput) (*codeartifact.DeleteRepositoryOutput, error)
+ DeleteRepositoryWithContext(aws.Context, *codeartifact.DeleteRepositoryInput, ...request.Option) (*codeartifact.DeleteRepositoryOutput, error)
+ DeleteRepositoryRequest(*codeartifact.DeleteRepositoryInput) (*request.Request, *codeartifact.DeleteRepositoryOutput)
+
+ DeleteRepositoryPermissionsPolicy(*codeartifact.DeleteRepositoryPermissionsPolicyInput) (*codeartifact.DeleteRepositoryPermissionsPolicyOutput, error)
+ DeleteRepositoryPermissionsPolicyWithContext(aws.Context, *codeartifact.DeleteRepositoryPermissionsPolicyInput, ...request.Option) (*codeartifact.DeleteRepositoryPermissionsPolicyOutput, error)
+ DeleteRepositoryPermissionsPolicyRequest(*codeartifact.DeleteRepositoryPermissionsPolicyInput) (*request.Request, *codeartifact.DeleteRepositoryPermissionsPolicyOutput)
+
+ DescribeDomain(*codeartifact.DescribeDomainInput) (*codeartifact.DescribeDomainOutput, error)
+ DescribeDomainWithContext(aws.Context, *codeartifact.DescribeDomainInput, ...request.Option) (*codeartifact.DescribeDomainOutput, error)
+ DescribeDomainRequest(*codeartifact.DescribeDomainInput) (*request.Request, *codeartifact.DescribeDomainOutput)
+
+ DescribePackageVersion(*codeartifact.DescribePackageVersionInput) (*codeartifact.DescribePackageVersionOutput, error)
+ DescribePackageVersionWithContext(aws.Context, *codeartifact.DescribePackageVersionInput, ...request.Option) (*codeartifact.DescribePackageVersionOutput, error)
+ DescribePackageVersionRequest(*codeartifact.DescribePackageVersionInput) (*request.Request, *codeartifact.DescribePackageVersionOutput)
+
+ DescribeRepository(*codeartifact.DescribeRepositoryInput) (*codeartifact.DescribeRepositoryOutput, error)
+ DescribeRepositoryWithContext(aws.Context, *codeartifact.DescribeRepositoryInput, ...request.Option) (*codeartifact.DescribeRepositoryOutput, error)
+ DescribeRepositoryRequest(*codeartifact.DescribeRepositoryInput) (*request.Request, *codeartifact.DescribeRepositoryOutput)
+
+ DisassociateExternalConnection(*codeartifact.DisassociateExternalConnectionInput) (*codeartifact.DisassociateExternalConnectionOutput, error)
+ DisassociateExternalConnectionWithContext(aws.Context, *codeartifact.DisassociateExternalConnectionInput, ...request.Option) (*codeartifact.DisassociateExternalConnectionOutput, error)
+ DisassociateExternalConnectionRequest(*codeartifact.DisassociateExternalConnectionInput) (*request.Request, *codeartifact.DisassociateExternalConnectionOutput)
+
+ DisposePackageVersions(*codeartifact.DisposePackageVersionsInput) (*codeartifact.DisposePackageVersionsOutput, error)
+ DisposePackageVersionsWithContext(aws.Context, *codeartifact.DisposePackageVersionsInput, ...request.Option) (*codeartifact.DisposePackageVersionsOutput, error)
+ DisposePackageVersionsRequest(*codeartifact.DisposePackageVersionsInput) (*request.Request, *codeartifact.DisposePackageVersionsOutput)
+
+ GetAuthorizationToken(*codeartifact.GetAuthorizationTokenInput) (*codeartifact.GetAuthorizationTokenOutput, error)
+ GetAuthorizationTokenWithContext(aws.Context, *codeartifact.GetAuthorizationTokenInput, ...request.Option) (*codeartifact.GetAuthorizationTokenOutput, error)
+ GetAuthorizationTokenRequest(*codeartifact.GetAuthorizationTokenInput) (*request.Request, *codeartifact.GetAuthorizationTokenOutput)
+
+ GetDomainPermissionsPolicy(*codeartifact.GetDomainPermissionsPolicyInput) (*codeartifact.GetDomainPermissionsPolicyOutput, error)
+ GetDomainPermissionsPolicyWithContext(aws.Context, *codeartifact.GetDomainPermissionsPolicyInput, ...request.Option) (*codeartifact.GetDomainPermissionsPolicyOutput, error)
+ GetDomainPermissionsPolicyRequest(*codeartifact.GetDomainPermissionsPolicyInput) (*request.Request, *codeartifact.GetDomainPermissionsPolicyOutput)
+
+ GetPackageVersionAsset(*codeartifact.GetPackageVersionAssetInput) (*codeartifact.GetPackageVersionAssetOutput, error)
+ GetPackageVersionAssetWithContext(aws.Context, *codeartifact.GetPackageVersionAssetInput, ...request.Option) (*codeartifact.GetPackageVersionAssetOutput, error)
+ GetPackageVersionAssetRequest(*codeartifact.GetPackageVersionAssetInput) (*request.Request, *codeartifact.GetPackageVersionAssetOutput)
+
+ GetPackageVersionReadme(*codeartifact.GetPackageVersionReadmeInput) (*codeartifact.GetPackageVersionReadmeOutput, error)
+ GetPackageVersionReadmeWithContext(aws.Context, *codeartifact.GetPackageVersionReadmeInput, ...request.Option) (*codeartifact.GetPackageVersionReadmeOutput, error)
+ GetPackageVersionReadmeRequest(*codeartifact.GetPackageVersionReadmeInput) (*request.Request, *codeartifact.GetPackageVersionReadmeOutput)
+
+ GetRepositoryEndpoint(*codeartifact.GetRepositoryEndpointInput) (*codeartifact.GetRepositoryEndpointOutput, error)
+ GetRepositoryEndpointWithContext(aws.Context, *codeartifact.GetRepositoryEndpointInput, ...request.Option) (*codeartifact.GetRepositoryEndpointOutput, error)
+ GetRepositoryEndpointRequest(*codeartifact.GetRepositoryEndpointInput) (*request.Request, *codeartifact.GetRepositoryEndpointOutput)
+
+ GetRepositoryPermissionsPolicy(*codeartifact.GetRepositoryPermissionsPolicyInput) (*codeartifact.GetRepositoryPermissionsPolicyOutput, error)
+ GetRepositoryPermissionsPolicyWithContext(aws.Context, *codeartifact.GetRepositoryPermissionsPolicyInput, ...request.Option) (*codeartifact.GetRepositoryPermissionsPolicyOutput, error)
+ GetRepositoryPermissionsPolicyRequest(*codeartifact.GetRepositoryPermissionsPolicyInput) (*request.Request, *codeartifact.GetRepositoryPermissionsPolicyOutput)
+
+ ListDomains(*codeartifact.ListDomainsInput) (*codeartifact.ListDomainsOutput, error)
+ ListDomainsWithContext(aws.Context, *codeartifact.ListDomainsInput, ...request.Option) (*codeartifact.ListDomainsOutput, error)
+ ListDomainsRequest(*codeartifact.ListDomainsInput) (*request.Request, *codeartifact.ListDomainsOutput)
+
+ ListDomainsPages(*codeartifact.ListDomainsInput, func(*codeartifact.ListDomainsOutput, bool) bool) error
+ ListDomainsPagesWithContext(aws.Context, *codeartifact.ListDomainsInput, func(*codeartifact.ListDomainsOutput, bool) bool, ...request.Option) error
+
+ ListPackageVersionAssets(*codeartifact.ListPackageVersionAssetsInput) (*codeartifact.ListPackageVersionAssetsOutput, error)
+ ListPackageVersionAssetsWithContext(aws.Context, *codeartifact.ListPackageVersionAssetsInput, ...request.Option) (*codeartifact.ListPackageVersionAssetsOutput, error)
+ ListPackageVersionAssetsRequest(*codeartifact.ListPackageVersionAssetsInput) (*request.Request, *codeartifact.ListPackageVersionAssetsOutput)
+
+ ListPackageVersionAssetsPages(*codeartifact.ListPackageVersionAssetsInput, func(*codeartifact.ListPackageVersionAssetsOutput, bool) bool) error
+ ListPackageVersionAssetsPagesWithContext(aws.Context, *codeartifact.ListPackageVersionAssetsInput, func(*codeartifact.ListPackageVersionAssetsOutput, bool) bool, ...request.Option) error
+
+ ListPackageVersionDependencies(*codeartifact.ListPackageVersionDependenciesInput) (*codeartifact.ListPackageVersionDependenciesOutput, error)
+ ListPackageVersionDependenciesWithContext(aws.Context, *codeartifact.ListPackageVersionDependenciesInput, ...request.Option) (*codeartifact.ListPackageVersionDependenciesOutput, error)
+ ListPackageVersionDependenciesRequest(*codeartifact.ListPackageVersionDependenciesInput) (*request.Request, *codeartifact.ListPackageVersionDependenciesOutput)
+
+ ListPackageVersions(*codeartifact.ListPackageVersionsInput) (*codeartifact.ListPackageVersionsOutput, error)
+ ListPackageVersionsWithContext(aws.Context, *codeartifact.ListPackageVersionsInput, ...request.Option) (*codeartifact.ListPackageVersionsOutput, error)
+ ListPackageVersionsRequest(*codeartifact.ListPackageVersionsInput) (*request.Request, *codeartifact.ListPackageVersionsOutput)
+
+ ListPackageVersionsPages(*codeartifact.ListPackageVersionsInput, func(*codeartifact.ListPackageVersionsOutput, bool) bool) error
+ ListPackageVersionsPagesWithContext(aws.Context, *codeartifact.ListPackageVersionsInput, func(*codeartifact.ListPackageVersionsOutput, bool) bool, ...request.Option) error
+
+ ListPackages(*codeartifact.ListPackagesInput) (*codeartifact.ListPackagesOutput, error)
+ ListPackagesWithContext(aws.Context, *codeartifact.ListPackagesInput, ...request.Option) (*codeartifact.ListPackagesOutput, error)
+ ListPackagesRequest(*codeartifact.ListPackagesInput) (*request.Request, *codeartifact.ListPackagesOutput)
+
+ ListPackagesPages(*codeartifact.ListPackagesInput, func(*codeartifact.ListPackagesOutput, bool) bool) error
+ ListPackagesPagesWithContext(aws.Context, *codeartifact.ListPackagesInput, func(*codeartifact.ListPackagesOutput, bool) bool, ...request.Option) error
+
+ ListRepositories(*codeartifact.ListRepositoriesInput) (*codeartifact.ListRepositoriesOutput, error)
+ ListRepositoriesWithContext(aws.Context, *codeartifact.ListRepositoriesInput, ...request.Option) (*codeartifact.ListRepositoriesOutput, error)
+ ListRepositoriesRequest(*codeartifact.ListRepositoriesInput) (*request.Request, *codeartifact.ListRepositoriesOutput)
+
+ ListRepositoriesPages(*codeartifact.ListRepositoriesInput, func(*codeartifact.ListRepositoriesOutput, bool) bool) error
+ ListRepositoriesPagesWithContext(aws.Context, *codeartifact.ListRepositoriesInput, func(*codeartifact.ListRepositoriesOutput, bool) bool, ...request.Option) error
+
+ ListRepositoriesInDomain(*codeartifact.ListRepositoriesInDomainInput) (*codeartifact.ListRepositoriesInDomainOutput, error)
+ ListRepositoriesInDomainWithContext(aws.Context, *codeartifact.ListRepositoriesInDomainInput, ...request.Option) (*codeartifact.ListRepositoriesInDomainOutput, error)
+ ListRepositoriesInDomainRequest(*codeartifact.ListRepositoriesInDomainInput) (*request.Request, *codeartifact.ListRepositoriesInDomainOutput)
+
+ ListRepositoriesInDomainPages(*codeartifact.ListRepositoriesInDomainInput, func(*codeartifact.ListRepositoriesInDomainOutput, bool) bool) error
+ ListRepositoriesInDomainPagesWithContext(aws.Context, *codeartifact.ListRepositoriesInDomainInput, func(*codeartifact.ListRepositoriesInDomainOutput, bool) bool, ...request.Option) error
+
+ PutDomainPermissionsPolicy(*codeartifact.PutDomainPermissionsPolicyInput) (*codeartifact.PutDomainPermissionsPolicyOutput, error)
+ PutDomainPermissionsPolicyWithContext(aws.Context, *codeartifact.PutDomainPermissionsPolicyInput, ...request.Option) (*codeartifact.PutDomainPermissionsPolicyOutput, error)
+ PutDomainPermissionsPolicyRequest(*codeartifact.PutDomainPermissionsPolicyInput) (*request.Request, *codeartifact.PutDomainPermissionsPolicyOutput)
+
+ PutRepositoryPermissionsPolicy(*codeartifact.PutRepositoryPermissionsPolicyInput) (*codeartifact.PutRepositoryPermissionsPolicyOutput, error)
+ PutRepositoryPermissionsPolicyWithContext(aws.Context, *codeartifact.PutRepositoryPermissionsPolicyInput, ...request.Option) (*codeartifact.PutRepositoryPermissionsPolicyOutput, error)
+ PutRepositoryPermissionsPolicyRequest(*codeartifact.PutRepositoryPermissionsPolicyInput) (*request.Request, *codeartifact.PutRepositoryPermissionsPolicyOutput)
+
+ UpdatePackageVersionsStatus(*codeartifact.UpdatePackageVersionsStatusInput) (*codeartifact.UpdatePackageVersionsStatusOutput, error)
+ UpdatePackageVersionsStatusWithContext(aws.Context, *codeartifact.UpdatePackageVersionsStatusInput, ...request.Option) (*codeartifact.UpdatePackageVersionsStatusOutput, error)
+ UpdatePackageVersionsStatusRequest(*codeartifact.UpdatePackageVersionsStatusInput) (*request.Request, *codeartifact.UpdatePackageVersionsStatusOutput)
+
+ UpdateRepository(*codeartifact.UpdateRepositoryInput) (*codeartifact.UpdateRepositoryOutput, error)
+ UpdateRepositoryWithContext(aws.Context, *codeartifact.UpdateRepositoryInput, ...request.Option) (*codeartifact.UpdateRepositoryOutput, error)
+ UpdateRepositoryRequest(*codeartifact.UpdateRepositoryInput) (*request.Request, *codeartifact.UpdateRepositoryOutput)
+}
+
+var _ CodeArtifactAPI = (*codeartifact.CodeArtifact)(nil)
diff --git a/service/codeartifact/doc.go b/service/codeartifact/doc.go
new file mode 100644
index 00000000000..6540dc7e9c6
--- /dev/null
+++ b/service/codeartifact/doc.go
@@ -0,0 +1,179 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+// 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 contact 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 CodeArtifact for more
+// information on creating client for this service.
+// https://docs.aws.amazon.com/sdk-for-go/api/service/codeartifact/#New
+package codeartifact
diff --git a/service/codeartifact/errors.go b/service/codeartifact/errors.go
new file mode 100644
index 00000000000..0faee781ff4
--- /dev/null
+++ b/service/codeartifact/errors.go
@@ -0,0 +1,66 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package codeartifact
+
+import (
+ "github.com/aws/aws-sdk-go/private/protocol"
+)
+
+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"
+)
+
+var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
+ "AccessDeniedException": newErrorAccessDeniedException,
+ "ConflictException": newErrorConflictException,
+ "InternalServerException": newErrorInternalServerException,
+ "ResourceNotFoundException": newErrorResourceNotFoundException,
+ "ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
+ "ThrottlingException": newErrorThrottlingException,
+ "ValidationException": newErrorValidationException,
+}
diff --git a/service/codeartifact/service.go b/service/codeartifact/service.go
new file mode 100644
index 00000000000..3375d0c9f1f
--- /dev/null
+++ b/service/codeartifact/service.go
@@ -0,0 +1,104 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package codeartifact
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/client"
+ "github.com/aws/aws-sdk-go/aws/client/metadata"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/aws/signer/v4"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/restjson"
+)
+
+// CodeArtifact provides the API operation methods for making requests to
+// CodeArtifact. See this package's package overview docs
+// for details on the service.
+//
+// CodeArtifact methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type CodeArtifact struct {
+ *client.Client
+}
+
+// Used for custom client initialization logic
+var initClient func(*client.Client)
+
+// Used for custom request initialization logic
+var initRequest func(*request.Request)
+
+// Service information constants
+const (
+ ServiceName = "codeartifact" // Name of service.
+ EndpointsID = ServiceName // ID to lookup a service endpoint with.
+ ServiceID = "codeartifact" // ServiceID is a unique identifier of a specific service.
+)
+
+// New creates a new instance of the CodeArtifact client with a session.
+// If additional configuration is needed for the client instance use the optional
+// aws.Config parameter to add your extra config.
+//
+// Example:
+// mySession := session.Must(session.NewSession())
+//
+// // Create a CodeArtifact client from just a session.
+// svc := codeartifact.New(mySession)
+//
+// // Create a CodeArtifact client with additional configuration
+// svc := codeartifact.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
+func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeArtifact {
+ c := p.ClientConfig(EndpointsID, cfgs...)
+ if c.SigningNameDerived || len(c.SigningName) == 0 {
+ c.SigningName = "codeartifact"
+ }
+ return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName)
+}
+
+// newClient creates, initializes and returns a new service client instance.
+func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *CodeArtifact {
+ svc := &CodeArtifact{
+ Client: client.New(
+ cfg,
+ metadata.ClientInfo{
+ ServiceName: ServiceName,
+ ServiceID: ServiceID,
+ SigningName: signingName,
+ SigningRegion: signingRegion,
+ PartitionID: partitionID,
+ Endpoint: endpoint,
+ APIVersion: "2018-09-22",
+ },
+ handlers,
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(
+ protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
+ )
+
+ // Run custom client initialization if present
+ if initClient != nil {
+ initClient(svc.Client)
+ }
+
+ return svc
+}
+
+// newRequest creates a new request for a CodeArtifact operation and runs any
+// custom request initialization.
+func (c *CodeArtifact) newRequest(op *request.Operation, params, data interface{}) *request.Request {
+ req := c.NewRequest(op, params, data)
+
+ // Run custom request initialization if present
+ if initRequest != nil {
+ initRequest(req)
+ }
+
+ return req
+}
diff --git a/service/computeoptimizer/api.go b/service/computeoptimizer/api.go
index 5bfcd2597a5..7c861b845e4 100644
--- a/service/computeoptimizer/api.go
+++ b/service/computeoptimizer/api.go
@@ -12,6 +12,330 @@ import (
"github.com/aws/aws-sdk-go/private/protocol"
)
+const opDescribeRecommendationExportJobs = "DescribeRecommendationExportJobs"
+
+// DescribeRecommendationExportJobsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeRecommendationExportJobs operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeRecommendationExportJobs for more information on using the DescribeRecommendationExportJobs
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeRecommendationExportJobsRequest method.
+// req, resp := client.DescribeRecommendationExportJobsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DescribeRecommendationExportJobs
+func (c *ComputeOptimizer) DescribeRecommendationExportJobsRequest(input *DescribeRecommendationExportJobsInput) (req *request.Request, output *DescribeRecommendationExportJobsOutput) {
+ op := &request.Operation{
+ Name: opDescribeRecommendationExportJobs,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeRecommendationExportJobsInput{}
+ }
+
+ output = &DescribeRecommendationExportJobsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeRecommendationExportJobs API operation for AWS Compute Optimizer.
+//
+// Describes recommendation export jobs created in the last seven days.
+//
+// Use the ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations
+// actions to request an export of your recommendations. Then use the DescribeRecommendationExportJobs
+// action to view your export jobs.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Compute Optimizer's
+// API operation DescribeRecommendationExportJobs for usage and error information.
+//
+// Returned Error Types:
+// * OptInRequiredException
+// The account is not opted in to AWS Compute Optimizer.
+//
+// * InternalServerException
+// An internal error has occurred. Try your call again.
+//
+// * ServiceUnavailableException
+// The request has failed due to a temporary failure of the server.
+//
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
+// * InvalidParameterValueException
+// An invalid or out-of-range value was supplied for the input parameter.
+//
+// * ResourceNotFoundException
+// A resource that is required for the action doesn't exist.
+//
+// * MissingAuthenticationToken
+// The request must contain either a valid (registered) AWS access key ID or
+// X.509 certificate.
+//
+// * ThrottlingException
+// The request was denied due to request throttling.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/DescribeRecommendationExportJobs
+func (c *ComputeOptimizer) DescribeRecommendationExportJobs(input *DescribeRecommendationExportJobsInput) (*DescribeRecommendationExportJobsOutput, error) {
+ req, out := c.DescribeRecommendationExportJobsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeRecommendationExportJobsWithContext is the same as DescribeRecommendationExportJobs with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeRecommendationExportJobs for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ComputeOptimizer) DescribeRecommendationExportJobsWithContext(ctx aws.Context, input *DescribeRecommendationExportJobsInput, opts ...request.Option) (*DescribeRecommendationExportJobsOutput, error) {
+ req, out := c.DescribeRecommendationExportJobsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opExportAutoScalingGroupRecommendations = "ExportAutoScalingGroupRecommendations"
+
+// ExportAutoScalingGroupRecommendationsRequest generates a "aws/request.Request" representing the
+// client's request for the ExportAutoScalingGroupRecommendations operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ExportAutoScalingGroupRecommendations for more information on using the ExportAutoScalingGroupRecommendations
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ExportAutoScalingGroupRecommendationsRequest method.
+// req, resp := client.ExportAutoScalingGroupRecommendationsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportAutoScalingGroupRecommendations
+func (c *ComputeOptimizer) ExportAutoScalingGroupRecommendationsRequest(input *ExportAutoScalingGroupRecommendationsInput) (req *request.Request, output *ExportAutoScalingGroupRecommendationsOutput) {
+ op := &request.Operation{
+ Name: opExportAutoScalingGroupRecommendations,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ExportAutoScalingGroupRecommendationsInput{}
+ }
+
+ output = &ExportAutoScalingGroupRecommendationsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ExportAutoScalingGroupRecommendations API operation for AWS Compute Optimizer.
+//
+// Exports optimization recommendations for Auto Scaling groups.
+//
+// Recommendations are exported in a comma-separated values (.csv) file, and
+// its metadata in a JavaScript Object Notation (.json) file, to an existing
+// Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more
+// information, see Exporting Recommendations (https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html)
+// in the Compute Optimizer User Guide.
+//
+// You can have only one Auto Scaling group export job in progress per AWS Region.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Compute Optimizer's
+// API operation ExportAutoScalingGroupRecommendations for usage and error information.
+//
+// Returned Error Types:
+// * OptInRequiredException
+// The account is not opted in to AWS Compute Optimizer.
+//
+// * InternalServerException
+// An internal error has occurred. Try your call again.
+//
+// * ServiceUnavailableException
+// The request has failed due to a temporary failure of the server.
+//
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
+// * InvalidParameterValueException
+// An invalid or out-of-range value was supplied for the input parameter.
+//
+// * MissingAuthenticationToken
+// The request must contain either a valid (registered) AWS access key ID or
+// X.509 certificate.
+//
+// * ThrottlingException
+// The request was denied due to request throttling.
+//
+// * LimitExceededException
+// The request exceeds a limit of the service.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportAutoScalingGroupRecommendations
+func (c *ComputeOptimizer) ExportAutoScalingGroupRecommendations(input *ExportAutoScalingGroupRecommendationsInput) (*ExportAutoScalingGroupRecommendationsOutput, error) {
+ req, out := c.ExportAutoScalingGroupRecommendationsRequest(input)
+ return out, req.Send()
+}
+
+// ExportAutoScalingGroupRecommendationsWithContext is the same as ExportAutoScalingGroupRecommendations with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ExportAutoScalingGroupRecommendations for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ComputeOptimizer) ExportAutoScalingGroupRecommendationsWithContext(ctx aws.Context, input *ExportAutoScalingGroupRecommendationsInput, opts ...request.Option) (*ExportAutoScalingGroupRecommendationsOutput, error) {
+ req, out := c.ExportAutoScalingGroupRecommendationsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opExportEC2InstanceRecommendations = "ExportEC2InstanceRecommendations"
+
+// ExportEC2InstanceRecommendationsRequest generates a "aws/request.Request" representing the
+// client's request for the ExportEC2InstanceRecommendations operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ExportEC2InstanceRecommendations for more information on using the ExportEC2InstanceRecommendations
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ExportEC2InstanceRecommendationsRequest method.
+// req, resp := client.ExportEC2InstanceRecommendationsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportEC2InstanceRecommendations
+func (c *ComputeOptimizer) ExportEC2InstanceRecommendationsRequest(input *ExportEC2InstanceRecommendationsInput) (req *request.Request, output *ExportEC2InstanceRecommendationsOutput) {
+ op := &request.Operation{
+ Name: opExportEC2InstanceRecommendations,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ExportEC2InstanceRecommendationsInput{}
+ }
+
+ output = &ExportEC2InstanceRecommendationsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ExportEC2InstanceRecommendations API operation for AWS Compute Optimizer.
+//
+// Exports optimization recommendations for Amazon EC2 instances.
+//
+// Recommendations are exported in a comma-separated values (.csv) file, and
+// its metadata in a JavaScript Object Notation (.json) file, to an existing
+// Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more
+// information, see Exporting Recommendations (https://docs.aws.amazon.com/compute-optimizer/latest/ug/exporting-recommendations.html)
+// in the Compute Optimizer User Guide.
+//
+// You can have only one Amazon EC2 instance export job in progress per AWS
+// Region.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for AWS Compute Optimizer's
+// API operation ExportEC2InstanceRecommendations for usage and error information.
+//
+// Returned Error Types:
+// * OptInRequiredException
+// The account is not opted in to AWS Compute Optimizer.
+//
+// * InternalServerException
+// An internal error has occurred. Try your call again.
+//
+// * ServiceUnavailableException
+// The request has failed due to a temporary failure of the server.
+//
+// * AccessDeniedException
+// You do not have sufficient access to perform this action.
+//
+// * InvalidParameterValueException
+// An invalid or out-of-range value was supplied for the input parameter.
+//
+// * MissingAuthenticationToken
+// The request must contain either a valid (registered) AWS access key ID or
+// X.509 certificate.
+//
+// * ThrottlingException
+// The request was denied due to request throttling.
+//
+// * LimitExceededException
+// The request exceeds a limit of the service.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/ExportEC2InstanceRecommendations
+func (c *ComputeOptimizer) ExportEC2InstanceRecommendations(input *ExportEC2InstanceRecommendationsInput) (*ExportEC2InstanceRecommendationsOutput, error) {
+ req, out := c.ExportEC2InstanceRecommendationsRequest(input)
+ return out, req.Send()
+}
+
+// ExportEC2InstanceRecommendationsWithContext is the same as ExportEC2InstanceRecommendations with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ExportEC2InstanceRecommendations for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ComputeOptimizer) ExportEC2InstanceRecommendationsWithContext(ctx aws.Context, input *ExportEC2InstanceRecommendationsInput, opts ...request.Option) (*ExportEC2InstanceRecommendationsOutput, error) {
+ req, out := c.ExportEC2InstanceRecommendationsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opGetAutoScalingGroupRecommendations = "GetAutoScalingGroupRecommendations"
// GetAutoScalingGroupRecommendationsRequest generates a "aws/request.Request" representing the
@@ -75,11 +399,10 @@ func (c *ComputeOptimizer) GetAutoScalingGroupRecommendationsRequest(input *GetA
//
// Returned Error Types:
// * OptInRequiredException
-// You must opt in to the service to perform this action.
+// The account is not opted in to AWS Compute Optimizer.
//
// * InternalServerException
-// The request processing has failed because of an unknown error, exception,
-// or failure.
+// An internal error has occurred. Try your call again.
//
// * ServiceUnavailableException
// The request has failed due to a temporary failure of the server.
@@ -91,14 +414,14 @@ func (c *ComputeOptimizer) GetAutoScalingGroupRecommendationsRequest(input *GetA
// An invalid or out-of-range value was supplied for the input parameter.
//
// * ResourceNotFoundException
-// The specified resource was not found.
+// A resource that is required for the action doesn't exist.
//
// * MissingAuthenticationToken
// The request must contain either a valid (registered) AWS access key ID or
// X.509 certificate.
//
// * ThrottlingException
-// The limit on the number of requests per second was exceeded.
+// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetAutoScalingGroupRecommendations
func (c *ComputeOptimizer) GetAutoScalingGroupRecommendations(input *GetAutoScalingGroupRecommendationsInput) (*GetAutoScalingGroupRecommendationsOutput, error) {
@@ -182,11 +505,10 @@ func (c *ComputeOptimizer) GetEC2InstanceRecommendationsRequest(input *GetEC2Ins
//
// Returned Error Types:
// * OptInRequiredException
-// You must opt in to the service to perform this action.
+// The account is not opted in to AWS Compute Optimizer.
//
// * InternalServerException
-// The request processing has failed because of an unknown error, exception,
-// or failure.
+// An internal error has occurred. Try your call again.
//
// * ServiceUnavailableException
// The request has failed due to a temporary failure of the server.
@@ -198,14 +520,14 @@ func (c *ComputeOptimizer) GetEC2InstanceRecommendationsRequest(input *GetEC2Ins
// An invalid or out-of-range value was supplied for the input parameter.
//
// * ResourceNotFoundException
-// The specified resource was not found.
+// A resource that is required for the action doesn't exist.
//
// * MissingAuthenticationToken
// The request must contain either a valid (registered) AWS access key ID or
// X.509 certificate.
//
// * ThrottlingException
-// The limit on the number of requests per second was exceeded.
+// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEC2InstanceRecommendations
func (c *ComputeOptimizer) GetEC2InstanceRecommendations(input *GetEC2InstanceRecommendationsInput) (*GetEC2InstanceRecommendationsOutput, error) {
@@ -284,11 +606,10 @@ func (c *ComputeOptimizer) GetEC2RecommendationProjectedMetricsRequest(input *Ge
//
// Returned Error Types:
// * OptInRequiredException
-// You must opt in to the service to perform this action.
+// The account is not opted in to AWS Compute Optimizer.
//
// * InternalServerException
-// The request processing has failed because of an unknown error, exception,
-// or failure.
+// An internal error has occurred. Try your call again.
//
// * ServiceUnavailableException
// The request has failed due to a temporary failure of the server.
@@ -300,14 +621,14 @@ func (c *ComputeOptimizer) GetEC2RecommendationProjectedMetricsRequest(input *Ge
// An invalid or out-of-range value was supplied for the input parameter.
//
// * ResourceNotFoundException
-// The specified resource was not found.
+// A resource that is required for the action doesn't exist.
//
// * MissingAuthenticationToken
// The request must contain either a valid (registered) AWS access key ID or
// X.509 certificate.
//
// * ThrottlingException
-// The limit on the number of requests per second was exceeded.
+// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEC2RecommendationProjectedMetrics
func (c *ComputeOptimizer) GetEC2RecommendationProjectedMetrics(input *GetEC2RecommendationProjectedMetricsInput) (*GetEC2RecommendationProjectedMetricsOutput, error) {
@@ -378,7 +699,7 @@ func (c *ComputeOptimizer) GetEnrollmentStatusRequest(input *GetEnrollmentStatus
// Returns the enrollment (opt in) status of an account to the AWS Compute Optimizer
// service.
//
-// If the account is a master account of an organization, this operation also
+// If the account is the master account of an organization, this action also
// confirms the enrollment status of member accounts within the organization.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@@ -390,8 +711,7 @@ func (c *ComputeOptimizer) GetEnrollmentStatusRequest(input *GetEnrollmentStatus
//
// Returned Error Types:
// * InternalServerException
-// The request processing has failed because of an unknown error, exception,
-// or failure.
+// An internal error has occurred. Try your call again.
//
// * ServiceUnavailableException
// The request has failed due to a temporary failure of the server.
@@ -407,7 +727,7 @@ func (c *ComputeOptimizer) GetEnrollmentStatusRequest(input *GetEnrollmentStatus
// X.509 certificate.
//
// * ThrottlingException
-// The limit on the number of requests per second was exceeded.
+// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEnrollmentStatus
func (c *ComputeOptimizer) GetEnrollmentStatus(input *GetEnrollmentStatusInput) (*GetEnrollmentStatusOutput, error) {
@@ -491,11 +811,10 @@ func (c *ComputeOptimizer) GetRecommendationSummariesRequest(input *GetRecommend
//
// Returned Error Types:
// * OptInRequiredException
-// You must opt in to the service to perform this action.
+// The account is not opted in to AWS Compute Optimizer.
//
// * InternalServerException
-// The request processing has failed because of an unknown error, exception,
-// or failure.
+// An internal error has occurred. Try your call again.
//
// * ServiceUnavailableException
// The request has failed due to a temporary failure of the server.
@@ -511,7 +830,7 @@ func (c *ComputeOptimizer) GetRecommendationSummariesRequest(input *GetRecommend
// X.509 certificate.
//
// * ThrottlingException
-// The limit on the number of requests per second was exceeded.
+// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries
func (c *ComputeOptimizer) GetRecommendationSummaries(input *GetRecommendationSummariesInput) (*GetRecommendationSummariesOutput, error) {
@@ -582,8 +901,8 @@ func (c *ComputeOptimizer) UpdateEnrollmentStatusRequest(input *UpdateEnrollment
// Updates the enrollment (opt in) status of an account to the AWS Compute Optimizer
// service.
//
-// If the account is a master account of an organization, this operation can
-// also enroll member accounts within the organization.
+// If the account is a master account of an organization, this action can also
+// be used to enroll member accounts within the organization.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -594,8 +913,7 @@ func (c *ComputeOptimizer) UpdateEnrollmentStatusRequest(input *UpdateEnrollment
//
// Returned Error Types:
// * InternalServerException
-// The request processing has failed because of an unknown error, exception,
-// or failure.
+// An internal error has occurred. Try your call again.
//
// * ServiceUnavailableException
// The request has failed due to a temporary failure of the server.
@@ -611,7 +929,7 @@ func (c *ComputeOptimizer) UpdateEnrollmentStatusRequest(input *UpdateEnrollment
// X.509 certificate.
//
// * ThrottlingException
-// The limit on the number of requests per second was exceeded.
+// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/UpdateEnrollmentStatus
func (c *ComputeOptimizer) UpdateEnrollmentStatus(input *UpdateEnrollmentStatusInput) (*UpdateEnrollmentStatusOutput, error) {
@@ -902,15 +1220,446 @@ func (s *AutoScalingGroupRecommendationOption) SetPerformanceRisk(v float64) *Au
return s
}
-// SetProjectedUtilizationMetrics sets the ProjectedUtilizationMetrics field's value.
-func (s *AutoScalingGroupRecommendationOption) SetProjectedUtilizationMetrics(v []*UtilizationMetric) *AutoScalingGroupRecommendationOption {
- s.ProjectedUtilizationMetrics = v
+// SetProjectedUtilizationMetrics sets the ProjectedUtilizationMetrics field's value.
+func (s *AutoScalingGroupRecommendationOption) SetProjectedUtilizationMetrics(v []*UtilizationMetric) *AutoScalingGroupRecommendationOption {
+ s.ProjectedUtilizationMetrics = v
+ return s
+}
+
+// SetRank sets the Rank field's value.
+func (s *AutoScalingGroupRecommendationOption) SetRank(v int64) *AutoScalingGroupRecommendationOption {
+ s.Rank = &v
+ return s
+}
+
+type DescribeRecommendationExportJobsInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of objects that describe a filter to return a more specific list
+ // of export jobs.
+ Filters []*JobFilter `locationName:"filters" type:"list"`
+
+ // The identification numbers of the export jobs to return.
+ //
+ // An export job ID is returned when you create an export using the ExportAutoScalingGroupRecommendations
+ // or ExportEC2InstanceRecommendations actions.
+ //
+ // All export jobs created in the last seven days are returned if this parameter
+ // is omitted.
+ JobIds []*string `locationName:"jobIds" type:"list"`
+
+ // The maximum number of export jobs to return with a single request.
+ //
+ // To retrieve the remaining results, make another request with the returned
+ // NextToken value.
+ MaxResults *int64 `locationName:"maxResults" type:"integer"`
+
+ // The token to advance to the next page of export jobs.
+ NextToken *string `locationName:"nextToken" type:"string"`
+}
+
+// String returns the string representation
+func (s DescribeRecommendationExportJobsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeRecommendationExportJobsInput) GoString() string {
+ return s.String()
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribeRecommendationExportJobsInput) SetFilters(v []*JobFilter) *DescribeRecommendationExportJobsInput {
+ s.Filters = v
+ return s
+}
+
+// SetJobIds sets the JobIds field's value.
+func (s *DescribeRecommendationExportJobsInput) SetJobIds(v []*string) *DescribeRecommendationExportJobsInput {
+ s.JobIds = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeRecommendationExportJobsInput) SetMaxResults(v int64) *DescribeRecommendationExportJobsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeRecommendationExportJobsInput) SetNextToken(v string) *DescribeRecommendationExportJobsInput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeRecommendationExportJobsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to use to advance to the next page of export jobs.
+ //
+ // This value is null when there are no more pages of export jobs to return.
+ NextToken *string `locationName:"nextToken" type:"string"`
+
+ // An array of objects that describe recommendation export jobs.
+ RecommendationExportJobs []*RecommendationExportJob `locationName:"recommendationExportJobs" type:"list"`
+}
+
+// String returns the string representation
+func (s DescribeRecommendationExportJobsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s DescribeRecommendationExportJobsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeRecommendationExportJobsOutput) SetNextToken(v string) *DescribeRecommendationExportJobsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetRecommendationExportJobs sets the RecommendationExportJobs field's value.
+func (s *DescribeRecommendationExportJobsOutput) SetRecommendationExportJobs(v []*RecommendationExportJob) *DescribeRecommendationExportJobsOutput {
+ s.RecommendationExportJobs = v
+ return s
+}
+
+type ExportAutoScalingGroupRecommendationsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The IDs of the AWS accounts for which to export Auto Scaling group recommendations.
+ //
+ // If your account is the master account of an organization, use this parameter
+ // to specify the member accounts for which you want to export recommendations.
+ //
+ // This parameter cannot be specified together with the include member accounts
+ // parameter. The parameters are mutually exclusive.
+ //
+ // Recommendations for member accounts are not included in the export if this
+ // parameter, or the include member accounts parameter, is omitted.
+ //
+ // You can specify multiple account IDs per request.
+ AccountIds []*string `locationName:"accountIds" type:"list"`
+
+ // The recommendations data to include in the export file.
+ FieldsToExport []*string `locationName:"fieldsToExport" type:"list"`
+
+ // The format of the export file.
+ //
+ // The only export file format currently supported is Csv.
+ FileFormat *string `locationName:"fileFormat" type:"string" enum:"FileFormat"`
+
+ // An array of objects that describe a filter to export a more specific set
+ // of Auto Scaling group recommendations.
+ Filters []*Filter `locationName:"filters" type:"list"`
+
+ // Indicates whether to include recommendations for resources in all member
+ // accounts of the organization if your account is the master account of an
+ // organization.
+ //
+ // The member accounts must also be opted in to Compute Optimizer.
+ //
+ // Recommendations for member accounts of the organization are not included
+ // in the export file if this parameter is omitted.
+ //
+ // This parameter cannot be specified together with the account IDs parameter.
+ // The parameters are mutually exclusive.
+ //
+ // Recommendations for member accounts are not included in the export if this
+ // parameter, or the account IDs parameter, is omitted.
+ IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"`
+
+ // An object to specify the destination Amazon Simple Storage Service (Amazon
+ // S3) bucket name and key prefix for the export job.
+ //
+ // You must create the destination Amazon S3 bucket for your recommendations
+ // export before you create the export job. Compute Optimizer does not create
+ // the S3 bucket for you. After you create the S3 bucket, ensure that it has
+ // the required permission policy to allow Compute Optimizer to write the export
+ // file to it. If you plan to specify an object prefix when you create the export
+ // job, you must include the object prefix in the policy that you add to the
+ // S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute
+ // Optimizer (https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html)
+ // in the Compute Optimizer user guide.
+ //
+ // S3DestinationConfig is a required field
+ S3DestinationConfig *S3DestinationConfig `locationName:"s3DestinationConfig" type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s ExportAutoScalingGroupRecommendationsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportAutoScalingGroupRecommendationsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ExportAutoScalingGroupRecommendationsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ExportAutoScalingGroupRecommendationsInput"}
+ if s.S3DestinationConfig == nil {
+ invalidParams.Add(request.NewErrParamRequired("S3DestinationConfig"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountIds sets the AccountIds field's value.
+func (s *ExportAutoScalingGroupRecommendationsInput) SetAccountIds(v []*string) *ExportAutoScalingGroupRecommendationsInput {
+ s.AccountIds = v
+ return s
+}
+
+// SetFieldsToExport sets the FieldsToExport field's value.
+func (s *ExportAutoScalingGroupRecommendationsInput) SetFieldsToExport(v []*string) *ExportAutoScalingGroupRecommendationsInput {
+ s.FieldsToExport = v
+ return s
+}
+
+// SetFileFormat sets the FileFormat field's value.
+func (s *ExportAutoScalingGroupRecommendationsInput) SetFileFormat(v string) *ExportAutoScalingGroupRecommendationsInput {
+ s.FileFormat = &v
+ return s
+}
+
+// SetFilters sets the Filters field's value.
+func (s *ExportAutoScalingGroupRecommendationsInput) SetFilters(v []*Filter) *ExportAutoScalingGroupRecommendationsInput {
+ s.Filters = v
+ return s
+}
+
+// SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value.
+func (s *ExportAutoScalingGroupRecommendationsInput) SetIncludeMemberAccounts(v bool) *ExportAutoScalingGroupRecommendationsInput {
+ s.IncludeMemberAccounts = &v
+ return s
+}
+
+// SetS3DestinationConfig sets the S3DestinationConfig field's value.
+func (s *ExportAutoScalingGroupRecommendationsInput) SetS3DestinationConfig(v *S3DestinationConfig) *ExportAutoScalingGroupRecommendationsInput {
+ s.S3DestinationConfig = v
+ return s
+}
+
+type ExportAutoScalingGroupRecommendationsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The identification number of the export job.
+ //
+ // Use the DescribeRecommendationExportJobs action, and specify the job ID to
+ // view the status of an export job.
+ JobId *string `locationName:"jobId" type:"string"`
+
+ // An object that describes the destination Amazon S3 bucket of a recommendations
+ // export file.
+ S3Destination *S3Destination `locationName:"s3Destination" type:"structure"`
+}
+
+// String returns the string representation
+func (s ExportAutoScalingGroupRecommendationsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportAutoScalingGroupRecommendationsOutput) GoString() string {
+ return s.String()
+}
+
+// SetJobId sets the JobId field's value.
+func (s *ExportAutoScalingGroupRecommendationsOutput) SetJobId(v string) *ExportAutoScalingGroupRecommendationsOutput {
+ s.JobId = &v
+ return s
+}
+
+// SetS3Destination sets the S3Destination field's value.
+func (s *ExportAutoScalingGroupRecommendationsOutput) SetS3Destination(v *S3Destination) *ExportAutoScalingGroupRecommendationsOutput {
+ s.S3Destination = v
+ return s
+}
+
+// Describes the destination of the recommendations export and metadata files.
+type ExportDestination struct {
+ _ struct{} `type:"structure"`
+
+ // An object that describes the destination Amazon Simple Storage Service (Amazon
+ // S3) bucket name and object keys of a recommendations export file, and its
+ // associated metadata file.
+ S3 *S3Destination `locationName:"s3" type:"structure"`
+}
+
+// String returns the string representation
+func (s ExportDestination) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportDestination) GoString() string {
+ return s.String()
+}
+
+// SetS3 sets the S3 field's value.
+func (s *ExportDestination) SetS3(v *S3Destination) *ExportDestination {
+ s.S3 = v
+ return s
+}
+
+type ExportEC2InstanceRecommendationsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The IDs of the AWS accounts for which to export instance recommendations.
+ //
+ // If your account is the master account of an organization, use this parameter
+ // to specify the member accounts for which you want to export recommendations.
+ //
+ // This parameter cannot be specified together with the include member accounts
+ // parameter. The parameters are mutually exclusive.
+ //
+ // Recommendations for member accounts are not included in the export if this
+ // parameter, or the include member accounts parameter, is omitted.
+ //
+ // You can specify multiple account IDs per request.
+ AccountIds []*string `locationName:"accountIds" type:"list"`
+
+ // The recommendations data to include in the export file.
+ FieldsToExport []*string `locationName:"fieldsToExport" type:"list"`
+
+ // The format of the export file.
+ //
+ // The only export file format currently supported is Csv.
+ FileFormat *string `locationName:"fileFormat" type:"string" enum:"FileFormat"`
+
+ // An array of objects that describe a filter to export a more specific set
+ // of instance recommendations.
+ Filters []*Filter `locationName:"filters" type:"list"`
+
+ // Indicates whether to include recommendations for resources in all member
+ // accounts of the organization if your account is the master account of an
+ // organization.
+ //
+ // The member accounts must also be opted in to Compute Optimizer.
+ //
+ // Recommendations for member accounts of the organization are not included
+ // in the export file if this parameter is omitted.
+ //
+ // Recommendations for member accounts are not included in the export if this
+ // parameter, or the account IDs parameter, is omitted.
+ IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"`
+
+ // An object to specify the destination Amazon Simple Storage Service (Amazon
+ // S3) bucket name and key prefix for the export job.
+ //
+ // You must create the destination Amazon S3 bucket for your recommendations
+ // export before you create the export job. Compute Optimizer does not create
+ // the S3 bucket for you. After you create the S3 bucket, ensure that it has
+ // the required permission policy to allow Compute Optimizer to write the export
+ // file to it. If you plan to specify an object prefix when you create the export
+ // job, you must include the object prefix in the policy that you add to the
+ // S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute
+ // Optimizer (https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html)
+ // in the Compute Optimizer user guide.
+ //
+ // S3DestinationConfig is a required field
+ S3DestinationConfig *S3DestinationConfig `locationName:"s3DestinationConfig" type:"structure" required:"true"`
+}
+
+// String returns the string representation
+func (s ExportEC2InstanceRecommendationsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportEC2InstanceRecommendationsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ExportEC2InstanceRecommendationsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ExportEC2InstanceRecommendationsInput"}
+ if s.S3DestinationConfig == nil {
+ invalidParams.Add(request.NewErrParamRequired("S3DestinationConfig"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetAccountIds sets the AccountIds field's value.
+func (s *ExportEC2InstanceRecommendationsInput) SetAccountIds(v []*string) *ExportEC2InstanceRecommendationsInput {
+ s.AccountIds = v
+ return s
+}
+
+// SetFieldsToExport sets the FieldsToExport field's value.
+func (s *ExportEC2InstanceRecommendationsInput) SetFieldsToExport(v []*string) *ExportEC2InstanceRecommendationsInput {
+ s.FieldsToExport = v
+ return s
+}
+
+// SetFileFormat sets the FileFormat field's value.
+func (s *ExportEC2InstanceRecommendationsInput) SetFileFormat(v string) *ExportEC2InstanceRecommendationsInput {
+ s.FileFormat = &v
+ return s
+}
+
+// SetFilters sets the Filters field's value.
+func (s *ExportEC2InstanceRecommendationsInput) SetFilters(v []*Filter) *ExportEC2InstanceRecommendationsInput {
+ s.Filters = v
+ return s
+}
+
+// SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value.
+func (s *ExportEC2InstanceRecommendationsInput) SetIncludeMemberAccounts(v bool) *ExportEC2InstanceRecommendationsInput {
+ s.IncludeMemberAccounts = &v
+ return s
+}
+
+// SetS3DestinationConfig sets the S3DestinationConfig field's value.
+func (s *ExportEC2InstanceRecommendationsInput) SetS3DestinationConfig(v *S3DestinationConfig) *ExportEC2InstanceRecommendationsInput {
+ s.S3DestinationConfig = v
+ return s
+}
+
+type ExportEC2InstanceRecommendationsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The identification number of the export job.
+ //
+ // Use the DescribeRecommendationExportJobs action, and specify the job ID to
+ // view the status of an export job.
+ JobId *string `locationName:"jobId" type:"string"`
+
+ // An object that describes the destination Amazon S3 bucket of a recommendations
+ // export file.
+ S3Destination *S3Destination `locationName:"s3Destination" type:"structure"`
+}
+
+// String returns the string representation
+func (s ExportEC2InstanceRecommendationsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s ExportEC2InstanceRecommendationsOutput) GoString() string {
+ return s.String()
+}
+
+// SetJobId sets the JobId field's value.
+func (s *ExportEC2InstanceRecommendationsOutput) SetJobId(v string) *ExportEC2InstanceRecommendationsOutput {
+ s.JobId = &v
return s
}
-// SetRank sets the Rank field's value.
-func (s *AutoScalingGroupRecommendationOption) SetRank(v int64) *AutoScalingGroupRecommendationOption {
- s.Rank = &v
+// SetS3Destination sets the S3Destination field's value.
+func (s *ExportEC2InstanceRecommendationsOutput) SetS3Destination(v *S3Destination) *ExportEC2InstanceRecommendationsOutput {
+ s.S3Destination = v
return s
}
@@ -920,23 +1669,24 @@ type Filter struct {
// The name of the filter.
//
- // Specify Finding to filter the results to a specific findings classification.
+ // Specify Finding to return recommendations with a specific findings classification
+ // (e.g., Overprovisioned).
//
- // Specify RecommendationSourceType to filter the results to a specific resource
- // type.
+ // Specify RecommendationSourceType to return recommendations of a specific
+ // resource type (e.g., AutoScalingGroup).
Name *string `locationName:"name" type:"string" enum:"FilterName"`
// The value of the filter.
//
- // If you specify the name parameter as Finding, and you're recommendations
+ // If you specify the name parameter as Finding, and you request recommendations
// for an instance, then the valid values are Underprovisioned, Overprovisioned,
// NotOptimized, or Optimized.
//
- // If you specify the name parameter as Finding, and you're recommendations
+ // If you specify the name parameter as Finding, and you request recommendations
// for an Auto Scaling group, then the valid values are Optimized, or NotOptimized.
//
// If you specify the name parameter as RecommendationSourceType, then the valid
- // values are EC2Instance, or AutoScalingGroup.
+ // values are Ec2Instance, or AutoScalingGroup.
Values []*string `locationName:"values" type:"list"`
}
@@ -965,7 +1715,11 @@ func (s *Filter) SetValues(v []*string) *Filter {
type GetAutoScalingGroupRecommendationsInput struct {
_ struct{} `type:"structure"`
- // The AWS account IDs for which to return Auto Scaling group recommendations.
+ // The IDs of the AWS accounts for which to return Auto Scaling group recommendations.
+ //
+ // If your account is the master account of an organization, use this parameter
+ // to specify the member accounts for which you want to return Auto Scaling
+ // group recommendations.
//
// Only one account ID can be specified per request.
AccountIds []*string `locationName:"accountIds" type:"list"`
@@ -979,10 +1733,10 @@ type GetAutoScalingGroupRecommendationsInput struct {
Filters []*Filter `locationName:"filters" type:"list"`
// The maximum number of Auto Scaling group recommendations to return with a
- // single call.
+ // single request.
//
- // To retrieve the remaining results, make another call with the returned NextToken
- // value.
+ // To retrieve the remaining results, make another request with the returned
+ // NextToken value.
MaxResults *int64 `locationName:"maxResults" type:"integer"`
// The token to advance to the next page of Auto Scaling group recommendations.
@@ -1079,7 +1833,10 @@ func (s *GetAutoScalingGroupRecommendationsOutput) SetNextToken(v string) *GetAu
type GetEC2InstanceRecommendationsInput struct {
_ struct{} `type:"structure"`
- // The AWS account IDs for which to return instance recommendations.
+ // The IDs of the AWS accounts for which to return instance recommendations.
+ //
+ // If your account is the master account of an organization, use this parameter
+ // to specify the member accounts for which you want to return instance recommendations.
//
// Only one account ID can be specified per request.
AccountIds []*string `locationName:"accountIds" type:"list"`
@@ -1091,10 +1848,10 @@ type GetEC2InstanceRecommendationsInput struct {
// The Amazon Resource Name (ARN) of the instances for which to return recommendations.
InstanceArns []*string `locationName:"instanceArns" type:"list"`
- // The maximum number of instance recommendations to return with a single call.
+ // The maximum number of instance recommendations to return with a single request.
//
- // To retrieve the remaining results, make another call with the returned NextToken
- // value.
+ // To retrieve the remaining results, make another request with the returned
+ // NextToken value.
MaxResults *int64 `locationName:"maxResults" type:"integer"`
// The token to advance to the next page of instance recommendations.
@@ -1414,15 +2171,19 @@ func (s *GetRecommendationError) SetMessage(v string) *GetRecommendationError {
type GetRecommendationSummariesInput struct {
_ struct{} `type:"structure"`
- // The AWS account IDs for which to return recommendation summaries.
+ // The IDs of the AWS accounts for which to return recommendation summaries.
+ //
+ // If your account is the master account of an organization, use this parameter
+ // to specify the member accounts for which you want to return recommendation
+ // summaries.
//
// Only one account ID can be specified per request.
AccountIds []*string `locationName:"accountIds" type:"list"`
- // The maximum number of recommendation summaries to return with a single call.
+ // The maximum number of recommendation summaries to return with a single request.
//
- // To retrieve the remaining results, make another call with the returned NextToken
- // value.
+ // To retrieve the remaining results, make another request with the returned
+ // NextToken value.
MaxResults *int64 `locationName:"maxResults" type:"integer"`
// The token to advance to the next page of recommendation summaries.
@@ -1496,7 +2257,7 @@ func (s *GetRecommendationSummariesOutput) SetRecommendationSummaries(v []*Recom
type InstanceRecommendation struct {
_ struct{} `type:"structure"`
- // The AWS account ID of the instance recommendation.
+ // The AWS account ID of the instance.
AccountId *string `locationName:"accountId" type:"string"`
// The instance type of the current instance.
@@ -1679,8 +2440,7 @@ func (s *InstanceRecommendationOption) SetRank(v int64) *InstanceRecommendationO
return s
}
-// The request processing has failed because of an unknown error, exception,
-// or failure.
+// An internal error has occurred. Try your call again.
type InternalServerException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -1792,6 +2552,109 @@ func (s *InvalidParameterValueException) RequestID() string {
return s.RespMetadata.RequestID
}
+// Describes a filter that returns a more specific list of recommendation export
+// jobs.
+//
+// This filter is used with the DescribeRecommendationExportJobs action.
+type JobFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the filter.
+ //
+ // Specify ResourceType to return export jobs of a specific resource type (e.g.,
+ // Ec2Instance).
+ //
+ // Specify JobStatus to return export jobs with a specific status (e.g, Complete).
+ Name *string `locationName:"name" type:"string" enum:"JobFilterName"`
+
+ // The value of the filter.
+ //
+ // If you specify the name parameter as ResourceType, the valid values are Ec2Instance
+ // or AutoScalingGroup.
+ //
+ // If you specify the name parameter as JobStatus, the valid values are Queued,
+ // InProgress, Complete, or Failed.
+ Values []*string `locationName:"values" type:"list"`
+}
+
+// String returns the string representation
+func (s JobFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s JobFilter) GoString() string {
+ return s.String()
+}
+
+// SetName sets the Name field's value.
+func (s *JobFilter) SetName(v string) *JobFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *JobFilter) SetValues(v []*string) *JobFilter {
+ s.Values = v
+ return s
+}
+
+// The request exceeds a limit of the service.
+type LimitExceededException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"message" type:"string"`
+}
+
+// String returns the string representation
+func (s LimitExceededException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s LimitExceededException) GoString() string {
+ return s.String()
+}
+
+func newErrorLimitExceededException(v protocol.ResponseMetadata) error {
+ return &LimitExceededException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *LimitExceededException) Code() string {
+ return "LimitExceededException"
+}
+
+// Message returns the exception's message.
+func (s *LimitExceededException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *LimitExceededException) OrigErr() error {
+ return nil
+}
+
+func (s *LimitExceededException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *LimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *LimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
// The request must contain either a valid (registered) AWS access key ID or
// X.509 certificate.
type MissingAuthenticationToken struct {
@@ -1849,7 +2712,7 @@ func (s *MissingAuthenticationToken) RequestID() string {
return s.RespMetadata.RequestID
}
-// You must opt in to the service to perform this action.
+// The account is not opted in to AWS Compute Optimizer.
type OptInRequiredException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -1952,6 +2815,90 @@ func (s *ProjectedMetric) SetValues(v []*float64) *ProjectedMetric {
return s
}
+// Describes a recommendation export job.
+//
+// Use the DescribeRecommendationExportJobs action to view your recommendation
+// export jobs.
+//
+// Use the ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations
+// actions to request an export of your recommendations.
+type RecommendationExportJob struct {
+ _ struct{} `type:"structure"`
+
+ // The timestamp of when the export job was created.
+ CreationTimestamp *time.Time `locationName:"creationTimestamp" type:"timestamp"`
+
+ // An object that describes the destination of the export file.
+ Destination *ExportDestination `locationName:"destination" type:"structure"`
+
+ // The reason for an export job failure.
+ FailureReason *string `locationName:"failureReason" type:"string"`
+
+ // The identification number of the export job.
+ JobId *string `locationName:"jobId" type:"string"`
+
+ // The timestamp of when the export job was last updated.
+ LastUpdatedTimestamp *time.Time `locationName:"lastUpdatedTimestamp" type:"timestamp"`
+
+ // The resource type of the exported recommendations.
+ ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"`
+
+ // The status of the export job.
+ Status *string `locationName:"status" type:"string" enum:"JobStatus"`
+}
+
+// String returns the string representation
+func (s RecommendationExportJob) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s RecommendationExportJob) GoString() string {
+ return s.String()
+}
+
+// SetCreationTimestamp sets the CreationTimestamp field's value.
+func (s *RecommendationExportJob) SetCreationTimestamp(v time.Time) *RecommendationExportJob {
+ s.CreationTimestamp = &v
+ return s
+}
+
+// SetDestination sets the Destination field's value.
+func (s *RecommendationExportJob) SetDestination(v *ExportDestination) *RecommendationExportJob {
+ s.Destination = v
+ return s
+}
+
+// SetFailureReason sets the FailureReason field's value.
+func (s *RecommendationExportJob) SetFailureReason(v string) *RecommendationExportJob {
+ s.FailureReason = &v
+ return s
+}
+
+// SetJobId sets the JobId field's value.
+func (s *RecommendationExportJob) SetJobId(v string) *RecommendationExportJob {
+ s.JobId = &v
+ return s
+}
+
+// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value.
+func (s *RecommendationExportJob) SetLastUpdatedTimestamp(v time.Time) *RecommendationExportJob {
+ s.LastUpdatedTimestamp = &v
+ return s
+}
+
+// SetResourceType sets the ResourceType field's value.
+func (s *RecommendationExportJob) SetResourceType(v string) *RecommendationExportJob {
+ s.ResourceType = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *RecommendationExportJob) SetStatus(v string) *RecommendationExportJob {
+ s.Status = &v
+ return s
+}
+
// Describes the source of a recommendation, such as an Amazon EC2 instance
// or Auto Scaling group.
type RecommendationSource struct {
@@ -2076,7 +3023,7 @@ func (s *RecommendedOptionProjectedMetric) SetRecommendedInstanceType(v string)
return s
}
-// The specified resource was not found.
+// A resource that is required for the action doesn't exist.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -2132,6 +3079,99 @@ func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
+// Describes the destination Amazon Simple Storage Service (Amazon S3) bucket
+// name and object keys of a recommendations export file, and its associated
+// metadata file.
+type S3Destination struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the Amazon S3 bucket used as the destination of an export file.
+ Bucket *string `locationName:"bucket" type:"string"`
+
+ // The Amazon S3 bucket key of an export file.
+ //
+ // The key uniquely identifies the object, or export file, in the S3 bucket.
+ Key *string `locationName:"key" type:"string"`
+
+ // The Amazon S3 bucket key of a metadata file.
+ //
+ // The key uniquely identifies the object, or metadata file, in the S3 bucket.
+ MetadataKey *string `locationName:"metadataKey" type:"string"`
+}
+
+// String returns the string representation
+func (s S3Destination) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s S3Destination) GoString() string {
+ return s.String()
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *S3Destination) SetBucket(v string) *S3Destination {
+ s.Bucket = &v
+ return s
+}
+
+// SetKey sets the Key field's value.
+func (s *S3Destination) SetKey(v string) *S3Destination {
+ s.Key = &v
+ return s
+}
+
+// SetMetadataKey sets the MetadataKey field's value.
+func (s *S3Destination) SetMetadataKey(v string) *S3Destination {
+ s.MetadataKey = &v
+ return s
+}
+
+// Describes the destination Amazon Simple Storage Service (Amazon S3) bucket
+// name and key prefix for a recommendations export job.
+//
+// You must create the destination Amazon S3 bucket for your recommendations
+// export before you create the export job. Compute Optimizer does not create
+// the S3 bucket for you. After you create the S3 bucket, ensure that it has
+// the required permission policy to allow Compute Optimizer to write the export
+// file to it. If you plan to specify an object prefix when you create the export
+// job, you must include the object prefix in the policy that you add to the
+// S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute
+// Optimizer (https://docs.aws.amazon.com/compute-optimizer/latest/ug/create-s3-bucket-policy-for-compute-optimizer.html)
+// in the Compute Optimizer user guide.
+type S3DestinationConfig struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the Amazon S3 bucket to use as the destination for an export
+ // job.
+ Bucket *string `locationName:"bucket" type:"string"`
+
+ // The Amazon S3 bucket prefix for an export job.
+ KeyPrefix *string `locationName:"keyPrefix" type:"string"`
+}
+
+// String returns the string representation
+func (s S3DestinationConfig) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation
+func (s S3DestinationConfig) GoString() string {
+ return s.String()
+}
+
+// SetBucket sets the Bucket field's value.
+func (s *S3DestinationConfig) SetBucket(v string) *S3DestinationConfig {
+ s.Bucket = &v
+ return s
+}
+
+// SetKeyPrefix sets the KeyPrefix field's value.
+func (s *S3DestinationConfig) SetKeyPrefix(v string) *S3DestinationConfig {
+ s.KeyPrefix = &v
+ return s
+}
+
// The request has failed due to a temporary failure of the server.
type ServiceUnavailableException struct {
_ struct{} `type:"structure"`
@@ -2221,7 +3261,7 @@ func (s *Summary) SetValue(v float64) *Summary {
return s
}
-// The limit on the number of requests per second was exceeded.
+// The request was denied due to request throttling.
type ThrottlingException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -2280,8 +3320,8 @@ func (s *ThrottlingException) RequestID() string {
type UpdateEnrollmentStatusInput struct {
_ struct{} `type:"structure"`
- // Indicates whether to enroll member accounts within the organization, if the
- // account is a master account of an organization.
+ // Indicates whether to enroll member accounts of the organization if the your
+ // account is the master account of an organization.
IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"`
// The new enrollment status of the account.
@@ -2408,6 +3448,201 @@ func (s *UtilizationMetric) SetValue(v float64) *UtilizationMetric {
return s
}
+const (
+ // ExportableAutoScalingGroupFieldAccountId is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldAccountId = "AccountId"
+
+ // ExportableAutoScalingGroupFieldAutoScalingGroupArn is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldAutoScalingGroupArn = "AutoScalingGroupArn"
+
+ // ExportableAutoScalingGroupFieldAutoScalingGroupName is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldAutoScalingGroupName = "AutoScalingGroupName"
+
+ // ExportableAutoScalingGroupFieldFinding is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldFinding = "Finding"
+
+ // ExportableAutoScalingGroupFieldUtilizationMetricsCpuMaximum is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldUtilizationMetricsCpuMaximum = "UtilizationMetricsCpuMaximum"
+
+ // ExportableAutoScalingGroupFieldUtilizationMetricsMemoryMaximum is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldUtilizationMetricsMemoryMaximum = "UtilizationMetricsMemoryMaximum"
+
+ // ExportableAutoScalingGroupFieldLookbackPeriodInDays is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldLookbackPeriodInDays = "LookbackPeriodInDays"
+
+ // ExportableAutoScalingGroupFieldCurrentConfigurationInstanceType is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentConfigurationInstanceType = "CurrentConfigurationInstanceType"
+
+ // ExportableAutoScalingGroupFieldCurrentConfigurationDesiredCapacity is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentConfigurationDesiredCapacity = "CurrentConfigurationDesiredCapacity"
+
+ // ExportableAutoScalingGroupFieldCurrentConfigurationMinSize is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentConfigurationMinSize = "CurrentConfigurationMinSize"
+
+ // ExportableAutoScalingGroupFieldCurrentConfigurationMaxSize is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentConfigurationMaxSize = "CurrentConfigurationMaxSize"
+
+ // ExportableAutoScalingGroupFieldCurrentOnDemandPrice is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentOnDemandPrice = "CurrentOnDemandPrice"
+
+ // ExportableAutoScalingGroupFieldCurrentStandardOneYearNoUpfrontReservedPrice is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentStandardOneYearNoUpfrontReservedPrice = "CurrentStandardOneYearNoUpfrontReservedPrice"
+
+ // ExportableAutoScalingGroupFieldCurrentStandardThreeYearNoUpfrontReservedPrice is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentStandardThreeYearNoUpfrontReservedPrice = "CurrentStandardThreeYearNoUpfrontReservedPrice"
+
+ // ExportableAutoScalingGroupFieldCurrentVcpus is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentVcpus = "CurrentVCpus"
+
+ // ExportableAutoScalingGroupFieldCurrentMemory is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentMemory = "CurrentMemory"
+
+ // ExportableAutoScalingGroupFieldCurrentStorage is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentStorage = "CurrentStorage"
+
+ // ExportableAutoScalingGroupFieldCurrentNetwork is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldCurrentNetwork = "CurrentNetwork"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationInstanceType is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationInstanceType = "RecommendationOptionsConfigurationInstanceType"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationDesiredCapacity is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationDesiredCapacity = "RecommendationOptionsConfigurationDesiredCapacity"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationMinSize is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationMinSize = "RecommendationOptionsConfigurationMinSize"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationMaxSize is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsConfigurationMaxSize = "RecommendationOptionsConfigurationMaxSize"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsProjectedUtilizationMetricsCpuMaximum is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsProjectedUtilizationMetricsCpuMaximum = "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsProjectedUtilizationMetricsMemoryMaximum is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsProjectedUtilizationMetricsMemoryMaximum = "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsPerformanceRisk is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsPerformanceRisk = "RecommendationOptionsPerformanceRisk"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsOnDemandPrice is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsOnDemandPrice = "RecommendationOptionsOnDemandPrice"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsStandardOneYearNoUpfrontReservedPrice is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsStandardOneYearNoUpfrontReservedPrice = "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsStandardThreeYearNoUpfrontReservedPrice is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsStandardThreeYearNoUpfrontReservedPrice = "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsVcpus is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsVcpus = "RecommendationOptionsVcpus"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsMemory is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsMemory = "RecommendationOptionsMemory"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsStorage is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsStorage = "RecommendationOptionsStorage"
+
+ // ExportableAutoScalingGroupFieldRecommendationOptionsNetwork is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldRecommendationOptionsNetwork = "RecommendationOptionsNetwork"
+
+ // ExportableAutoScalingGroupFieldLastRefreshTimestamp is a ExportableAutoScalingGroupField enum value
+ ExportableAutoScalingGroupFieldLastRefreshTimestamp = "LastRefreshTimestamp"
+)
+
+const (
+ // ExportableInstanceFieldAccountId is a ExportableInstanceField enum value
+ ExportableInstanceFieldAccountId = "AccountId"
+
+ // ExportableInstanceFieldInstanceArn is a ExportableInstanceField enum value
+ ExportableInstanceFieldInstanceArn = "InstanceArn"
+
+ // ExportableInstanceFieldInstanceName is a ExportableInstanceField enum value
+ ExportableInstanceFieldInstanceName = "InstanceName"
+
+ // ExportableInstanceFieldFinding is a ExportableInstanceField enum value
+ ExportableInstanceFieldFinding = "Finding"
+
+ // ExportableInstanceFieldLookbackPeriodInDays is a ExportableInstanceField enum value
+ ExportableInstanceFieldLookbackPeriodInDays = "LookbackPeriodInDays"
+
+ // ExportableInstanceFieldCurrentInstanceType is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentInstanceType = "CurrentInstanceType"
+
+ // ExportableInstanceFieldUtilizationMetricsCpuMaximum is a ExportableInstanceField enum value
+ ExportableInstanceFieldUtilizationMetricsCpuMaximum = "UtilizationMetricsCpuMaximum"
+
+ // ExportableInstanceFieldUtilizationMetricsMemoryMaximum is a ExportableInstanceField enum value
+ ExportableInstanceFieldUtilizationMetricsMemoryMaximum = "UtilizationMetricsMemoryMaximum"
+
+ // ExportableInstanceFieldCurrentOnDemandPrice is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentOnDemandPrice = "CurrentOnDemandPrice"
+
+ // ExportableInstanceFieldCurrentStandardOneYearNoUpfrontReservedPrice is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentStandardOneYearNoUpfrontReservedPrice = "CurrentStandardOneYearNoUpfrontReservedPrice"
+
+ // ExportableInstanceFieldCurrentStandardThreeYearNoUpfrontReservedPrice is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentStandardThreeYearNoUpfrontReservedPrice = "CurrentStandardThreeYearNoUpfrontReservedPrice"
+
+ // ExportableInstanceFieldCurrentVcpus is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentVcpus = "CurrentVCpus"
+
+ // ExportableInstanceFieldCurrentMemory is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentMemory = "CurrentMemory"
+
+ // ExportableInstanceFieldCurrentStorage is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentStorage = "CurrentStorage"
+
+ // ExportableInstanceFieldCurrentNetwork is a ExportableInstanceField enum value
+ ExportableInstanceFieldCurrentNetwork = "CurrentNetwork"
+
+ // ExportableInstanceFieldRecommendationOptionsInstanceType is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsInstanceType = "RecommendationOptionsInstanceType"
+
+ // ExportableInstanceFieldRecommendationOptionsProjectedUtilizationMetricsCpuMaximum is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsProjectedUtilizationMetricsCpuMaximum = "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"
+
+ // ExportableInstanceFieldRecommendationOptionsProjectedUtilizationMetricsMemoryMaximum is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsProjectedUtilizationMetricsMemoryMaximum = "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"
+
+ // ExportableInstanceFieldRecommendationOptionsPerformanceRisk is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsPerformanceRisk = "RecommendationOptionsPerformanceRisk"
+
+ // ExportableInstanceFieldRecommendationOptionsVcpus is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsVcpus = "RecommendationOptionsVcpus"
+
+ // ExportableInstanceFieldRecommendationOptionsMemory is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsMemory = "RecommendationOptionsMemory"
+
+ // ExportableInstanceFieldRecommendationOptionsStorage is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsStorage = "RecommendationOptionsStorage"
+
+ // ExportableInstanceFieldRecommendationOptionsNetwork is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsNetwork = "RecommendationOptionsNetwork"
+
+ // ExportableInstanceFieldRecommendationOptionsOnDemandPrice is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsOnDemandPrice = "RecommendationOptionsOnDemandPrice"
+
+ // ExportableInstanceFieldRecommendationOptionsStandardOneYearNoUpfrontReservedPrice is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsStandardOneYearNoUpfrontReservedPrice = "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"
+
+ // ExportableInstanceFieldRecommendationOptionsStandardThreeYearNoUpfrontReservedPrice is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationOptionsStandardThreeYearNoUpfrontReservedPrice = "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"
+
+ // ExportableInstanceFieldRecommendationsSourcesRecommendationSourceArn is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationsSourcesRecommendationSourceArn = "RecommendationsSourcesRecommendationSourceArn"
+
+ // ExportableInstanceFieldRecommendationsSourcesRecommendationSourceType is a ExportableInstanceField enum value
+ ExportableInstanceFieldRecommendationsSourcesRecommendationSourceType = "RecommendationsSourcesRecommendationSourceType"
+
+ // ExportableInstanceFieldLastRefreshTimestamp is a ExportableInstanceField enum value
+ ExportableInstanceFieldLastRefreshTimestamp = "LastRefreshTimestamp"
+)
+
+const (
+ // FileFormatCsv is a FileFormat enum value
+ FileFormatCsv = "Csv"
+)
+
const (
// FilterNameFinding is a FilterName enum value
FilterNameFinding = "Finding"
@@ -2430,6 +3665,28 @@ const (
FindingNotOptimized = "NotOptimized"
)
+const (
+ // JobFilterNameResourceType is a JobFilterName enum value
+ JobFilterNameResourceType = "ResourceType"
+
+ // JobFilterNameJobStatus is a JobFilterName enum value
+ JobFilterNameJobStatus = "JobStatus"
+)
+
+const (
+ // JobStatusQueued is a JobStatus enum value
+ JobStatusQueued = "Queued"
+
+ // JobStatusInProgress is a JobStatus enum value
+ JobStatusInProgress = "InProgress"
+
+ // JobStatusComplete is a JobStatus enum value
+ JobStatusComplete = "Complete"
+
+ // JobStatusFailed is a JobStatus enum value
+ JobStatusFailed = "Failed"
+)
+
const (
// MetricNameCpu is a MetricName enum value
MetricNameCpu = "Cpu"
@@ -2454,6 +3711,14 @@ const (
RecommendationSourceTypeAutoScalingGroup = "AutoScalingGroup"
)
+const (
+ // ResourceTypeEc2instance is a ResourceType enum value
+ ResourceTypeEc2instance = "Ec2Instance"
+
+ // ResourceTypeAutoScalingGroup is a ResourceType enum value
+ ResourceTypeAutoScalingGroup = "AutoScalingGroup"
+)
+
const (
// StatusActive is a Status enum value
StatusActive = "Active"
diff --git a/service/computeoptimizer/computeoptimizeriface/interface.go b/service/computeoptimizer/computeoptimizeriface/interface.go
index 7bc1195d482..e36f2aefc1b 100644
--- a/service/computeoptimizer/computeoptimizeriface/interface.go
+++ b/service/computeoptimizer/computeoptimizeriface/interface.go
@@ -26,7 +26,7 @@ import (
// // myFunc uses an SDK service client to make a request to
// // AWS Compute Optimizer.
// func myFunc(svc computeoptimizeriface.ComputeOptimizerAPI) bool {
-// // Make svc.GetAutoScalingGroupRecommendations request
+// // Make svc.DescribeRecommendationExportJobs request
// }
//
// func main() {
@@ -42,7 +42,7 @@ import (
// type mockComputeOptimizerClient struct {
// computeoptimizeriface.ComputeOptimizerAPI
// }
-// func (m *mockComputeOptimizerClient) GetAutoScalingGroupRecommendations(input *computeoptimizer.GetAutoScalingGroupRecommendationsInput) (*computeoptimizer.GetAutoScalingGroupRecommendationsOutput, error) {
+// func (m *mockComputeOptimizerClient) DescribeRecommendationExportJobs(input *computeoptimizer.DescribeRecommendationExportJobsInput) (*computeoptimizer.DescribeRecommendationExportJobsOutput, error) {
// // mock response/functionality
// }
//
@@ -60,6 +60,18 @@ import (
// and waiters. Its suggested to use the pattern above for testing, or using
// tooling to generate mocks to satisfy the interfaces.
type ComputeOptimizerAPI interface {
+ DescribeRecommendationExportJobs(*computeoptimizer.DescribeRecommendationExportJobsInput) (*computeoptimizer.DescribeRecommendationExportJobsOutput, error)
+ DescribeRecommendationExportJobsWithContext(aws.Context, *computeoptimizer.DescribeRecommendationExportJobsInput, ...request.Option) (*computeoptimizer.DescribeRecommendationExportJobsOutput, error)
+ DescribeRecommendationExportJobsRequest(*computeoptimizer.DescribeRecommendationExportJobsInput) (*request.Request, *computeoptimizer.DescribeRecommendationExportJobsOutput)
+
+ ExportAutoScalingGroupRecommendations(*computeoptimizer.ExportAutoScalingGroupRecommendationsInput) (*computeoptimizer.ExportAutoScalingGroupRecommendationsOutput, error)
+ ExportAutoScalingGroupRecommendationsWithContext(aws.Context, *computeoptimizer.ExportAutoScalingGroupRecommendationsInput, ...request.Option) (*computeoptimizer.ExportAutoScalingGroupRecommendationsOutput, error)
+ ExportAutoScalingGroupRecommendationsRequest(*computeoptimizer.ExportAutoScalingGroupRecommendationsInput) (*request.Request, *computeoptimizer.ExportAutoScalingGroupRecommendationsOutput)
+
+ ExportEC2InstanceRecommendations(*computeoptimizer.ExportEC2InstanceRecommendationsInput) (*computeoptimizer.ExportEC2InstanceRecommendationsOutput, error)
+ ExportEC2InstanceRecommendationsWithContext(aws.Context, *computeoptimizer.ExportEC2InstanceRecommendationsInput, ...request.Option) (*computeoptimizer.ExportEC2InstanceRecommendationsOutput, error)
+ ExportEC2InstanceRecommendationsRequest(*computeoptimizer.ExportEC2InstanceRecommendationsInput) (*request.Request, *computeoptimizer.ExportEC2InstanceRecommendationsOutput)
+
GetAutoScalingGroupRecommendations(*computeoptimizer.GetAutoScalingGroupRecommendationsInput) (*computeoptimizer.GetAutoScalingGroupRecommendationsOutput, error)
GetAutoScalingGroupRecommendationsWithContext(aws.Context, *computeoptimizer.GetAutoScalingGroupRecommendationsInput, ...request.Option) (*computeoptimizer.GetAutoScalingGroupRecommendationsOutput, error)
GetAutoScalingGroupRecommendationsRequest(*computeoptimizer.GetAutoScalingGroupRecommendationsInput) (*request.Request, *computeoptimizer.GetAutoScalingGroupRecommendationsOutput)
diff --git a/service/computeoptimizer/doc.go b/service/computeoptimizer/doc.go
index 38ba6d5a512..b57c0b992c2 100644
--- a/service/computeoptimizer/doc.go
+++ b/service/computeoptimizer/doc.go
@@ -12,8 +12,9 @@
// use to evaluate which recommendation provides the best price-performance
// trade-off. The analysis of your usage patterns can help you decide when to
// move or resize your running resources, and still meet your performance and
-// capacity requirements. For more information about Compute Optimizer, see
-// the AWS Compute Optimizer User Guide (https://docs.aws.amazon.com/compute-optimizer/latest/ug/).
+// capacity requirements. For more information about Compute Optimizer, including
+// the required permissions to use the service, see the AWS Compute Optimizer
+// User Guide (https://docs.aws.amazon.com/compute-optimizer/latest/ug/).
//
// See https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01 for more information on this service.
//
diff --git a/service/computeoptimizer/errors.go b/service/computeoptimizer/errors.go
index 663845aaded..149e240bf1b 100644
--- a/service/computeoptimizer/errors.go
+++ b/service/computeoptimizer/errors.go
@@ -17,8 +17,7 @@ const (
// ErrCodeInternalServerException for service response error code
// "InternalServerException".
//
- // The request processing has failed because of an unknown error, exception,
- // or failure.
+ // An internal error has occurred. Try your call again.
ErrCodeInternalServerException = "InternalServerException"
// ErrCodeInvalidParameterValueException for service response error code
@@ -27,6 +26,12 @@ const (
// An invalid or out-of-range value was supplied for the input parameter.
ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
+ // ErrCodeLimitExceededException for service response error code
+ // "LimitExceededException".
+ //
+ // The request exceeds a limit of the service.
+ ErrCodeLimitExceededException = "LimitExceededException"
+
// ErrCodeMissingAuthenticationToken for service response error code
// "MissingAuthenticationToken".
//
@@ -37,13 +42,13 @@ const (
// ErrCodeOptInRequiredException for service response error code
// "OptInRequiredException".
//
- // You must opt in to the service to perform this action.
+ // The account is not opted in to AWS Compute Optimizer.
ErrCodeOptInRequiredException = "OptInRequiredException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
- // The specified resource was not found.
+ // A resource that is required for the action doesn't exist.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceUnavailableException for service response error code
@@ -55,7 +60,7 @@ const (
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
- // The limit on the number of requests per second was exceeded.
+ // The request was denied due to request throttling.
ErrCodeThrottlingException = "ThrottlingException"
)
@@ -63,6 +68,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"InternalServerException": newErrorInternalServerException,
"InvalidParameterValueException": newErrorInvalidParameterValueException,
+ "LimitExceededException": newErrorLimitExceededException,
"MissingAuthenticationToken": newErrorMissingAuthenticationToken,
"OptInRequiredException": newErrorOptInRequiredException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
diff --git a/service/ec2/api.go b/service/ec2/api.go
index fcfc8638202..08409e8c87e 100644
--- a/service/ec2/api.go
+++ b/service/ec2/api.go
@@ -111169,6 +111169,33 @@ const (
// InstanceTypeR5ad24xlarge is a InstanceType enum value
InstanceTypeR5ad24xlarge = "r5ad.24xlarge"
+ // InstanceTypeR6gMetal is a InstanceType enum value
+ InstanceTypeR6gMetal = "r6g.metal"
+
+ // InstanceTypeR6gMedium is a InstanceType enum value
+ InstanceTypeR6gMedium = "r6g.medium"
+
+ // InstanceTypeR6gLarge is a InstanceType enum value
+ InstanceTypeR6gLarge = "r6g.large"
+
+ // InstanceTypeR6gXlarge is a InstanceType enum value
+ InstanceTypeR6gXlarge = "r6g.xlarge"
+
+ // InstanceTypeR6g2xlarge is a InstanceType enum value
+ InstanceTypeR6g2xlarge = "r6g.2xlarge"
+
+ // InstanceTypeR6g4xlarge is a InstanceType enum value
+ InstanceTypeR6g4xlarge = "r6g.4xlarge"
+
+ // InstanceTypeR6g8xlarge is a InstanceType enum value
+ InstanceTypeR6g8xlarge = "r6g.8xlarge"
+
+ // InstanceTypeR6g12xlarge is a InstanceType enum value
+ InstanceTypeR6g12xlarge = "r6g.12xlarge"
+
+ // InstanceTypeR6g16xlarge is a InstanceType enum value
+ InstanceTypeR6g16xlarge = "r6g.16xlarge"
+
// InstanceTypeX116xlarge is a InstanceType enum value
InstanceTypeX116xlarge = "x1.16xlarge"
@@ -111388,6 +111415,33 @@ const (
// InstanceTypeC5n18xlarge is a InstanceType enum value
InstanceTypeC5n18xlarge = "c5n.18xlarge"
+ // InstanceTypeC6gMetal is a InstanceType enum value
+ InstanceTypeC6gMetal = "c6g.metal"
+
+ // InstanceTypeC6gMedium is a InstanceType enum value
+ InstanceTypeC6gMedium = "c6g.medium"
+
+ // InstanceTypeC6gLarge is a InstanceType enum value
+ InstanceTypeC6gLarge = "c6g.large"
+
+ // InstanceTypeC6gXlarge is a InstanceType enum value
+ InstanceTypeC6gXlarge = "c6g.xlarge"
+
+ // InstanceTypeC6g2xlarge is a InstanceType enum value
+ InstanceTypeC6g2xlarge = "c6g.2xlarge"
+
+ // InstanceTypeC6g4xlarge is a InstanceType enum value
+ InstanceTypeC6g4xlarge = "c6g.4xlarge"
+
+ // InstanceTypeC6g8xlarge is a InstanceType enum value
+ InstanceTypeC6g8xlarge = "c6g.8xlarge"
+
+ // InstanceTypeC6g12xlarge is a InstanceType enum value
+ InstanceTypeC6g12xlarge = "c6g.12xlarge"
+
+ // InstanceTypeC6g16xlarge is a InstanceType enum value
+ InstanceTypeC6g16xlarge = "c6g.16xlarge"
+
// InstanceTypeCc14xlarge is a InstanceType enum value
InstanceTypeCc14xlarge = "cc1.4xlarge"
diff --git a/service/lightsail/api.go b/service/lightsail/api.go
index 429d4cd700d..6bdd725ef20 100644
--- a/service/lightsail/api.go
+++ b/service/lightsail/api.go
@@ -19584,7 +19584,7 @@ type GetInstanceMetricDataInput struct {
// statistics to include in your request, and the published unit value.
//
// * BurstCapacityPercentage - The percentage of CPU performance available
- // for your instance to burst above its baseline. Your instance continously
+ // for your instance to burst above its baseline. Your instance continuously
// accrues and consumes burst capacity. Burst capacity stops accruing when
// your instance's BurstCapacityPercentage reaches 100%. For more information,
// see Viewing instance burst capacity in Amazon Lightsail (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity).
@@ -19592,15 +19592,16 @@ type GetInstanceMetricDataInput struct {
// The published unit is Percent.
//
// * BurstCapacityTime - The available amount of time for your instance to
- // burst at 100% CPU utilization. Your instance continously accrues and consumes
- // burst capacity. Burst capacity time stops accruing when your instance's
- // BurstCapacityPercentage metric reaches 100%. Burst capacity time is consumed
- // at the full rate only when your instance operates at 100% CPU utilization.
- // For example, if your instance operates at 50% CPU utilization in the burstable
- // zone for a 5-minute period, then it consumes CPU burst capacity minutes
- // at a 50% rate in that period. Your instance consumed 2 minutes and 30
- // seconds of CPU burst capacity minutes in the 5-minute period. For more
- // information, see Viewing instance burst capacity in Amazon Lightsail (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity).
+ // burst at 100% CPU utilization. Your instance continuously accrues and
+ // consumes burst capacity. Burst capacity time stops accruing when your
+ // instance's BurstCapacityPercentage metric reaches 100%. Burst capacity
+ // time is consumed at the full rate only when your instance operates at
+ // 100% CPU utilization. For example, if your instance operates at 50% CPU
+ // utilization in the burstable zone for a 5-minute period, then it consumes
+ // CPU burst capacity minutes at a 50% rate in that period. Your instance
+ // consumed 2 minutes and 30 seconds of CPU burst capacity minutes in the
+ // 5-minute period. For more information, see Viewing instance burst capacity
+ // in Amazon Lightsail (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity).
// Statistics: The most useful statistics are Maximum and Average. Unit:
// The published unit is Seconds.
//
@@ -23053,9 +23054,10 @@ type InstancePortInfo struct {
//
// * TCP and UDP - 0 to 65535
//
- // * ICMP - 8 (to configure Ping) Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // * ICMP - The ICMP type. For example, specify 8 as the fromPort (ICMP type),
+ // and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information,
+ // see Control Messages (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages)
+ // on Wikipedia.
FromPort *int64 `locationName:"fromPort" type:"integer"`
// The IP protocol name.
@@ -23082,9 +23084,9 @@ type InstancePortInfo struct {
// * icmp - Internet Control Message Protocol (ICMP) is used to send error
// messages and operational information indicating success or failure when
// communicating with an instance. For example, an error is indicated when
- // an instance could not be reached. Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // an instance could not be reached. When you specify icmp as the protocol,
+ // you must specify the ICMP type using the fromPort parameter, and ICMP
+ // code using the toPort parameter.
Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"`
// The last port in a range of open ports on an instance.
@@ -23093,9 +23095,10 @@ type InstancePortInfo struct {
//
// * TCP and UDP - 0 to 65535
//
- // * ICMP - -1 (to configure Ping) Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // * ICMP - The ICMP code. For example, specify 8 as the fromPort (ICMP type),
+ // and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information,
+ // see Control Messages (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages)
+ // on Wikipedia.
ToPort *int64 `locationName:"toPort" type:"integer"`
}
@@ -23190,9 +23193,10 @@ type InstancePortState struct {
//
// * TCP and UDP - 0 to 65535
//
- // * ICMP - 8 (to configure Ping) Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // * ICMP - The ICMP type. For example, specify 8 as the fromPort (ICMP type),
+ // and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information,
+ // see Control Messages (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages)
+ // on Wikipedia.
FromPort *int64 `locationName:"fromPort" type:"integer"`
// The IP protocol name.
@@ -23219,9 +23223,9 @@ type InstancePortState struct {
// * icmp - Internet Control Message Protocol (ICMP) is used to send error
// messages and operational information indicating success or failure when
// communicating with an instance. For example, an error is indicated when
- // an instance could not be reached. Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // an instance could not be reached. When you specify icmp as the protocol,
+ // you must specify the ICMP type using the fromPort parameter, and ICMP
+ // code using the toPort parameter.
Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"`
// Specifies whether the instance port is open or closed.
@@ -23235,9 +23239,10 @@ type InstancePortState struct {
//
// * TCP and UDP - 0 to 65535
//
- // * ICMP - -1 (to configure Ping) Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // * ICMP - The ICMP code. For example, specify 8 as the fromPort (ICMP type),
+ // and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information,
+ // see Control Messages (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages)
+ // on Wikipedia.
ToPort *int64 `locationName:"toPort" type:"integer"`
}
@@ -25054,9 +25059,10 @@ type PortInfo struct {
//
// * TCP and UDP - 0 to 65535
//
- // * ICMP - 8 (to configure Ping) Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // * ICMP - The ICMP type. For example, specify 8 as the fromPort (ICMP type),
+ // and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information,
+ // see Control Messages (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages)
+ // on Wikipedia.
FromPort *int64 `locationName:"fromPort" type:"integer"`
// The IP protocol name.
@@ -25083,9 +25089,9 @@ type PortInfo struct {
// * icmp - Internet Control Message Protocol (ICMP) is used to send error
// messages and operational information indicating success or failure when
// communicating with an instance. For example, an error is indicated when
- // an instance could not be reached. Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // an instance could not be reached. When you specify icmp as the protocol,
+ // you must specify the ICMP type using the fromPort parameter, and ICMP
+ // code using the toPort parameter.
Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"`
// The last port in a range of open ports on an instance.
@@ -25094,9 +25100,10 @@ type PortInfo struct {
//
// * TCP and UDP - 0 to 65535
//
- // * ICMP - -1 (to configure Ping) Ping is the only communication supported
- // through the ICMP protocol in Lightsail. To configure ping, specify the
- // fromPort parameter as 8, and the toPort parameter as -1.
+ // * ICMP - The ICMP code. For example, specify 8 as the fromPort (ICMP type),
+ // and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information,
+ // see Control Messages (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_messages)
+ // on Wikipedia.
ToPort *int64 `locationName:"toPort" type:"integer"`
}
diff --git a/service/macie2/api.go b/service/macie2/api.go
index 76189843653..d4bf14368ac 100644
--- a/service/macie2/api.go
+++ b/service/macie2/api.go
@@ -119,111 +119,6 @@ func (c *Macie2) AcceptInvitationWithContext(ctx aws.Context, input *AcceptInvit
return out, req.Send()
}
-const opArchiveFindings = "ArchiveFindings"
-
-// ArchiveFindingsRequest generates a "aws/request.Request" representing the
-// client's request for the ArchiveFindings operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See ArchiveFindings for more information on using the ArchiveFindings
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-//
-// // Example sending a request using the ArchiveFindingsRequest method.
-// req, resp := client.ArchiveFindingsRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ArchiveFindings
-func (c *Macie2) ArchiveFindingsRequest(input *ArchiveFindingsInput) (req *request.Request, output *ArchiveFindingsOutput) {
- op := &request.Operation{
- Name: opArchiveFindings,
- HTTPMethod: "POST",
- HTTPPath: "/findings/archive",
- }
-
- if input == nil {
- input = &ArchiveFindingsInput{}
- }
-
- output = &ArchiveFindingsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
-}
-
-// ArchiveFindings API operation for Amazon Macie 2.
-//
-// Archives one or more findings.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for Amazon Macie 2's
-// API operation ArchiveFindings for usage and error information.
-//
-// Returned Error Types:
-// * ValidationException
-// Provides information about an error that occurred due to a syntax error in
-// a request.
-//
-// * InternalServerException
-// Provides information about an error that occurred due to an unknown internal
-// server error, exception, or failure.
-//
-// * ServiceQuotaExceededException
-// Provides information about an error that occurred due to one or more service
-// quotas for an account.
-//
-// * AccessDeniedException
-// Provides information about an error that occurred due to insufficient access
-// to a specified resource.
-//
-// * ResourceNotFoundException
-// Provides information about an error that occurred because a specified resource
-// wasn't found.
-//
-// * ThrottlingException
-// Provides information about an error that occurred because too many requests
-// were sent during a certain amount of time.
-//
-// * ConflictException
-// Provides information about an error that occurred due to a versioning conflict
-// for a specified resource.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ArchiveFindings
-func (c *Macie2) ArchiveFindings(input *ArchiveFindingsInput) (*ArchiveFindingsOutput, error) {
- req, out := c.ArchiveFindingsRequest(input)
- return out, req.Send()
-}
-
-// ArchiveFindingsWithContext is the same as ArchiveFindings with the addition of
-// the ability to pass a context and additional request options.
-//
-// See ArchiveFindings for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *Macie2) ArchiveFindingsWithContext(ctx aws.Context, input *ArchiveFindingsInput, opts ...request.Option) (*ArchiveFindingsOutput, error) {
- req, out := c.ArchiveFindingsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
const opBatchGetCustomDataIdentifiers = "BatchGetCustomDataIdentifiers"
// BatchGetCustomDataIdentifiersRequest generates a "aws/request.Request" representing the
@@ -4774,111 +4669,6 @@ func (c *Macie2) TestCustomDataIdentifierWithContext(ctx aws.Context, input *Tes
return out, req.Send()
}
-const opUnarchiveFindings = "UnarchiveFindings"
-
-// UnarchiveFindingsRequest generates a "aws/request.Request" representing the
-// client's request for the UnarchiveFindings operation. The "output" return
-// value will be populated with the request's response once the request completes
-// successfully.
-//
-// Use "Send" method on the returned Request to send the API call to the service.
-// the "output" return value is not valid until after Send returns without error.
-//
-// See UnarchiveFindings for more information on using the UnarchiveFindings
-// API call, and error handling.
-//
-// This method is useful when you want to inject custom logic or configuration
-// into the SDK's request lifecycle. Such as custom headers, or retry logic.
-//
-//
-// // Example sending a request using the UnarchiveFindingsRequest method.
-// req, resp := client.UnarchiveFindingsRequest(params)
-//
-// err := req.Send()
-// if err == nil { // resp is now filled
-// fmt.Println(resp)
-// }
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UnarchiveFindings
-func (c *Macie2) UnarchiveFindingsRequest(input *UnarchiveFindingsInput) (req *request.Request, output *UnarchiveFindingsOutput) {
- op := &request.Operation{
- Name: opUnarchiveFindings,
- HTTPMethod: "POST",
- HTTPPath: "/findings/unarchive",
- }
-
- if input == nil {
- input = &UnarchiveFindingsInput{}
- }
-
- output = &UnarchiveFindingsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
-}
-
-// UnarchiveFindings API operation for Amazon Macie 2.
-//
-// Reactivates (unarchives) one or more findings.
-//
-// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
-// with awserr.Error's Code and Message methods to get detailed information about
-// the error.
-//
-// See the AWS API reference guide for Amazon Macie 2's
-// API operation UnarchiveFindings for usage and error information.
-//
-// Returned Error Types:
-// * ValidationException
-// Provides information about an error that occurred due to a syntax error in
-// a request.
-//
-// * InternalServerException
-// Provides information about an error that occurred due to an unknown internal
-// server error, exception, or failure.
-//
-// * ServiceQuotaExceededException
-// Provides information about an error that occurred due to one or more service
-// quotas for an account.
-//
-// * AccessDeniedException
-// Provides information about an error that occurred due to insufficient access
-// to a specified resource.
-//
-// * ResourceNotFoundException
-// Provides information about an error that occurred because a specified resource
-// wasn't found.
-//
-// * ThrottlingException
-// Provides information about an error that occurred because too many requests
-// were sent during a certain amount of time.
-//
-// * ConflictException
-// Provides information about an error that occurred due to a versioning conflict
-// for a specified resource.
-//
-// See also, https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UnarchiveFindings
-func (c *Macie2) UnarchiveFindings(input *UnarchiveFindingsInput) (*UnarchiveFindingsOutput, error) {
- req, out := c.UnarchiveFindingsRequest(input)
- return out, req.Send()
-}
-
-// UnarchiveFindingsWithContext is the same as UnarchiveFindings with the addition of
-// the ability to pass a context and additional request options.
-//
-// See UnarchiveFindings for details on how to use this API operation.
-//
-// The context must be non-nil and will be used for request cancellation. If
-// the context is nil a panic will occur. In the future the SDK may create
-// sub-contexts for http.Requests. See https://golang.org/pkg/context/
-// for more information on using Contexts.
-func (c *Macie2) UnarchiveFindingsWithContext(ctx aws.Context, input *UnarchiveFindingsInput, opts ...request.Option) (*UnarchiveFindingsOutput, error) {
- req, out := c.UnarchiveFindingsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
-}
-
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
@@ -5803,57 +5593,6 @@ func (s *ApiCallDetails) SetLastSeen(v time.Time) *ApiCallDetails {
return s
}
-// Specifies one or more findings to archive.
-type ArchiveFindingsInput struct {
- _ struct{} `type:"structure"`
-
- // FindingIds is a required field
- FindingIds []*string `locationName:"findingIds" type:"list" required:"true"`
-}
-
-// String returns the string representation
-func (s ArchiveFindingsInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation
-func (s ArchiveFindingsInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *ArchiveFindingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ArchiveFindingsInput"}
- if s.FindingIds == nil {
- invalidParams.Add(request.NewErrParamRequired("FindingIds"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetFindingIds sets the FindingIds field's value.
-func (s *ArchiveFindingsInput) SetFindingIds(v []*string) *ArchiveFindingsInput {
- s.FindingIds = v
- return s
-}
-
-type ArchiveFindingsOutput struct {
- _ struct{} `type:"structure"`
-}
-
-// String returns the string representation
-func (s ArchiveFindingsOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation
-func (s ArchiveFindingsOutput) GoString() string {
- return s.String()
-}
-
// Reserved for future use.
type AssumedRole struct {
_ struct{} `type:"structure"`
@@ -12837,57 +12576,6 @@ func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
-// Specifies one or more findings to reactivate (unarchive).
-type UnarchiveFindingsInput struct {
- _ struct{} `type:"structure"`
-
- // FindingIds is a required field
- FindingIds []*string `locationName:"findingIds" type:"list" required:"true"`
-}
-
-// String returns the string representation
-func (s UnarchiveFindingsInput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation
-func (s UnarchiveFindingsInput) GoString() string {
- return s.String()
-}
-
-// Validate inspects the fields of the type to determine if they are valid.
-func (s *UnarchiveFindingsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UnarchiveFindingsInput"}
- if s.FindingIds == nil {
- invalidParams.Add(request.NewErrParamRequired("FindingIds"))
- }
-
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
-}
-
-// SetFindingIds sets the FindingIds field's value.
-func (s *UnarchiveFindingsInput) SetFindingIds(v []*string) *UnarchiveFindingsInput {
- s.FindingIds = v
- return s
-}
-
-type UnarchiveFindingsOutput struct {
- _ struct{} `type:"structure"`
-}
-
-// String returns the string representation
-func (s UnarchiveFindingsOutput) String() string {
- return awsutil.Prettify(s)
-}
-
-// GoString returns the string representation
-func (s UnarchiveFindingsOutput) GoString() string {
- return s.String()
-}
-
// Provides information about an account-related request that hasn't been processed.
type UnprocessedAccount struct {
_ struct{} `type:"structure"`
@@ -13804,6 +13492,9 @@ const (
// EncryptionTypeAwsKms is a EncryptionType enum value
EncryptionTypeAwsKms = "aws:kms"
+
+ // EncryptionTypeUnknown is a EncryptionType enum value
+ EncryptionTypeUnknown = "UNKNOWN"
)
// The source of an error, issue, or delay. Possible values are:
diff --git a/service/macie2/macie2iface/interface.go b/service/macie2/macie2iface/interface.go
index 75c0761e07d..c16f716bcfa 100644
--- a/service/macie2/macie2iface/interface.go
+++ b/service/macie2/macie2iface/interface.go
@@ -64,10 +64,6 @@ type Macie2API interface {
AcceptInvitationWithContext(aws.Context, *macie2.AcceptInvitationInput, ...request.Option) (*macie2.AcceptInvitationOutput, error)
AcceptInvitationRequest(*macie2.AcceptInvitationInput) (*request.Request, *macie2.AcceptInvitationOutput)
- ArchiveFindings(*macie2.ArchiveFindingsInput) (*macie2.ArchiveFindingsOutput, error)
- ArchiveFindingsWithContext(aws.Context, *macie2.ArchiveFindingsInput, ...request.Option) (*macie2.ArchiveFindingsOutput, error)
- ArchiveFindingsRequest(*macie2.ArchiveFindingsInput) (*request.Request, *macie2.ArchiveFindingsOutput)
-
BatchGetCustomDataIdentifiers(*macie2.BatchGetCustomDataIdentifiersInput) (*macie2.BatchGetCustomDataIdentifiersOutput, error)
BatchGetCustomDataIdentifiersWithContext(aws.Context, *macie2.BatchGetCustomDataIdentifiersInput, ...request.Option) (*macie2.BatchGetCustomDataIdentifiersOutput, error)
BatchGetCustomDataIdentifiersRequest(*macie2.BatchGetCustomDataIdentifiersInput) (*request.Request, *macie2.BatchGetCustomDataIdentifiersOutput)
@@ -244,10 +240,6 @@ type Macie2API interface {
TestCustomDataIdentifierWithContext(aws.Context, *macie2.TestCustomDataIdentifierInput, ...request.Option) (*macie2.TestCustomDataIdentifierOutput, error)
TestCustomDataIdentifierRequest(*macie2.TestCustomDataIdentifierInput) (*request.Request, *macie2.TestCustomDataIdentifierOutput)
- UnarchiveFindings(*macie2.UnarchiveFindingsInput) (*macie2.UnarchiveFindingsOutput, error)
- UnarchiveFindingsWithContext(aws.Context, *macie2.UnarchiveFindingsInput, ...request.Option) (*macie2.UnarchiveFindingsOutput, error)
- UnarchiveFindingsRequest(*macie2.UnarchiveFindingsInput) (*request.Request, *macie2.UnarchiveFindingsOutput)
-
UntagResource(*macie2.UntagResourceInput) (*macie2.UntagResourceOutput, error)
UntagResourceWithContext(aws.Context, *macie2.UntagResourceInput, ...request.Option) (*macie2.UntagResourceOutput, error)
UntagResourceRequest(*macie2.UntagResourceInput) (*request.Request, *macie2.UntagResourceOutput)
diff --git a/service/servicecatalog/api.go b/service/servicecatalog/api.go
index 1d70aad139b..8c572efb320 100644
--- a/service/servicecatalog/api.go
+++ b/service/servicecatalog/api.go
@@ -327,6 +327,8 @@ func (c *ServiceCatalog) AssociateProductWithPortfolioRequest(input *AssociatePr
//
// Associates the specified product with the specified portfolio.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -851,6 +853,8 @@ func (c *ServiceCatalog) CreateConstraintRequest(input *CreateConstraintInput) (
//
// Creates a constraint.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -941,6 +945,8 @@ func (c *ServiceCatalog) CreatePortfolioRequest(input *CreatePortfolioInput) (re
//
// Creates a portfolio.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -1030,8 +1036,14 @@ func (c *ServiceCatalog) CreatePortfolioShareRequest(input *CreatePortfolioShare
//
// Shares the specified portfolio with the specified account or organization
// node. Shares to an organization node can only be created by the master account
-// of an Organization. AWSOrganizationsAccess must be enabled in order to create
-// a portfolio share to an organization node.
+// of an organization or by a delegated administrator. You can share portfolios
+// to an organization, an organizational unit, or a specific account.
+//
+// Note that if a delegated admin is de-registered, they can no longer create
+// portfolio shares.
+//
+// AWSOrganizationsAccess must be enabled in order to create a portfolio share
+// to an organization node.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -1128,6 +1140,8 @@ func (c *ServiceCatalog) CreateProductRequest(input *CreateProductInput) (req *r
//
// Creates a product.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -1577,6 +1591,8 @@ func (c *ServiceCatalog) DeleteConstraintRequest(input *DeleteConstraintInput) (
//
// Deletes the specified constraint.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -1663,6 +1679,8 @@ func (c *ServiceCatalog) DeletePortfolioRequest(input *DeletePortfolioInput) (re
// You cannot delete a portfolio if it was shared with you or if it has associated
// products, users, constraints, or shared accounts.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -1754,7 +1772,10 @@ func (c *ServiceCatalog) DeletePortfolioShareRequest(input *DeletePortfolioShare
//
// Stops sharing the specified portfolio with the specified account or organization
// node. Shares to an organization node can only be deleted by the master account
-// of an Organization.
+// of an organization or by a delegated administrator.
+//
+// Note that if a delegated admin is de-registered, portfolio shares created
+// from that account are removed.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -1850,6 +1871,8 @@ func (c *ServiceCatalog) DeleteProductRequest(input *DeleteProductInput) (req *r
// You cannot delete a product if it was shared with you or is associated with
// a portfolio.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -2449,6 +2472,8 @@ func (c *ServiceCatalog) DescribePortfolioRequest(input *DescribePortfolioInput)
//
// Gets information about the specified portfolio.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -2527,7 +2552,8 @@ func (c *ServiceCatalog) DescribePortfolioShareStatusRequest(input *DescribePort
// DescribePortfolioShareStatus API operation for AWS Service Catalog.
//
// Gets the status of the specified portfolio share operation. This API can
-// only be called by the master account in the organization.
+// only be called by the master account in the organization or by a delegated
+// admin.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -3534,6 +3560,11 @@ func (c *ServiceCatalog) DisableAWSOrganizationsAccessRequest(input *DisableAWSO
// with your organization structure if it changes after calling this API. This
// API can only be called by the master account in the organization.
//
+// This API can't be invoked if there are active delegated administrators in
+// the organization.
+//
+// Note that a delegated administrator is not authorized to invoke DisableAWSOrganizationsAccess.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -3785,6 +3816,8 @@ func (c *ServiceCatalog) DisassociateProductFromPortfolioRequest(input *Disassoc
//
// Disassociates the specified product from the specified portfolio.
//
+// A delegated admin is authorized to invoke this command.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -4045,6 +4078,8 @@ func (c *ServiceCatalog) EnableAWSOrganizationsAccessRequest(input *EnableAWSOrg
// on your behalf so that your shares can be in sync with any changes in your
// AWS Organizations structure.
//
+// Note that a delegated administrator is not authorized to invoke EnableAWSOrganizationsAccess.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -4306,7 +4341,8 @@ func (c *ServiceCatalog) GetAWSOrganizationsAccessStatusRequest(input *GetAWSOrg
// GetAWSOrganizationsAccessStatus API operation for AWS Service Catalog.
//
// Get the Access Status for AWS Organization portfolio share feature. This
-// API can only be called by the master account in the organization.
+// API can only be called by the master account in the organization or by a
+// delegated admin.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -4957,7 +4993,10 @@ func (c *ServiceCatalog) ListOrganizationPortfolioAccessRequest(input *ListOrgan
// ListOrganizationPortfolioAccess API operation for AWS Service Catalog.
//
// Lists the organization nodes that have access to the specified portfolio.
-// This API can only be called by the master account in the organization.
+// This API can only be called by the master account in the organization or
+// by a delegated admin.
+//
+// If a delegated admin is de-registered, they can no longer perform this operation.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -5102,6 +5141,10 @@ func (c *ServiceCatalog) ListPortfolioAccessRequest(input *ListPortfolioAccessIn
//
// Lists the account IDs that have access to the specified portfolio.
//
+// A delegated admin can list the accounts that have access to the shared portfolio.
+// Note that if a delegated admin is de-registered, they can no longer perform
+// this operation.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
diff --git a/service/shield/api.go b/service/shield/api.go
index a058a8fc96b..ab389eb9968 100644
--- a/service/shield/api.go
+++ b/service/shield/api.go
@@ -634,15 +634,6 @@ func (c *Shield) CreateSubscriptionRequest(input *CreateSubscriptionInput) (req
//
// Activates AWS Shield Advanced for an account.
//
-// As part of this request you can specify EmergencySettings that automaticaly
-// grant the DDoS response team (DRT) needed permissions to assist you during
-// a suspected DDoS attack. For more information see Authorize the DDoS Response
-// Team to Create Rules and Web ACLs on Your Behalf (https://docs.aws.amazon.com/waf/latest/developerguide/authorize-DRT.html).
-//
-// To use the services of the DRT, you must be subscribed to the Business Support
-// plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise
-// Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/).
-//
// When you initally create a subscription, your subscription is set to be automatically
// renewed at the end of the existing subscription period. You can change this
// by submitting an UpdateSubscription request.