def METHOD_NAME(comments: Optional[Sequence[str]] = None,
                                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOriginAccessIdentitiesResult:
    """
    Use this data source to get ARNs, ids and S3 canonical user IDs of Amazon CloudFront origin access identities.
    ## Example Usage
    ### All origin access identities in the account
    ```python
    import pulumi
    import pulumi_aws as aws
    example = aws.cloudfront.get_origin_access_identities()
    ```
    ### Origin access identities filtered by comment/name
    Origin access identities whose comments are `example-comment1`, `example-comment2`
    ```python
    import pulumi
    import pulumi_aws as aws
    example = aws.cloudfront.get_origin_access_identities(comments=[
        "example-comment1",
        "example-comment2",
    ])
    ```
    :param Sequence[str] comments: Filter origin access identities by comment.
    """
    __args__ = dict()
    __args__['comments'] = comments
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('aws:cloudfront/getOriginAccessIdentities:getOriginAccessIdentities', __args__, opts=opts, typ=GetOriginAccessIdentitiesResult).value
    return AwaitableGetOriginAccessIdentitiesResult(
        comments=pulumi.get(__ret__, 'comments'),
        iam_arns=pulumi.get(__ret__, 'iam_arns'),
        id=pulumi.get(__ret__, 'id'),
        ids=pulumi.get(__ret__, 'ids'),
        s3_canonical_user_ids=pulumi.get(__ret__, 's3_canonical_user_ids'))