list_environment_connections
async
¶
list_environment_connections(
environment_arn: EnvironmentArn,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
filters: Optional[ConnectionFilterList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListEnvironmentConnectionsOutput
Lists the connections for a governance environment. To return only some connections, specify filters.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
filters(Optional[ConnectionFilterList], default:None) –The criteria to filter connections by. Criteria for different attributes are combined with AND, and values within one criterion are combined with OR. If you omit this parameter, the response includes every connection in the environment.
-
max_results(Optional[MaxResults], default:None) –The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the
nextTokenvalue from the response to get the next page. -
next_token(Optional[PaginationToken], default:None) –The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List all connections Lists all connections configured for the payments team's governance environment.
>>> await client.list_environment_connections(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111')
List S3 connections only
Lists only Amazon S3 connections by filtering on connection-type.
>>> await client.list_environment_connections(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', filters=[{'name': 'connection-type', 'values': ['s3']}])
Source code in docs_src/capo_assurance/_services/async_assurance.py
5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 | |