iam-floyd
Version:
AWS IAM policy statement generator with fluent interface
874 lines (873 loc) • 32.8 kB
TypeScript
import { AccessLevelList } from '../../shared/access-level';
import { PolicyStatement } from '../../shared';
/**
* Statement provider for service [personalize](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonpersonalize.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
export declare class Personalize extends PolicyStatement {
servicePrefix: string;
/**
* Statement provider for service [personalize](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonpersonalize.html).
*
* @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement
*/
constructor(sid?: string);
/**
* Grants permission to create a batch inference job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateBatchInferenceJob.html
*/
toCreateBatchInferenceJob(): this;
/**
* Grants permission to create a batch segment job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateBatchSegmentJob.html
*/
toCreateBatchSegmentJob(): this;
/**
* Grants permission to create a campaign
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateCampaign.html
*/
toCreateCampaign(): this;
/**
* Grants permission to create a data deletion job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDataDeletionJob.html
*/
toCreateDataDeletionJob(): this;
/**
* Grants permission to create a data insights job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/analyzing-data.html
*/
toCreateDataInsightsJob(): this;
/**
* Grants permission to create a dataset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDataset.html
*/
toCreateDataset(): this;
/**
* Grants permission to create a dataset export job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDatasetExportJob.html
*/
toCreateDatasetExportJob(): this;
/**
* Grants permission to create a dataset group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDatasetGroup.html
*/
toCreateDatasetGroup(): this;
/**
* Grants permission to create a dataset import job
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateDatasetImportJob.html
*/
toCreateDatasetImportJob(): this;
/**
* Grants permission to create an event tracker
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateEventTracker.html
*/
toCreateEventTracker(): this;
/**
* Grants permission to create a filter
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateFilter.html
*/
toCreateFilter(): this;
/**
* Grants permission to create a metric attribution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateMetricAttribution.html
*/
toCreateMetricAttribution(): this;
/**
* Grants permission to create a recommender
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateRecommender.html
*/
toCreateRecommender(): this;
/**
* Grants permission to create a schema
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSchema.html
*/
toCreateSchema(): this;
/**
* Grants permission to create a solution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolution.html
*/
toCreateSolution(): this;
/**
* Grants permission to create a solution version
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_CreateSolutionVersion.html
*/
toCreateSolutionVersion(): this;
/**
* Grants permission to delete a campaign
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteCampaign.html
*/
toDeleteCampaign(): this;
/**
* Grants permission to delete a dataset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteDataset.html
*/
toDeleteDataset(): this;
/**
* Grants permission to delete a dataset group
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteDatasetGroup.html
*/
toDeleteDatasetGroup(): this;
/**
* Grants permission to delete an event tracker
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteEventTracker.html
*/
toDeleteEventTracker(): this;
/**
* Grants permission to delete a filter
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteFilter.html
*/
toDeleteFilter(): this;
/**
* Grants permission to delete a metric attribution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteMetricAttribution.html
*/
toDeleteMetricAttribution(): this;
/**
* Grants permission to delete a recommender
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteRecommender.html
*/
toDeleteRecommender(): this;
/**
* Grants permission to delete a schema
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSchema.html
*/
toDeleteSchema(): this;
/**
* Grants permission to delete a solution including all versions of the solution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DeleteSolution.html
*/
toDeleteSolution(): this;
/**
* Grants permission to describe an algorithm
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeAlgorithm.html
*/
toDescribeAlgorithm(): this;
/**
* Grants permission to describe a batch inference job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeBatchInferenceJob.html
*/
toDescribeBatchInferenceJob(): this;
/**
* Grants permission to describe a batch segment job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeBatchSegmentJob.html
*/
toDescribeBatchSegmentJob(): this;
/**
* Grants permission to describe a campaign
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeCampaign.html
*/
toDescribeCampaign(): this;
/**
* Grants permission to describe a data deletion job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeDataDeletionJob.html
*/
toDescribeDataDeletionJob(): this;
/**
* Grants permission to describe a data insights job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/analyzing-data.html
*/
toDescribeDataInsightsJob(): this;
/**
* Grants permission to describe a dataset
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeDataset.html
*/
toDescribeDataset(): this;
/**
* Grants permission to describe a dataset export job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeDatasetExportJob.html
*/
toDescribeDatasetExportJob(): this;
/**
* Grants permission to describe a dataset group
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeDatasetGroup.html
*/
toDescribeDatasetGroup(): this;
/**
* Grants permission to describe a dataset import job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeDatasetImportJob.html
*/
toDescribeDatasetImportJob(): this;
/**
* Grants permission to describe an event tracker
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeEventTracker.html
*/
toDescribeEventTracker(): this;
/**
* Grants permission to describe a feature transformation
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeFeatureTransformation.html
*/
toDescribeFeatureTransformation(): this;
/**
* Grants permission to describe a filter
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeFilter.html
*/
toDescribeFilter(): this;
/**
* Grants permission to describe a metric attribution
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeMetricAttribution.html
*/
toDescribeMetricAttribution(): this;
/**
* Grants permission to describe a recipe
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeRecipe.html
*/
toDescribeRecipe(): this;
/**
* Grants permission to describe a recommender
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeRecommender.html
*/
toDescribeRecommender(): this;
/**
* Grants permission to describe a schema
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSchema.html
*/
toDescribeSchema(): this;
/**
* Grants permission to describe a solution
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html
*/
toDescribeSolution(): this;
/**
* Grants permission to describe a version of a solution
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html
*/
toDescribeSolutionVersion(): this;
/**
* Grants permission to get a list of recommended actions
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_RS_GetActionRecommendations.html
*/
toGetActionRecommendations(): this;
/**
* Grants permission to get data insights from a data insights job
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/analyzing-data.html
*/
toGetDataInsights(): this;
/**
* Grants permission to get a re-ranked list of recommendations
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_RS_GetPersonalizedRanking.html
*/
toGetPersonalizedRanking(): this;
/**
* Grants permission to get a list of recommendations from a campaign
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_RS_GetRecommendations.html
*/
toGetRecommendations(): this;
/**
* Grants permission to get metrics for a solution version
*
* Access Level: Read
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_GetSolutionMetrics.html
*/
toGetSolutionMetrics(): this;
/**
* Grants permission to list batch inference jobs
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListBatchInferenceJobs.html
*/
toListBatchInferenceJobs(): this;
/**
* Grants permission to list batch segment jobs
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListBatchSegmentJobs.html
*/
toListBatchSegmentJobs(): this;
/**
* Grants permission to list campaigns
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListCampaigns.html
*/
toListCampaigns(): this;
/**
* Grants permission to list data deletion jobs
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListDataDeletionJobs.html
*/
toListDataDeletionJobs(): this;
/**
* Grants permission to list data insights jobs
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/analyzing-data.html
*/
toListDataInsightsJobs(): this;
/**
* Grants permission to list dataset export jobs
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListDatasetExportJobs.html
*/
toListDatasetExportJobs(): this;
/**
* Grants permission to list dataset groups
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListDatasetGroups.html
*/
toListDatasetGroups(): this;
/**
* Grants permission to list dataset import jobs
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListDatasetImportJobs.html
*/
toListDatasetImportJobs(): this;
/**
* Grants permission to list datasets
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListDatasets.html
*/
toListDatasets(): this;
/**
* Grants permission to list event trackers
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListEventTrackers.html
*/
toListEventTrackers(): this;
/**
* Grants permission to list filters
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListFilters.html
*/
toListFilters(): this;
/**
* Grants permission to list metric attribution metrics
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListMetricAttributionMetrics.html
*/
toListMetricAttributionMetrics(): this;
/**
* Grants permission to list metric attributions
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListMetricAttributions.html
*/
toListMetricAttributions(): this;
/**
* Grants permission to list recipes
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListRecipes.html
*/
toListRecipes(): this;
/**
* Grants permission to list recommenders
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListRecommenders.html
*/
toListRecommenders(): this;
/**
* Grants permission to list schemas
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListSchemas.html
*/
toListSchemas(): this;
/**
* Grants permission to list versions of a solution
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html
*/
toListSolutionVersions(): this;
/**
* Grants permission to list solutions
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutions.html
*/
toListSolutions(): this;
/**
* Grants permission to list tags for a resource
*
* Access Level: List
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_ListTagsForResource.html
*/
toListTagsForResource(): this;
/**
* Grants permission to put real time action interaction data
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutActionInteractions.html
*/
toPutActionInteractions(): this;
/**
* Grants permission to ingest Actions data
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutActions.html
*/
toPutActions(): this;
/**
* Grants permission to put real time event data
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutEvents.html
*/
toPutEvents(): this;
/**
* Grants permission to ingest Items data
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutItems.html
*/
toPutItems(): this;
/**
* Grants permission to ingest Users data
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UBS_PutUsers.html
*/
toPutUsers(): this;
/**
* Grants permission to start a recommender
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_StartRecommender.html
*/
toStartRecommender(): this;
/**
* Grants permission to stop a recommender
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_StopRecommender.html
*/
toStopRecommender(): this;
/**
* Grants permission to stop a solution version creation
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_StopSolutionVersionCreation.html
*/
toStopSolutionVersionCreation(): this;
/**
* Grants permission to tag a resource
*
* Access Level: Tagging
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_TagResource.html
*/
toTagResource(): this;
/**
* Grants permission to untag a resource
*
* Access Level: Tagging
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UntagResource.html
*/
toUntagResource(): this;
/**
* Grants permission to update a campaign
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateCampaign.html
*/
toUpdateCampaign(): this;
/**
* Grants permission to update a dataset
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateDataset.html
*/
toUpdateDataset(): this;
/**
* Grants permission to update a metric attribution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateMetricAttribution.html
*/
toUpdateMetricAttribution(): this;
/**
* Grants permission to update a recommender
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateRecommender.html
*/
toUpdateRecommender(): this;
/**
* Grants permission to update a solution
*
* Access Level: Write
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html
*/
toUpdateSolution(): this;
protected accessLevelList: AccessLevelList;
/**
* Adds a resource of type schema to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/how-it-works-dataset-schema.html#schema-examples
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onSchema(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type featureTransformation to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_FeatureTransformation.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onFeatureTransformation(resourceId: string, partition?: string): this;
/**
* Adds a resource of type dataset to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_Dataset.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onDataset(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type datasetGroup to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DatasetGroup.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onDatasetGroup(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type datasetImportJob to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DatasetImportJob.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onDatasetImportJob(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type dataInsightsJob to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/analyzing-data.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onDataInsightsJob(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type datasetExportJob to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DatasetExportJob.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onDatasetExportJob(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type dataDeletionJob to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_DataDeletionJob.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onDataDeletionJob(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type solution to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_Solution.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onSolution(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type campaign to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_Campaign.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onCampaign(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type eventTracker to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_EventTracker.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onEventTracker(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type recipe to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_Recipe.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onRecipe(resourceId: string, partition?: string): this;
/**
* Adds a resource of type algorithm to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_Algorithm.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onAlgorithm(resourceId: string, partition?: string): this;
/**
* Adds a resource of type batchInferenceJob to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_BatchInferenceJob.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onBatchInferenceJob(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type filter to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_Filter.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onFilter(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type recommender to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_Recommender.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onRecommender(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type batchSegmentJob to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_BatchSegmentJob.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onBatchSegmentJob(resourceId: string, account?: string, region?: string, partition?: string): this;
/**
* Adds a resource of type metricAttribution to the statement
*
* https://docs.aws.amazon.com/personalize/latest/dg/API_MetricAttribution.html
*
* @param resourceId - Identifier for the resourceId.
* @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.
*/
onMetricAttribution(resourceId: string, account?: string, region?: string, partition?: string): this;
}