preview_agents
async
¶
preview_agents(
preview_agents_arn: Arn,
*,
config_overrides: Optional[AsyncInspectorClientConfig] = 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.
>>> await 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/async_inspector.py
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 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 | |