cdk-iam-floyd
Version:
AWS IAM policy statement generator with fluent interface for AWS CDK
1,422 lines • 153 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Iotsitewise = void 0;
const shared_1 = require("../../shared");
/**
* Statement provider for service [iotsitewise](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotsitewise.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
class Iotsitewise extends shared_1.PolicyStatement {
/**
* Grants permission to associate a child asset with a parent asset through a hierarchy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssociateAssets.html
*/
toAssociateAssets() {
return this.to('AssociateAssets');
}
/**
* Grants permission to associate a time series with an asset property
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssociateTimeSeriesToAssetProperty.html
*/
toAssociateTimeSeriesToAssetProperty() {
return this.to('AssociateTimeSeriesToAssetProperty');
}
/**
* Grants permission to associate assets to a project
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchAssociateProjectAssets.html
*/
toBatchAssociateProjectAssets() {
return this.to('BatchAssociateProjectAssets');
}
/**
* Grants permission to disassociate assets from a project
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchDisassociateProjectAssets.html
*/
toBatchDisassociateProjectAssets() {
return this.to('BatchDisassociateProjectAssets');
}
/**
* Grants permission to retrieve computed aggregates for multiple asset properties
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyAggregates.html
*/
toBatchGetAssetPropertyAggregates() {
return this.to('BatchGetAssetPropertyAggregates');
}
/**
* Grants permission to retrieve the latest value for multiple asset properties
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValue.html
*/
toBatchGetAssetPropertyValue() {
return this.to('BatchGetAssetPropertyValue');
}
/**
* Grants permission to retrieve the value history for multiple asset properties
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchGetAssetPropertyValueHistory.html
*/
toBatchGetAssetPropertyValueHistory() {
return this.to('BatchGetAssetPropertyValueHistory');
}
/**
* Grants permission to put property values for asset properties
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_BatchPutAssetPropertyValue.html
*/
toBatchPutAssetPropertyValue() {
return this.to('BatchPutAssetPropertyValue');
}
/**
* Grants permission to create an access policy for a portal or a project
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAccessPolicy.html
*/
toCreateAccessPolicy() {
return this.to('CreateAccessPolicy');
}
/**
* Grants permission to create an asset from an asset model
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAsset.html
*/
toCreateAsset() {
return this.to('CreateAsset');
}
/**
* Grants permission to create an asset model
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html
*/
toCreateAssetModel() {
return this.to('CreateAssetModel');
}
/**
* Grants permission to create an asset model composite model inside an asset model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModelCompositeModel.html
*/
toCreateAssetModelCompositeModel() {
return this.to('CreateAssetModelCompositeModel');
}
/**
* Grants permission to create bulk import job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateBulkImportJob.html
*/
toCreateBulkImportJob() {
return this.to('CreateBulkImportJob');
}
/**
* Grants permission to create a computation model
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateComputationModel.html
*/
toCreateComputationModel() {
return this.to('CreateComputationModel');
}
/**
* Grants permission to create a dashboard in a project
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateDashboard.html
*/
toCreateDashboard() {
return this.to('CreateDashboard');
}
/**
* Grants permission to create a dataset
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateDataset.html
*/
toCreateDataset() {
return this.to('CreateDataset');
}
/**
* Grants permission to create a gateway
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateGateway.html
*/
toCreateGateway() {
return this.to('CreateGateway');
}
/**
* Grants permission to create a portal
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* Dependent actions:
* - sso:CreateManagedApplicationInstance
* - sso:DescribeRegisteredRegions
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreatePortal.html
*/
toCreatePortal() {
return this.to('CreatePortal');
}
/**
* Grants permission to create a project in a portal
*
* Access Level: Write
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateProject.html
*/
toCreateProject() {
return this.to('CreateProject');
}
/**
* Grants permission to delete an access policy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteAccessPolicy.html
*/
toDeleteAccessPolicy() {
return this.to('DeleteAccessPolicy');
}
/**
* Grants permission to delete an asset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteAsset.html
*/
toDeleteAsset() {
return this.to('DeleteAsset');
}
/**
* Grants permission to delete an asset model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteAssetModel.html
*/
toDeleteAssetModel() {
return this.to('DeleteAssetModel');
}
/**
* Grants permission to delete an asset model composite model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteAssetModelCompositeModel.html
*/
toDeleteAssetModelCompositeModel() {
return this.to('DeleteAssetModelCompositeModel');
}
/**
* Grants permission to delete a relationship between asset model and interface
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteAssetModelInterfaceRelationship.html
*/
toDeleteAssetModelInterfaceRelationship() {
return this.to('DeleteAssetModelInterfaceRelationship');
}
/**
* Grants permission to delete a computation model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteComputationModel.html
*/
toDeleteComputationModel() {
return this.to('DeleteComputationModel');
}
/**
* Grants permission to delete a dashboard
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteDashboard.html
*/
toDeleteDashboard() {
return this.to('DeleteDashboard');
}
/**
* Grants permission to delete a dataset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteDataset.html
*/
toDeleteDataset() {
return this.to('DeleteDataset');
}
/**
* Grants permission to delete a gateway
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteGateway.html
*/
toDeleteGateway() {
return this.to('DeleteGateway');
}
/**
* Grants permission to delete a portal
*
* Access Level: Write
*
* Dependent actions:
* - sso:DeleteManagedApplicationInstance
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeletePortal.html
*/
toDeletePortal() {
return this.to('DeletePortal');
}
/**
* Grants permission to delete a project
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteProject.html
*/
toDeleteProject() {
return this.to('DeleteProject');
}
/**
* Grants permission to delete a time series
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DeleteTimeSeries.html
*/
toDeleteTimeSeries() {
return this.to('DeleteTimeSeries');
}
/**
* Grants permission to describe an access policy
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAccessPolicy.html
*/
toDescribeAccessPolicy() {
return this.to('DescribeAccessPolicy');
}
/**
* Grants permission to describe actions
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAction.html
*/
toDescribeAction() {
return this.to('DescribeAction');
}
/**
* Grants permission to describe an asset
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAsset.html
*/
toDescribeAsset() {
return this.to('DescribeAsset');
}
/**
* Grants permission to describe an asset composite model
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetCompositeModel.html
*/
toDescribeAssetCompositeModel() {
return this.to('DescribeAssetCompositeModel');
}
/**
* Grants permission to describe an asset model
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetModel.html
*/
toDescribeAssetModel() {
return this.to('DescribeAssetModel');
}
/**
* Grants permission to describe an asset model composite model
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetModelCompositeModel.html
*/
toDescribeAssetModelCompositeModel() {
return this.to('DescribeAssetModelCompositeModel');
}
/**
* Grants permission to describe a relationship between asset model and interface
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetModelInterfaceRelationship.html
*/
toDescribeAssetModelInterfaceRelationship() {
return this.to('DescribeAssetModelInterfaceRelationship');
}
/**
* Grants permission to describe an asset property
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeAssetProperty.html
*/
toDescribeAssetProperty() {
return this.to('DescribeAssetProperty');
}
/**
* Grants permission to describe bulk import job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeBulkImportJob.html
*/
toDescribeBulkImportJob() {
return this.to('DescribeBulkImportJob');
}
/**
* Grants permission to describe a computation model
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeComputationModel.html
*/
toDescribeComputationModel() {
return this.to('DescribeComputationModel');
}
/**
* Grants permission to describe computation model execution summary
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeComputationModelExecutionSummary.html
*/
toDescribeComputationModelExecutionSummary() {
return this.to('DescribeComputationModelExecutionSummary');
}
/**
* Grants permission to describe a dashboard
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeDashboard.html
*/
toDescribeDashboard() {
return this.to('DescribeDashboard');
}
/**
* Grants permission to describe dataset
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeDataset.html
*/
toDescribeDataset() {
return this.to('DescribeDataset');
}
/**
* Grants permission to describe the default encryption configuration for the AWS account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeDefaultEncryptionConfiguration.html
*/
toDescribeDefaultEncryptionConfiguration() {
return this.to('DescribeDefaultEncryptionConfiguration');
}
/**
* Grants permission to describe an execution
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeExecution.html
*/
toDescribeExecution() {
return this.to('DescribeExecution');
}
/**
* Grants permission to describe a gateway
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGateway.html
*/
toDescribeGateway() {
return this.to('DescribeGateway');
}
/**
* Grants permission to describe a capability configuration for a gateway
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeGatewayCapabilityConfiguration.html
*/
toDescribeGatewayCapabilityConfiguration() {
return this.to('DescribeGatewayCapabilityConfiguration');
}
/**
* Grants permission to describe logging options for the AWS account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeLoggingOptions.html
*/
toDescribeLoggingOptions() {
return this.to('DescribeLoggingOptions');
}
/**
* Grants permission to describe a portal
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribePortal.html
*/
toDescribePortal() {
return this.to('DescribePortal');
}
/**
* Grants permission to describe a project
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeProject.html
*/
toDescribeProject() {
return this.to('DescribeProject');
}
/**
* Grants permission to describe the storage configuration for the AWS account
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeStorageConfiguration.html
*/
toDescribeStorageConfiguration() {
return this.to('DescribeStorageConfiguration');
}
/**
* Grants permission to describe a time series
*
* Access Level: Read
*
* Possible conditions:
* - .ifAwsRequestTag()
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeTimeSeries.html
*/
toDescribeTimeSeries() {
return this.to('DescribeTimeSeries');
}
/**
* Grants permission to disassociate a child asset from a parent asset by a hierarchy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DisassociateAssets.html
*/
toDisassociateAssets() {
return this.to('DisassociateAssets');
}
/**
* Grants permission to disassociate a time series from an asset property
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DisassociateTimeSeriesFromAssetProperty.html
*/
toDisassociateTimeSeriesFromAssetProperty() {
return this.to('DisassociateTimeSeriesFromAssetProperty');
}
/**
* Grants permission to allow IoT SiteWise integrate with other services
*
* Access Level: Write
*/
toEnableSiteWiseIntegration() {
return this.to('EnableSiteWiseIntegration');
}
/**
* Grants permission to execute actions
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ExecuteAction.html
*/
toExecuteAction() {
return this.to('ExecuteAction');
}
/**
* Grants permission to execute query
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ExecuteQuery.html
*/
toExecuteQuery() {
return this.to('ExecuteQuery');
}
/**
* Grants permission to retrieve computed aggregates for an asset property
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetAssetPropertyAggregates.html
*/
toGetAssetPropertyAggregates() {
return this.to('GetAssetPropertyAggregates');
}
/**
* Grants permission to retrieve the latest value for an asset property
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetAssetPropertyValue.html
*/
toGetAssetPropertyValue() {
return this.to('GetAssetPropertyValue');
}
/**
* Grants permission to retrieve the value history for an asset property
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetAssetPropertyValueHistory.html
*/
toGetAssetPropertyValueHistory() {
return this.to('GetAssetPropertyValueHistory');
}
/**
* Grants permission to retrieve interpolated values for an asset property
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_GetInterpolatedAssetPropertyValues.html
*/
toGetInterpolatedAssetPropertyValues() {
return this.to('GetInterpolatedAssetPropertyValues');
}
/**
* Grants permission to invoke an assistant
*
* Access Level: Read
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_InvokeAssistant.html
*/
toInvokeAssistant() {
return this.to('InvokeAssistant');
}
/**
* Grants permission to list all access policies for an identity or a resource
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAccessPolicies.html
*/
toListAccessPolicies() {
return this.to('ListAccessPolicies');
}
/**
* Grants permission to list all actions
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListActions.html
*/
toListActions() {
return this.to('ListActions');
}
/**
* Grants permission to list all asset model composite models
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssetModelCompositeModels.html
*/
toListAssetModelCompositeModels() {
return this.to('ListAssetModelCompositeModels');
}
/**
* Grants permission to list asset model properties
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssetModelProperties.html
*/
toListAssetModelProperties() {
return this.to('ListAssetModelProperties');
}
/**
* Grants permission to list all asset models
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssetModels.html
*/
toListAssetModels() {
return this.to('ListAssetModels');
}
/**
* Grants permission to list asset properties
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssetProperties.html
*/
toListAssetProperties() {
return this.to('ListAssetProperties');
}
/**
* Grants permission to list the asset relationship graph for an asset
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssetRelationships.html
*/
toListAssetRelationships() {
return this.to('ListAssetRelationships');
}
/**
* Grants permission to list all assets
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssets.html
*/
toListAssets() {
return this.to('ListAssets');
}
/**
* Grants permission to list all assets associated with an asset through a hierarchy
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListAssociatedAssets.html
*/
toListAssociatedAssets() {
return this.to('ListAssociatedAssets');
}
/**
* Grants permission to list bulk import jobs
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListBulkImportJobs.html
*/
toListBulkImportJobs() {
return this.to('ListBulkImportJobs');
}
/**
* Grants permission to list all asset model composition relationships
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListCompositionRelationships.html
*/
toListCompositionRelationships() {
return this.to('ListCompositionRelationships');
}
/**
* Grants permission to list computation model data binding usages
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListComputationModelDataBindingUsages.html
*/
toListComputationModelDataBindingUsages() {
return this.to('ListComputationModelDataBindingUsages');
}
/**
* Grants permission to list computation model resolve to resources
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListComputationModelResolveToResources.html
*/
toListComputationModelResolveToResources() {
return this.to('ListComputationModelResolveToResources');
}
/**
* Grants permission to list all computation models
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListComputationModels.html
*/
toListComputationModels() {
return this.to('ListComputationModels');
}
/**
* Grants permission to list all dashboards in a project
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListDashboards.html
*/
toListDashboards() {
return this.to('ListDashboards');
}
/**
* Grants permission to list all datasets
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListDatasets.html
*/
toListDatasets() {
return this.to('ListDatasets');
}
/**
* Grants permission to list executions
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListExecutions.html
*/
toListExecutions() {
return this.to('ListExecutions');
}
/**
* Grants permission to list all gateways
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListGateways.html
*/
toListGateways() {
return this.to('ListGateways');
}
/**
* Grants permission to list all asset models that are enforced by an interface
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListInterfaceRelationships.html
*/
toListInterfaceRelationships() {
return this.to('ListInterfaceRelationships');
}
/**
* Grants permission to list all portals
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListPortals.html
*/
toListPortals() {
return this.to('ListPortals');
}
/**
* Grants permission to list all assets associated with a project
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListProjectAssets.html
*/
toListProjectAssets() {
return this.to('ListProjectAssets');
}
/**
* Grants permission to list all projects in a portal
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListProjects.html
*/
toListProjects() {
return this.to('ListProjects');
}
/**
* Grants permission to list all tags for a resource
*
* Access Level: Read
*
* Possible conditions:
* - .ifAwsResourceTag()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListTagsForResource.html
*/
toListTagsForResource() {
return this.to('ListTagsForResource');
}
/**
* Grants permission to list time series
*
* Access Level: List
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_ListTimeSeries.html
*/
toListTimeSeries() {
return this.to('ListTimeSeries');
}
/**
* Grants permission to create a relationship between asset model and interface
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_PutAssetModelInterfaceRelationship.html
*/
toPutAssetModelInterfaceRelationship() {
return this.to('PutAssetModelInterfaceRelationship');
}
/**
* Grants permission to set the default encryption configuration for the AWS account
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_PutDefaultEncryptionConfiguration.html
*/
toPutDefaultEncryptionConfiguration() {
return this.to('PutDefaultEncryptionConfiguration');
}
/**
* Grants permission to set logging options for the AWS account
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_PutLoggingOptions.html
*/
toPutLoggingOptions() {
return this.to('PutLoggingOptions');
}
/**
* Grants permission to configure storage settings for the AWS account
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_PutStorageConfiguration.html
*/
toPutStorageConfiguration() {
return this.to('PutStorageConfiguration');
}
/**
* Grants permission to tag a resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
* - .ifAwsRequestTag()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TagResource.html
*/
toTagResource() {
return this.to('TagResource');
}
/**
* Grants permission to untag a resource
*
* Access Level: Tagging
*
* Possible conditions:
* - .ifAwsTagKeys()
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UntagResource.html
*/
toUntagResource() {
return this.to('UntagResource');
}
/**
* Grants permission to update an access policy
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAccessPolicy.html
*/
toUpdateAccessPolicy() {
return this.to('UpdateAccessPolicy');
}
/**
* Grants permission to update an asset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAsset.html
*/
toUpdateAsset() {
return this.to('UpdateAsset');
}
/**
* Grants permission to update an asset model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModel.html
*/
toUpdateAssetModel() {
return this.to('UpdateAssetModel');
}
/**
* Grants permission to update asset model composite model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetModelCompositeModel.html
*/
toUpdateAssetModelCompositeModel() {
return this.to('UpdateAssetModelCompositeModel');
}
/**
* Grants permission to update an AssetModel property routing
*
* Access Level: Write
*/
toUpdateAssetModelPropertyRouting() {
return this.to('UpdateAssetModelPropertyRouting');
}
/**
* Grants permission to update an asset property
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html
*/
toUpdateAssetProperty() {
return this.to('UpdateAssetProperty');
}
/**
* Grants permission to update a computation model
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateComputationModel.html
*/
toUpdateComputationModel() {
return this.to('UpdateComputationModel');
}
/**
* Grants permission to update a dashboard
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateDashboard.html
*/
toUpdateDashboard() {
return this.to('UpdateDashboard');
}
/**
* Grants permission to update a dataset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateDataset.html
*/
toUpdateDataset() {
return this.to('UpdateDataset');
}
/**
* Grants permission to update a gateway
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateGateway.html
*/
toUpdateGateway() {
return this.to('UpdateGateway');
}
/**
* Grants permission to update a capability configuration for a gateway
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateGatewayCapabilityConfiguration.html
*/
toUpdateGatewayCapabilityConfiguration() {
return this.to('UpdateGatewayCapabilityConfiguration');
}
/**
* Grants permission to update a portal
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdatePortal.html
*/
toUpdatePortal() {
return this.to('UpdatePortal');
}
/**
* Grants permission to update a project
*
* Access Level: Write
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateProject.html
*/
toUpdateProject() {
return this.to('UpdateProject');
}
/**
* Adds a resource of type asset to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAsset.html
*
* @param assetId - Identifier for the assetId.
* @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()
*/
onAsset(assetId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:asset/${assetId}`);
}
/**
* Adds a resource of type asset-model to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModel.html
*
* @param assetModelId - Identifier for the assetModelId.
* @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()
*/
onAssetModel(assetModelId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:asset-model/${assetModelId}`);
}
/**
* Adds a resource of type time-series to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_DescribeTimeSeries.html
*
* @param timeSeriesId - Identifier for the timeSeriesId.
* @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()
*/
onTimeSeries(timeSeriesId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:time-series/${timeSeriesId}`);
}
/**
* Adds a resource of type gateway to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateGateway.html
*
* @param gatewayId - Identifier for the gatewayId.
* @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()
*/
onGateway(gatewayId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:gateway/${gatewayId}`);
}
/**
* Adds a resource of type portal to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreatePortal.html
*
* @param portalId - Identifier for the portalId.
* @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()
*/
onPortal(portalId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:portal/${portalId}`);
}
/**
* Adds a resource of type project to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateProject.html
*
* @param projectId - Identifier for the projectId.
* @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()
*/
onProject(projectId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:project/${projectId}`);
}
/**
* Adds a resource of type dashboard to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateDashboard.html
*
* @param dashboardId - Identifier for the dashboardId.
* @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()
*/
onDashboard(dashboardId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:dashboard/${dashboardId}`);
}
/**
* Adds a resource of type access-policy to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAccessPolicy.html
*
* @param accessPolicyId - Identifier for the accessPolicyId.
* @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()
*/
onAccessPolicy(accessPolicyId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:access-policy/${accessPolicyId}`);
}
/**
* Adds a resource of type dataset to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateDataset.html
*
* @param datasetId - Identifier for the datasetId.
* @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()
*/
onDataset(datasetId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:dataset/${datasetId}`);
}
/**
* Adds a resource of type computation-model to the statement
*
* https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateComputationModel.html
*
* @param computationModelId - Identifier for the computationModelId.
* @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()
*/
onComputationModel(computationModelId, account, region, partition) {
return this.on(`arn:${partition ?? this.defaultPartition}:iotsitewise:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:computation-model/${computationModelId}`);
}
/**
* Filters access by the tag key-value pairs in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag
*
* Applies to actions:
* - .toCreateAccessPolicy()
* - .toCreateAsset()
* - .toCreateAssetModel()
* - .toCreateComputationModel()
* - .toCreateDashboard()
* - .toCreateDataset()
* - .toCreateGateway()
* - .toCreatePortal()
* - .toCreateProject()
* - .toDescribeTimeSeries()
* - .toTagResource()
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsRequestTag(tagKey, value, operator) {
return this.if(`aws:RequestTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by the tags attached to the resource
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag
*
* Applies to actions:
* - .toListTagsForResource()
*
* Applies to resource types:
* - asset
* - asset-model
* - time-series
* - gateway
* - portal
* - project
* - dashboard
* - access-policy
* - dataset
* - computation-model
*
* @param tagKey The tag key to check
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsResourceTag(tagKey, value, operator) {
return this.if(`aws:ResourceTag/${tagKey}`, value, operator ?? 'StringLike');
}
/**
* Filters access by the tag keys in the request
*
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys
*
* Applies to actions:
* - .toCreateAccessPolicy()
* - .toCreateAsset()
* - .toCreateAssetModel()
* - .toCreateComputationModel()
* - .toCreateDashboard()
* - .toCreateDataset()
* - .toCreateGateway()
* - .toCreatePortal()
* - .toCreateProject()
* - .toDescribeTimeSeries()
* - .toTagResource()
* - .toUntagResource()
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAwsTagKeys(value, operator) {
return this.if(`aws:TagKeys`, value, operator ?? 'StringLike');
}
/**
* Filters access by an asset hierarchy path, which is the string of asset IDs in the asset's hierarchy, each separated by a forward slash
*
* https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifAssetHierarchyPath(value, operator) {
return this.if(`assetHierarchyPath`, value, operator ?? 'StringLike');
}
/**
* Filters access by the ID of a child asset being associated whith a parent asset
*
* https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifChildAssetId(value, operator) {
return this.if(`childAssetId`, value, operator ?? 'StringLike');
}
/**
* Filters access by the ID of an AWS Single Sign-On group
*
* https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifGroup(value, operator) {
return this.if(`group`, value, operator ?? 'StringLike');
}
/**
* Filters access by the ID of an AWS IAM identity
*
* https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifIam(value, operator) {
return this.if(`iam`, value, operator ?? 'StringLike');
}
/**
* Filters access by data streams associated with or not associated with asset properties
*
* https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike`
*/
ifIsAssociatedWithAssetProperty(value, operator) {
return this.if(`isAssociatedWithAssetProperty`, value, operator ?? 'StringLike');
}
/**
* Filters access by the ID of a portal
*
* https://docs.aws.amazon.com/iot-sitewise/latest/userguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies-conditionkeys
*
* @param value The value(s) to check
* @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#C