UNPKG

iam-floyd

Version:

AWS IAM policy statement generator with fluent interface

441 lines (440 loc) 15.3 kB
import { AccessLevelList } from '../../shared/access-level'; import { PolicyStatement, Operator } from '../../shared'; /** * Statement provider for service [iotanalytics](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotanalytics.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ export declare class Iotanalytics extends PolicyStatement { servicePrefix: string; /** * Statement provider for service [iotanalytics](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotanalytics.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ constructor(sid?: string); /** * Puts a batch of messages into the specified channel * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_BatchPutMessage.html */ toBatchPutMessage(): this; /** * Cancels reprocessing for the specified pipeline * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_CancelPipelineReprocessing.html */ toCancelPipelineReprocessing(): this; /** * Creates a channel * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_CreateChannel.html */ toCreateChannel(): this; /** * Creates a dataset * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_CreateDataset.html */ toCreateDataset(): this; /** * Generates content from the specified dataset (by executing the dataset actions) * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_CreateDatasetContent.html */ toCreateDatasetContent(): this; /** * Creates a datastore * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_CreateDatastore.html */ toCreateDatastore(): this; /** * Creates a pipeline * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_CreatePipeline.html */ toCreatePipeline(): this; /** * Deletes the specified channel * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeleteChannel.html */ toDeleteChannel(): this; /** * Deletes the specified dataset * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeleteDataset.html */ toDeleteDataset(): this; /** * Deletes the content of the specified dataset * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeleteDatasetContent.html */ toDeleteDatasetContent(): this; /** * Deletes the specified datastore * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeleteDatastore.html */ toDeleteDatastore(): this; /** * Deletes the specified pipeline * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DeletePipeline.html */ toDeletePipeline(): this; /** * Describes the specified channel * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DescribeChannel.html */ toDescribeChannel(): this; /** * Describes the specified dataset * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DescribeDataset.html */ toDescribeDataset(): this; /** * Describes the specified datastore * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DescribeDatastore.html */ toDescribeDatastore(): this; /** * Describes logging options for the the account * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DescribeLoggingOptions.html */ toDescribeLoggingOptions(): this; /** * Describes the specified pipeline * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_DescribePipeline.html */ toDescribePipeline(): this; /** * Gets the content of the specified dataset * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_GetDatasetContent.html */ toGetDatasetContent(): this; /** * Lists the channels for the account * * Access Level: List * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_ListChannels.html */ toListChannels(): this; /** * Lists information about dataset contents that have been created * * Access Level: List * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_ListDatasetContents.html */ toListDatasetContents(): this; /** * Lists the datasets for the account * * Access Level: List * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_ListDatasets.html */ toListDatasets(): this; /** * Lists the datastores for the account * * Access Level: List * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_ListDatastores.html */ toListDatastores(): this; /** * Lists the pipelines for the account * * Access Level: List * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_ListPipelines.html */ toListPipelines(): this; /** * Lists the tags (metadata) which you have assigned to the resource * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_ListTagsForResource.html */ toListTagsForResource(): this; /** * Puts logging options for the the account * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_PutLoggingOptions.html */ toPutLoggingOptions(): this; /** * Runs the specified pipeline activity * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_RunPipelineActivity.html */ toRunPipelineActivity(): this; /** * Samples the specified channel's data * * Access Level: Read * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_SampleChannelData.html */ toSampleChannelData(): this; /** * Starts reprocessing for the specified pipeline * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_StartPipelineReprocessing.html */ toStartPipelineReprocessing(): this; /** * Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_TagResource.html */ toTagResource(): this; /** * Removes the given tags (metadata) from the resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_UntagResource.html */ toUntagResource(): this; /** * Updates the specified channel * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_UpdateChannel.html */ toUpdateChannel(): this; /** * Updates the specified dataset * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_UpdateDataset.html */ toUpdateDataset(): this; /** * Updates the specified datastore * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_UpdateDatastore.html */ toUpdateDatastore(): this; /** * Updates the specified pipeline * * Access Level: Write * * https://docs.aws.amazon.com/iotanalytics/latest/APIReference/API_UpdatePipeline.html */ toUpdatePipeline(): this; protected accessLevelList: AccessLevelList; /** * Adds a resource of type channel to the statement * * https://docs.aws.amazon.com/iotanalytics/latest/userguide/welcome.html#aws-iot-analytics-how * * @param channelName - Identifier for the channelName. * @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: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifResourceTag() */ onChannel(channelName: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type dataset to the statement * * https://docs.aws.amazon.com/iotanalytics/latest/userguide/welcome.html#aws-iot-analytics-how * * @param datasetName - Identifier for the datasetName. * @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: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifResourceTag() */ onDataset(datasetName: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type datastore to the statement * * https://docs.aws.amazon.com/iotanalytics/latest/userguide/welcome.html#aws-iot-analytics-how * * @param datastoreName - Identifier for the datastoreName. * @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: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifResourceTag() */ onDatastore(datastoreName: string, account?: string, region?: string, partition?: string): this; /** * Adds a resource of type pipeline to the statement * * https://docs.aws.amazon.com/iotanalytics/latest/userguide/welcome.html#aws-iot-analytics-how * * @param pipelineName - Identifier for the pipelineName. * @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: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * - .ifResourceTag() */ onPipeline(pipelineName: string, account?: string, region?: string, partition?: string): this; /** * Filters access based on the tags that are passed in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateChannel() * - .toCreateDataset() * - .toCreateDatastore() * - .toCreatePipeline() * - .toTagResource() * - .toUntagResource() * * Applies to resource types: * - channel * - dataset * - datastore * - pipeline * * @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: string, value: string | string[], operator?: Operator | string): this; /** * Filters access based on the presence of tag keys in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateChannel() * - .toCreateDataset() * - .toCreateDatastore() * - .toCreatePipeline() * - .toTagResource() * - .toUntagResource() * * Applies to resource types: * - channel * - dataset * - datastore * - pipeline * * @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: string | string[], operator?: Operator | string): this; /** * Filters access by the tag key-value pairs attached to the resource * * https://docs.aws.amazon.com/iotanalytics/latest/userguide/tagging.html#tagging-iam * * Applies to resource types: * - channel * - dataset * - datastore * - pipeline * * @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` */ ifResourceTag(tagKey: string, value: string | string[], operator?: Operator | string): this; }