Table of Contents
Greengrass.Client¶A low-level client representing AWS Greengrass:
client = session.create_client('greengrass')
These are the available methods:
associate_role_to_group()associate_service_role_to_account()can_paginate()create_core_definition()create_core_definition_version()create_deployment()create_device_definition()create_device_definition_version()create_function_definition()create_function_definition_version()create_group()create_group_certificate_authority()create_group_version()create_logger_definition()create_logger_definition_version()create_subscription_definition()create_subscription_definition_version()delete_core_definition()delete_device_definition()delete_function_definition()delete_group()delete_logger_definition()delete_subscription_definition()disassociate_role_from_group()disassociate_service_role_from_account()generate_presigned_url()get_associated_role()get_connectivity_info()get_core_definition()get_core_definition_version()get_deployment_status()get_device_definition()get_device_definition_version()get_function_definition()get_function_definition_version()get_group()get_group_certificate_authority()get_group_certificate_configuration()get_group_version()get_logger_definition()get_logger_definition_version()get_paginator()get_service_role_for_account()get_subscription_definition()get_subscription_definition_version()get_waiter()list_core_definition_versions()list_core_definitions()list_deployments()list_device_definition_versions()list_device_definitions()list_function_definition_versions()list_function_definitions()list_group_certificate_authorities()list_group_versions()list_groups()list_logger_definition_versions()list_logger_definitions()list_subscription_definition_versions()list_subscription_definitions()update_connectivity_info()update_core_definition()update_device_definition()update_function_definition()update_group()update_group_certificate_configuration()update_logger_definition()update_subscription_definition()associate_role_to_group(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.associate_role_to_group(
GroupId='string',
RoleArn='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'AssociatedAt': 'string'
}
Response Structure
|
associate_service_role_to_account(**kwargs)¶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
See also: AWS API Documentation
Request Syntax
response = client.associate_service_role_to_account(
RoleArn='string'
)
| Parameters: | RoleArn (string) – Role arn you wish to associate with this account. |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'AssociatedAt': 'string'
}
Response Structure
|
can_paginate(operation_name)¶Check if an operation can be paginated.
| Parameters: | operation_name (string) – The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you’d normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo"). |
|---|---|
| Returns: | True if the operation can be paginated,
False otherwise. |
create_core_definition(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.create_core_definition(
AmznClientToken='string',
InitialVersion={
'Cores': [
{
'CertificateArn': 'string',
'Id': 'string',
'SyncShadow': True|False,
'ThingArn': 'string'
},
]
},
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
create_core_definition_version(**kwargs)¶Creates a version of a core definition that has already been defined. AWS Greengrass Groups must each contain exactly 1 AWS Greengrass Core.
See also: AWS API Documentation
Request Syntax
response = client.create_core_definition_version(
AmznClientToken='string',
CoreDefinitionId='string',
Cores=[
{
'CertificateArn': 'string',
'Id': 'string',
'SyncShadow': True|False,
'ThingArn': 'string'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
}
Response Structure
|
create_deployment(**kwargs)¶Creates a deployment.
See also: AWS API Documentation
Request Syntax
response = client.create_deployment(
AmznClientToken='string',
DeploymentId='string',
DeploymentType='NewDeployment'|'Redeployment',
GroupId='string',
GroupVersionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'DeploymentArn': 'string',
'DeploymentId': 'string'
}
Response Structure
|
create_device_definition(**kwargs)¶Creates a device definition. You may optinally provide the initial version of the device definition or use CreateDeviceDefinitionVersion at a later time.
See also: AWS API Documentation
Request Syntax
response = client.create_device_definition(
AmznClientToken='string',
InitialVersion={
'Devices': [
{
'CertificateArn': 'string',
'Id': 'string',
'SyncShadow': True|False,
'ThingArn': 'string'
},
]
},
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
create_device_definition_version(**kwargs)¶Creates a version of a device definition that has already been defined.
See also: AWS API Documentation
Request Syntax
response = client.create_device_definition_version(
AmznClientToken='string',
DeviceDefinitionId='string',
Devices=[
{
'CertificateArn': 'string',
'Id': 'string',
'SyncShadow': True|False,
'ThingArn': 'string'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
}
Response Structure
|
create_function_definition(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.create_function_definition(
AmznClientToken='string',
InitialVersion={
'Functions': [
{
'FunctionArn': 'string',
'FunctionConfiguration': {
'Environment': {
'Variables': {
'string': 'string'
}
},
'ExecArgs': 'string',
'Executable': 'string',
'MemorySize': 123,
'Pinned': True|False,
'Timeout': 123
},
'Id': 'string'
},
]
},
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
create_function_definition_version(**kwargs)¶Create a version of a Lambda function definition that has already been defined.
See also: AWS API Documentation
Request Syntax
response = client.create_function_definition_version(
AmznClientToken='string',
FunctionDefinitionId='string',
Functions=[
{
'FunctionArn': 'string',
'FunctionConfiguration': {
'Environment': {
'Variables': {
'string': 'string'
}
},
'ExecArgs': 'string',
'Executable': 'string',
'MemorySize': 123,
'Pinned': True|False,
'Timeout': 123
},
'Id': 'string'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
}
Response Structure
|
create_group(**kwargs)¶Creates a group. You may optionally provide the initial version of the group or use ‘’CreateGroupVersion’’ at a later time.
See also: AWS API Documentation
Request Syntax
response = client.create_group(
AmznClientToken='string',
InitialVersion={
'CoreDefinitionVersionArn': 'string',
'DeviceDefinitionVersionArn': 'string',
'FunctionDefinitionVersionArn': 'string',
'LoggerDefinitionVersionArn': 'string',
'SubscriptionDefinitionVersionArn': 'string'
},
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
Creates a CA for the group. If a CA already exists, it will rotate the existing CA.
See also: AWS API Documentation
Request Syntax
response = client.create_group_certificate_authority(
AmznClientToken='string',
GroupId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'GroupCertificateAuthorityArn': 'string'
}
Response Structure
|
create_group_version(**kwargs)¶Creates a version of a group which has already been defined.
See also: AWS API Documentation
Request Syntax
response = client.create_group_version(
AmznClientToken='string',
CoreDefinitionVersionArn='string',
DeviceDefinitionVersionArn='string',
FunctionDefinitionVersionArn='string',
GroupId='string',
LoggerDefinitionVersionArn='string',
SubscriptionDefinitionVersionArn='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
}
Response Structure
|
create_logger_definition(**kwargs)¶Creates a logger definition. You may optionally provide the initial version of the logger definition or use CreateLoggerDefinitionVersion at a later time.
See also: AWS API Documentation
Request Syntax
response = client.create_logger_definition(
AmznClientToken='string',
InitialVersion={
'Loggers': [
{
'Component': 'GreengrassSystem'|'Lambda',
'Id': 'string',
'Level': 'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL',
'Space': 123,
'Type': 'FileSystem'|'AWSCloudWatch'
},
]
},
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
create_logger_definition_version(**kwargs)¶Creates a version of a logger definition that has already been defined.
See also: AWS API Documentation
Request Syntax
response = client.create_logger_definition_version(
AmznClientToken='string',
LoggerDefinitionId='string',
Loggers=[
{
'Component': 'GreengrassSystem'|'Lambda',
'Id': 'string',
'Level': 'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL',
'Space': 123,
'Type': 'FileSystem'|'AWSCloudWatch'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
}
Response Structure
|
create_subscription_definition(**kwargs)¶Creates a subscription definition. You may optionally provide the initial version of the subscription definition or use CreateSubscriptionDefinitionVersion at a later time.
See also: AWS API Documentation
Request Syntax
response = client.create_subscription_definition(
AmznClientToken='string',
InitialVersion={
'Subscriptions': [
{
'Id': 'string',
'Source': 'string',
'Subject': 'string',
'Target': 'string'
},
]
},
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
create_subscription_definition_version(**kwargs)¶Creates a version of a subscription definition which has already been defined.
See also: AWS API Documentation
Request Syntax
response = client.create_subscription_definition_version(
AmznClientToken='string',
SubscriptionDefinitionId='string',
Subscriptions=[
{
'Id': 'string',
'Source': 'string',
'Subject': 'string',
'Target': 'string'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
}
Response Structure
|
delete_core_definition(**kwargs)¶Deletes a core definition. The core definition must not have been used in a deployment.
See also: AWS API Documentation
Request Syntax
response = client.delete_core_definition(
CoreDefinitionId='string'
)
| Parameters: | CoreDefinitionId (string) – [REQUIRED] core definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{}
Response Structure
|
delete_device_definition(**kwargs)¶Deletes a device definition. The device definition must not have been used in a deployment.
See also: AWS API Documentation
Request Syntax
response = client.delete_device_definition(
DeviceDefinitionId='string'
)
| Parameters: | DeviceDefinitionId (string) – [REQUIRED] device definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{}
Response Structure
|
delete_function_definition(**kwargs)¶Deletes a Lambda function definition. The Lambda function definition must not have been used in a deployment.
See also: AWS API Documentation
Request Syntax
response = client.delete_function_definition(
FunctionDefinitionId='string'
)
| Parameters: | FunctionDefinitionId (string) – [REQUIRED] the unique Id of the lambda definition |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{}
Response Structure
|
delete_group(**kwargs)¶Deletes a group. The group must not have been used in deployment.
See also: AWS API Documentation
Request Syntax
response = client.delete_group(
GroupId='string'
)
| Parameters: | GroupId (string) – [REQUIRED] The unique Id of the AWS Greengrass Group |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{}
Response Structure
|
delete_logger_definition(**kwargs)¶Deletes a logger definition. The logger definition must not have been used in a deployment.
See also: AWS API Documentation
Request Syntax
response = client.delete_logger_definition(
LoggerDefinitionId='string'
)
| Parameters: | LoggerDefinitionId (string) – [REQUIRED] logger definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{}
Response Structure
|
delete_subscription_definition(**kwargs)¶Deletes a subscription definition. The subscription definition must not have been used in a deployment.
See also: AWS API Documentation
Request Syntax
response = client.delete_subscription_definition(
SubscriptionDefinitionId='string'
)
| Parameters: | SubscriptionDefinitionId (string) – [REQUIRED] subscription definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{}
Response Structure
|
disassociate_role_from_group(**kwargs)¶Disassociates the role from a group.
See also: AWS API Documentation
Request Syntax
response = client.disassociate_role_from_group(
GroupId='string'
)
| Parameters: | GroupId (string) – [REQUIRED] The unique Id of the AWS Greengrass Group |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'DisassociatedAt': 'string'
}
Response Structure
|
disassociate_service_role_from_account()¶Disassociates the service role from the account. Without a service role, deployments will not work.
See also: AWS API Documentation
Request Syntax
response = client.disassociate_service_role_from_account()
| Return type: | dict |
|---|---|
| Returns: | Response Syntax{
'DisassociatedAt': 'string'
}
Response Structure
|
generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)¶Generate a presigned url given a client, its method, and arguments
| Parameters: |
|
|---|---|
| Returns: | The presigned url |
get_associated_role(**kwargs)¶Retrieves the role associated with a particular group.
See also: AWS API Documentation
Request Syntax
response = client.get_associated_role(
GroupId='string'
)
| Parameters: | GroupId (string) – [REQUIRED] The unique Id of the AWS Greengrass Group |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'AssociatedAt': 'string',
'RoleArn': 'string'
}
Response Structure
|
get_connectivity_info(**kwargs)¶Retrieves the connectivity information for a core.
See also: AWS API Documentation
Request Syntax
response = client.get_connectivity_info(
ThingName='string'
)
| Parameters: | ThingName (string) – [REQUIRED] Thing Name |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'ConnectivityInfo': [
{
'HostAddress': 'string',
'Id': 'string',
'Metadata': 'string',
'PortNumber': 123
},
],
'Message': 'string'
}
Response Structure
|
get_core_definition(**kwargs)¶Retrieves information about a core definition version.
See also: AWS API Documentation
Request Syntax
response = client.get_core_definition(
CoreDefinitionId='string'
)
| Parameters: | CoreDefinitionId (string) – [REQUIRED] core definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
get_core_definition_version(**kwargs)¶Retrieves information about a core definition version.
See also: AWS API Documentation
Request Syntax
response = client.get_core_definition_version(
CoreDefinitionId='string',
CoreDefinitionVersionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Definition': {
'Cores': [
{
'CertificateArn': 'string',
'Id': 'string',
'SyncShadow': True|False,
'ThingArn': 'string'
},
]
},
'Id': 'string',
'Version': 'string'
}
Response Structure
|
get_deployment_status(**kwargs)¶Returns the status of a deployment.
See also: AWS API Documentation
Request Syntax
response = client.get_deployment_status(
DeploymentId='string',
GroupId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'DeploymentStatus': 'string',
'ErrorMessage': 'string',
'UpdatedAt': 'string'
}
Response Structure
|
get_device_definition(**kwargs)¶Retrieves information about a device definition.
See also: AWS API Documentation
Request Syntax
response = client.get_device_definition(
DeviceDefinitionId='string'
)
| Parameters: | DeviceDefinitionId (string) – [REQUIRED] device definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
get_device_definition_version(**kwargs)¶Retrieves information about a device definition version.
See also: AWS API Documentation
Request Syntax
response = client.get_device_definition_version(
DeviceDefinitionId='string',
DeviceDefinitionVersionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Definition': {
'Devices': [
{
'CertificateArn': 'string',
'Id': 'string',
'SyncShadow': True|False,
'ThingArn': 'string'
},
]
},
'Id': 'string',
'Version': 'string'
}
Response Structure
|
get_function_definition(**kwargs)¶Retrieves information about a Lambda function definition, such as its creation time and latest version.
See also: AWS API Documentation
Request Syntax
response = client.get_function_definition(
FunctionDefinitionId='string'
)
| Parameters: | FunctionDefinitionId (string) – [REQUIRED] the unique Id of the lambda definition |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
get_function_definition_version(**kwargs)¶Retrieves information about a Lambda function definition version, such as which Lambda functions are included in the version and their configurations.
See also: AWS API Documentation
Request Syntax
response = client.get_function_definition_version(
FunctionDefinitionId='string',
FunctionDefinitionVersionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Definition': {
'Functions': [
{
'FunctionArn': 'string',
'FunctionConfiguration': {
'Environment': {
'Variables': {
'string': 'string'
}
},
'ExecArgs': 'string',
'Executable': 'string',
'MemorySize': 123,
'Pinned': True|False,
'Timeout': 123
},
'Id': 'string'
},
]
},
'Id': 'string',
'Version': 'string'
}
Response Structure
|
get_group(**kwargs)¶Retrieves information about a group.
See also: AWS API Documentation
Request Syntax
response = client.get_group(
GroupId='string'
)
| Parameters: | GroupId (string) – [REQUIRED] The unique Id of the AWS Greengrass Group |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
Retreives the CA associated with a group. Returns the public key of the CA.
See also: AWS API Documentation
Request Syntax
response = client.get_group_certificate_authority(
CertificateAuthorityId='string',
GroupId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'GroupCertificateAuthorityArn': 'string',
'GroupCertificateAuthorityId': 'string',
'PemEncodedCertificate': 'string'
}
Response Structure
|
get_group_certificate_configuration(**kwargs)¶Retrieves the current configuration for the CA used by the group.
See also: AWS API Documentation
Request Syntax
response = client.get_group_certificate_configuration(
GroupId='string'
)
| Parameters: | GroupId (string) – [REQUIRED] The unique Id of the AWS Greengrass Group |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'CertificateAuthorityExpiryInMilliseconds': 'string',
'CertificateExpiryInMilliseconds': 'string',
'GroupId': 'string'
}
Response Structure
|
get_group_version(**kwargs)¶Retrieves information about a group version.
See also: AWS API Documentation
Request Syntax
response = client.get_group_version(
GroupId='string',
GroupVersionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Definition': {
'CoreDefinitionVersionArn': 'string',
'DeviceDefinitionVersionArn': 'string',
'FunctionDefinitionVersionArn': 'string',
'LoggerDefinitionVersionArn': 'string',
'SubscriptionDefinitionVersionArn': 'string'
},
'Id': 'string',
'Version': 'string'
}
Response Structure
|
get_logger_definition(**kwargs)¶Retrieves information about a logger definition.
See also: AWS API Documentation
Request Syntax
response = client.get_logger_definition(
LoggerDefinitionId='string'
)
| Parameters: | LoggerDefinitionId (string) – [REQUIRED] logger definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
get_logger_definition_version(**kwargs)¶Retrieves information about a logger definition version.
See also: AWS API Documentation
Request Syntax
response = client.get_logger_definition_version(
LoggerDefinitionId='string',
LoggerDefinitionVersionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Definition': {
'Loggers': [
{
'Component': 'GreengrassSystem'|'Lambda',
'Id': 'string',
'Level': 'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL',
'Space': 123,
'Type': 'FileSystem'|'AWSCloudWatch'
},
]
},
'Id': 'string',
'Version': 'string'
}
Response Structure
|
get_paginator(operation_name)¶Create a paginator for an operation.
| Parameters: | operation_name (string) – The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you’d normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo"). |
|---|---|
| Raises: | OperationNotPageableError – Raised if the operation is not
pageable. You can use the client.can_paginate method to
check if an operation is pageable. |
| Return type: | L{botocore.paginate.Paginator} |
| Returns: | A paginator object. |
get_service_role_for_account()¶Retrieves the service role that is attached to the account.
See also: AWS API Documentation
Request Syntax
response = client.get_service_role_for_account()
| Return type: | dict |
|---|---|
| Returns: | Response Syntax{
'AssociatedAt': 'string',
'RoleArn': 'string'
}
Response Structure
|
get_subscription_definition(**kwargs)¶Retrieves information about a subscription definition.
See also: AWS API Documentation
Request Syntax
response = client.get_subscription_definition(
SubscriptionDefinitionId='string'
)
| Parameters: | SubscriptionDefinitionId (string) – [REQUIRED] subscription definition Id |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
}
Response Structure
|
get_subscription_definition_version(**kwargs)¶Retrieves information about a subscription definition version.
See also: AWS API Documentation
Request Syntax
response = client.get_subscription_definition_version(
SubscriptionDefinitionId='string',
SubscriptionDefinitionVersionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Arn': 'string',
'CreationTimestamp': 'string',
'Definition': {
'Subscriptions': [
{
'Id': 'string',
'Source': 'string',
'Subject': 'string',
'Target': 'string'
},
]
},
'Id': 'string',
'Version': 'string'
}
Response Structure
|
get_waiter(waiter_name)¶list_core_definition_versions(**kwargs)¶Lists versions of a core definition.
See also: AWS API Documentation
Request Syntax
response = client.list_core_definition_versions(
CoreDefinitionId='string',
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'NextToken': 'string',
'Versions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
},
]
}
Response Structure
|
list_core_definitions(**kwargs)¶Retrieves a list of core definitions.
See also: AWS API Documentation
Request Syntax
response = client.list_core_definitions(
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Definitions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
list_deployments(**kwargs)¶Returns a history of deployments for the group.
See also: AWS API Documentation
Request Syntax
response = client.list_deployments(
GroupId='string',
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Deployments': [
{
'CreatedAt': 'string',
'DeploymentArn': 'string',
'DeploymentId': 'string',
'GroupArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
list_device_definition_versions(**kwargs)¶Lists the versions of a device definition.
See also: AWS API Documentation
Request Syntax
response = client.list_device_definition_versions(
DeviceDefinitionId='string',
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'NextToken': 'string',
'Versions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
},
]
}
Response Structure
|
list_device_definitions(**kwargs)¶Retrieves a list of device definitions.
See also: AWS API Documentation
Request Syntax
response = client.list_device_definitions(
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Definitions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
list_function_definition_versions(**kwargs)¶Lists the versions of a Lambda function definition.
See also: AWS API Documentation
Request Syntax
response = client.list_function_definition_versions(
FunctionDefinitionId='string',
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'NextToken': 'string',
'Versions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
},
]
}
Response Structure
|
list_function_definitions(**kwargs)¶Retrieves a list of Lambda function definitions.
See also: AWS API Documentation
Request Syntax
response = client.list_function_definitions(
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Definitions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
Retrieves the current CAs for a group.
See also: AWS API Documentation
Request Syntax
response = client.list_group_certificate_authorities(
GroupId='string'
)
| Parameters: | GroupId (string) – [REQUIRED] The unique Id of the AWS Greengrass Group |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'GroupCertificateAuthorities': [
{
'GroupCertificateAuthorityArn': 'string',
'GroupCertificateAuthorityId': 'string'
},
]
}
Response Structure
|
list_group_versions(**kwargs)¶List the versions of a group.
See also: AWS API Documentation
Request Syntax
response = client.list_group_versions(
GroupId='string',
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'NextToken': 'string',
'Versions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
},
]
}
Response Structure
|
list_groups(**kwargs)¶Retrieves a list of groups.
See also: AWS API Documentation
Request Syntax
response = client.list_groups(
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Groups': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
list_logger_definition_versions(**kwargs)¶Lists the versions of a logger definition.
See also: AWS API Documentation
Request Syntax
response = client.list_logger_definition_versions(
LoggerDefinitionId='string',
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'NextToken': 'string',
'Versions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
},
]
}
Response Structure
|
list_logger_definitions(**kwargs)¶Retrieves a list of logger definitions.
See also: AWS API Documentation
Request Syntax
response = client.list_logger_definitions(
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Definitions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
list_subscription_definition_versions(**kwargs)¶Lists the versions of a subscription definition.
See also: AWS API Documentation
Request Syntax
response = client.list_subscription_definition_versions(
MaxResults='string',
NextToken='string',
SubscriptionDefinitionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'NextToken': 'string',
'Versions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'Version': 'string'
},
]
}
Response Structure
|
list_subscription_definitions(**kwargs)¶Retrieves a list of subscription definitions.
See also: AWS API Documentation
Request Syntax
response = client.list_subscription_definitions(
MaxResults='string',
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Definitions': [
{
'Arn': 'string',
'CreationTimestamp': 'string',
'Id': 'string',
'LastUpdatedTimestamp': 'string',
'LatestVersion': 'string',
'LatestVersionArn': 'string',
'Name': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
update_connectivity_info(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.update_connectivity_info(
ConnectivityInfo=[
{
'HostAddress': 'string',
'Id': 'string',
'Metadata': 'string',
'PortNumber': 123
},
],
ThingName='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Message': 'string',
'Version': 'string'
}
Response Structure
|
update_core_definition(**kwargs)¶Updates a core definition.
See also: AWS API Documentation
Request Syntax
response = client.update_core_definition(
CoreDefinitionId='string',
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {}
Response Structure
|
update_device_definition(**kwargs)¶Updates a device definition.
See also: AWS API Documentation
Request Syntax
response = client.update_device_definition(
DeviceDefinitionId='string',
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {}
Response Structure
|
update_function_definition(**kwargs)¶Updates a Lambda function definition.
See also: AWS API Documentation
Request Syntax
response = client.update_function_definition(
FunctionDefinitionId='string',
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {}
Response Structure
|
update_group(**kwargs)¶Updates a group.
See also: AWS API Documentation
Request Syntax
response = client.update_group(
GroupId='string',
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {}
Response Structure
|
update_group_certificate_configuration(**kwargs)¶Updates the Cert expiry time for a group.
See also: AWS API Documentation
Request Syntax
response = client.update_group_certificate_configuration(
CertificateExpiryInMilliseconds='string',
GroupId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'CertificateAuthorityExpiryInMilliseconds': 'string',
'CertificateExpiryInMilliseconds': 'string',
'GroupId': 'string'
}
Response Structure
|
update_logger_definition(**kwargs)¶Updates a logger definition.
See also: AWS API Documentation
Request Syntax
response = client.update_logger_definition(
LoggerDefinitionId='string',
Name='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {}
Response Structure
|
update_subscription_definition(**kwargs)¶Updates a subscription definition.
See also: AWS API Documentation
Request Syntax
response = client.update_subscription_definition(
Name='string',
SubscriptionDefinitionId='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {}
Response Structure
|