UNPKG

prowler-sdk-poc

Version:
1,170 lines 26 kB
{ "version": "2.0", "metadata": { "apiVersion": "2015-09-21", "endpointPrefix": "api.ecr", "jsonVersion": "1.1", "protocol": "json", "serviceAbbreviation": "Amazon ECR", "serviceFullName": "Amazon EC2 Container Registry", "serviceId": "ECR", "signatureVersion": "v4", "signingName": "ecr", "targetPrefix": "AmazonEC2ContainerRegistry_V20150921", "uid": "ecr-2015-09-21" }, "operations": { "BatchCheckLayerAvailability": { "input": { "type": "structure", "required": [ "repositoryName", "layerDigests" ], "members": { "registryId": {}, "repositoryName": {}, "layerDigests": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "layers": { "type": "list", "member": { "type": "structure", "members": { "layerDigest": {}, "layerAvailability": {}, "layerSize": { "type": "long" }, "mediaType": {} } } }, "failures": { "type": "list", "member": { "type": "structure", "members": { "layerDigest": {}, "failureCode": {}, "failureReason": {} } } } } } }, "BatchDeleteImage": { "input": { "type": "structure", "required": [ "repositoryName", "imageIds" ], "members": { "registryId": {}, "repositoryName": {}, "imageIds": { "shape": "Si" } } }, "output": { "type": "structure", "members": { "imageIds": { "shape": "Si" }, "failures": { "shape": "Sn" } } } }, "BatchGetImage": { "input": { "type": "structure", "required": [ "repositoryName", "imageIds" ], "members": { "registryId": {}, "repositoryName": {}, "imageIds": { "shape": "Si" }, "acceptedMediaTypes": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "images": { "type": "list", "member": { "shape": "Sv" } }, "failures": { "shape": "Sn" } } } }, "CompleteLayerUpload": { "input": { "type": "structure", "required": [ "repositoryName", "uploadId", "layerDigests" ], "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "layerDigests": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "layerDigest": {} } } }, "CreateRepository": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "tags": { "shape": "S12" }, "imageTagMutability": {}, "imageScanningConfiguration": { "shape": "S17" }, "encryptionConfiguration": { "shape": "S19" } } }, "output": { "type": "structure", "members": { "repository": { "shape": "S1d" } } } }, "DeleteLifecyclePolicy": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "lifecyclePolicyText": {}, "lastEvaluatedAt": { "type": "timestamp" } } } }, "DeleteRegistryPolicy": { "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "registryId": {}, "policyText": {} } } }, "DeleteRepository": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "force": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "repository": { "shape": "S1d" } } } }, "DeleteRepositoryPolicy": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "policyText": {} } } }, "DescribeImageReplicationStatus": { "input": { "type": "structure", "required": [ "repositoryName", "imageId" ], "members": { "repositoryName": {}, "imageId": { "shape": "Sj" }, "registryId": {} } }, "output": { "type": "structure", "members": { "repositoryName": {}, "imageId": { "shape": "Sj" }, "replicationStatuses": { "type": "list", "member": { "type": "structure", "members": { "region": {}, "registryId": {}, "status": {}, "failureCode": {} } } } } } }, "DescribeImageScanFindings": { "input": { "type": "structure", "required": [ "repositoryName", "imageId" ], "members": { "registryId": {}, "repositoryName": {}, "imageId": { "shape": "Sj" }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "imageId": { "shape": "Sj" }, "imageScanStatus": { "shape": "S25" }, "imageScanFindings": { "type": "structure", "members": { "imageScanCompletedAt": { "type": "timestamp" }, "vulnerabilitySourceUpdatedAt": { "type": "timestamp" }, "findings": { "type": "list", "member": { "type": "structure", "members": { "name": {}, "description": {}, "uri": {}, "severity": {}, "attributes": { "type": "list", "member": { "type": "structure", "required": [ "key" ], "members": { "key": {}, "value": {} } } } } } }, "findingSeverityCounts": { "shape": "S2k" } } }, "nextToken": {} } } }, "DescribeImages": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "imageIds": { "shape": "Si" }, "nextToken": {}, "maxResults": { "type": "integer" }, "filter": { "type": "structure", "members": { "tagStatus": {} } } } }, "output": { "type": "structure", "members": { "imageDetails": { "type": "list", "member": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "imageDigest": {}, "imageTags": { "shape": "S2s" }, "imageSizeInBytes": { "type": "long" }, "imagePushedAt": { "type": "timestamp" }, "imageScanStatus": { "shape": "S25" }, "imageScanFindingsSummary": { "type": "structure", "members": { "imageScanCompletedAt": { "type": "timestamp" }, "vulnerabilitySourceUpdatedAt": { "type": "timestamp" }, "findingSeverityCounts": { "shape": "S2k" } } }, "imageManifestMediaType": {}, "artifactMediaType": {} } } }, "nextToken": {} } } }, "DescribeRegistry": { "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "registryId": {}, "replicationConfiguration": { "shape": "S2y" } } } }, "DescribeRepositories": { "input": { "type": "structure", "members": { "registryId": {}, "repositoryNames": { "type": "list", "member": {} }, "nextToken": {}, "maxResults": { "type": "integer" } } }, "output": { "type": "structure", "members": { "repositories": { "type": "list", "member": { "shape": "S1d" } }, "nextToken": {} } } }, "GetAuthorizationToken": { "input": { "type": "structure", "members": { "registryIds": { "deprecated": true, "deprecatedMessage": "This field is deprecated. The returned authorization token can be used to access any Amazon ECR registry that the IAM principal has access to, specifying a registry ID doesn't change the permissions scope of the authorization token.", "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "authorizationData": { "type": "list", "member": { "type": "structure", "members": { "authorizationToken": {}, "expiresAt": { "type": "timestamp" }, "proxyEndpoint": {} } } } } } }, "GetDownloadUrlForLayer": { "input": { "type": "structure", "required": [ "repositoryName", "layerDigest" ], "members": { "registryId": {}, "repositoryName": {}, "layerDigest": {} } }, "output": { "type": "structure", "members": { "downloadUrl": {}, "layerDigest": {} } } }, "GetLifecyclePolicy": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "lifecyclePolicyText": {}, "lastEvaluatedAt": { "type": "timestamp" } } } }, "GetLifecyclePolicyPreview": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "imageIds": { "shape": "Si" }, "nextToken": {}, "maxResults": { "type": "integer" }, "filter": { "type": "structure", "members": { "tagStatus": {} } } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "lifecyclePolicyText": {}, "status": {}, "nextToken": {}, "previewResults": { "type": "list", "member": { "type": "structure", "members": { "imageTags": { "shape": "S2s" }, "imageDigest": {}, "imagePushedAt": { "type": "timestamp" }, "action": { "type": "structure", "members": { "type": {} } }, "appliedRulePriority": { "type": "integer" } } } }, "summary": { "type": "structure", "members": { "expiringImageTotalCount": { "type": "integer" } } } } } }, "GetRegistryPolicy": { "input": { "type": "structure", "members": {} }, "output": { "type": "structure", "members": { "registryId": {}, "policyText": {} } } }, "GetRepositoryPolicy": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "policyText": {} } } }, "InitiateLayerUpload": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {} } }, "output": { "type": "structure", "members": { "uploadId": {}, "partSize": { "type": "long" } } } }, "ListImages": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "nextToken": {}, "maxResults": { "type": "integer" }, "filter": { "type": "structure", "members": { "tagStatus": {} } } } }, "output": { "type": "structure", "members": { "imageIds": { "shape": "Si" }, "nextToken": {} } } }, "ListTagsForResource": { "input": { "type": "structure", "required": [ "resourceArn" ], "members": { "resourceArn": {} } }, "output": { "type": "structure", "members": { "tags": { "shape": "S12" } } } }, "PutImage": { "input": { "type": "structure", "required": [ "repositoryName", "imageManifest" ], "members": { "registryId": {}, "repositoryName": {}, "imageManifest": {}, "imageManifestMediaType": {}, "imageTag": {}, "imageDigest": {} } }, "output": { "type": "structure", "members": { "image": { "shape": "Sv" } } } }, "PutImageScanningConfiguration": { "input": { "type": "structure", "required": [ "repositoryName", "imageScanningConfiguration" ], "members": { "registryId": {}, "repositoryName": {}, "imageScanningConfiguration": { "shape": "S17" } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "imageScanningConfiguration": { "shape": "S17" } } } }, "PutImageTagMutability": { "input": { "type": "structure", "required": [ "repositoryName", "imageTagMutability" ], "members": { "registryId": {}, "repositoryName": {}, "imageTagMutability": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "imageTagMutability": {} } } }, "PutLifecyclePolicy": { "input": { "type": "structure", "required": [ "repositoryName", "lifecyclePolicyText" ], "members": { "registryId": {}, "repositoryName": {}, "lifecyclePolicyText": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "lifecyclePolicyText": {} } } }, "PutRegistryPolicy": { "input": { "type": "structure", "required": [ "policyText" ], "members": { "policyText": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "policyText": {} } } }, "PutReplicationConfiguration": { "input": { "type": "structure", "required": [ "replicationConfiguration" ], "members": { "replicationConfiguration": { "shape": "S2y" } } }, "output": { "type": "structure", "members": { "replicationConfiguration": { "shape": "S2y" } } } }, "SetRepositoryPolicy": { "input": { "type": "structure", "required": [ "repositoryName", "policyText" ], "members": { "registryId": {}, "repositoryName": {}, "policyText": {}, "force": { "type": "boolean" } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "policyText": {} } } }, "StartImageScan": { "input": { "type": "structure", "required": [ "repositoryName", "imageId" ], "members": { "registryId": {}, "repositoryName": {}, "imageId": { "shape": "Sj" } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "imageId": { "shape": "Sj" }, "imageScanStatus": { "shape": "S25" } } } }, "StartLifecyclePolicyPreview": { "input": { "type": "structure", "required": [ "repositoryName" ], "members": { "registryId": {}, "repositoryName": {}, "lifecyclePolicyText": {} } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "lifecyclePolicyText": {}, "status": {} } } }, "TagResource": { "input": { "type": "structure", "required": [ "resourceArn", "tags" ], "members": { "resourceArn": {}, "tags": { "shape": "S12" } } }, "output": { "type": "structure", "members": {} } }, "UntagResource": { "input": { "type": "structure", "required": [ "resourceArn", "tagKeys" ], "members": { "resourceArn": {}, "tagKeys": { "type": "list", "member": {} } } }, "output": { "type": "structure", "members": {} } }, "UploadLayerPart": { "input": { "type": "structure", "required": [ "repositoryName", "uploadId", "partFirstByte", "partLastByte", "layerPartBlob" ], "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "partFirstByte": { "type": "long" }, "partLastByte": { "type": "long" }, "layerPartBlob": { "type": "blob" } } }, "output": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "uploadId": {}, "lastByteReceived": { "type": "long" } } } } }, "shapes": { "Si": { "type": "list", "member": { "shape": "Sj" } }, "Sj": { "type": "structure", "members": { "imageDigest": {}, "imageTag": {} } }, "Sn": { "type": "list", "member": { "type": "structure", "members": { "imageId": { "shape": "Sj" }, "failureCode": {}, "failureReason": {} } } }, "Sv": { "type": "structure", "members": { "registryId": {}, "repositoryName": {}, "imageId": { "shape": "Sj" }, "imageManifest": {}, "imageManifestMediaType": {} } }, "S12": { "type": "list", "member": { "type": "structure", "members": { "Key": {}, "Value": {} } } }, "S17": { "type": "structure", "members": { "scanOnPush": { "type": "boolean" } } }, "S19": { "type": "structure", "required": [ "encryptionType" ], "members": { "encryptionType": {}, "kmsKey": {} } }, "S1d": { "type": "structure", "members": { "repositoryArn": {}, "registryId": {}, "repositoryName": {}, "repositoryUri": {}, "createdAt": { "type": "timestamp" }, "imageTagMutability": {}, "imageScanningConfiguration": { "shape": "S17" }, "encryptionConfiguration": { "shape": "S19" } } }, "S25": { "type": "structure", "members": { "status": {}, "description": {} } }, "S2k": { "type": "map", "key": {}, "value": { "type": "integer" } }, "S2s": { "type": "list", "member": {} }, "S2y": { "type": "structure", "required": [ "rules" ], "members": { "rules": { "type": "list", "member": { "type": "structure", "required": [ "destinations" ], "members": { "destinations": { "type": "list", "member": { "type": "structure", "required": [ "region", "registryId" ], "members": { "region": {}, "registryId": {} } } }, "repositoryFilters": { "type": "list", "member": { "type": "structure", "required": [ "filter", "filterType" ], "members": { "filter": {}, "filterType": {} } } } } } } } } } }