{ "metadata" : { "apiVersion" : "2017-09-08", "endpointPrefix" : "serverlessrepo", "signingName" : "serverlessrepo", "serviceFullName" : "AWSServerlessApplicationRepository", "serviceId" : "ServerlessApplicationRepository", "protocol" : "rest-json", "jsonVersion" : "1.1", "uid" : "serverlessrepo-2017-09-08", "signatureVersion" : "v4" }, "operations" : { "CreateApplication" : { "name" : "CreateApplication", "http" : { "method" : "POST", "requestUri" : "/applications", "responseCode" : 201 }, "input" : { "shape" : "CreateApplicationRequest" }, "output" : { "shape" : "CreateApplicationResponse" }, "errors" : [ { "shape" : "TooManyRequestsException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ConflictException" }, { "shape" : "ForbiddenException" } ] }, "CreateApplicationVersion" : { "name" : "CreateApplicationVersion", "http" : { "method" : "PUT", "requestUri" : "/applications/{applicationId}/versions/{semanticVersion}", "responseCode" : 201 }, "input" : { "shape" : "CreateApplicationVersionRequest" }, "output" : { "shape" : "CreateApplicationVersionResponse" }, "errors" : [ { "shape" : "TooManyRequestsException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ConflictException" }, { "shape" : "ForbiddenException" } ] }, "CreateCloudFormationChangeSet" : { "name" : "CreateCloudFormationChangeSet", "http" : { "method" : "POST", "requestUri" : "/applications/{applicationId}/changesets", "responseCode" : 201 }, "input" : { "shape" : "CreateCloudFormationChangeSetRequest" }, "output" : { "shape" : "CreateCloudFormationChangeSetResponse" }, "errors" : [ { "shape" : "TooManyRequestsException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ForbiddenException" } ] }, "GetApplication" : { "name" : "GetApplication", "http" : { "method" : "GET", "requestUri" : "/applications/{applicationId}", "responseCode" : 200 }, "input" : { "shape" : "GetApplicationRequest" }, "output" : { "shape" : "GetApplicationResponse" }, "errors" : [ { "shape" : "NotFoundException" }, { "shape" : "TooManyRequestsException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ForbiddenException" } ] }, "GetApplicationPolicy" : { "name" : "GetApplicationPolicy", "http" : { "method" : "GET", "requestUri" : "/applications/{applicationId}/policy", "responseCode" : 200 }, "input" : { "shape" : "GetApplicationPolicyRequest" }, "output" : { "shape" : "GetApplicationPolicyResponse" }, "errors" : [ { "shape" : "NotFoundException" }, { "shape" : "TooManyRequestsException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ForbiddenException" } ] }, "ListApplicationVersions" : { "name" : "ListApplicationVersions", "http" : { "method" : "GET", "requestUri" : "/applications/{applicationId}/versions", "responseCode" : 200 }, "input" : { "shape" : "ListApplicationVersionsRequest" }, "output" : { "shape" : "ListApplicationVersionsResponse" }, "errors" : [ { "shape" : "NotFoundException" }, { "shape" : "TooManyRequestsException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ForbiddenException" } ] }, "ListApplications" : { "name" : "ListApplications", "http" : { "method" : "GET", "requestUri" : "/applications", "responseCode" : 200 }, "input" : { "shape" : "ListApplicationsRequest" }, "output" : { "shape" : "ListApplicationsResponse" }, "errors" : [ { "shape" : "NotFoundException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ForbiddenException" } ] }, "PutApplicationPolicy" : { "name" : "PutApplicationPolicy", "http" : { "method" : "PUT", "requestUri" : "/applications/{applicationId}/policy", "responseCode" : 200 }, "input" : { "shape" : "PutApplicationPolicyRequest" }, "output" : { "shape" : "PutApplicationPolicyResponse" }, "errors" : [ { "shape" : "NotFoundException" }, { "shape" : "TooManyRequestsException" }, { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ForbiddenException" } ] }, "UpdateApplication" : { "name" : "UpdateApplication", "http" : { "method" : "PATCH", "requestUri" : "/applications/{applicationId}", "responseCode" : 200 }, "input" : { "shape" : "UpdateApplicationRequest" }, "output" : { "shape" : "UpdateApplicationResponse" }, "errors" : [ { "shape" : "BadRequestException" }, { "shape" : "InternalServerErrorException" }, { "shape" : "ForbiddenException" }, { "shape" : "NotFoundException" }, { "shape" : "TooManyRequestsException" }, { "shape" : "ConflictException" } ] } }, "shapes" : { "Application" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "Author" : { "shape" : "__string", "locationName" : "author" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "LicenseUrl" : { "shape" : "__string", "locationName" : "licenseUrl" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" }, "SpdxLicenseId" : { "shape" : "__string", "locationName" : "spdxLicenseId" }, "Version" : { "shape" : "Version", "locationName" : "version" } } }, "ApplicationPage" : { "type" : "structure", "members" : { "Applications" : { "shape" : "ListOfApplicationSummary", "locationName" : "applications" }, "NextToken" : { "shape" : "__string", "locationName" : "nextToken" } } }, "ApplicationPolicy" : { "type" : "structure", "members" : { "Statements" : { "shape" : "ListOfApplicationPolicyStatement", "locationName" : "statements" } } }, "ApplicationPolicyStatement" : { "type" : "structure", "members" : { "Actions" : { "shape" : "ListOf__string", "locationName" : "actions" }, "Principals" : { "shape" : "ListOf__string", "locationName" : "principals" }, "StatementId" : { "shape" : "__string", "locationName" : "statementId" } } }, "ApplicationSummary" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "Author" : { "shape" : "__string", "locationName" : "author" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "SpdxLicenseId" : { "shape" : "__string", "locationName" : "spdxLicenseId" } } }, "ApplicationVersionPage" : { "type" : "structure", "members" : { "NextToken" : { "shape" : "__string", "locationName" : "nextToken" }, "Versions" : { "shape" : "ListOfVersionSummary", "locationName" : "versions" } } }, "BadRequestException" : { "type" : "structure", "members" : { "ErrorCode" : { "shape" : "__string", "locationName" : "errorCode" }, "Message" : { "shape" : "__string", "locationName" : "message" } }, "exception" : true, "error" : { "httpStatusCode" : 400 } }, "ChangeSetDetails" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "ChangeSetId" : { "shape" : "__string", "locationName" : "changeSetId" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "StackId" : { "shape" : "__string", "locationName" : "stackId" } } }, "ConflictException" : { "type" : "structure", "members" : { "ErrorCode" : { "shape" : "__string", "locationName" : "errorCode" }, "Message" : { "shape" : "__string", "locationName" : "message" } }, "exception" : true, "error" : { "httpStatusCode" : 409 } }, "CreateApplicationInput" : { "type" : "structure", "members" : { "Author" : { "shape" : "__string", "locationName" : "author" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "LicenseBody" : { "shape" : "__string", "locationName" : "licenseBody" }, "LicenseUrl" : { "shape" : "__string", "locationName" : "licenseUrl" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "ReadmeBody" : { "shape" : "__string", "locationName" : "readmeBody" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "SourceCodeUrl" : { "shape" : "__string", "locationName" : "sourceCodeUrl" }, "SpdxLicenseId" : { "shape" : "__string", "locationName" : "spdxLicenseId" }, "TemplateBody" : { "shape" : "__string", "locationName" : "templateBody" }, "TemplateUrl" : { "shape" : "__string", "locationName" : "templateUrl" } } }, "CreateApplicationRequest" : { "type" : "structure", "members" : { "Author" : { "shape" : "__string", "locationName" : "author" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "LicenseBody" : { "shape" : "__string", "locationName" : "licenseBody" }, "LicenseUrl" : { "shape" : "__string", "locationName" : "licenseUrl" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "ReadmeBody" : { "shape" : "__string", "locationName" : "readmeBody" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "SourceCodeUrl" : { "shape" : "__string", "locationName" : "sourceCodeUrl" }, "SpdxLicenseId" : { "shape" : "__string", "locationName" : "spdxLicenseId" }, "TemplateBody" : { "shape" : "__string", "locationName" : "templateBody" }, "TemplateUrl" : { "shape" : "__string", "locationName" : "templateUrl" } } }, "CreateApplicationResponse" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "Author" : { "shape" : "__string", "locationName" : "author" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "LicenseUrl" : { "shape" : "__string", "locationName" : "licenseUrl" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" }, "SpdxLicenseId" : { "shape" : "__string", "locationName" : "spdxLicenseId" }, "Version" : { "shape" : "Version", "locationName" : "version" } } }, "CreateApplicationVersionInput" : { "type" : "structure", "members" : { "SourceCodeUrl" : { "shape" : "__string", "locationName" : "sourceCodeUrl" }, "TemplateBody" : { "shape" : "__string", "locationName" : "templateBody" }, "TemplateUrl" : { "shape" : "__string", "locationName" : "templateUrl" } } }, "CreateApplicationVersionRequest" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "location" : "uri", "locationName" : "applicationId" }, "SemanticVersion" : { "shape" : "__string", "location" : "uri", "locationName" : "semanticVersion" }, "SourceCodeUrl" : { "shape" : "__string", "locationName" : "sourceCodeUrl" }, "TemplateBody" : { "shape" : "__string", "locationName" : "templateBody" }, "TemplateUrl" : { "shape" : "__string", "locationName" : "templateUrl" } }, "required" : [ "ApplicationId", "SemanticVersion" ] }, "CreateApplicationVersionResponse" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "ParameterDefinitions" : { "shape" : "ListOfParameterDefinition", "locationName" : "parameterDefinitions" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "SourceCodeUrl" : { "shape" : "__string", "locationName" : "sourceCodeUrl" }, "TemplateUrl" : { "shape" : "__string", "locationName" : "templateUrl" } } }, "CreateCloudFormationChangeSetInput" : { "type" : "structure", "members" : { "ParameterOverrides" : { "shape" : "ListOfParameterValue", "locationName" : "parameterOverrides" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "StackName" : { "shape" : "__string", "locationName" : "stackName" } } }, "CreateCloudFormationChangeSetRequest" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "location" : "uri", "locationName" : "applicationId" }, "ParameterOverrides" : { "shape" : "ListOfParameterValue", "locationName" : "parameterOverrides" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "StackName" : { "shape" : "__string", "locationName" : "stackName" } }, "required" : [ "ApplicationId" ] }, "CreateCloudFormationChangeSetResponse" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "ChangeSetId" : { "shape" : "__string", "locationName" : "changeSetId" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "StackId" : { "shape" : "__string", "locationName" : "stackId" } } }, "ForbiddenException" : { "type" : "structure", "members" : { "ErrorCode" : { "shape" : "__string", "locationName" : "errorCode" }, "Message" : { "shape" : "__string", "locationName" : "message" } }, "exception" : true, "error" : { "httpStatusCode" : 403 } }, "GetApplicationPolicyRequest" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "location" : "uri", "locationName" : "applicationId" } }, "required" : [ "ApplicationId" ] }, "GetApplicationPolicyResponse" : { "type" : "structure", "members" : { "Statements" : { "shape" : "ListOfApplicationPolicyStatement", "locationName" : "statements" } } }, "GetApplicationRequest" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "location" : "uri", "locationName" : "applicationId" }, "SemanticVersion" : { "shape" : "__string", "location" : "querystring", "locationName" : "semanticVersion" } }, "required" : [ "ApplicationId" ] }, "GetApplicationResponse" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "Author" : { "shape" : "__string", "locationName" : "author" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "LicenseUrl" : { "shape" : "__string", "locationName" : "licenseUrl" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" }, "SpdxLicenseId" : { "shape" : "__string", "locationName" : "spdxLicenseId" }, "Version" : { "shape" : "Version", "locationName" : "version" } } }, "InternalServerErrorException" : { "type" : "structure", "members" : { "ErrorCode" : { "shape" : "__string", "locationName" : "errorCode" }, "Message" : { "shape" : "__string", "locationName" : "message" } }, "exception" : true, "error" : { "httpStatusCode" : 500 } }, "ListApplicationVersionsRequest" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "location" : "uri", "locationName" : "applicationId" }, "MaxItems" : { "shape" : "MaxItems", "location" : "querystring", "locationName" : "maxItems" }, "NextToken" : { "shape" : "__string", "location" : "querystring", "locationName" : "nextToken" } }, "required" : [ "ApplicationId" ] }, "ListApplicationVersionsResponse" : { "type" : "structure", "members" : { "NextToken" : { "shape" : "__string", "locationName" : "nextToken" }, "Versions" : { "shape" : "ListOfVersionSummary", "locationName" : "versions" } } }, "ListApplicationsRequest" : { "type" : "structure", "members" : { "MaxItems" : { "shape" : "MaxItems", "location" : "querystring", "locationName" : "maxItems" }, "NextToken" : { "shape" : "__string", "location" : "querystring", "locationName" : "nextToken" } } }, "ListApplicationsResponse" : { "type" : "structure", "members" : { "Applications" : { "shape" : "ListOfApplicationSummary", "locationName" : "applications" }, "NextToken" : { "shape" : "__string", "locationName" : "nextToken" } } }, "ListOfApplicationPolicyStatement" : { "type" : "list", "member" : { "shape" : "ApplicationPolicyStatement" } }, "ListOfApplicationSummary" : { "type" : "list", "member" : { "shape" : "ApplicationSummary" } }, "ListOfParameterDefinition" : { "type" : "list", "member" : { "shape" : "ParameterDefinition" } }, "ListOfParameterValue" : { "type" : "list", "member" : { "shape" : "ParameterValue" } }, "ListOfVersionSummary" : { "type" : "list", "member" : { "shape" : "VersionSummary" } }, "ListOf__string" : { "type" : "list", "member" : { "shape" : "__string" } }, "MaxItems" : { "type" : "integer", "min" : 1, "max" : 100 }, "NotFoundException" : { "type" : "structure", "members" : { "ErrorCode" : { "shape" : "__string", "locationName" : "errorCode" }, "Message" : { "shape" : "__string", "locationName" : "message" } }, "exception" : true, "error" : { "httpStatusCode" : 404 } }, "ParameterDefinition" : { "type" : "structure", "members" : { "AllowedPattern" : { "shape" : "__string", "locationName" : "allowedPattern" }, "AllowedValues" : { "shape" : "ListOf__string", "locationName" : "allowedValues" }, "ConstraintDescription" : { "shape" : "__string", "locationName" : "constraintDescription" }, "DefaultValue" : { "shape" : "__string", "locationName" : "defaultValue" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "MaxLength" : { "shape" : "__integer", "locationName" : "maxLength" }, "MaxValue" : { "shape" : "__integer", "locationName" : "maxValue" }, "MinLength" : { "shape" : "__integer", "locationName" : "minLength" }, "MinValue" : { "shape" : "__integer", "locationName" : "minValue" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "NoEcho" : { "shape" : "__boolean", "locationName" : "noEcho" }, "ReferencedByResources" : { "shape" : "ListOf__string", "locationName" : "referencedByResources" }, "Type" : { "shape" : "__string", "locationName" : "type" } } }, "ParameterValue" : { "type" : "structure", "members" : { "Name" : { "shape" : "__string", "locationName" : "name" }, "Value" : { "shape" : "__string", "locationName" : "value" } } }, "PutApplicationPolicyRequest" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "location" : "uri", "locationName" : "applicationId" }, "Statements" : { "shape" : "ListOfApplicationPolicyStatement", "locationName" : "statements" } }, "required" : [ "ApplicationId" ] }, "PutApplicationPolicyResponse" : { "type" : "structure", "members" : { "Statements" : { "shape" : "ListOfApplicationPolicyStatement", "locationName" : "statements" } } }, "TooManyRequestsException" : { "type" : "structure", "members" : { "ErrorCode" : { "shape" : "__string", "locationName" : "errorCode" }, "Message" : { "shape" : "__string", "locationName" : "message" } }, "exception" : true, "error" : { "httpStatusCode" : 429 } }, "UpdateApplicationInput" : { "type" : "structure", "members" : { "Author" : { "shape" : "__string", "locationName" : "author" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "ReadmeBody" : { "shape" : "__string", "locationName" : "readmeBody" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" } } }, "UpdateApplicationRequest" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "location" : "uri", "locationName" : "applicationId" }, "Author" : { "shape" : "__string", "locationName" : "author" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "ReadmeBody" : { "shape" : "__string", "locationName" : "readmeBody" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" } }, "required" : [ "ApplicationId" ] }, "UpdateApplicationResponse" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "Author" : { "shape" : "__string", "locationName" : "author" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "Description" : { "shape" : "__string", "locationName" : "description" }, "Labels" : { "shape" : "ListOf__string", "locationName" : "labels" }, "LicenseUrl" : { "shape" : "__string", "locationName" : "licenseUrl" }, "Name" : { "shape" : "__string", "locationName" : "name" }, "ReadmeUrl" : { "shape" : "__string", "locationName" : "readmeUrl" }, "SpdxLicenseId" : { "shape" : "__string", "locationName" : "spdxLicenseId" }, "Version" : { "shape" : "Version", "locationName" : "version" } } }, "Version" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "ParameterDefinitions" : { "shape" : "ListOfParameterDefinition", "locationName" : "parameterDefinitions" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "SourceCodeUrl" : { "shape" : "__string", "locationName" : "sourceCodeUrl" }, "TemplateUrl" : { "shape" : "__string", "locationName" : "templateUrl" } } }, "VersionSummary" : { "type" : "structure", "members" : { "ApplicationId" : { "shape" : "__string", "locationName" : "applicationId" }, "CreationTime" : { "shape" : "__string", "locationName" : "creationTime" }, "SemanticVersion" : { "shape" : "__string", "locationName" : "semanticVersion" }, "SourceCodeUrl" : { "shape" : "__string", "locationName" : "sourceCodeUrl" } } }, "__boolean" : { "type" : "boolean" }, "__double" : { "type" : "double" }, "__integer" : { "type" : "integer" }, "__string" : { "type" : "string" }, "__timestamp" : { "type" : "timestamp" } }, "authorizers" : { "authorization_strategy" : { "name" : "authorization_strategy", "type" : "provided", "placement" : { "location" : "header", "name" : "Authorization" } } } }