Describes the assessment targets that are specified by the ARNs of the assessment targets.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
describe-assessment-targets
--assessment-target-arns <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--assessment-target-arns
(list)
The ARNs that specifies the assessment targets that you want to describe.
(string)
Syntax:
"string" "string" ...
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
See ‘aws help’ for descriptions of global parameters.
To describe assessment targets
The following describe-assessment-targets
command describes the assessment target with the ARN of arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq
:
aws inspector describe-assessment-targets --assessment-target-arns arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq
Output:
{
"assessmentTargets": [
{
"arn": "arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq",
"createdAt": 1458074191.459,
"name": "ExampleAssessmentTarget",
"resourceGroupArn": "arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI",
"updatedAt": 1458074191.459
}
],
"failedItems": {}
}
For more information, see Amazon Inspector Assessment Targets in the Amazon Inspector guide.
assessmentTargets -> (list)
Information about the assessment targets.
(structure)
Contains information about an Amazon Inspector application. This data type is used as the response element in the DescribeAssessmentTargets action.
arn -> (string)
The ARN that specifies the Amazon Inspector assessment target.
name -> (string)
The name of the Amazon Inspector assessment target.
resourceGroupArn -> (string)
The ARN that specifies the resource group that is associated with the assessment target.
createdAt -> (timestamp)
The time at which the assessment target is created.
updatedAt -> (timestamp)
The time at which UpdateAssessmentTarget is called.
failedItems -> (map)
Assessment target details that cannot be described. An error code is provided for each failed item.
key -> (string)
value -> (structure)
Includes details about the failed items.
failureCode -> (string)
The status code of a failed item.
retryable -> (boolean)
Indicates whether you can immediately retry a request for this item for a specified resource.