aws_sdk_wrapper
Execute AWS service operations by specifying service, operation, region, profile, and parameters to interact with any AWS API.
Instructions
A generic AWS SDK wrapper to call any AWS service and operation.
Args:
service_name (str): The name of the AWS service to call (e.g. 's3', 'ec2', 'rds', etc.).
operation_name (str): The name of the operation to call (e.g. 'list_buckets', 'describe_instances', etc.).
region_name (str): The AWS region to use.
profile_name (str): The name of the AWS profile to use.
operation_kwargs (dict): The arguments to pass to the operation.
Returns:
Any: The response from the AWS service.
Example:
aws_sdk_wrapper('ce', 'get_cost_and_usage_with_resources', region_name='us-east-1', profile_name='my_profile', operation_kwargs={'TimePeriod': {'Start': '2023-01-01', 'End': '2023-01-31'}, 'Granularity': 'MONTHLY', 'GroupBy': [{'Type': 'DIMENSION', 'Key': 'SERVICE'}], 'Metrics': ['BlendedCost']})
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | Yes | ||
| operation_name | Yes | ||
| region_name | Yes | ||
| profile_name | Yes | ||
| operation_kwargs | Yes |