AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the AWS Assurance ListAssessmentOutcomes API operation.

Syntax

Get-ASURAssessmentOutcomeList
-AggregationLevel <AggregationLevel>
-ControlId <String>
-EndTime <DateTime>
-EnvironmentArn <String>
-Framework <String>
-FrameworkVersion <String>
-Period <AssessmentOutcomePeriod>
-Project <String>
-ResourceIdentifier <String>
-StartTime <DateTime>
-Statistic <AssessmentOutcomeStat>
-MaxResult <Int32>
-NextToken <String>
-Select <String>
-NoAutoIteration <SwitchParameter>
-ClientConfig <AmazonAssuranceConfig>

Description

Returns the compliance score of a framework in a project over a time range. You can narrow the score to one control, one resource, or one control on one resource. You can also get one score per control for a resource. The operation returns either the current score or a history of scores, depending on whether you specify a time range.
  • Current score. If you don't specify startTime or endTime, and you use the default LAST statistic, the operation returns the most recent score as a single data point. Its timestamp is the time of the assessment that produced the score. This option isn't available when you get one score per control.
  • History. If you specify startTime, endTime, or both, or you specify the MAX, MIN, or AVG statistic, the operation divides the time range into buckets of one hour or one day (set by period). It returns one data point for each bucket that has a score, newest first. Buckets with no score are left out, so match each data point to its bucket by timestamp.
Specify times in UTC. The time range includes startTime and excludes endTime.

This cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration.

Parameters

-AggregationLevel <AggregationLevel>
The level of the scores in each point. Specify one of the following values:
  • FRAMEWORK – One score for the framework. This is the default.
  • CONTROL – One score for each control that has a score in the bucket. The controls can differ from one point to the next. Specify a window with startTime and endTime, or use the MAX, MIN, or AVG statistic.
You can specify this parameter only together with resourceIdentifier, and not together with controlId.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientConfig <AmazonAssuranceConfig>
Amazon.PowerShell.Cmdlets.ASUR.AmazonAssuranceClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ControlId <String>
Narrows the series to one control's score over time. Omit for the whole framework's score over time.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EndTime <DateTime>
The end of the window, exclusive, in UTC. The default is the time of the request. endTime must be later than startTime. To get the most recent score instead of a series, omit both startTime and endTime.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EnvironmentArn <String>
The ARN of the environment.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-Framework <String>
The name of the framework.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-FrameworkVersion <String>
The version of the framework.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-MaxResult <Int32>
The maximum number of points to return on one page. If you omit it, the operation uses its default page size.
Note: In AWSPowerShell and AWSPowerShell.NetCore this parameter is used to limit the total number of items returned by the cmdlet.
In AWS.Tools this parameter is simply passed to the service to specify how many items should be returned by each service call.
Pipe the output of this cmdlet into Select-Object -First to terminate retrieving data pages early and control the number of items returned.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesMaxItems, MaxResults
-NextToken <String>
The token for the next page of results, from a previous response.
Note: This parameter is only used if you are manually controlling output pagination of the service API call.
'NextToken' is only returned by the cmdlet when '-Select *' is specified. In order to manually control output pagination, set '-NextToken' to null for the first call then set the 'NextToken' using the same property output from the previous call for subsequent calls.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NoAutoIteration <SwitchParameter>
By default the cmdlet will auto-iterate and retrieve all results to the pipeline by performing multiple service calls. If set, the cmdlet will retrieve only the next 'page' of results using the value of NextToken as the start point.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
The width of each time bucket. Valid values are ONE_HOUR and ONE_DAY. The default is ONE_DAY. This parameter has no effect when the response is the most recent score.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Project <String>
The project the request is scoped to.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-ResourceIdentifier <String>
Use this parameter to narrow the series to one resource. Specify the resource identifier that ListDiscoveredResources returns, which is its ARN if one exists, or its AWS Config resource type and resource ID (separated by a slash) otherwise. If you omit this parameter, the series reports the score for the whole project.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is 'AssessmentOutcomes'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Assurance.Model.ListAssessmentOutcomesResponse). Specifying the name of a property of type Amazon.Assurance.Model.ListAssessmentOutcomesResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-StartTime <DateTime>
The start of the window, inclusive, in UTC. The default is 7 days before endTime. To get the most recent score instead of a series, omit both startTime and endTime.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
How AWS Assurance combines the scores of the assessments in a bucket. Specify one of the following values:
  • LAST – The score of the most recent assessment in the bucket. If that assessment has no score, the bucket is left out. This is the default.
  • MAX – The highest score in the bucket.
  • MIN – The lowest score in the bucket.
  • AVG – The average score in the bucket. Each assessment counts once, so assessments that run more often carry more weight.
At CONTROL aggregation, the statistic is applied to each control separately.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns a collection of Amazon.Assurance.Model.AssessmentOutcomeDataPoint objects. The service call response (type Amazon.Assurance.Model.ListAssessmentOutcomesResponse) can be returned by specifying '-Select *'.

Supported Version

AWS Tools for PowerShell: 2.x.y.z