Skip to content

describe_ipam_resource_discovery_associations async

describe_ipam_resource_discovery_associations(
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional[Boolean] = None,
    ipam_resource_discovery_association_ids: Optional[ValueStringList] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[IpamMaxResults] = None,
    filters: Optional[FilterList] = None,
) -> DescribeIpamResourceDiscoveryAssociationsResult

Describes resource discovery association with an Amazon VPC IPAM. An associated resource discovery is a resource discovery that has been associated with an IPAM..

Parameters:

  • dry_run (Optional[Boolean], default: None ) –

    A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • ipam_resource_discovery_association_ids (Optional[ValueStringList], default: None ) –

    The resource discovery association IDs.

  • next_token (Optional[NextToken], default: None ) –

    Specify the pagination token from a previous request to retrieve the next page of results.

  • max_results (Optional[IpamMaxResults], default: None ) –

    The maximum number of resource discovery associations to return in one page of results.

  • filters (Optional[FilterList], default: None ) –

    The resource discovery association filters.

Raises:

Source code in docs_src/capo_ec2/_services/async_ec2.py
async def describe_ipam_resource_discovery_associations(
    self,
    *,
    config_overrides: Optional[AsyncEC2ClientConfig] = None,
    dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
    ipam_resource_discovery_association_ids: Optional[
        "capo_ec2.types.value_string_list.ValueStringList"
    ] = None,
    next_token: Optional["capo_ec2.types.next_token.NextToken"] = None,
    max_results: Optional["capo_ec2.types.ipam_max_results.IpamMaxResults"] = None,
    filters: Optional["capo_ec2.types.filter_list.FilterList"] = None,
) -> "capo_ec2.types.describe_ipam_resource_discovery_associations_result.DescribeIpamResourceDiscoveryAssociationsResult":
    """<p>Describes resource discovery association with an Amazon VPC IPAM. An associated resource discovery is a resource discovery that has been associated with an IPAM..</p>

    Args:
        dry_run: <p>A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
        ipam_resource_discovery_association_ids: <p>The resource discovery association IDs.</p>
        next_token: <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
        max_results: <p>The maximum number of resource discovery associations to return in one page of results.</p>
        filters: <p>The resource discovery association filters.</p>

    Raises:
        capo_ec2.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ec2.types.describe_ipam_resource_discovery_associations_request.DescribeIpamResourceDiscoveryAssociationsRequest]",
    ) -> AsyncOperationResponse[
        "capo_ec2.types.describe_ipam_resource_discovery_associations_result.DescribeIpamResourceDiscoveryAssociationsResult"
    ]:
        import capo_ec2._operations.amazon_ec2.describe_ipam_resource_discovery_associations

        (
            output,
            http_response,
        ) = await capo_ec2._operations.amazon_ec2.describe_ipam_resource_discovery_associations.async_describe_ipam_resource_discovery_associations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DescribeIpamResourceDiscoveryAssociations"),
    )
    input_: capo_ec2.types.describe_ipam_resource_discovery_associations_request.DescribeIpamResourceDiscoveryAssociationsRequest = {}
    if dry_run is not None:
        input_["dry_run"] = dry_run
    if ipam_resource_discovery_association_ids is not None:
        input_["ipam_resource_discovery_association_ids"] = (
            ipam_resource_discovery_association_ids
        )
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if filters is not None:
        input_["filters"] = filters

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output