UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

1,239 lines 167 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Greengrass = void 0; const shared_1 = require("../../shared"); /** * Statement provider for service [greengrass](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotgreengrass.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ class Greengrass extends shared_1.PolicyStatement { /** * Grants permission to associate a role with a group. The role's permissions must allow Greengrass core Lambda functions and connectors to perform actions in other AWS services * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/associateroletogroup-put.html */ toAssociateRoleToGroup() { return this.to('AssociateRoleToGroup'); } /** * Grants permission to associate a role with your account. AWS IoT Greengrass uses this role to access your Lambda functions and AWS IoT resources * * Access Level: Permissions management * * https://docs.aws.amazon.com/greengrass/v1/apireference/associateserviceroletoaccount-put.html */ toAssociateServiceRoleToAccount() { return this.to('AssociateServiceRoleToAccount'); } /** * Grants permission to create a connector definition * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/createconnectordefinition-post.html */ toCreateConnectorDefinition() { return this.to('CreateConnectorDefinition'); } /** * Grants permission to create a version of an existing connector definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createconnectordefinitionversion-post.html */ toCreateConnectorDefinitionVersion() { return this.to('CreateConnectorDefinitionVersion'); } /** * Grants permission to create a core definition * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/createcoredefinition-post.html */ toCreateCoreDefinition() { return this.to('CreateCoreDefinition'); } /** * Grants permission to create a version of an existing core definition. Greengrass groups must each contain exactly one Greengrass core * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createcoredefinitionversion-post.html */ toCreateCoreDefinitionVersion() { return this.to('CreateCoreDefinitionVersion'); } /** * Grants permission to create a deployment * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createdeployment-post.html */ toCreateDeployment() { return this.to('CreateDeployment'); } /** * Grants permission to create a device definition * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/createdevicedefinition-post.html */ toCreateDeviceDefinition() { return this.to('CreateDeviceDefinition'); } /** * Grants permission to create a version of an existing device definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createdevicedefinitionversion-post.html */ toCreateDeviceDefinitionVersion() { return this.to('CreateDeviceDefinitionVersion'); } /** * Grants permission to create a Lambda function definition to be used in a group that contains a list of Lambda functions and their configurations * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/createfunctiondefinition-post.html */ toCreateFunctionDefinition() { return this.to('CreateFunctionDefinition'); } /** * Grants permission to create a version of an existing Lambda function definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createfunctiondefinitionversion-post.html */ toCreateFunctionDefinitionVersion() { return this.to('CreateFunctionDefinitionVersion'); } /** * Grants permission to create a group * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/creategroup-post.html */ toCreateGroup() { return this.to('CreateGroup'); } /** * Grants permission to create a CA for the group, or rotate the existing CA * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/creategroupcertificateauthority-post.html */ toCreateGroupCertificateAuthority() { return this.to('CreateGroupCertificateAuthority'); } /** * Grants permission to create a version of a group that has already been defined * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/creategroupversion-post.html */ toCreateGroupVersion() { return this.to('CreateGroupVersion'); } /** * Grants permission to create a logger definition * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/createloggerdefinition-post.html */ toCreateLoggerDefinition() { return this.to('CreateLoggerDefinition'); } /** * Grants permission to create a version of an existing logger definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createloggerdefinitionversion-post.html */ toCreateLoggerDefinitionVersion() { return this.to('CreateLoggerDefinitionVersion'); } /** * Grants permission to create a resource definition that contains a list of resources to be used in a group * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/createresourcedefinition-post.html */ toCreateResourceDefinition() { return this.to('CreateResourceDefinition'); } /** * Grants permission to create a version of an existing resource definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createresourcedefinitionversion-post.html */ toCreateResourceDefinitionVersion() { return this.to('CreateResourceDefinitionVersion'); } /** * Grants permission to create an AWS IoT job that will trigger your Greengrass cores to update the software they are running * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createsoftwareupdatejob-post.html */ toCreateSoftwareUpdateJob() { return this.to('CreateSoftwareUpdateJob'); } /** * Grants permission to create a subscription definition * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/createsubscriptiondefinition-post.html */ toCreateSubscriptionDefinition() { return this.to('CreateSubscriptionDefinition'); } /** * Grants permission to create a version of an existing subscription definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/createsubscriptiondefinitionversion-post.html */ toCreateSubscriptionDefinitionVersion() { return this.to('CreateSubscriptionDefinitionVersion'); } /** * Grants permission to delete a connector definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deleteconnectordefinition-delete.html */ toDeleteConnectorDefinition() { return this.to('DeleteConnectorDefinition'); } /** * Grants permission to delete a core definition. Deleting a definition that is currently in use in a deployment affects future deployments * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deletecoredefinition-delete.html */ toDeleteCoreDefinition() { return this.to('DeleteCoreDefinition'); } /** * Grants permission to delete a device definition. Deleting a definition that is currently in use in a deployment affects future deployments * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deletedevicedefinition-delete.html */ toDeleteDeviceDefinition() { return this.to('DeleteDeviceDefinition'); } /** * Grants permission to delete a Lambda function definition. Deleting a definition that is currently in use in a deployment affects future deployments * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deletefunctiondefinition-delete.html */ toDeleteFunctionDefinition() { return this.to('DeleteFunctionDefinition'); } /** * Grants permission to delete a group that is not currently in use in a deployment * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deletegroup-delete.html */ toDeleteGroup() { return this.to('DeleteGroup'); } /** * Grants permission to delete a logger definition. Deleting a definition that is currently in use in a deployment affects future deployments * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deleteloggerdefinition-delete.html */ toDeleteLoggerDefinition() { return this.to('DeleteLoggerDefinition'); } /** * Grants permission to delete a resource definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deleteresourcedefinition-delete.html */ toDeleteResourceDefinition() { return this.to('DeleteResourceDefinition'); } /** * Grants permission to delete a subscription definition. Deleting a definition that is currently in use in a deployment affects future deployments * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/deletesubscriptiondefinition-delete.html */ toDeleteSubscriptionDefinition() { return this.to('DeleteSubscriptionDefinition'); } /** * Grants permission to disassociate the role from a group * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/disassociaterolefromgroup-delete.html */ toDisassociateRoleFromGroup() { return this.to('DisassociateRoleFromGroup'); } /** * Grants permission to disassociate the service role from an account. Without a service role, deployments will not work * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/disassociateservicerolefromaccount-delete.html */ toDisassociateServiceRoleFromAccount() { return this.to('DisassociateServiceRoleFromAccount'); } /** * Grants permission to retrieve information required to connect to a Greengrass core * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-discover-api.html */ toDiscover() { return this.to('Discover'); } /** * Grants permission to retrieve the role associated with a group * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getassociatedrole-get.html */ toGetAssociatedRole() { return this.to('GetAssociatedRole'); } /** * Grants permission to return the status of a bulk deployment * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getbulkdeploymentstatus-get.html */ toGetBulkDeploymentStatus() { return this.to('GetBulkDeploymentStatus'); } /** * Grants permission to retrieve the connectivity information for a core * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getconnectivityinfo-get.html */ toGetConnectivityInfo() { return this.to('GetConnectivityInfo'); } /** * Grants permission to retrieve information about a connector definition * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getconnectordefinition-get.html */ toGetConnectorDefinition() { return this.to('GetConnectorDefinition'); } /** * Grants permission to retrieve information about a connector definition version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getconnectordefinitionversion-get.html */ toGetConnectorDefinitionVersion() { return this.to('GetConnectorDefinitionVersion'); } /** * Grants permission to retrieve information about a core definition * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getcoredefinition-get.html */ toGetCoreDefinition() { return this.to('GetCoreDefinition'); } /** * Grants permission to retrieve information about a core definition version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getcoredefinitionversion-get.html */ toGetCoreDefinitionVersion() { return this.to('GetCoreDefinitionVersion'); } /** * Grants permission to return the status of a deployment * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getdeploymentstatus-get.html */ toGetDeploymentStatus() { return this.to('GetDeploymentStatus'); } /** * Grants permission to retrieve information about a device definition * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getdevicedefinition-get.html */ toGetDeviceDefinition() { return this.to('GetDeviceDefinition'); } /** * Grants permission to retrieve information about a device definition version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getdevicedefinitionversion-get.html */ toGetDeviceDefinitionVersion() { return this.to('GetDeviceDefinitionVersion'); } /** * Grants permission to retrieve information about a Lambda function definition, such as its creation time and latest version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getfunctiondefinition-get.html */ toGetFunctionDefinition() { return this.to('GetFunctionDefinition'); } /** * Grants permission to retrieve information about a Lambda function definition version, such as which Lambda functions are included in the version and their configurations * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getfunctiondefinitionversion-get.html */ toGetFunctionDefinitionVersion() { return this.to('GetFunctionDefinitionVersion'); } /** * Grants permission to retrieve information about a group * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getgroup-get.html */ toGetGroup() { return this.to('GetGroup'); } /** * Grants permission to return the public key of the CA associated with a group * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getgroupcertificateauthority-get.html */ toGetGroupCertificateAuthority() { return this.to('GetGroupCertificateAuthority'); } /** * Grants permission to retrieve the current configuration for the CA used by a group * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getgroupcertificateconfiguration-get.html */ toGetGroupCertificateConfiguration() { return this.to('GetGroupCertificateConfiguration'); } /** * Grants permission to retrieve information about a group version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getgroupversion-get.html */ toGetGroupVersion() { return this.to('GetGroupVersion'); } /** * Grants permission to retrieve information about a logger definition * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getloggerdefinition-get.html */ toGetLoggerDefinition() { return this.to('GetLoggerDefinition'); } /** * Grants permission to retrieve information about a logger definition version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getloggerdefinitionversion-get.html */ toGetLoggerDefinitionVersion() { return this.to('GetLoggerDefinitionVersion'); } /** * Grants permission to retrieve information about a resource definition, such as its creation time and latest version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getresourcedefinition-get.html */ toGetResourceDefinition() { return this.to('GetResourceDefinition'); } /** * Grants permission to retrieve information about a resource definition version, such as which resources are included in the version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getresourcedefinitionversion-get.html */ toGetResourceDefinitionVersion() { return this.to('GetResourceDefinitionVersion'); } /** * Grants permission to retrieve the service role that is attached to an account * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getserviceroleforaccount-get.html */ toGetServiceRoleForAccount() { return this.to('GetServiceRoleForAccount'); } /** * Grants permission to retrieve information about a subscription definition * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getsubscriptiondefinition-get.html */ toGetSubscriptionDefinition() { return this.to('GetSubscriptionDefinition'); } /** * Grants permission to retrieve information about a subscription definition version * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getsubscriptiondefinitionversion-get.html */ toGetSubscriptionDefinitionVersion() { return this.to('GetSubscriptionDefinitionVersion'); } /** * Grants permission to retrieve runtime configuration of a thing * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/getthingruntimeconfiguration-get.html */ toGetThingRuntimeConfiguration() { return this.to('GetThingRuntimeConfiguration'); } /** * Grants permission to retrieve a paginated list of the deployments that have been started in a bulk deployment operation and their current deployment status * * Access Level: Read * * https://docs.aws.amazon.com/greengrass/v1/apireference/listbulkdeploymentdetailedreports-get.html */ toListBulkDeploymentDetailedReports() { return this.to('ListBulkDeploymentDetailedReports'); } /** * Grants permission to retrieve a list of bulk deployments * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listbulkdeployments-get.html */ toListBulkDeployments() { return this.to('ListBulkDeployments'); } /** * Grants permission to list the versions of a connector definition * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listconnectordefinitionversions-get.html */ toListConnectorDefinitionVersions() { return this.to('ListConnectorDefinitionVersions'); } /** * Grants permission to retrieve a list of connector definitions * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listconnectordefinitions-get.html */ toListConnectorDefinitions() { return this.to('ListConnectorDefinitions'); } /** * Grants permission to list the versions of a core definition * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listcoredefinitionversions-get.html */ toListCoreDefinitionVersions() { return this.to('ListCoreDefinitionVersions'); } /** * Grants permission to retrieve a list of core definitions * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listcoredefinitions-get.html */ toListCoreDefinitions() { return this.to('ListCoreDefinitions'); } /** * Grants permission to retrieve a list of all deployments for a group * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listdeployments-get.html */ toListDeployments() { return this.to('ListDeployments'); } /** * Grants permission to list the versions of a device definition * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listdevicedefinitionversions-get.html */ toListDeviceDefinitionVersions() { return this.to('ListDeviceDefinitionVersions'); } /** * Grants permission to retrieve a list of device definitions * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listdevicedefinitions-get.html */ toListDeviceDefinitions() { return this.to('ListDeviceDefinitions'); } /** * Grants permission to list the versions of a Lambda function definition * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listfunctiondefinitionversions-get.html */ toListFunctionDefinitionVersions() { return this.to('ListFunctionDefinitionVersions'); } /** * Grants permission to retrieve a list of Lambda function definitions * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listfunctiondefinitions-get.html */ toListFunctionDefinitions() { return this.to('ListFunctionDefinitions'); } /** * Grants permission to retrieve a list of current CAs for a group * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listgroupcertificateauthorities-get.html */ toListGroupCertificateAuthorities() { return this.to('ListGroupCertificateAuthorities'); } /** * Grants permission to list the versions of a group * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listgroupversions-get.html */ toListGroupVersions() { return this.to('ListGroupVersions'); } /** * Grants permission to retrieve a list of groups * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listgroups-get.html */ toListGroups() { return this.to('ListGroups'); } /** * Grants permission to list the versions of a logger definition * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listloggerdefinitionversions-get.html */ toListLoggerDefinitionVersions() { return this.to('ListLoggerDefinitionVersions'); } /** * Grants permission to retrieve a list of logger definitions * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listloggerdefinitions-get.html */ toListLoggerDefinitions() { return this.to('ListLoggerDefinitions'); } /** * Grants permission to list the versions of a resource definition * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listresourcedefinitionversions-get.html */ toListResourceDefinitionVersions() { return this.to('ListResourceDefinitionVersions'); } /** * Grants permission to retrieve a list of resource definitions * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listresourcedefinitions-get.html */ toListResourceDefinitions() { return this.to('ListResourceDefinitions'); } /** * Grants permission to list the versions of a subscription definition * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listsubscriptiondefinitionversions-get.html */ toListSubscriptionDefinitionVersions() { return this.to('ListSubscriptionDefinitionVersions'); } /** * Grants permission to retrieve a list of subscription definitions * * Access Level: List * * https://docs.aws.amazon.com/greengrass/v1/apireference/listsubscriptiondefinitions-get.html */ toListSubscriptionDefinitions() { return this.to('ListSubscriptionDefinitions'); } /** * Grants permission to list the tags for a resource * * Access Level: Read * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/listtagsforresource-get.html */ toListTagsForResource() { return this.to('ListTagsForResource'); } /** * Grants permission to reset a group's deployments * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/resetdeployments-post.html */ toResetDeployments() { return this.to('ResetDeployments'); } /** * Grants permission to deploy multiple groups in one operation * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/startbulkdeployment-post.html */ toStartBulkDeployment() { return this.to('StartBulkDeployment'); } /** * Grants permission to stop the execution of a bulk deployment * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/stopbulkdeployment-put.html */ toStopBulkDeployment() { return this.to('StopBulkDeployment'); } /** * Grants permission to add tags to a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/tagresource-post.html */ toTagResource() { return this.to('TagResource'); } /** * Grants permission to remove tags from a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/greengrass/v1/apireference/untagresource-delete.html */ toUntagResource() { return this.to('UntagResource'); } /** * Grants permission to update the connectivity information for a Greengrass core. Any devices that belong to the group that has this core will receive this information in order to find the location of the core and connect to it * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updateconnectivityinfo-put.html */ toUpdateConnectivityInfo() { return this.to('UpdateConnectivityInfo'); } /** * Grants permission to update a connector definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updateconnectordefinition-put.html */ toUpdateConnectorDefinition() { return this.to('UpdateConnectorDefinition'); } /** * Grants permission to update a core definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updatecoredefinition-put.html */ toUpdateCoreDefinition() { return this.to('UpdateCoreDefinition'); } /** * Grants permission to update a device definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updatedevicedefinition-put.html */ toUpdateDeviceDefinition() { return this.to('UpdateDeviceDefinition'); } /** * Grants permission to update a Lambda function definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updatefunctiondefinition-put.html */ toUpdateFunctionDefinition() { return this.to('UpdateFunctionDefinition'); } /** * Grants permission to update a group * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updategroup-put.html */ toUpdateGroup() { return this.to('UpdateGroup'); } /** * Grants permission to update the certificate expiry time for a group * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updategroupcertificateconfiguration-put.html */ toUpdateGroupCertificateConfiguration() { return this.to('UpdateGroupCertificateConfiguration'); } /** * Grants permission to update a logger definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updateloggerdefinition-put.html */ toUpdateLoggerDefinition() { return this.to('UpdateLoggerDefinition'); } /** * Grants permission to update a resource definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updateresourcedefinition-put.html */ toUpdateResourceDefinition() { return this.to('UpdateResourceDefinition'); } /** * Grants permission to update a subscription definition * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updatesubscriptiondefinition-put.html */ toUpdateSubscriptionDefinition() { return this.to('UpdateSubscriptionDefinition'); } /** * Grants permission to update runtime configuration of a thing * * Access Level: Write * * https://docs.aws.amazon.com/greengrass/v1/apireference/updatethingruntimeconfiguration-put.html */ toUpdateThingRuntimeConfiguration() { return this.to('UpdateThingRuntimeConfiguration'); } /** * Adds a resource of type connectivityInfo to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-connectivityinfo.html * * @param thingName - Identifier for the thingName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onConnectivityInfo(thingName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/things/${thingName}/connectivityInfo`); } /** * Adds a resource of type certificateAuthority to the statement * * https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-sec.html * * @param groupId - Identifier for the groupId. * @param certificateAuthorityId - Identifier for the certificateAuthorityId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onCertificateAuthority(groupId, certificateAuthorityId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/groups/${groupId}/certificateauthorities/${certificateAuthorityId}`); } /** * Adds a resource of type deployment to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-createdeploymentrequest.html * * @param groupId - Identifier for the groupId. * @param deploymentId - Identifier for the deploymentId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onDeployment(groupId, deploymentId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/groups/${groupId}/deployments/${deploymentId}`); } /** * Adds a resource of type bulkDeployment to the statement * * https://docs.aws.amazon.com/greengrass/latest/developerguide/bulk-deploy-cli.html * * @param bulkDeploymentId - Identifier for the bulkDeploymentId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onBulkDeployment(bulkDeploymentId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/bulk/deployments/${bulkDeploymentId}`); } /** * Adds a resource of type group to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-groupinformation.html * * @param groupId - Identifier for the groupId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onGroup(groupId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/groups/${groupId}`); } /** * Adds a resource of type groupVersion to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-groupversion.html * * @param groupId - Identifier for the groupId. * @param versionId - Identifier for the versionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onGroupVersion(groupId, versionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/groups/${groupId}/versions/${versionId}`); } /** * Adds a resource of type coreDefinition to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-core.html * * @param coreDefinitionId - Identifier for the coreDefinitionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onCoreDefinition(coreDefinitionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/cores/${coreDefinitionId}`); } /** * Adds a resource of type coreDefinitionVersion to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-coredefinitionversion.html * * @param coreDefinitionId - Identifier for the coreDefinitionId. * @param versionId - Identifier for the versionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onCoreDefinitionVersion(coreDefinitionId, versionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/cores/${coreDefinitionId}/versions/${versionId}`); } /** * Adds a resource of type deviceDefinition to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-device.html * * @param deviceDefinitionId - Identifier for the deviceDefinitionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onDeviceDefinition(deviceDefinitionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/devices/${deviceDefinitionId}`); } /** * Adds a resource of type deviceDefinitionVersion to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-devicedefinitionversion.html * * @param deviceDefinitionId - Identifier for the deviceDefinitionId. * @param versionId - Identifier for the versionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onDeviceDefinitionVersion(deviceDefinitionId, versionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/devices/${deviceDefinitionId}/versions/${versionId}`); } /** * Adds a resource of type functionDefinition to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-function.html * * @param functionDefinitionId - Identifier for the functionDefinitionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onFunctionDefinition(functionDefinitionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/functions/${functionDefinitionId}`); } /** * Adds a resource of type functionDefinitionVersion to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-functiondefinitionversion.html * * @param functionDefinitionId - Identifier for the functionDefinitionId. * @param versionId - Identifier for the versionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onFunctionDefinitionVersion(functionDefinitionId, versionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/functions/${functionDefinitionId}/versions/${versionId}`); } /** * Adds a resource of type subscriptionDefinition to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-subscription.html * * @param subscriptionDefinitionId - Identifier for the subscriptionDefinitionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onSubscriptionDefinition(subscriptionDefinitionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/subscriptions/${subscriptionDefinitionId}`); } /** * Adds a resource of type subscriptionDefinitionVersion to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-subscriptiondefinitionversion.html * * @param subscriptionDefinitionId - Identifier for the subscriptionDefinitionId. * @param versionId - Identifier for the versionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onSubscriptionDefinitionVersion(subscriptionDefinitionId, versionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/subscriptions/${subscriptionDefinitionId}/versions/${versionId}`); } /** * Adds a resource of type loggerDefinition to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-logger.html * * @param loggerDefinitionId - Identifier for the loggerDefinitionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onLoggerDefinition(loggerDefinitionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/loggers/${loggerDefinitionId}`); } /** * Adds a resource of type loggerDefinitionVersion to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-loggerdefinitionversion.html * * @param loggerDefinitionId - Identifier for the loggerDefinitionId. * @param versionId - Identifier for the versionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onLoggerDefinitionVersion(loggerDefinitionId, versionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:/greengrass/definition/loggers/${loggerDefinitionId}/versions/${versionId}`); } /** * Adds a resource of type resourceDefinition to the statement * * https://docs.aws.amazon.com/greengrass/v1/apireference/definitions-resource.html * * @param resourceDefinitionId - Identifier for the resourceDefinitionId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onResourceDefinition(resourceDefinitionId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:greengrass:${region ?? this.defaultRegion}:$