def METHOD_NAME(project: Optional[pulumi.Input[Optional[str]]] = None,
                                       subscription: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSubscriptionIamPolicyResult]:
    """
    Retrieves the current IAM policy data for a Pubsub subscription.
    ## example
    ```python
    import pulumi
    import pulumi_gcp as gcp
    policy = gcp.pubsub.get_subscription_iam_policy(subscription=google_pubsub_subscription["subscription"]["id"])
    ```
    :param str project: The project in which the resource belongs. If it
           is not provided, the provider project is used.
    :param str subscription: The subscription name or id to bind to attach IAM policy to.
    """
    ...