preview_agents
¶
preview_agents(
preview_agents_arn: Arn,
*,
config_overrides: Optional[InspectorClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[PreviewAgentsMaxResults] = None,
) -> PreviewAgentsResponse
Previews the agents installed on the EC2 instances that are part of the specified assessment target.
Parameters:
-
preview_agents_arn(Arn) –The ARN of the assessment target whose agents you want to preview.
-
next_token(Optional[PaginationToken], default:None) –You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the PreviewAgents action. Subsequent calls to the action fill nextToken in the request with the value of NextToken from the previous response to continue listing data.
-
max_results(Optional[PreviewAgentsMaxResults], default:None) –You can use this parameter to indicate the maximum number of items you want in the response. The default value is 10. The maximum value is 500.
Raises:
-
AccessDeniedException–You do not have required permissions to access the requested resource.
-
InternalException–Internal server error.
-
InvalidCrossAccountRoleException–Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
NoSuchEntityException–The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Preview agents Previews the agents installed on the EC2 instances that are part of the specified assessment target.
>>> client.preview_agents(preview_agents_arn='arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq', max_results=123)
Source code in docs_src/capo_inspector/_services/inspector.py
2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 | |