import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Inspector extends PolicyStatement { public servicePrefix = 'inspector' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to assign attributes (key and value pairs) to the findings that are specified by the ARNs of the findings
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_AddAttributesToFindings.html
     */ public toAddAttributesToFindings ( ) { return this . to ( 'AddAttributesToFindings' ) ; } /**
     * Grants permission to create a new assessment target using the ARN of the resource group that is generated by CreateResourceGroup
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_CreateAssessmentTarget.html
     */ public toCreateAssessmentTarget ( ) { return this . to ( 'CreateAssessmentTarget' ) ; } /**
     * Grants permission to create an assessment template for the assessment target that is specified by the ARN of the assessment target
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_CreateAssessmentTemplate.html
     */ public toCreateAssessmentTemplate ( ) { return this . to ( 'CreateAssessmentTemplate' ) ; } /**
     * Grants permission to start the generation of an exclusions preview for the specified assessment template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_CreateExclusionsPreview.html
     */ public toCreateExclusionsPreview ( ) { return this . to ( 'CreateExclusionsPreview' ) ; } /**
     * Grants permission to create a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Amazon Inspector assessment target
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_CreateResourceGroup.html
     */ public toCreateResourceGroup ( ) { return this . to ( 'CreateResourceGroup' ) ; } /**
     * Grants permission to delete the assessment run that is specified by the ARN of the assessment run
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DeleteAssessmentRun.html
     */ public toDeleteAssessmentRun ( ) { return this . to ( 'DeleteAssessmentRun' ) ; } /**
     * Grants permission to delete the assessment target that is specified by the ARN of the assessment target
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DeleteAssessmentTarget.html
     */ public toDeleteAssessmentTarget ( ) { return this . to ( 'DeleteAssessmentTarget' ) ; } /**
     * Grants permission to delete the assessment template that is specified by the ARN of the assessment template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DeleteAssessmentTemplate.html
     */ public toDeleteAssessmentTemplate ( ) { return this . to ( 'DeleteAssessmentTemplate' ) ; } /**
     * Grants permission to describe the assessment runs that are specified by the ARNs of the assessment runs
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeAssessmentRuns.html
     */ public toDescribeAssessmentRuns ( ) { return this . to ( 'DescribeAssessmentRuns' ) ; } /**
     * Grants permission to describe the assessment targets that are specified by the ARNs of the assessment targets
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeAssessmentTargets.html
     */ public toDescribeAssessmentTargets ( ) { return this . to ( 'DescribeAssessmentTargets' ) ; } /**
     * Grants permission to describe the assessment templates that are specified by the ARNs of the assessment templates
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeAssessmentTemplates.html
     */ public toDescribeAssessmentTemplates ( ) { return this . to ( 'DescribeAssessmentTemplates' ) ; } /**
     * Grants permission to describe the IAM role that enables Amazon Inspector to access your AWS account
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeCrossAccountAccessRole.html
     */ public toDescribeCrossAccountAccessRole ( ) { return this . to ( 'DescribeCrossAccountAccessRole' ) ; } /**
     * Grants permission to describe the exclusions that are specified by the exclusions' ARNs
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeExclusions.html
     */ public toDescribeExclusions ( ) { return this . to ( 'DescribeExclusions' ) ; } /**
     * Grants permission to describe the findings that are specified by the ARNs of the findings
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeFindings.html
     */ public toDescribeFindings ( ) { return this . to ( 'DescribeFindings' ) ; } /**
     * Grants permission to describe the resource groups that are specified by the ARNs of the resource groups
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeResourceGroups.html
     */ public toDescribeResourceGroups ( ) { return this . to ( 'DescribeResourceGroups' ) ; } /**
     * Grants permission to describe the rules packages that are specified by the ARNs of the rules packages
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_DescribeRulesPackages.html
     */ public toDescribeRulesPackages ( ) { return this . to ( 'DescribeRulesPackages' ) ; } /**
     * Grants permission to produce an assessment report that includes detailed and comprehensive results of a specified assessment run
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_GetAssessmentReport.html
     */ public toGetAssessmentReport ( ) { return this . to ( 'GetAssessmentReport' ) ; } /**
     * Grants permission to retrieve the exclusions preview (a list of ExclusionPreview objects) specified by the preview token
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_GetExclusionsPreview.html
     */ public toGetExclusionsPreview ( ) { return this . to ( 'GetExclusionsPreview' ) ; } /**
     * Grants permission to get information about the data that is collected for the specified assessment run
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_GetTelemetryMetadata.html
     */ public toGetTelemetryMetadata ( ) { return this . to ( 'GetTelemetryMetadata' ) ; } /**
     * Grants permission to list the agents of the assessment runs that are specified by the ARNs of the assessment runs
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListAssessmentRunAgents.html
     */ public toListAssessmentRunAgents ( ) { return this . to ( 'ListAssessmentRunAgents' ) ; } /**
     * Grants permission to list the assessment runs that correspond to the assessment templates that are specified by the ARNs of the assessment templates
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListAssessmentRuns.html
     */ public toListAssessmentRuns ( ) { return this . to ( 'ListAssessmentRuns' ) ; } /**
     * Grants permission to list the ARNs of the assessment targets within this AWS account
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListAssessmentTargets.html
     */ public toListAssessmentTargets ( ) { return this . to ( 'ListAssessmentTargets' ) ; } /**
     * Grants permission to list the assessment templates that correspond to the assessment targets that are specified by the ARNs of the assessment targets
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListAssessmentTemplates.html
     */ public toListAssessmentTemplates ( ) { return this . to ( 'ListAssessmentTemplates' ) ; } /**
     * Grants permission to list all the event subscriptions for the assessment template that is specified by the ARN of the assessment template
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListEventSubscriptions.html
     */ public toListEventSubscriptions ( ) { return this . to ( 'ListEventSubscriptions' ) ; } /**
     * Grants permission to list exclusions that are generated by the assessment run
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListExclusions.html
     */ public toListExclusions ( ) { return this . to ( 'ListExclusions' ) ; } /**
     * Grants permission to list findings that are generated by the assessment runs that are specified by the ARNs of the assessment runs
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListFindings.html
     */ public toListFindings ( ) { return this . to ( 'ListFindings' ) ; } /**
     * Grants permission to list all available Amazon Inspector rules packages
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListRulesPackages.html
     */ public toListRulesPackages ( ) { return this . to ( 'ListRulesPackages' ) ; } /**
     * Grants permission to list all tags associated with an assessment template
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_ListTagsForResource.html
     */ public toListTagsForResource ( ) { return this . to ( 'ListTagsForResource' ) ; } /**
     * Grants permission to preview the agents installed on the EC2 instances that are part of the specified assessment target
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_PreviewAgents.html
     */ public toPreviewAgents ( ) { return this . to ( 'PreviewAgents' ) ; } /**
     * Grants permission to register the IAM role that Amazon Inspector uses to list your EC2 instances at the start of the assessment run or when you call the PreviewAgents action
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_RegisterCrossAccountAccessRole.html
     */ public toRegisterCrossAccountAccessRole ( ) { return this . to ( 'RegisterCrossAccountAccessRole' ) ; } /**
     * Grants permission to remove entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_RemoveAttributesFromFindings.html
     */ public toRemoveAttributesFromFindings ( ) { return this . to ( 'RemoveAttributesFromFindings' ) ; } /**
     * Grants permission to set tags (key and value pairs) to the assessment template that is specified by the ARN of the assessment template
     *
     * Access Level: Tagging
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_SetTagsForResource.html
     */ public toSetTagsForResource ( ) { return this . to ( 'SetTagsForResource' ) ; } /**
     * Grants permission to start the assessment run specified by the ARN of the assessment template
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_StartAssessmentRun.html
     */ public toStartAssessmentRun ( ) { return this . to ( 'StartAssessmentRun' ) ; } /**
     * Grants permission to stop the assessment run that is specified by the ARN of the assessment run
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_StopAssessmentRun.html
     */ public toStopAssessmentRun ( ) { return this . to ( 'StopAssessmentRun' ) ; } /**
     * Grants permission to enable the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_SubscribeToEvent.html
     */ public toSubscribeToEvent ( ) { return this . to ( 'SubscribeToEvent' ) ; } /**
     * Grants permission to disable the process of sending Amazon Simple Notification Service (SNS) notifications about a specified event to a specified SNS topic
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_UnsubscribeFromEvent.html
     */ public toUnsubscribeFromEvent ( ) { return this . to ( 'UnsubscribeFromEvent' ) ; } /**
     * Grants permission to update the assessment target that is specified by the ARN of the assessment target
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/inspector/latest/APIReference/API_UpdateAssessmentTarget.html
     */ public toUpdateAssessmentTarget ( ) { return this . to ( 'UpdateAssessmentTarget' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'AddAttributesToFindings' , 'CreateAssessmentTarget' , 'CreateAssessmentTemplate' , 'CreateExclusionsPreview' , 'CreateResourceGroup' , 'DeleteAssessmentRun' , 'DeleteAssessmentTarget' , 'DeleteAssessmentTemplate' , 'RegisterCrossAccountAccessRole' , 'RemoveAttributesFromFindings' , 'StartAssessmentRun' , 'StopAssessmentRun' , 'SubscribeToEvent' , 'UnsubscribeFromEvent' , 'UpdateAssessmentTarget' ] , Read : [ 'DescribeAssessmentRuns' , 'DescribeAssessmentTargets' , 'DescribeAssessmentTemplates' , 'DescribeCrossAccountAccessRole' , 'DescribeExclusions' , 'DescribeFindings' , 'DescribeResourceGroups' , 'DescribeRulesPackages' , 'GetAssessmentReport' , 'GetExclusionsPreview' , 'GetTelemetryMetadata' , 'ListTagsForResource' , 'PreviewAgents' ] , List : [ 'ListAssessmentRunAgents' , 'ListAssessmentRuns' , 'ListAssessmentTargets' , 'ListAssessmentTemplates' , 'ListEventSubscriptions' , 'ListExclusions' , 'ListFindings' , 'ListRulesPackages' ] , Tagging : [ 'SetTagsForResource' ] } ; }