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 PutEvidence API operation.

Syntax

Write-ASUREvidence
-ConnectionId <String>
-Content <Byte[]>
-ContentMIMEType <String>
-ControlReference <ControlReference[]>
-Description <String>
-EnvironmentArn <String>
-EvidenceId <String>
-LinkMode <LinkMode>
-Project <String>
-Purpose <EvidencePurpose>
-Reference <String>
-Title <String>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonAssuranceConfig>

Description

Adds evidence to support a compliance assessment. To add a new version of existing evidence, specify evidenceId. Provide either the file content in content or a link to the document in reference, but not both.

Parameters

-ClientConfig <AmazonAssuranceConfig>
Amazon.PowerShell.Cmdlets.ASUR.AmazonAssuranceClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ConnectionId <String>
The ID of the connection to read reference through, as returned by ListEnvironmentConnections. Each new version of the document uses this connection too.Use this parameter only with reference.If you omit this parameter, the operation uses the single connection that can read the document. If the environment has more than one connection to the same provider, specify this parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Content <Byte[]>
The file content. Required for a direct upload. You can't specify both content and reference.The cmdlet will automatically convert the supplied parameter of type string, string[], System.IO.FileInfo or System.IO.Stream to byte[] before supplying it to the service.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ContentMIMEType <String>
The declared Multipurpose Internet Mail Extensions (MIME) type of the file, for example application/pdf. AWS Assurance checks the declared type against the actual file content. For the list of registered types, see Media Types on the IANA website.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ControlReference <ControlReference[]>
The controls to link the evidence to when you add it. You can specify control links only when purpose is CONTROL_EVIDENCE. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesControlReferences
-Description <String>
The optional description of the evidence.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EnvironmentArn <String>
The Amazon Resource Name (ARN) of this governance environment.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-EvidenceId <String>
The ID of existing evidence. Specify it to add a new version of that evidence. Omit it to create new evidence.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-LinkMode <LinkMode>
Specifies whether AWS Assurance analyzes the evidence and links it to relevant controls. A link shows that the evidence is relevant to a control, not that you meet the control. An assessment determines whether you meet the control. Specify one of the following values:
  • AUTO – AWS Assurance analyzes the evidence and adds control links.
  • MANUAL – AWS Assurance doesn't analyze the evidence. You add control links yourself.
Automatic linking is available only to some accounts during the preview. If you omit this parameter, the default is AUTO for those accounts and MANUAL for all other accounts. Evidence whose purpose isn't CONTROL_EVIDENCE always has the mode DISABLED, which means that it can't be linked to controls. You can't specify AUTO for that evidence.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Project <String>
Project scope for the evidence.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-Purpose <EvidencePurpose>
What the evidence is for. Specify one of the following values:
  • CONTROL_EVIDENCE – Evidence that supports controls.
  • FRAMEWORK_SOURCE – The document that you create a custom framework from. AWS Assurance never links this evidence to controls.
You can't specify SCAN_EVIDENCE. If you omit this parameter, a new version keeps the purpose of the existing evidence, and new evidence uses CONTROL_EVIDENCE. You can't change the purpose in a new version.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Reference <String>
A link to the document. You can't specify both reference and content. Supported formats:
  • For a file in GitHub, a link in the form https://github.com/{owner}/{repo}/blob/{ref}/{path}.
  • For a document in SharePoint, any link to the document in the form https://{tenant}.sharepoint.com/{path}, including a sharing link.
  • For an object in Amazon S3, a URI in the form s3://{bucket}/{key}. The bucket must be the evidence bucket configured for the environment.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Assurance.Model.PutEvidenceResponse). Specifying the name of a property of type Amazon.Assurance.Model.PutEvidenceResponse 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)
-Title <String>
The title of the evidence. When you create new evidence, AWS Assurance derives the evidence ID from the title, in the form assurance://{sanitized-title}.Required when you specify content. Optional when you specify reference. If you omit it, AWS Assurance uses the name of the referenced document.
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 an Amazon.Assurance.Model.PutEvidenceResponse object containing multiple properties.

Supported Version

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