From 6961c9160adde9bc79ad9d0d453c8efc268c12a5 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Thu, 21 Sep 2017 10:41:25 -0700 Subject: [PATCH] Fix greengrass service model being duplicated with different casing. (#1541) Fixes the greengrass service model folder being duplicated as Greengrass. The duplicate folders occurred due to an upstream error internal SDK release that will be fixed separately. This change should correct the issues with dep and other tools failing because of the duplicate folder name. Fix #1540 Fix #1539 --- models/apis/Greengrass/2017-06-07/api-2.json | 3507 ----------------- models/apis/Greengrass/2017-06-07/docs-2.json | 548 --- models/apis/greengrass/2017-06-07/api-2.json | 58 +- models/apis/greengrass/2017-06-07/docs-2.json | 43 +- service/greengrass/api.go | 241 +- service/greengrass/errors.go | 2 +- .../greengrass/greengrassiface/interface.go | 4 + 7 files changed, 312 insertions(+), 4091 deletions(-) delete mode 100644 models/apis/Greengrass/2017-06-07/api-2.json delete mode 100644 models/apis/Greengrass/2017-06-07/docs-2.json diff --git a/models/apis/Greengrass/2017-06-07/api-2.json b/models/apis/Greengrass/2017-06-07/api-2.json deleted file mode 100644 index 35cd0395258..00000000000 --- a/models/apis/Greengrass/2017-06-07/api-2.json +++ /dev/null @@ -1,3507 +0,0 @@ -{ - "metadata" : { - "apiVersion" : "2017-06-07", - "endpointPrefix" : "greengrass", - "signingName" : "greengrass", - "serviceFullName" : "AWS Greengrass", - "protocol" : "rest-json", - "jsonVersion" : "1.1", - "uid" : "greengrass-2017-06-07", - "signatureVersion" : "v4" - }, - "operations" : { - "AssociateRoleToGroup" : { - "name" : "AssociateRoleToGroup", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/groups/{GroupId}/role", - "responseCode" : 200 - }, - "input" : { - "shape" : "AssociateRoleToGroupRequest" - }, - "output" : { - "shape" : "AssociateRoleToGroupResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "AssociateServiceRoleToAccount" : { - "name" : "AssociateServiceRoleToAccount", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/servicerole", - "responseCode" : 200 - }, - "input" : { - "shape" : "AssociateServiceRoleToAccountRequest" - }, - "output" : { - "shape" : "AssociateServiceRoleToAccountResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "CreateCoreDefinition" : { - "name" : "CreateCoreDefinition", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/cores", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateCoreDefinitionRequest" - }, - "output" : { - "shape" : "CreateCoreDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateCoreDefinitionVersion" : { - "name" : "CreateCoreDefinitionVersion", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/cores/{CoreDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateCoreDefinitionVersionRequest" - }, - "output" : { - "shape" : "CreateCoreDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateDeployment" : { - "name" : "CreateDeployment", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/groups/{GroupId}/deployments", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateDeploymentRequest" - }, - "output" : { - "shape" : "CreateDeploymentResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateDeviceDefinition" : { - "name" : "CreateDeviceDefinition", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/devices", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateDeviceDefinitionRequest" - }, - "output" : { - "shape" : "CreateDeviceDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateDeviceDefinitionVersion" : { - "name" : "CreateDeviceDefinitionVersion", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/devices/{DeviceDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateDeviceDefinitionVersionRequest" - }, - "output" : { - "shape" : "CreateDeviceDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateFunctionDefinition" : { - "name" : "CreateFunctionDefinition", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/functions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateFunctionDefinitionRequest" - }, - "output" : { - "shape" : "CreateFunctionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateFunctionDefinitionVersion" : { - "name" : "CreateFunctionDefinitionVersion", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/functions/{FunctionDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateFunctionDefinitionVersionRequest" - }, - "output" : { - "shape" : "CreateFunctionDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateGroup" : { - "name" : "CreateGroup", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/groups", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateGroupRequest" - }, - "output" : { - "shape" : "CreateGroupResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateGroupCertificateAuthority" : { - "name" : "CreateGroupCertificateAuthority", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/groups/{GroupId}/certificateauthorities", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateGroupCertificateAuthorityRequest" - }, - "output" : { - "shape" : "CreateGroupCertificateAuthorityResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "CreateGroupVersion" : { - "name" : "CreateGroupVersion", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/groups/{GroupId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateGroupVersionRequest" - }, - "output" : { - "shape" : "CreateGroupVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateLoggerDefinition" : { - "name" : "CreateLoggerDefinition", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/loggers", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateLoggerDefinitionRequest" - }, - "output" : { - "shape" : "CreateLoggerDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateLoggerDefinitionVersion" : { - "name" : "CreateLoggerDefinitionVersion", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/loggers/{LoggerDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateLoggerDefinitionVersionRequest" - }, - "output" : { - "shape" : "CreateLoggerDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateSubscriptionDefinition" : { - "name" : "CreateSubscriptionDefinition", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/subscriptions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateSubscriptionDefinitionRequest" - }, - "output" : { - "shape" : "CreateSubscriptionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "CreateSubscriptionDefinitionVersion" : { - "name" : "CreateSubscriptionDefinitionVersion", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "CreateSubscriptionDefinitionVersionRequest" - }, - "output" : { - "shape" : "CreateSubscriptionDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "DeleteCoreDefinition" : { - "name" : "DeleteCoreDefinition", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/definition/cores/{CoreDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "DeleteCoreDefinitionRequest" - }, - "output" : { - "shape" : "DeleteCoreDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "DeleteDeviceDefinition" : { - "name" : "DeleteDeviceDefinition", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/definition/devices/{DeviceDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "DeleteDeviceDefinitionRequest" - }, - "output" : { - "shape" : "DeleteDeviceDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "DeleteFunctionDefinition" : { - "name" : "DeleteFunctionDefinition", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/definition/functions/{FunctionDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "DeleteFunctionDefinitionRequest" - }, - "output" : { - "shape" : "DeleteFunctionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "DeleteGroup" : { - "name" : "DeleteGroup", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/groups/{GroupId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "DeleteGroupRequest" - }, - "output" : { - "shape" : "DeleteGroupResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "DeleteLoggerDefinition" : { - "name" : "DeleteLoggerDefinition", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/definition/loggers/{LoggerDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "DeleteLoggerDefinitionRequest" - }, - "output" : { - "shape" : "DeleteLoggerDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "DeleteSubscriptionDefinition" : { - "name" : "DeleteSubscriptionDefinition", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "DeleteSubscriptionDefinitionRequest" - }, - "output" : { - "shape" : "DeleteSubscriptionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "DisassociateRoleFromGroup" : { - "name" : "DisassociateRoleFromGroup", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/groups/{GroupId}/role", - "responseCode" : 200 - }, - "input" : { - "shape" : "DisassociateRoleFromGroupRequest" - }, - "output" : { - "shape" : "DisassociateRoleFromGroupResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "DisassociateServiceRoleFromAccount" : { - "name" : "DisassociateServiceRoleFromAccount", - "http" : { - "method" : "DELETE", - "requestUri" : "/greengrass/servicerole", - "responseCode" : 200 - }, - "input" : { - "shape" : "DisassociateServiceRoleFromAccountRequest" - }, - "output" : { - "shape" : "DisassociateServiceRoleFromAccountResponse" - }, - "errors" : [ { - "shape" : "InternalServerErrorException" - } ] - }, - "GetAssociatedRole" : { - "name" : "GetAssociatedRole", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/role", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetAssociatedRoleRequest" - }, - "output" : { - "shape" : "GetAssociatedRoleResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "GetConnectivityInfo" : { - "name" : "GetConnectivityInfo", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/things/{ThingName}/connectivityInfo", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetConnectivityInfoRequest" - }, - "output" : { - "shape" : "GetConnectivityInfoResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "GetCoreDefinition" : { - "name" : "GetCoreDefinition", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/cores/{CoreDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetCoreDefinitionRequest" - }, - "output" : { - "shape" : "GetCoreDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetCoreDefinitionVersion" : { - "name" : "GetCoreDefinitionVersion", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/cores/{CoreDefinitionId}/versions/{CoreDefinitionVersionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetCoreDefinitionVersionRequest" - }, - "output" : { - "shape" : "GetCoreDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetDeploymentStatus" : { - "name" : "GetDeploymentStatus", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/deployments/{DeploymentId}/status", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetDeploymentStatusRequest" - }, - "output" : { - "shape" : "GetDeploymentStatusResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetDeviceDefinition" : { - "name" : "GetDeviceDefinition", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/devices/{DeviceDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetDeviceDefinitionRequest" - }, - "output" : { - "shape" : "GetDeviceDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetDeviceDefinitionVersion" : { - "name" : "GetDeviceDefinitionVersion", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/devices/{DeviceDefinitionId}/versions/{DeviceDefinitionVersionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetDeviceDefinitionVersionRequest" - }, - "output" : { - "shape" : "GetDeviceDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetFunctionDefinition" : { - "name" : "GetFunctionDefinition", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/functions/{FunctionDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetFunctionDefinitionRequest" - }, - "output" : { - "shape" : "GetFunctionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetFunctionDefinitionVersion" : { - "name" : "GetFunctionDefinitionVersion", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/functions/{FunctionDefinitionId}/versions/{FunctionDefinitionVersionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetFunctionDefinitionVersionRequest" - }, - "output" : { - "shape" : "GetFunctionDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetGroup" : { - "name" : "GetGroup", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetGroupRequest" - }, - "output" : { - "shape" : "GetGroupResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetGroupCertificateAuthority" : { - "name" : "GetGroupCertificateAuthority", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/certificateauthorities/{CertificateAuthorityId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetGroupCertificateAuthorityRequest" - }, - "output" : { - "shape" : "GetGroupCertificateAuthorityResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "GetGroupCertificateConfiguration" : { - "name" : "GetGroupCertificateConfiguration", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetGroupCertificateConfigurationRequest" - }, - "output" : { - "shape" : "GetGroupCertificateConfigurationResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "GetGroupVersion" : { - "name" : "GetGroupVersion", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/versions/{GroupVersionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetGroupVersionRequest" - }, - "output" : { - "shape" : "GetGroupVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetLoggerDefinition" : { - "name" : "GetLoggerDefinition", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/loggers/{LoggerDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetLoggerDefinitionRequest" - }, - "output" : { - "shape" : "GetLoggerDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetLoggerDefinitionVersion" : { - "name" : "GetLoggerDefinitionVersion", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/loggers/{LoggerDefinitionId}/versions/{LoggerDefinitionVersionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetLoggerDefinitionVersionRequest" - }, - "output" : { - "shape" : "GetLoggerDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetServiceRoleForAccount" : { - "name" : "GetServiceRoleForAccount", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/servicerole", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetServiceRoleForAccountRequest" - }, - "output" : { - "shape" : "GetServiceRoleForAccountResponse" - }, - "errors" : [ { - "shape" : "InternalServerErrorException" - } ] - }, - "GetSubscriptionDefinition" : { - "name" : "GetSubscriptionDefinition", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetSubscriptionDefinitionRequest" - }, - "output" : { - "shape" : "GetSubscriptionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "GetSubscriptionDefinitionVersion" : { - "name" : "GetSubscriptionDefinitionVersion", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions/{SubscriptionDefinitionVersionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetSubscriptionDefinitionVersionRequest" - }, - "output" : { - "shape" : "GetSubscriptionDefinitionVersionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListCoreDefinitionVersions" : { - "name" : "ListCoreDefinitionVersions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/cores/{CoreDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListCoreDefinitionVersionsRequest" - }, - "output" : { - "shape" : "ListCoreDefinitionVersionsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListCoreDefinitions" : { - "name" : "ListCoreDefinitions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/cores", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListCoreDefinitionsRequest" - }, - "output" : { - "shape" : "ListCoreDefinitionsResponse" - }, - "errors" : [ ] - }, - "ListDeployments" : { - "name" : "ListDeployments", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/deployments", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListDeploymentsRequest" - }, - "output" : { - "shape" : "ListDeploymentsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListDeviceDefinitionVersions" : { - "name" : "ListDeviceDefinitionVersions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/devices/{DeviceDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListDeviceDefinitionVersionsRequest" - }, - "output" : { - "shape" : "ListDeviceDefinitionVersionsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListDeviceDefinitions" : { - "name" : "ListDeviceDefinitions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/devices", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListDeviceDefinitionsRequest" - }, - "output" : { - "shape" : "ListDeviceDefinitionsResponse" - }, - "errors" : [ ] - }, - "ListFunctionDefinitionVersions" : { - "name" : "ListFunctionDefinitionVersions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/functions/{FunctionDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListFunctionDefinitionVersionsRequest" - }, - "output" : { - "shape" : "ListFunctionDefinitionVersionsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListFunctionDefinitions" : { - "name" : "ListFunctionDefinitions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/functions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListFunctionDefinitionsRequest" - }, - "output" : { - "shape" : "ListFunctionDefinitionsResponse" - }, - "errors" : [ ] - }, - "ListGroupCertificateAuthorities" : { - "name" : "ListGroupCertificateAuthorities", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/certificateauthorities", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListGroupCertificateAuthoritiesRequest" - }, - "output" : { - "shape" : "ListGroupCertificateAuthoritiesResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "ListGroupVersions" : { - "name" : "ListGroupVersions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups/{GroupId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListGroupVersionsRequest" - }, - "output" : { - "shape" : "ListGroupVersionsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListGroups" : { - "name" : "ListGroups", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/groups", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListGroupsRequest" - }, - "output" : { - "shape" : "ListGroupsResponse" - }, - "errors" : [ ] - }, - "ListLoggerDefinitionVersions" : { - "name" : "ListLoggerDefinitionVersions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/loggers/{LoggerDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListLoggerDefinitionVersionsRequest" - }, - "output" : { - "shape" : "ListLoggerDefinitionVersionsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListLoggerDefinitions" : { - "name" : "ListLoggerDefinitions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/loggers", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListLoggerDefinitionsRequest" - }, - "output" : { - "shape" : "ListLoggerDefinitionsResponse" - }, - "errors" : [ ] - }, - "ListSubscriptionDefinitionVersions" : { - "name" : "ListSubscriptionDefinitionVersions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}/versions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListSubscriptionDefinitionVersionsRequest" - }, - "output" : { - "shape" : "ListSubscriptionDefinitionVersionsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "ListSubscriptionDefinitions" : { - "name" : "ListSubscriptionDefinitions", - "http" : { - "method" : "GET", - "requestUri" : "/greengrass/definition/subscriptions", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListSubscriptionDefinitionsRequest" - }, - "output" : { - "shape" : "ListSubscriptionDefinitionsResponse" - }, - "errors" : [ ] - }, - "ResetDeployments" : { - "name" : "ResetDeployments", - "http" : { - "method" : "POST", - "requestUri" : "/greengrass/groups/{GroupId}/deployments/$reset", - "responseCode" : 200 - }, - "input" : { - "shape" : "ResetDeploymentsRequest" - }, - "output" : { - "shape" : "ResetDeploymentsResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "UpdateConnectivityInfo" : { - "name" : "UpdateConnectivityInfo", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/things/{ThingName}/connectivityInfo", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateConnectivityInfoRequest" - }, - "output" : { - "shape" : "UpdateConnectivityInfoResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "UpdateCoreDefinition" : { - "name" : "UpdateCoreDefinition", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/definition/cores/{CoreDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateCoreDefinitionRequest" - }, - "output" : { - "shape" : "UpdateCoreDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "UpdateDeviceDefinition" : { - "name" : "UpdateDeviceDefinition", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/definition/devices/{DeviceDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateDeviceDefinitionRequest" - }, - "output" : { - "shape" : "UpdateDeviceDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "UpdateFunctionDefinition" : { - "name" : "UpdateFunctionDefinition", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/definition/functions/{FunctionDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateFunctionDefinitionRequest" - }, - "output" : { - "shape" : "UpdateFunctionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "UpdateGroup" : { - "name" : "UpdateGroup", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/groups/{GroupId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateGroupRequest" - }, - "output" : { - "shape" : "UpdateGroupResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "UpdateGroupCertificateConfiguration" : { - "name" : "UpdateGroupCertificateConfiguration", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/groups/{GroupId}/certificateauthorities/configuration/expiry", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateGroupCertificateConfigurationRequest" - }, - "output" : { - "shape" : "UpdateGroupCertificateConfigurationResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - }, { - "shape" : "InternalServerErrorException" - } ] - }, - "UpdateLoggerDefinition" : { - "name" : "UpdateLoggerDefinition", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/definition/loggers/{LoggerDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateLoggerDefinitionRequest" - }, - "output" : { - "shape" : "UpdateLoggerDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - }, - "UpdateSubscriptionDefinition" : { - "name" : "UpdateSubscriptionDefinition", - "http" : { - "method" : "PUT", - "requestUri" : "/greengrass/definition/subscriptions/{SubscriptionDefinitionId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateSubscriptionDefinitionRequest" - }, - "output" : { - "shape" : "UpdateSubscriptionDefinitionResponse" - }, - "errors" : [ { - "shape" : "BadRequestException" - } ] - } - }, - "shapes" : { - "AssociateRoleToGroupRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - }, - "RoleArn" : { - "shape" : "__string" - } - }, - "required" : [ "GroupId" ] - }, - "AssociateRoleToGroupResponse" : { - "type" : "structure", - "members" : { - "AssociatedAt" : { - "shape" : "__string" - } - } - }, - "AssociateServiceRoleToAccountRequest" : { - "type" : "structure", - "members" : { - "RoleArn" : { - "shape" : "__string" - } - } - }, - "AssociateServiceRoleToAccountResponse" : { - "type" : "structure", - "members" : { - "AssociatedAt" : { - "shape" : "__string" - } - } - }, - "BadRequestException" : { - "type" : "structure", - "members" : { - "ErrorDetails" : { - "shape" : "ErrorDetails" - }, - "Message" : { - "shape" : "__string" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 400 - } - }, - "ConnectivityInfo" : { - "type" : "structure", - "members" : { - "HostAddress" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Metadata" : { - "shape" : "__string" - }, - "PortNumber" : { - "shape" : "__integer" - } - } - }, - "Core" : { - "type" : "structure", - "members" : { - "CertificateArn" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "SyncShadow" : { - "shape" : "__boolean" - }, - "ThingArn" : { - "shape" : "__string" - } - } - }, - "CoreDefinitionVersion" : { - "type" : "structure", - "members" : { - "Cores" : { - "shape" : "ListOfCore" - } - } - }, - "CreateCoreDefinitionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "InitialVersion" : { - "shape" : "CoreDefinitionVersion" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateCoreDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateCoreDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "CoreDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CoreDefinitionId" - }, - "Cores" : { - "shape" : "ListOfCore" - } - }, - "required" : [ "CoreDefinitionId" ] - }, - "CreateCoreDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "CreateDeploymentRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "DeploymentId" : { - "shape" : "__string" - }, - "DeploymentType" : { - "shape" : "DeploymentType" - }, - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - }, - "GroupVersionId" : { - "shape" : "__string" - } - }, - "required" : [ "GroupId" ] - }, - "CreateDeploymentResponse" : { - "type" : "structure", - "members" : { - "DeploymentArn" : { - "shape" : "__string" - }, - "DeploymentId" : { - "shape" : "__string" - } - } - }, - "CreateDeviceDefinitionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "InitialVersion" : { - "shape" : "DeviceDefinitionVersion" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateDeviceDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateDeviceDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "DeviceDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeviceDefinitionId" - }, - "Devices" : { - "shape" : "ListOfDevice" - } - }, - "required" : [ "DeviceDefinitionId" ] - }, - "CreateDeviceDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "CreateFunctionDefinitionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "InitialVersion" : { - "shape" : "FunctionDefinitionVersion" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateFunctionDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateFunctionDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "FunctionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "FunctionDefinitionId" - }, - "Functions" : { - "shape" : "ListOfFunction" - } - }, - "required" : [ "FunctionDefinitionId" ] - }, - "CreateFunctionDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "CreateGroupCertificateAuthorityRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "CreateGroupCertificateAuthorityResponse" : { - "type" : "structure", - "members" : { - "GroupCertificateAuthorityArn" : { - "shape" : "__string" - } - } - }, - "CreateGroupRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "InitialVersion" : { - "shape" : "GroupVersion" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateGroupResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateGroupVersionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "CoreDefinitionVersionArn" : { - "shape" : "__string" - }, - "DeviceDefinitionVersionArn" : { - "shape" : "__string" - }, - "FunctionDefinitionVersionArn" : { - "shape" : "__string" - }, - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - }, - "LoggerDefinitionVersionArn" : { - "shape" : "__string" - }, - "SubscriptionDefinitionVersionArn" : { - "shape" : "__string" - } - }, - "required" : [ "GroupId" ] - }, - "CreateGroupVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "CreateLoggerDefinitionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "InitialVersion" : { - "shape" : "LoggerDefinitionVersion" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateLoggerDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateLoggerDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "LoggerDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "LoggerDefinitionId" - }, - "Loggers" : { - "shape" : "ListOfLogger" - } - }, - "required" : [ "LoggerDefinitionId" ] - }, - "CreateLoggerDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "CreateSubscriptionDefinitionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "InitialVersion" : { - "shape" : "SubscriptionDefinitionVersion" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateSubscriptionDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "CreateSubscriptionDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "SubscriptionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "SubscriptionDefinitionId" - }, - "Subscriptions" : { - "shape" : "ListOfSubscription" - } - }, - "required" : [ "SubscriptionDefinitionId" ] - }, - "CreateSubscriptionDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "DefinitionInformation" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "DeleteCoreDefinitionRequest" : { - "type" : "structure", - "members" : { - "CoreDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CoreDefinitionId" - } - }, - "required" : [ "CoreDefinitionId" ] - }, - "DeleteCoreDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "DeleteDeviceDefinitionRequest" : { - "type" : "structure", - "members" : { - "DeviceDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeviceDefinitionId" - } - }, - "required" : [ "DeviceDefinitionId" ] - }, - "DeleteDeviceDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "DeleteFunctionDefinitionRequest" : { - "type" : "structure", - "members" : { - "FunctionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "FunctionDefinitionId" - } - }, - "required" : [ "FunctionDefinitionId" ] - }, - "DeleteFunctionDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "DeleteGroupRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "DeleteGroupResponse" : { - "type" : "structure", - "members" : { } - }, - "DeleteLoggerDefinitionRequest" : { - "type" : "structure", - "members" : { - "LoggerDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "LoggerDefinitionId" - } - }, - "required" : [ "LoggerDefinitionId" ] - }, - "DeleteLoggerDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "DeleteSubscriptionDefinitionRequest" : { - "type" : "structure", - "members" : { - "SubscriptionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "SubscriptionDefinitionId" - } - }, - "required" : [ "SubscriptionDefinitionId" ] - }, - "DeleteSubscriptionDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "Deployment" : { - "type" : "structure", - "members" : { - "CreatedAt" : { - "shape" : "__string" - }, - "DeploymentArn" : { - "shape" : "__string" - }, - "DeploymentId" : { - "shape" : "__string" - }, - "DeploymentType" : { - "shape" : "DeploymentType" - }, - "GroupArn" : { - "shape" : "__string" - } - } - }, - "DeploymentType" : { - "type" : "string", - "enum" : [ "NewDeployment", "Redeployment", "ResetDeployment", "ForceResetDeployment" ] - }, - "Deployments" : { - "type" : "list", - "member" : { - "shape" : "Deployment" - } - }, - "Device" : { - "type" : "structure", - "members" : { - "CertificateArn" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "SyncShadow" : { - "shape" : "__boolean" - }, - "ThingArn" : { - "shape" : "__string" - } - } - }, - "DeviceDefinitionVersion" : { - "type" : "structure", - "members" : { - "Devices" : { - "shape" : "ListOfDevice" - } - } - }, - "DisassociateRoleFromGroupRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "DisassociateRoleFromGroupResponse" : { - "type" : "structure", - "members" : { - "DisassociatedAt" : { - "shape" : "__string" - } - } - }, - "DisassociateServiceRoleFromAccountRequest" : { - "type" : "structure", - "members" : { } - }, - "DisassociateServiceRoleFromAccountResponse" : { - "type" : "structure", - "members" : { - "DisassociatedAt" : { - "shape" : "__string" - } - } - }, - "Empty" : { - "type" : "structure", - "members" : { } - }, - "ErrorDetail" : { - "type" : "structure", - "members" : { - "DetailedErrorCode" : { - "shape" : "__string" - }, - "DetailedErrorMessage" : { - "shape" : "__string" - } - } - }, - "ErrorDetails" : { - "type" : "list", - "member" : { - "shape" : "ErrorDetail" - } - }, - "Function" : { - "type" : "structure", - "members" : { - "FunctionArn" : { - "shape" : "__string" - }, - "FunctionConfiguration" : { - "shape" : "FunctionConfiguration" - }, - "Id" : { - "shape" : "__string" - } - } - }, - "FunctionConfiguration" : { - "type" : "structure", - "members" : { - "Environment" : { - "shape" : "FunctionConfigurationEnvironment" - }, - "ExecArgs" : { - "shape" : "__string" - }, - "Executable" : { - "shape" : "__string" - }, - "MemorySize" : { - "shape" : "__integer" - }, - "Pinned" : { - "shape" : "__boolean" - }, - "Timeout" : { - "shape" : "__integer" - } - } - }, - "FunctionConfigurationEnvironment" : { - "type" : "structure", - "members" : { - "Variables" : { - "shape" : "MapOf__string" - } - } - }, - "FunctionDefinitionVersion" : { - "type" : "structure", - "members" : { - "Functions" : { - "shape" : "ListOfFunction" - } - } - }, - "GeneralError" : { - "type" : "structure", - "members" : { - "ErrorDetails" : { - "shape" : "ErrorDetails" - }, - "Message" : { - "shape" : "__string" - } - } - }, - "GetAssociatedRoleRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "GetAssociatedRoleResponse" : { - "type" : "structure", - "members" : { - "AssociatedAt" : { - "shape" : "__string" - }, - "RoleArn" : { - "shape" : "__string" - } - } - }, - "GetConnectivityInfoRequest" : { - "type" : "structure", - "members" : { - "ThingName" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "ThingName" - } - }, - "required" : [ "ThingName" ] - }, - "GetConnectivityInfoResponse" : { - "type" : "structure", - "members" : { - "ConnectivityInfo" : { - "shape" : "ListOfConnectivityInfo" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - } - }, - "GetCoreDefinitionRequest" : { - "type" : "structure", - "members" : { - "CoreDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CoreDefinitionId" - } - }, - "required" : [ "CoreDefinitionId" ] - }, - "GetCoreDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "GetCoreDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "CoreDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CoreDefinitionId" - }, - "CoreDefinitionVersionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CoreDefinitionVersionId" - } - }, - "required" : [ "CoreDefinitionId", "CoreDefinitionVersionId" ] - }, - "GetCoreDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Definition" : { - "shape" : "CoreDefinitionVersion" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "GetDeploymentStatusRequest" : { - "type" : "structure", - "members" : { - "DeploymentId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeploymentId" - }, - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId", "DeploymentId" ] - }, - "GetDeploymentStatusResponse" : { - "type" : "structure", - "members" : { - "DeploymentStatus" : { - "shape" : "__string" - }, - "DeploymentType" : { - "shape" : "DeploymentType" - }, - "ErrorDetails" : { - "shape" : "ErrorDetails" - }, - "ErrorMessage" : { - "shape" : "__string" - }, - "UpdatedAt" : { - "shape" : "__string" - } - } - }, - "GetDeviceDefinitionRequest" : { - "type" : "structure", - "members" : { - "DeviceDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeviceDefinitionId" - } - }, - "required" : [ "DeviceDefinitionId" ] - }, - "GetDeviceDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "GetDeviceDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "DeviceDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeviceDefinitionId" - }, - "DeviceDefinitionVersionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeviceDefinitionVersionId" - } - }, - "required" : [ "DeviceDefinitionVersionId", "DeviceDefinitionId" ] - }, - "GetDeviceDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Definition" : { - "shape" : "DeviceDefinitionVersion" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "GetFunctionDefinitionRequest" : { - "type" : "structure", - "members" : { - "FunctionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "FunctionDefinitionId" - } - }, - "required" : [ "FunctionDefinitionId" ] - }, - "GetFunctionDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "GetFunctionDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "FunctionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "FunctionDefinitionId" - }, - "FunctionDefinitionVersionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "FunctionDefinitionVersionId" - } - }, - "required" : [ "FunctionDefinitionId", "FunctionDefinitionVersionId" ] - }, - "GetFunctionDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Definition" : { - "shape" : "FunctionDefinitionVersion" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "GetGroupCertificateAuthorityRequest" : { - "type" : "structure", - "members" : { - "CertificateAuthorityId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CertificateAuthorityId" - }, - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "CertificateAuthorityId", "GroupId" ] - }, - "GetGroupCertificateAuthorityResponse" : { - "type" : "structure", - "members" : { - "GroupCertificateAuthorityArn" : { - "shape" : "__string" - }, - "GroupCertificateAuthorityId" : { - "shape" : "__string" - }, - "PemEncodedCertificate" : { - "shape" : "__string" - } - } - }, - "GetGroupCertificateConfigurationRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "GetGroupCertificateConfigurationResponse" : { - "type" : "structure", - "members" : { - "CertificateAuthorityExpiryInMilliseconds" : { - "shape" : "__string" - }, - "CertificateExpiryInMilliseconds" : { - "shape" : "__string" - }, - "GroupId" : { - "shape" : "__string" - } - } - }, - "GetGroupRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "GetGroupResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "GetGroupVersionRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - }, - "GroupVersionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupVersionId" - } - }, - "required" : [ "GroupVersionId", "GroupId" ] - }, - "GetGroupVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Definition" : { - "shape" : "GroupVersion" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "GetLoggerDefinitionRequest" : { - "type" : "structure", - "members" : { - "LoggerDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "LoggerDefinitionId" - } - }, - "required" : [ "LoggerDefinitionId" ] - }, - "GetLoggerDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "GetLoggerDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "LoggerDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "LoggerDefinitionId" - }, - "LoggerDefinitionVersionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "LoggerDefinitionVersionId" - } - }, - "required" : [ "LoggerDefinitionVersionId", "LoggerDefinitionId" ] - }, - "GetLoggerDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Definition" : { - "shape" : "LoggerDefinitionVersion" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "GetServiceRoleForAccountRequest" : { - "type" : "structure", - "members" : { } - }, - "GetServiceRoleForAccountResponse" : { - "type" : "structure", - "members" : { - "AssociatedAt" : { - "shape" : "__string" - }, - "RoleArn" : { - "shape" : "__string" - } - } - }, - "GetSubscriptionDefinitionRequest" : { - "type" : "structure", - "members" : { - "SubscriptionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "SubscriptionDefinitionId" - } - }, - "required" : [ "SubscriptionDefinitionId" ] - }, - "GetSubscriptionDefinitionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "GetSubscriptionDefinitionVersionRequest" : { - "type" : "structure", - "members" : { - "SubscriptionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "SubscriptionDefinitionId" - }, - "SubscriptionDefinitionVersionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "SubscriptionDefinitionVersionId" - } - }, - "required" : [ "SubscriptionDefinitionId", "SubscriptionDefinitionVersionId" ] - }, - "GetSubscriptionDefinitionVersionResponse" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Definition" : { - "shape" : "SubscriptionDefinitionVersion" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "GroupCertificateAuthorityProperties" : { - "type" : "structure", - "members" : { - "GroupCertificateAuthorityArn" : { - "shape" : "__string" - }, - "GroupCertificateAuthorityId" : { - "shape" : "__string" - } - } - }, - "GroupCertificateConfiguration" : { - "type" : "structure", - "members" : { - "CertificateAuthorityExpiryInMilliseconds" : { - "shape" : "__string" - }, - "CertificateExpiryInMilliseconds" : { - "shape" : "__string" - }, - "GroupId" : { - "shape" : "__string" - } - } - }, - "GroupInformation" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "LastUpdatedTimestamp" : { - "shape" : "__string" - }, - "LatestVersion" : { - "shape" : "__string" - }, - "LatestVersionArn" : { - "shape" : "__string" - }, - "Name" : { - "shape" : "__string" - } - } - }, - "GroupVersion" : { - "type" : "structure", - "members" : { - "CoreDefinitionVersionArn" : { - "shape" : "__string" - }, - "DeviceDefinitionVersionArn" : { - "shape" : "__string" - }, - "FunctionDefinitionVersionArn" : { - "shape" : "__string" - }, - "LoggerDefinitionVersionArn" : { - "shape" : "__string" - }, - "SubscriptionDefinitionVersionArn" : { - "shape" : "__string" - } - } - }, - "InternalServerErrorException" : { - "type" : "structure", - "members" : { - "ErrorDetails" : { - "shape" : "ErrorDetails" - }, - "Message" : { - "shape" : "__string" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 500 - } - }, - "ListCoreDefinitionVersionsRequest" : { - "type" : "structure", - "members" : { - "CoreDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CoreDefinitionId" - }, - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - }, - "required" : [ "CoreDefinitionId" ] - }, - "ListCoreDefinitionVersionsResponse" : { - "type" : "structure", - "members" : { - "NextToken" : { - "shape" : "__string" - }, - "Versions" : { - "shape" : "ListOfVersionInformation" - } - } - }, - "ListCoreDefinitionsRequest" : { - "type" : "structure", - "members" : { - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - } - }, - "ListCoreDefinitionsResponse" : { - "type" : "structure", - "members" : { - "Definitions" : { - "shape" : "ListOfDefinitionInformation" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListDefinitionsResponse" : { - "type" : "structure", - "members" : { - "Definitions" : { - "shape" : "ListOfDefinitionInformation" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListDeploymentsRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - }, - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - }, - "required" : [ "GroupId" ] - }, - "ListDeploymentsResponse" : { - "type" : "structure", - "members" : { - "Deployments" : { - "shape" : "Deployments" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListDeviceDefinitionVersionsRequest" : { - "type" : "structure", - "members" : { - "DeviceDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeviceDefinitionId" - }, - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - }, - "required" : [ "DeviceDefinitionId" ] - }, - "ListDeviceDefinitionVersionsResponse" : { - "type" : "structure", - "members" : { - "NextToken" : { - "shape" : "__string" - }, - "Versions" : { - "shape" : "ListOfVersionInformation" - } - } - }, - "ListDeviceDefinitionsRequest" : { - "type" : "structure", - "members" : { - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - } - }, - "ListDeviceDefinitionsResponse" : { - "type" : "structure", - "members" : { - "Definitions" : { - "shape" : "ListOfDefinitionInformation" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListFunctionDefinitionVersionsRequest" : { - "type" : "structure", - "members" : { - "FunctionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "FunctionDefinitionId" - }, - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - }, - "required" : [ "FunctionDefinitionId" ] - }, - "ListFunctionDefinitionVersionsResponse" : { - "type" : "structure", - "members" : { - "NextToken" : { - "shape" : "__string" - }, - "Versions" : { - "shape" : "ListOfVersionInformation" - } - } - }, - "ListFunctionDefinitionsRequest" : { - "type" : "structure", - "members" : { - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - } - }, - "ListFunctionDefinitionsResponse" : { - "type" : "structure", - "members" : { - "Definitions" : { - "shape" : "ListOfDefinitionInformation" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListGroupCertificateAuthoritiesRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "ListGroupCertificateAuthoritiesResponse" : { - "type" : "structure", - "members" : { - "GroupCertificateAuthorities" : { - "shape" : "ListOfGroupCertificateAuthorityProperties" - } - } - }, - "ListGroupVersionsRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - }, - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - }, - "required" : [ "GroupId" ] - }, - "ListGroupVersionsResponse" : { - "type" : "structure", - "members" : { - "NextToken" : { - "shape" : "__string" - }, - "Versions" : { - "shape" : "ListOfVersionInformation" - } - } - }, - "ListGroupsRequest" : { - "type" : "structure", - "members" : { - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - } - }, - "ListGroupsResponse" : { - "type" : "structure", - "members" : { - "Groups" : { - "shape" : "ListOfGroupInformation" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListLoggerDefinitionVersionsRequest" : { - "type" : "structure", - "members" : { - "LoggerDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "LoggerDefinitionId" - }, - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - }, - "required" : [ "LoggerDefinitionId" ] - }, - "ListLoggerDefinitionVersionsResponse" : { - "type" : "structure", - "members" : { - "NextToken" : { - "shape" : "__string" - }, - "Versions" : { - "shape" : "ListOfVersionInformation" - } - } - }, - "ListLoggerDefinitionsRequest" : { - "type" : "structure", - "members" : { - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - } - }, - "ListLoggerDefinitionsResponse" : { - "type" : "structure", - "members" : { - "Definitions" : { - "shape" : "ListOfDefinitionInformation" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListOfConnectivityInfo" : { - "type" : "list", - "member" : { - "shape" : "ConnectivityInfo" - } - }, - "ListOfCore" : { - "type" : "list", - "member" : { - "shape" : "Core" - } - }, - "ListOfDefinitionInformation" : { - "type" : "list", - "member" : { - "shape" : "DefinitionInformation" - } - }, - "ListOfDevice" : { - "type" : "list", - "member" : { - "shape" : "Device" - } - }, - "ListOfFunction" : { - "type" : "list", - "member" : { - "shape" : "Function" - } - }, - "ListOfGroupCertificateAuthorityProperties" : { - "type" : "list", - "member" : { - "shape" : "GroupCertificateAuthorityProperties" - } - }, - "ListOfGroupInformation" : { - "type" : "list", - "member" : { - "shape" : "GroupInformation" - } - }, - "ListOfLogger" : { - "type" : "list", - "member" : { - "shape" : "Logger" - } - }, - "ListOfSubscription" : { - "type" : "list", - "member" : { - "shape" : "Subscription" - } - }, - "ListOfVersionInformation" : { - "type" : "list", - "member" : { - "shape" : "VersionInformation" - } - }, - "ListSubscriptionDefinitionVersionsRequest" : { - "type" : "structure", - "members" : { - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - }, - "SubscriptionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "SubscriptionDefinitionId" - } - }, - "required" : [ "SubscriptionDefinitionId" ] - }, - "ListSubscriptionDefinitionVersionsResponse" : { - "type" : "structure", - "members" : { - "NextToken" : { - "shape" : "__string" - }, - "Versions" : { - "shape" : "ListOfVersionInformation" - } - } - }, - "ListSubscriptionDefinitionsRequest" : { - "type" : "structure", - "members" : { - "MaxResults" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "MaxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "NextToken" - } - } - }, - "ListSubscriptionDefinitionsResponse" : { - "type" : "structure", - "members" : { - "Definitions" : { - "shape" : "ListOfDefinitionInformation" - }, - "NextToken" : { - "shape" : "__string" - } - } - }, - "ListVersionsResponse" : { - "type" : "structure", - "members" : { - "NextToken" : { - "shape" : "__string" - }, - "Versions" : { - "shape" : "ListOfVersionInformation" - } - } - }, - "Logger" : { - "type" : "structure", - "members" : { - "Component" : { - "shape" : "LoggerComponent" - }, - "Id" : { - "shape" : "__string" - }, - "Level" : { - "shape" : "LoggerLevel" - }, - "Space" : { - "shape" : "__integer" - }, - "Type" : { - "shape" : "LoggerType" - } - } - }, - "LoggerComponent" : { - "type" : "string", - "enum" : [ "GreengrassSystem", "Lambda" ] - }, - "LoggerDefinitionVersion" : { - "type" : "structure", - "members" : { - "Loggers" : { - "shape" : "ListOfLogger" - } - } - }, - "LoggerLevel" : { - "type" : "string", - "enum" : [ "DEBUG", "INFO", "WARN", "ERROR", "FATAL" ] - }, - "LoggerType" : { - "type" : "string", - "enum" : [ "FileSystem", "AWSCloudWatch" ] - }, - "MapOf__string" : { - "type" : "map", - "key" : { - "shape" : "__string" - }, - "value" : { - "shape" : "__string" - } - }, - "ResetDeploymentsRequest" : { - "type" : "structure", - "members" : { - "AmznClientToken" : { - "shape" : "__string", - "location" : "header", - "locationName" : "X-Amzn-Client-Token" - }, - "Force" : { - "shape" : "__boolean" - }, - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "ResetDeploymentsResponse" : { - "type" : "structure", - "members" : { - "DeploymentArn" : { - "shape" : "__string" - }, - "DeploymentId" : { - "shape" : "__string" - } - } - }, - "Subscription" : { - "type" : "structure", - "members" : { - "Id" : { - "shape" : "__string" - }, - "Source" : { - "shape" : "__string" - }, - "Subject" : { - "shape" : "__string" - }, - "Target" : { - "shape" : "__string" - } - } - }, - "SubscriptionDefinitionVersion" : { - "type" : "structure", - "members" : { - "Subscriptions" : { - "shape" : "ListOfSubscription" - } - } - }, - "UpdateConnectivityInfoRequest" : { - "type" : "structure", - "members" : { - "ConnectivityInfo" : { - "shape" : "ListOfConnectivityInfo" - }, - "ThingName" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "ThingName" - } - }, - "required" : [ "ThingName" ] - }, - "UpdateConnectivityInfoResponse" : { - "type" : "structure", - "members" : { - "Message" : { - "shape" : "__string", - "locationName" : "message" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "UpdateCoreDefinitionRequest" : { - "type" : "structure", - "members" : { - "CoreDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "CoreDefinitionId" - }, - "Name" : { - "shape" : "__string" - } - }, - "required" : [ "CoreDefinitionId" ] - }, - "UpdateCoreDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "UpdateDeviceDefinitionRequest" : { - "type" : "structure", - "members" : { - "DeviceDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "DeviceDefinitionId" - }, - "Name" : { - "shape" : "__string" - } - }, - "required" : [ "DeviceDefinitionId" ] - }, - "UpdateDeviceDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "UpdateFunctionDefinitionRequest" : { - "type" : "structure", - "members" : { - "FunctionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "FunctionDefinitionId" - }, - "Name" : { - "shape" : "__string" - } - }, - "required" : [ "FunctionDefinitionId" ] - }, - "UpdateFunctionDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "UpdateGroupCertificateConfigurationRequest" : { - "type" : "structure", - "members" : { - "CertificateExpiryInMilliseconds" : { - "shape" : "__string" - }, - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - } - }, - "required" : [ "GroupId" ] - }, - "UpdateGroupCertificateConfigurationResponse" : { - "type" : "structure", - "members" : { - "CertificateAuthorityExpiryInMilliseconds" : { - "shape" : "__string" - }, - "CertificateExpiryInMilliseconds" : { - "shape" : "__string" - }, - "GroupId" : { - "shape" : "__string" - } - } - }, - "UpdateGroupRequest" : { - "type" : "structure", - "members" : { - "GroupId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "GroupId" - }, - "Name" : { - "shape" : "__string" - } - }, - "required" : [ "GroupId" ] - }, - "UpdateGroupResponse" : { - "type" : "structure", - "members" : { } - }, - "UpdateLoggerDefinitionRequest" : { - "type" : "structure", - "members" : { - "LoggerDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "LoggerDefinitionId" - }, - "Name" : { - "shape" : "__string" - } - }, - "required" : [ "LoggerDefinitionId" ] - }, - "UpdateLoggerDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "UpdateSubscriptionDefinitionRequest" : { - "type" : "structure", - "members" : { - "Name" : { - "shape" : "__string" - }, - "SubscriptionDefinitionId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "SubscriptionDefinitionId" - } - }, - "required" : [ "SubscriptionDefinitionId" ] - }, - "UpdateSubscriptionDefinitionResponse" : { - "type" : "structure", - "members" : { } - }, - "VersionInformation" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string" - }, - "CreationTimestamp" : { - "shape" : "__string" - }, - "Id" : { - "shape" : "__string" - }, - "Version" : { - "shape" : "__string" - } - } - }, - "__boolean" : { - "type" : "boolean" - }, - "__double" : { - "type" : "double" - }, - "__integer" : { - "type" : "integer" - }, - "__string" : { - "type" : "string" - }, - "__timestamp" : { - "type" : "timestamp" - } - } -} \ No newline at end of file diff --git a/models/apis/Greengrass/2017-06-07/docs-2.json b/models/apis/Greengrass/2017-06-07/docs-2.json deleted file mode 100644 index e079aadcd3e..00000000000 --- a/models/apis/Greengrass/2017-06-07/docs-2.json +++ /dev/null @@ -1,548 +0,0 @@ -{ - "version" : "2.0", - "service" : "AWS Greengrass seamlessly extends AWS onto physical devices so they can act locally on the data they generate, while still using the cloud for management, analytics, and durable storage. AWS Greengrass ensures your devices can respond quickly to local events and operate with intermittent connectivity. AWS Greengrass minimizes the cost of transmitting data to the cloud by allowing you to author AWS Lambda functions that execute locally.", - "operations" : { - "AssociateRoleToGroup" : "Associates a role with a group. The role will be used by the AWS Greengrass core in order to access AWS cloud services. The role's permissions will allow Greengrass core Lambda functions to perform actions against the cloud.", - "AssociateServiceRoleToAccount" : "Associates a role which is used by AWS Greengrass. AWS Greengrass uses the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. It needs to have minimum permissions in policy ``AWSGreengrassResourceAccessRolePolicy``", - "CreateCoreDefinition" : "Creates a core definition. You may optionally provide the initial version of the core definition or use ''CreateCoreDefinitionVersion'' at a later time. AWS Greengrass Groups must each contain exactly 1 AWS Greengrass Core.", - "CreateCoreDefinitionVersion" : "Creates a version of a core definition that has already been defined. AWS Greengrass Groups must each contain exactly 1 AWS Greengrass Core.", - "CreateDeployment" : "Creates a deployment.", - "CreateDeviceDefinition" : "Creates a device definition. You may optinally provide the initial version of the device definition or use ``CreateDeviceDefinitionVersion`` at a later time.", - "CreateDeviceDefinitionVersion" : "Creates a version of a device definition that has already been defined.", - "CreateFunctionDefinition" : "Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be used in a group. You can create an initial version of the definition by providing a list of Lambda functions and their configurations now, or use ``CreateFunctionDefinitionVersion`` later.", - "CreateFunctionDefinitionVersion" : "Create a version of a Lambda function definition that has already been defined.", - "CreateGroup" : "Creates a group. You may optionally provide the initial version of the group or use ''CreateGroupVersion'' at a later time.", - "CreateGroupCertificateAuthority" : "Creates a CA for the group. If a CA already exists, it will rotate the existing CA.", - "CreateGroupVersion" : "Creates a version of a group which has already been defined.", - "CreateLoggerDefinition" : "Creates a logger definition. You may optionally provide the initial version of the logger definition or use ``CreateLoggerDefinitionVersion`` at a later time.", - "CreateLoggerDefinitionVersion" : "Creates a version of a logger definition that has already been defined.", - "CreateSubscriptionDefinition" : "Creates a subscription definition. You may optionally provide the initial version of the subscription definition or use ``CreateSubscriptionDefinitionVersion`` at a later time.", - "CreateSubscriptionDefinitionVersion" : "Creates a version of a subscription definition which has already been defined.", - "DeleteCoreDefinition" : "Deletes a core definition. The core definition must not have been used in a deployment.", - "DeleteDeviceDefinition" : "Deletes a device definition. The device definition must not have been used in a deployment.", - "DeleteFunctionDefinition" : "Deletes a Lambda function definition. The Lambda function definition must not have been used in a deployment.", - "DeleteGroup" : "Deletes a group. The group must not have been used in deployment.", - "DeleteLoggerDefinition" : "Deletes a logger definition. The logger definition must not have been used in a deployment.", - "DeleteSubscriptionDefinition" : "Deletes a subscription definition. The subscription definition must not have been used in a deployment.", - "DisassociateRoleFromGroup" : "Disassociates the role from a group.", - "DisassociateServiceRoleFromAccount" : "Disassociates the service role from the account. Without a service role, deployments will not work.", - "GetAssociatedRole" : "Retrieves the role associated with a particular group.", - "GetConnectivityInfo" : "Retrieves the connectivity information for a core.", - "GetCoreDefinition" : "Retrieves information about a core definition version.", - "GetCoreDefinitionVersion" : "Retrieves information about a core definition version.", - "GetDeploymentStatus" : "Returns the status of a deployment.", - "GetDeviceDefinition" : "Retrieves information about a device definition.", - "GetDeviceDefinitionVersion" : "Retrieves information about a device definition version.", - "GetFunctionDefinition" : "Retrieves information about a Lambda function definition, such as its creation time and latest version.", - "GetFunctionDefinitionVersion" : "Retrieves information about a Lambda function definition version, such as which Lambda functions are included in the version and their configurations.", - "GetGroup" : "Retrieves information about a group.", - "GetGroupCertificateAuthority" : "Retreives the CA associated with a group. Returns the public key of the CA.", - "GetGroupCertificateConfiguration" : "Retrieves the current configuration for the CA used by the group.", - "GetGroupVersion" : "Retrieves information about a group version.", - "GetLoggerDefinition" : "Retrieves information about a logger definition.", - "GetLoggerDefinitionVersion" : "Retrieves information about a logger definition version.", - "GetServiceRoleForAccount" : "Retrieves the service role that is attached to the account.", - "GetSubscriptionDefinition" : "Retrieves information about a subscription definition.", - "GetSubscriptionDefinitionVersion" : "Retrieves information about a subscription definition version.", - "ListCoreDefinitionVersions" : "Lists versions of a core definition.", - "ListCoreDefinitions" : "Retrieves a list of core definitions.", - "ListDeployments" : "Returns a history of deployments for the group.", - "ListDeviceDefinitionVersions" : "Lists the versions of a device definition.", - "ListDeviceDefinitions" : "Retrieves a list of device definitions.", - "ListFunctionDefinitionVersions" : "Lists the versions of a Lambda function definition.", - "ListFunctionDefinitions" : "Retrieves a list of Lambda function definitions.", - "ListGroupCertificateAuthorities" : "Retrieves the current CAs for a group.", - "ListGroupVersions" : "List the versions of a group.", - "ListGroups" : "Retrieves a list of groups.", - "ListLoggerDefinitionVersions" : "Lists the versions of a logger definition.", - "ListLoggerDefinitions" : "Retrieves a list of logger definitions.", - "ListSubscriptionDefinitionVersions" : "Lists the versions of a subscription definition.", - "ListSubscriptionDefinitions" : "Retrieves a list of subscription definitions.", - "ResetDeployments" : "Resets a group's deployments.", - "UpdateConnectivityInfo" : "Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it.", - "UpdateCoreDefinition" : "Updates a core definition.", - "UpdateDeviceDefinition" : "Updates a device definition.", - "UpdateFunctionDefinition" : "Updates a Lambda function definition.", - "UpdateGroup" : "Updates a group.", - "UpdateGroupCertificateConfiguration" : "Updates the Cert expiry time for a group.", - "UpdateLoggerDefinition" : "Updates a logger definition.", - "UpdateSubscriptionDefinition" : "Updates a subscription definition." - }, - "shapes" : { - "AssociateRoleToGroupRequest" : { - "base" : null, - "refs" : { } - }, - "AssociateRoleToGroupResponse" : { - "base" : null, - "refs" : { } - }, - "AssociateServiceRoleToAccountRequest" : { - "base" : null, - "refs" : { } - }, - "AssociateServiceRoleToAccountResponse" : { - "base" : null, - "refs" : { } - }, - "BadRequestException" : { - "base" : "user error", - "refs" : { } - }, - "ConnectivityInfo" : { - "base" : "Connectivity Info", - "refs" : { - "GetConnectivityInfoResponse$ConnectivityInfo" : "Connectivity info list", - "UpdateConnectivityInfoRequest$ConnectivityInfo" : "Connectivity info list" - } - }, - "Core" : { - "base" : "Information on the core", - "refs" : { - "CoreDefinitionVersion$Cores" : "Cores in the definition version." - } - }, - "CoreDefinitionVersion" : { - "base" : "Information on core definition version", - "refs" : { - "GetCoreDefinitionVersionResponse$Definition" : "Information on definition" - } - }, - "CreateDeploymentRequest" : { - "base" : "Information on Deployment", - "refs" : { } - }, - "CreateDeploymentResponse" : { - "base" : null, - "refs" : { } - }, - "CreateGroupCertificateAuthorityResponse" : { - "base" : null, - "refs" : { } - }, - "DefinitionInformation" : { - "base" : "Information on the Definition", - "refs" : { - "ListDefinitionsResponse$Definitions" : "Definitions" - } - }, - "Deployment" : { - "base" : "Information on the deployment", - "refs" : { - "Deployments" : null - } - }, - "DeploymentType" : { - "base" : null, - "refs" : { - "CreateDeploymentRequest$DeploymentType" : "Type of deployment. When used in CreateDeployment, only NewDeployment and Redeployment are valid. ", - "Deployment$DeploymentType" : "The type of deployment.", - "GetDeploymentStatusResponse$DeploymentType" : "The type of the deployment." - } - }, - "Deployments" : { - "base" : null, - "refs" : { - "ListDeploymentsResponse$Deployments" : "List of deployments for the requested groups" - } - }, - "Device" : { - "base" : "Information on a Device", - "refs" : { - "DeviceDefinitionVersion$Devices" : "Devices in the definition version." - } - }, - "DeviceDefinitionVersion" : { - "base" : "Information on device definition version", - "refs" : { - "GetDeviceDefinitionVersionResponse$Definition" : "Device definition version" - } - }, - "DisassociateRoleFromGroupResponse" : { - "base" : null, - "refs" : { } - }, - "DisassociateServiceRoleFromAccountResponse" : { - "base" : null, - "refs" : { } - }, - "Empty" : { - "base" : "Empty", - "refs" : { } - }, - "ErrorDetail" : { - "base" : "ErrorDetail", - "refs" : { - "ErrorDetails" : "Error Details" - } - }, - "ErrorDetails" : { - "base" : "Error Details", - "refs" : { - "GeneralError$ErrorDetails" : "Error Details", - "GetDeploymentStatusResponse$ErrorDetails" : "The error Details" - } - }, - "Function" : { - "base" : "Information on function", - "refs" : { - "FunctionDefinitionVersion$Functions" : "Lambda functions in this function definition version." - } - }, - "FunctionConfiguration" : { - "base" : "Configuration of the function", - "refs" : { - "Function$FunctionConfiguration" : "Configuration of the function" - } - }, - "FunctionConfigurationEnvironment" : { - "base" : "Environment of the function configuration", - "refs" : { - "FunctionConfiguration$Environment" : "Environment of the function configuration" - } - }, - "FunctionDefinitionVersion" : { - "base" : "Information on the function definition version", - "refs" : { - "GetFunctionDefinitionVersionResponse$Definition" : "Information on the definition" - } - }, - "GeneralError" : { - "base" : "General Error", - "refs" : { } - }, - "GetAssociatedRoleResponse" : { - "base" : null, - "refs" : { } - }, - "GetConnectivityInfoResponse" : { - "base" : "connectivity info response", - "refs" : { } - }, - "GetCoreDefinitionVersionResponse" : { - "base" : null, - "refs" : { } - }, - "GetDeploymentStatusResponse" : { - "base" : "The response body contains the status of a deployment for a group.", - "refs" : { } - }, - "GetDeviceDefinitionVersionResponse" : { - "base" : null, - "refs" : { } - }, - "GetFunctionDefinitionVersionResponse" : { - "base" : "Function definition version", - "refs" : { } - }, - "GetGroupCertificateAuthorityResponse" : { - "base" : "Certificate authority for the group.", - "refs" : { } - }, - "GetGroupVersionResponse" : { - "base" : "Information on the group version", - "refs" : { } - }, - "GetLoggerDefinitionVersionResponse" : { - "base" : "Information on logger definition version response", - "refs" : { } - }, - "GetServiceRoleForAccountResponse" : { - "base" : null, - "refs" : { } - }, - "GetSubscriptionDefinitionVersionResponse" : { - "base" : "Information on the Subscription Definition Version", - "refs" : { } - }, - "GroupCertificateAuthorityProperties" : { - "base" : "Information on group certificate authority properties", - "refs" : { - "ListGroupCertificateAuthoritiesResponse$GroupCertificateAuthorities" : "List of certificate authorities associated with the group." - } - }, - "GroupCertificateConfiguration" : { - "base" : "Information on the group certificate configuration", - "refs" : { } - }, - "GroupInformation" : { - "base" : "Information on the group", - "refs" : { - "ListGroupsResponse$Groups" : "Groups" - } - }, - "GroupVersion" : { - "base" : "Information on group version", - "refs" : { - "GetGroupVersionResponse$Definition" : "Information on the definition" - } - }, - "InternalServerErrorException" : { - "base" : "Server Error", - "refs" : { } - }, - "ListDefinitionsResponse" : { - "base" : "List of definition responses", - "refs" : { } - }, - "ListDeploymentsResponse" : { - "base" : null, - "refs" : { } - }, - "ListGroupCertificateAuthoritiesResponse" : { - "base" : null, - "refs" : { } - }, - "ListGroupsResponse" : { - "base" : null, - "refs" : { } - }, - "ListOfConnectivityInfo" : { - "base" : null, - "refs" : { } - }, - "ListOfCore" : { - "base" : null, - "refs" : { } - }, - "ListOfDefinitionInformation" : { - "base" : null, - "refs" : { } - }, - "ListOfDevice" : { - "base" : null, - "refs" : { } - }, - "ListOfFunction" : { - "base" : null, - "refs" : { } - }, - "ListOfGroupCertificateAuthorityProperties" : { - "base" : null, - "refs" : { } - }, - "ListOfGroupInformation" : { - "base" : null, - "refs" : { } - }, - "ListOfLogger" : { - "base" : null, - "refs" : { } - }, - "ListOfSubscription" : { - "base" : null, - "refs" : { } - }, - "ListOfVersionInformation" : { - "base" : null, - "refs" : { } - }, - "ListVersionsResponse" : { - "base" : "List of versions response", - "refs" : { } - }, - "Logger" : { - "base" : "Information on the Logger", - "refs" : { - "LoggerDefinitionVersion$Loggers" : "List of loggers." - } - }, - "LoggerComponent" : { - "base" : null, - "refs" : { - "Logger$Component" : "The component that will be subject to logs" - } - }, - "LoggerDefinitionVersion" : { - "base" : "Information on logger definition version", - "refs" : { - "GetLoggerDefinitionVersionResponse$Definition" : "Information on definition" - } - }, - "LoggerLevel" : { - "base" : null, - "refs" : { - "Logger$Level" : "The level of the logs" - } - }, - "LoggerType" : { - "base" : null, - "refs" : { - "Logger$Type" : "The type which will be use for log output" - } - }, - "MapOf__string" : { - "base" : null, - "refs" : { } - }, - "ResetDeploymentsRequest" : { - "base" : "Information needed to perform a reset of a group's deployments.", - "refs" : { } - }, - "ResetDeploymentsResponse" : { - "base" : null, - "refs" : { } - }, - "Subscription" : { - "base" : "Information on subscription", - "refs" : { - "SubscriptionDefinitionVersion$Subscriptions" : "Subscriptions in the version." - } - }, - "SubscriptionDefinitionVersion" : { - "base" : "Information on subscription definition version", - "refs" : { - "GetSubscriptionDefinitionVersionResponse$Definition" : "Information on the definition" - } - }, - "UpdateConnectivityInfoRequest" : { - "base" : "Information on connectivity info", - "refs" : { } - }, - "UpdateConnectivityInfoResponse" : { - "base" : null, - "refs" : { } - }, - "UpdateGroupCertificateConfigurationRequest" : { - "base" : null, - "refs" : { } - }, - "VersionInformation" : { - "base" : "Information on the version", - "refs" : { - "ListVersionsResponse$Versions" : "Versions" - } - }, - "__boolean" : { - "base" : null, - "refs" : { - "Core$SyncShadow" : "If true, the local shadow value automatically syncs with the cloud's shadow state.", - "Device$SyncShadow" : "If true, the local shadow value automatically syncs with the cloud's shadow state.", - "FunctionConfiguration$Pinned" : "Whether the function is pinned or not. Pinned means the function is long-lived and starts when the core starts.", - "ResetDeploymentsRequest$Force" : "When set to true, perform a best-effort only core reset." - } - }, - "__integer" : { - "base" : null, - "refs" : { - "ConnectivityInfo$PortNumber" : "Port of the GGC. Usually 8883.", - "FunctionConfiguration$MemorySize" : "The memory size, in KB, you configured for the function.", - "FunctionConfiguration$Timeout" : "The function execution time at which Lambda should terminate the function. This timeout still applies to pinned lambdas for each request.", - "Logger$Space" : "Amount of hardware space, in KB, to use if file system is used for logging purposes." - } - }, - "__string" : { - "base" : null, - "refs" : { - "AssociateRoleToGroupRequest$RoleArn" : "Role arn you wish to associate with this group.", - "AssociateRoleToGroupResponse$AssociatedAt" : "Time the role arn was associated to your group.", - "AssociateServiceRoleToAccountRequest$RoleArn" : "Role arn you wish to associate with this account.", - "AssociateServiceRoleToAccountResponse$AssociatedAt" : "Time when the service role was associated to the account.", - "ConnectivityInfo$HostAddress" : "Endpoint for the GGC. Can be an IP address or DNS.", - "ConnectivityInfo$Id" : "Element Id for this entry in the list.", - "ConnectivityInfo$Metadata" : "Metadata for this endpoint.", - "Core$CertificateArn" : "Certificate arn of the core.", - "Core$Id" : "Element Id for this entry in the list.", - "Core$ThingArn" : "Thing arn of the core.", - "CreateDeploymentRequest$DeploymentId" : "Id of the deployment if you wish to redeploy a previous deployment.", - "CreateDeploymentRequest$GroupVersionId" : "Group Version you wish to deploy.", - "CreateDeploymentResponse$DeploymentArn" : "The arn of the deployment.", - "CreateDeploymentResponse$DeploymentId" : "The id of the deployment.", - "CreateGroupCertificateAuthorityResponse$GroupCertificateAuthorityArn" : "Arn of the group certificate authority.", - "DefinitionInformation$Arn" : "Arn of the definition.", - "DefinitionInformation$CreationTimestamp" : "Timestamp of when the definition was created.", - "DefinitionInformation$Id" : "Id of the definition.", - "DefinitionInformation$LastUpdatedTimestamp" : "Last updated timestamp of the definition.", - "DefinitionInformation$LatestVersion" : "Last version of the definition.", - "DefinitionInformation$LatestVersionArn" : "Latest version arn of the definition.", - "DefinitionInformation$Name" : "Name of the definition.", - "Deployment$CreatedAt" : "Timestamp when the deployment was created.", - "Deployment$DeploymentArn" : "Arn of the deployment.", - "Deployment$DeploymentId" : "Id of the deployment.", - "Deployment$GroupArn" : "Arn of the group for this deployment.", - "Device$CertificateArn" : "Certificate arn of the device.", - "Device$Id" : "Element Id for this entry in the list.", - "Device$ThingArn" : "Thing arn of the device.", - "DisassociateRoleFromGroupResponse$DisassociatedAt" : "Time when the role was disassociated from the group.", - "DisassociateServiceRoleFromAccountResponse$DisassociatedAt" : "Time when the service role was disassociated from the account.", - "ErrorDetail$DetailedErrorCode" : "Detailed Error Code", - "ErrorDetail$DetailedErrorMessage" : "Detailed Error Message", - "Function$FunctionArn" : "Arn of the Lambda function.", - "Function$Id" : "Id of the function in this version.", - "FunctionConfiguration$ExecArgs" : "Execution Arguments", - "FunctionConfiguration$Executable" : "Executable", - "GeneralError$Message" : "Message containing information about the error", - "GetAssociatedRoleResponse$AssociatedAt" : "Time when the role was associated for the group.", - "GetAssociatedRoleResponse$RoleArn" : "Arn of the role that is associated with the group.", - "GetConnectivityInfoResponse$message" : "Response Text", - "GetCoreDefinitionVersionResponse$Arn" : "Arn of the core definition version.", - "GetCoreDefinitionVersionResponse$CreationTimestamp" : "Timestamp of when the core definition version was created.", - "GetCoreDefinitionVersionResponse$Id" : "Id of the core definition the version belongs to.", - "GetCoreDefinitionVersionResponse$Version" : "Version of the core definition version.", - "GetDeploymentStatusResponse$DeploymentStatus" : "Status of the deployment.", - "GetDeploymentStatusResponse$ErrorMessage" : "Error Message", - "GetDeploymentStatusResponse$UpdatedAt" : "Last time the deployment status was updated.", - "GetDeviceDefinitionVersionResponse$Arn" : "Arn of the device definition version.", - "GetDeviceDefinitionVersionResponse$CreationTimestamp" : "Timestamp of when the device definition version was created.", - "GetDeviceDefinitionVersionResponse$Id" : "Id of the device definition the version belongs to.", - "GetDeviceDefinitionVersionResponse$Version" : "Version of the device definition version.", - "GetFunctionDefinitionVersionResponse$Arn" : "Arn of the function definition version.", - "GetFunctionDefinitionVersionResponse$CreationTimestamp" : "Timestamp when the funtion definition version was created.", - "GetFunctionDefinitionVersionResponse$Id" : "Id of the function definition the version belongs to.", - "GetFunctionDefinitionVersionResponse$Version" : "Version of the function definition version.", - "GetGroupCertificateAuthorityResponse$GroupCertificateAuthorityArn" : "Arn of the certificate authority for the group.", - "GetGroupCertificateAuthorityResponse$GroupCertificateAuthorityId" : "Id of the certificate authority for the group.", - "GetGroupCertificateAuthorityResponse$PemEncodedCertificate" : "PEM encoded certificate for the group.", - "GetGroupVersionResponse$Arn" : "Arn of the group version.", - "GetGroupVersionResponse$CreationTimestamp" : "Timestamp when the group version was created.", - "GetGroupVersionResponse$Id" : "Id of the group version.", - "GetGroupVersionResponse$Version" : "Unique Id for a version of the Group.", - "GetLoggerDefinitionVersionResponse$Arn" : "Arn of the logger definition version.", - "GetLoggerDefinitionVersionResponse$CreationTimestamp" : "Timestamp of when the logger definition version was created.", - "GetLoggerDefinitionVersionResponse$Id" : "Id of the logger definition the version belongs to.", - "GetLoggerDefinitionVersionResponse$Version" : "Version of the logger definition version.", - "GetServiceRoleForAccountResponse$AssociatedAt" : "Time when the service role was associated to the account.", - "GetServiceRoleForAccountResponse$RoleArn" : "Role arn which is associated to the account.", - "GetSubscriptionDefinitionVersionResponse$Arn" : "Arn of the subscription definition version.", - "GetSubscriptionDefinitionVersionResponse$CreationTimestamp" : "Timestamp of when the subscription definition version was created.", - "GetSubscriptionDefinitionVersionResponse$Id" : "Id of the subscription definition the version belongs to.", - "GetSubscriptionDefinitionVersionResponse$Version" : "Version of the subscription definition version.", - "GroupCertificateAuthorityProperties$GroupCertificateAuthorityArn" : "Arn of the certificate authority for the group.", - "GroupCertificateAuthorityProperties$GroupCertificateAuthorityId" : "Id of the certificate authority for the group.", - "GroupCertificateConfiguration$CertificateAuthorityExpiryInMilliseconds" : "Amount of time when the certificate authority expires in milliseconds.", - "GroupCertificateConfiguration$CertificateExpiryInMilliseconds" : "Amount of time when the certificate expires in milliseconds.", - "GroupCertificateConfiguration$GroupId" : "Id of the group the certificate configuration belongs to.", - "GroupInformation$Arn" : "Arn of a group.", - "GroupInformation$CreationTimestamp" : "Timestamp of when the group was created.", - "GroupInformation$Id" : "Id of a group.", - "GroupInformation$LastUpdatedTimestamp" : "Last updated timestamp of the group.", - "GroupInformation$LatestVersion" : "Last version of the group.", - "GroupInformation$LatestVersionArn" : "Latest version arn of the group.", - "GroupInformation$Name" : "Name of a group.", - "GroupVersion$CoreDefinitionVersionArn" : "Core definition version arn for this group.", - "GroupVersion$DeviceDefinitionVersionArn" : "Device definition version arn for this group.", - "GroupVersion$FunctionDefinitionVersionArn" : "Function definition version arn for this group.", - "GroupVersion$LoggerDefinitionVersionArn" : "Logger definitionv ersion arn for this group.", - "GroupVersion$SubscriptionDefinitionVersionArn" : "Subscription definition version arn for this group.", - "ListDefinitionsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", - "ListDeploymentsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", - "ListGroupsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", - "ListVersionsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", - "Logger$Id" : "Element Id for this entry in the list.", - "ResetDeploymentsResponse$DeploymentArn" : "The arn of the reset deployment.", - "ResetDeploymentsResponse$DeploymentId" : "The id of the reset deployment.", - "Subscription$Id" : "Element Id for this entry in the list.", - "Subscription$Source" : "Source of the subscription. Can be a thing arn, lambda arn or word 'cloud'", - "Subscription$Subject" : "Subject of the message.", - "Subscription$Target" : "Where the message is sent to. Can be a thing arn, lambda arn or word 'cloud'.", - "UpdateConnectivityInfoResponse$Version" : "New Version", - "UpdateConnectivityInfoResponse$message" : "Response Text", - "UpdateGroupCertificateConfigurationRequest$CertificateExpiryInMilliseconds" : "Amount of time when the certificate expires in milliseconds.", - "VersionInformation$Arn" : "Arn of the version.", - "VersionInformation$CreationTimestamp" : "Timestamp of when the version was created.", - "VersionInformation$Id" : "Id of the resource container.", - "VersionInformation$Version" : "Unique Id of a version." - } - } - } -} \ No newline at end of file diff --git a/models/apis/greengrass/2017-06-07/api-2.json b/models/apis/greengrass/2017-06-07/api-2.json index fca40b45a2f..35cd0395258 100644 --- a/models/apis/greengrass/2017-06-07/api-2.json +++ b/models/apis/greengrass/2017-06-07/api-2.json @@ -968,6 +968,23 @@ }, "errors" : [ ] }, + "ResetDeployments" : { + "name" : "ResetDeployments", + "http" : { + "method" : "POST", + "requestUri" : "/greengrass/groups/{GroupId}/deployments/$reset", + "responseCode" : 200 + }, + "input" : { + "shape" : "ResetDeploymentsRequest" + }, + "output" : { + "shape" : "ResetDeploymentsResponse" + }, + "errors" : [ { + "shape" : "BadRequestException" + } ] + }, "UpdateConnectivityInfo" : { "name" : "UpdateConnectivityInfo", "http" : { @@ -1873,6 +1890,9 @@ "DeploymentId" : { "shape" : "__string" }, + "DeploymentType" : { + "shape" : "DeploymentType" + }, "GroupArn" : { "shape" : "__string" } @@ -1880,7 +1900,7 @@ }, "DeploymentType" : { "type" : "string", - "enum" : [ "NewDeployment", "Redeployment" ] + "enum" : [ "NewDeployment", "Redeployment", "ResetDeployment", "ForceResetDeployment" ] }, "Deployments" : { "type" : "list", @@ -2169,6 +2189,12 @@ "DeploymentStatus" : { "shape" : "__string" }, + "DeploymentType" : { + "shape" : "DeploymentType" + }, + "ErrorDetails" : { + "shape" : "ErrorDetails" + }, "ErrorMessage" : { "shape" : "__string" }, @@ -3228,6 +3254,36 @@ "shape" : "__string" } }, + "ResetDeploymentsRequest" : { + "type" : "structure", + "members" : { + "AmznClientToken" : { + "shape" : "__string", + "location" : "header", + "locationName" : "X-Amzn-Client-Token" + }, + "Force" : { + "shape" : "__boolean" + }, + "GroupId" : { + "shape" : "__string", + "location" : "uri", + "locationName" : "GroupId" + } + }, + "required" : [ "GroupId" ] + }, + "ResetDeploymentsResponse" : { + "type" : "structure", + "members" : { + "DeploymentArn" : { + "shape" : "__string" + }, + "DeploymentId" : { + "shape" : "__string" + } + } + }, "Subscription" : { "type" : "structure", "members" : { diff --git a/models/apis/greengrass/2017-06-07/docs-2.json b/models/apis/greengrass/2017-06-07/docs-2.json index 30bff0a380f..e079aadcd3e 100644 --- a/models/apis/greengrass/2017-06-07/docs-2.json +++ b/models/apis/greengrass/2017-06-07/docs-2.json @@ -1,5 +1,5 @@ { - "version" : "1.0", + "version" : "2.0", "service" : "AWS Greengrass seamlessly extends AWS onto physical devices so they can act locally on the data they generate, while still using the cloud for management, analytics, and durable storage. AWS Greengrass ensures your devices can respond quickly to local events and operate with intermittent connectivity. AWS Greengrass minimizes the cost of transmitting data to the cloud by allowing you to author AWS Lambda functions that execute locally.", "operations" : { "AssociateRoleToGroup" : "Associates a role with a group. The role will be used by the AWS Greengrass core in order to access AWS cloud services. The role's permissions will allow Greengrass core Lambda functions to perform actions against the cloud.", @@ -58,6 +58,7 @@ "ListLoggerDefinitions" : "Retrieves a list of logger definitions.", "ListSubscriptionDefinitionVersions" : "Lists the versions of a subscription definition.", "ListSubscriptionDefinitions" : "Retrieves a list of subscription definitions.", + "ResetDeployments" : "Resets a group's deployments.", "UpdateConnectivityInfo" : "Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it.", "UpdateCoreDefinition" : "Updates a core definition.", "UpdateDeviceDefinition" : "Updates a device definition.", @@ -91,8 +92,8 @@ "ConnectivityInfo" : { "base" : "Connectivity Info", "refs" : { - "GetConnectivityInfoResponse$ConnectivityInfo" : "Connectivity info array", - "UpdateConnectivityInfoRequest$ConnectivityInfo" : "Connectivity info array" + "GetConnectivityInfoResponse$ConnectivityInfo" : "Connectivity info list", + "UpdateConnectivityInfoRequest$ConnectivityInfo" : "Connectivity info list" } }, "Core" : { @@ -134,13 +135,15 @@ "DeploymentType" : { "base" : null, "refs" : { - "CreateDeploymentRequest$DeploymentType" : "Type of deployment" + "CreateDeploymentRequest$DeploymentType" : "Type of deployment. When used in CreateDeployment, only NewDeployment and Redeployment are valid. ", + "Deployment$DeploymentType" : "The type of deployment.", + "GetDeploymentStatusResponse$DeploymentType" : "The type of the deployment." } }, "Deployments" : { "base" : null, "refs" : { - "ListDeploymentsResponse$Deployments" : "Information on deployments" + "ListDeploymentsResponse$Deployments" : "List of deployments for the requested groups" } }, "Device" : { @@ -176,7 +179,8 @@ "ErrorDetails" : { "base" : "Error Details", "refs" : { - "GeneralError$ErrorDetails" : "Error Details" + "GeneralError$ErrorDetails" : "Error Details", + "GetDeploymentStatusResponse$ErrorDetails" : "The error Details" } }, "Function" : { @@ -262,7 +266,7 @@ "refs" : { } }, "GroupInformation" : { - "base" : "Information of a group", + "base" : "Information on the group", "refs" : { "ListGroupsResponse$Groups" : "Groups" } @@ -274,11 +278,11 @@ } }, "InternalServerErrorException" : { - "base" : "This request was invalid.", + "base" : "Server Error", "refs" : { } }, "ListDefinitionsResponse" : { - "base" : "List of definition response", + "base" : "List of definition responses", "refs" : { } }, "ListDeploymentsResponse" : { @@ -371,6 +375,14 @@ "base" : null, "refs" : { } }, + "ResetDeploymentsRequest" : { + "base" : "Information needed to perform a reset of a group's deployments.", + "refs" : { } + }, + "ResetDeploymentsResponse" : { + "base" : null, + "refs" : { } + }, "Subscription" : { "base" : "Information on subscription", "refs" : { @@ -406,7 +418,8 @@ "refs" : { "Core$SyncShadow" : "If true, the local shadow value automatically syncs with the cloud's shadow state.", "Device$SyncShadow" : "If true, the local shadow value automatically syncs with the cloud's shadow state.", - "FunctionConfiguration$Pinned" : "Whether the function is pinned or not. Pinned means the function is long-lived and starts when the core starts." + "FunctionConfiguration$Pinned" : "Whether the function is pinned or not. Pinned means the function is long-lived and starts when the core starts.", + "ResetDeploymentsRequest$Force" : "When set to true, perform a best-effort only core reset." } }, "__integer" : { @@ -433,8 +446,8 @@ "Core$ThingArn" : "Thing arn of the core.", "CreateDeploymentRequest$DeploymentId" : "Id of the deployment if you wish to redeploy a previous deployment.", "CreateDeploymentRequest$GroupVersionId" : "Group Version you wish to deploy.", - "CreateDeploymentResponse$DeploymentArn" : "Arn of the deployment.", - "CreateDeploymentResponse$DeploymentId" : "Id of the deployment.", + "CreateDeploymentResponse$DeploymentArn" : "The arn of the deployment.", + "CreateDeploymentResponse$DeploymentId" : "The id of the deployment.", "CreateGroupCertificateAuthorityResponse$GroupCertificateAuthorityArn" : "Arn of the group certificate authority.", "DefinitionInformation$Arn" : "Arn of the definition.", "DefinitionInformation$CreationTimestamp" : "Timestamp of when the definition was created.", @@ -458,7 +471,7 @@ "Function$Id" : "Id of the function in this version.", "FunctionConfiguration$ExecArgs" : "Execution Arguments", "FunctionConfiguration$Executable" : "Executable", - "GeneralError$Message" : "Message", + "GeneralError$Message" : "Message containing information about the error", "GetAssociatedRoleResponse$AssociatedAt" : "Time when the role was associated for the group.", "GetAssociatedRoleResponse$RoleArn" : "Arn of the role that is associated with the group.", "GetConnectivityInfoResponse$message" : "Response Text", @@ -516,6 +529,8 @@ "ListGroupsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "ListVersionsResponse$NextToken" : "The token for the next set of results, or ''null'' if there are no additional results.", "Logger$Id" : "Element Id for this entry in the list.", + "ResetDeploymentsResponse$DeploymentArn" : "The arn of the reset deployment.", + "ResetDeploymentsResponse$DeploymentId" : "The id of the reset deployment.", "Subscription$Id" : "Element Id for this entry in the list.", "Subscription$Source" : "Source of the subscription. Can be a thing arn, lambda arn or word 'cloud'", "Subscription$Subject" : "Subject of the message.", @@ -530,4 +545,4 @@ } } } -} +} \ No newline at end of file diff --git a/service/greengrass/api.go b/service/greengrass/api.go index 4ba48359c52..f1992a4970a 100644 --- a/service/greengrass/api.go +++ b/service/greengrass/api.go @@ -68,7 +68,7 @@ func (c *Greengrass) AssociateRoleToGroupRequest(input *AssociateRoleToGroupInpu // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/AssociateRoleToGroup func (c *Greengrass) AssociateRoleToGroup(input *AssociateRoleToGroupInput) (*AssociateRoleToGroupOutput, error) { @@ -153,7 +153,7 @@ func (c *Greengrass) AssociateServiceRoleToAccountRequest(input *AssociateServic // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/AssociateServiceRoleToAccount func (c *Greengrass) AssociateServiceRoleToAccount(input *AssociateServiceRoleToAccountInput) (*AssociateServiceRoleToAccountOutput, error) { @@ -877,7 +877,7 @@ func (c *Greengrass) CreateGroupCertificateAuthorityRequest(input *CreateGroupCe // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateGroupCertificateAuthority func (c *Greengrass) CreateGroupCertificateAuthority(input *CreateGroupCertificateAuthorityInput) (*CreateGroupCertificateAuthorityOutput, error) { @@ -1837,7 +1837,7 @@ func (c *Greengrass) DisassociateRoleFromGroupRequest(input *DisassociateRoleFro // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DisassociateRoleFromGroup func (c *Greengrass) DisassociateRoleFromGroup(input *DisassociateRoleFromGroupInput) (*DisassociateRoleFromGroupOutput, error) { @@ -1917,7 +1917,7 @@ func (c *Greengrass) DisassociateServiceRoleFromAccountRequest(input *Disassocia // // Returned Error Codes: // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DisassociateServiceRoleFromAccount func (c *Greengrass) DisassociateServiceRoleFromAccount(input *DisassociateServiceRoleFromAccountInput) (*DisassociateServiceRoleFromAccountOutput, error) { @@ -1999,7 +1999,7 @@ func (c *Greengrass) GetAssociatedRoleRequest(input *GetAssociatedRoleInput) (re // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetAssociatedRole func (c *Greengrass) GetAssociatedRole(input *GetAssociatedRoleInput) (*GetAssociatedRoleOutput, error) { @@ -2081,7 +2081,7 @@ func (c *Greengrass) GetConnectivityInfoRequest(input *GetConnectivityInfoInput) // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectivityInfo func (c *Greengrass) GetConnectivityInfo(input *GetConnectivityInfoInput) (*GetConnectivityInfoOutput, error) { @@ -2797,7 +2797,7 @@ func (c *Greengrass) GetGroupCertificateAuthorityRequest(input *GetGroupCertific // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupCertificateAuthority func (c *Greengrass) GetGroupCertificateAuthority(input *GetGroupCertificateAuthorityInput) (*GetGroupCertificateAuthorityOutput, error) { @@ -2879,7 +2879,7 @@ func (c *Greengrass) GetGroupCertificateConfigurationRequest(input *GetGroupCert // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupCertificateConfiguration func (c *Greengrass) GetGroupCertificateConfiguration(input *GetGroupCertificateConfigurationInput) (*GetGroupCertificateConfigurationOutput, error) { @@ -3195,7 +3195,7 @@ func (c *Greengrass) GetServiceRoleForAccountRequest(input *GetServiceRoleForAcc // // Returned Error Codes: // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetServiceRoleForAccount func (c *Greengrass) GetServiceRoleForAccount(input *GetServiceRoleForAccountInput) (*GetServiceRoleForAccountOutput, error) { @@ -3973,7 +3973,7 @@ func (c *Greengrass) ListGroupCertificateAuthoritiesRequest(input *ListGroupCert // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupCertificateAuthorities func (c *Greengrass) ListGroupCertificateAuthorities(input *ListGroupCertificateAuthoritiesInput) (*ListGroupCertificateAuthoritiesOutput, error) { @@ -4456,6 +4456,85 @@ func (c *Greengrass) ListSubscriptionDefinitionsWithContext(ctx aws.Context, inp return out, req.Send() } +const opResetDeployments = "ResetDeployments" + +// ResetDeploymentsRequest generates a "aws/request.Request" representing the +// client's request for the ResetDeployments operation. The "output" return +// value will be populated with the request's response once the request complets +// successfuly. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ResetDeployments for more information on using the ResetDeployments +// 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 ResetDeploymentsRequest method. +// req, resp := client.ResetDeploymentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments +func (c *Greengrass) ResetDeploymentsRequest(input *ResetDeploymentsInput) (req *request.Request, output *ResetDeploymentsOutput) { + op := &request.Operation{ + Name: opResetDeployments, + HTTPMethod: "POST", + HTTPPath: "/greengrass/groups/{GroupId}/deployments/$reset", + } + + if input == nil { + input = &ResetDeploymentsInput{} + } + + output = &ResetDeploymentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ResetDeployments API operation for AWS Greengrass. +// +// Resets a group's deployments. +// +// 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 Greengrass's +// API operation ResetDeployments for usage and error information. +// +// Returned Error Codes: +// * ErrCodeBadRequestException "BadRequestException" +// user error +// +// Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments +func (c *Greengrass) ResetDeployments(input *ResetDeploymentsInput) (*ResetDeploymentsOutput, error) { + req, out := c.ResetDeploymentsRequest(input) + return out, req.Send() +} + +// ResetDeploymentsWithContext is the same as ResetDeployments with the addition of +// the ability to pass a context and additional request options. +// +// See ResetDeployments 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 *Greengrass) ResetDeploymentsWithContext(ctx aws.Context, input *ResetDeploymentsInput, opts ...request.Option) (*ResetDeploymentsOutput, error) { + req, out := c.ResetDeploymentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateConnectivityInfo = "UpdateConnectivityInfo" // UpdateConnectivityInfoRequest generates a "aws/request.Request" representing the @@ -4516,7 +4595,7 @@ func (c *Greengrass) UpdateConnectivityInfoRequest(input *UpdateConnectivityInfo // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectivityInfo func (c *Greengrass) UpdateConnectivityInfo(input *UpdateConnectivityInfoInput) (*UpdateConnectivityInfoOutput, error) { @@ -4914,7 +4993,7 @@ func (c *Greengrass) UpdateGroupCertificateConfigurationRequest(input *UpdateGro // user error // // * ErrCodeInternalServerErrorException "InternalServerErrorException" -// This request was invalid. +// Server Error // // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroupCertificateConfiguration func (c *Greengrass) UpdateGroupCertificateConfiguration(input *UpdateGroupCertificateConfigurationInput) (*UpdateGroupCertificateConfigurationOutput, error) { @@ -5565,7 +5644,8 @@ type CreateDeploymentInput struct { // Id of the deployment if you wish to redeploy a previous deployment. DeploymentId *string `type:"string"` - // Type of deployment + // Type of deployment. When used in CreateDeployment, only NewDeployment and + // Redeployment are valid. DeploymentType *string `type:"string" enum:"DeploymentType"` // GroupId is a required field @@ -5632,10 +5712,10 @@ func (s *CreateDeploymentInput) SetGroupVersionId(v string) *CreateDeploymentInp type CreateDeploymentOutput struct { _ struct{} `type:"structure"` - // Arn of the deployment. + // The arn of the deployment. DeploymentArn *string `type:"string"` - // Id of the deployment. + // The id of the deployment. DeploymentId *string `type:"string"` } @@ -7222,6 +7302,9 @@ type Deployment struct { // Id of the deployment. DeploymentId *string `type:"string"` + // The type of deployment. + DeploymentType *string `type:"string" enum:"DeploymentType"` + // Arn of the group for this deployment. GroupArn *string `type:"string"` } @@ -7254,6 +7337,12 @@ func (s *Deployment) SetDeploymentId(v string) *Deployment { return s } +// SetDeploymentType sets the DeploymentType field's value. +func (s *Deployment) SetDeploymentType(v string) *Deployment { + s.DeploymentType = &v + return s +} + // SetGroupArn sets the GroupArn field's value. func (s *Deployment) SetGroupArn(v string) *Deployment { s.GroupArn = &v @@ -7748,7 +7837,7 @@ func (s *GetConnectivityInfoInput) SetThingName(v string) *GetConnectivityInfoIn type GetConnectivityInfoOutput struct { _ struct{} `type:"structure"` - // Connectivity info array + // Connectivity info list ConnectivityInfo []*ConnectivityInfo `type:"list"` Message *string `locationName:"message" type:"string"` @@ -8050,6 +8139,12 @@ type GetDeploymentStatusOutput struct { // Status of the deployment. DeploymentStatus *string `type:"string"` + // The type of the deployment. + DeploymentType *string `type:"string" enum:"DeploymentType"` + + // The error Details + ErrorDetails []*ErrorDetail `type:"list"` + // Error Message ErrorMessage *string `type:"string"` @@ -8073,6 +8168,18 @@ func (s *GetDeploymentStatusOutput) SetDeploymentStatus(v string) *GetDeployment return s } +// SetDeploymentType sets the DeploymentType field's value. +func (s *GetDeploymentStatusOutput) SetDeploymentType(v string) *GetDeploymentStatusOutput { + s.DeploymentType = &v + return s +} + +// SetErrorDetails sets the ErrorDetails field's value. +func (s *GetDeploymentStatusOutput) SetErrorDetails(v []*ErrorDetail) *GetDeploymentStatusOutput { + s.ErrorDetails = v + return s +} + // SetErrorMessage sets the ErrorMessage field's value. func (s *GetDeploymentStatusOutput) SetErrorMessage(v string) *GetDeploymentStatusOutput { s.ErrorMessage = &v @@ -9424,7 +9531,7 @@ func (s *GroupCertificateAuthorityProperties) SetGroupCertificateAuthorityId(v s return s } -// Information of a group +// Information on the group // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GroupInformation type GroupInformation struct { _ struct{} `type:"structure"` @@ -9767,7 +9874,7 @@ func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { type ListDeploymentsOutput struct { _ struct{} `type:"structure"` - // Information on deployments + // List of deployments for the requested groups Deployments []*Deployment `type:"list"` // The token for the next set of results, or ''null'' if there are no additional @@ -10678,6 +10785,94 @@ func (s *LoggerDefinitionVersion) SetLoggers(v []*Logger) *LoggerDefinitionVersi return s } +// Information needed to perform a reset of a group's deployments. +// Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeploymentsRequest +type ResetDeploymentsInput struct { + _ struct{} `type:"structure"` + + AmznClientToken *string `location:"header" locationName:"X-Amzn-Client-Token" type:"string"` + + // When set to true, perform a best-effort only core reset. + Force *bool `type:"boolean"` + + // GroupId is a required field + GroupId *string `location:"uri" locationName:"GroupId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ResetDeploymentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResetDeploymentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ResetDeploymentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResetDeploymentsInput"} + if s.GroupId == nil { + invalidParams.Add(request.NewErrParamRequired("GroupId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAmznClientToken sets the AmznClientToken field's value. +func (s *ResetDeploymentsInput) SetAmznClientToken(v string) *ResetDeploymentsInput { + s.AmznClientToken = &v + return s +} + +// SetForce sets the Force field's value. +func (s *ResetDeploymentsInput) SetForce(v bool) *ResetDeploymentsInput { + s.Force = &v + return s +} + +// SetGroupId sets the GroupId field's value. +func (s *ResetDeploymentsInput) SetGroupId(v string) *ResetDeploymentsInput { + s.GroupId = &v + return s +} + +// Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeploymentsResponse +type ResetDeploymentsOutput struct { + _ struct{} `type:"structure"` + + // The arn of the reset deployment. + DeploymentArn *string `type:"string"` + + // The id of the reset deployment. + DeploymentId *string `type:"string"` +} + +// String returns the string representation +func (s ResetDeploymentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResetDeploymentsOutput) GoString() string { + return s.String() +} + +// SetDeploymentArn sets the DeploymentArn field's value. +func (s *ResetDeploymentsOutput) SetDeploymentArn(v string) *ResetDeploymentsOutput { + s.DeploymentArn = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *ResetDeploymentsOutput) SetDeploymentId(v string) *ResetDeploymentsOutput { + s.DeploymentId = &v + return s +} + // Information on subscription // Please also see https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Subscription type Subscription struct { @@ -10760,7 +10955,7 @@ func (s *SubscriptionDefinitionVersion) SetSubscriptions(v []*Subscription) *Sub type UpdateConnectivityInfoInput struct { _ struct{} `type:"structure"` - // Connectivity info array + // Connectivity info list ConnectivityInfo []*ConnectivityInfo `type:"list"` // ThingName is a required field @@ -11337,6 +11532,12 @@ const ( // DeploymentTypeRedeployment is a DeploymentType enum value DeploymentTypeRedeployment = "Redeployment" + + // DeploymentTypeResetDeployment is a DeploymentType enum value + DeploymentTypeResetDeployment = "ResetDeployment" + + // DeploymentTypeForceResetDeployment is a DeploymentType enum value + DeploymentTypeForceResetDeployment = "ForceResetDeployment" ) const ( diff --git a/service/greengrass/errors.go b/service/greengrass/errors.go index c4f0fc41c44..e9af66904a2 100644 --- a/service/greengrass/errors.go +++ b/service/greengrass/errors.go @@ -13,6 +13,6 @@ const ( // ErrCodeInternalServerErrorException for service response error code // "InternalServerErrorException". // - // This request was invalid. + // Server Error ErrCodeInternalServerErrorException = "InternalServerErrorException" ) diff --git a/service/greengrass/greengrassiface/interface.go b/service/greengrass/greengrassiface/interface.go index 2e66f296e8c..c5ba2bddc04 100644 --- a/service/greengrass/greengrassiface/interface.go +++ b/service/greengrass/greengrassiface/interface.go @@ -284,6 +284,10 @@ type GreengrassAPI interface { ListSubscriptionDefinitionsWithContext(aws.Context, *greengrass.ListSubscriptionDefinitionsInput, ...request.Option) (*greengrass.ListSubscriptionDefinitionsOutput, error) ListSubscriptionDefinitionsRequest(*greengrass.ListSubscriptionDefinitionsInput) (*request.Request, *greengrass.ListSubscriptionDefinitionsOutput) + ResetDeployments(*greengrass.ResetDeploymentsInput) (*greengrass.ResetDeploymentsOutput, error) + ResetDeploymentsWithContext(aws.Context, *greengrass.ResetDeploymentsInput, ...request.Option) (*greengrass.ResetDeploymentsOutput, error) + ResetDeploymentsRequest(*greengrass.ResetDeploymentsInput) (*request.Request, *greengrass.ResetDeploymentsOutput) + UpdateConnectivityInfo(*greengrass.UpdateConnectivityInfoInput) (*greengrass.UpdateConnectivityInfoOutput, error) UpdateConnectivityInfoWithContext(aws.Context, *greengrass.UpdateConnectivityInfoInput, ...request.Option) (*greengrass.UpdateConnectivityInfoOutput, error) UpdateConnectivityInfoRequest(*greengrass.UpdateConnectivityInfoInput) (*request.Request, *greengrass.UpdateConnectivityInfoOutput)