Set SNS Return Subscription ARN
The Amazon SNS subscribe operation by default returns either the subscription ARN (if the subscribed endpoint is managed by AWS and it belongs to the same account as the topic) or the phrase: `PENDING CONFIRMATION`. If you want to always return the subscription ARN, set the `ReturnSubscriptionArn` argument to `True`.
def set_return_subscription_noncompliant(self,
                                         sqs_arn: str,
                                         topic_arn: str) -> None:
    import botocore
    session = botocore.session.get_session()
    sns_client = session.create_client('sns', 'us-west-2')
    # Noncompliant: fails to set the 'ReturnSubscriptionArn' argument to
    # 'True' while returning the subscription ARN.
    sns_client.subscribe(TopicArn=topic_arn, Protocol='sqs',
                         Endpoint=sqs_arn)
def set_return_subscription_compliant(self,
                                      sqs_arn: str,
                                      topic_arn: str) -> None:
    import botocore
    session = botocore.session.get_session()
    sns_client = session.create_client('sns', 'us-west-2')
    # Compliant: sets the 'ReturnSubscriptionArn' argument to 'True'
    # while returning the subscription ARN.
    sns_client.subscribe(TopicArn=topic_arn, Protocol='sqs',
                         Endpoint=sqs_arn, ReturnSubscriptionArn=True)