aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 13 forks source link

CloudWatch describe-subscription-filters response doesn't correspond to documentation #515

Closed aBurmeseDev closed 2 weeks ago

aBurmeseDev commented 1 year ago

Originally reported: https://github.com/boto/boto3/issues/3668

aBurmeseDev commented 1 year ago

P86025848

aBurmeseDev commented 2 weeks ago

Service team member responded for anyone that comes across this:

If the customer is creating a subscription filter with Lambda, they will not be having roleArn in the response of describeSubscriptionFilters API. This is because when you use a subscription filter with lambda, you dont provide roleArn.

aws logs put-subscription-filter \
--log-group-name myLogGroup \
--filter-name demo \
--filter-pattern "" \
--destination-arn arn:aws:lambda:region:123456789123:function:helloworld

Documentation: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html#LambdaFunctionExample

Moreover, the rolearn parameter is optional in the response. https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_SubscriptionFilter.html

github-actions[bot] commented 2 weeks ago

This issue is now closed.

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.