Backup update_regions_settings doesnt support all services #3758
Labels
backup
bug
This issue is a confirmed bug.
p3
This is a minor priority issue
response-requested
Waiting on additional information or feedback.
Describe the bug
boto3 client.update_regions_settings on backup client doesn't support all service type available on describe_regions_settings, foe example neptune or redshift.
Doing the same using aws cli works fine.
Example code:
backup_client = boto3.client("backup")
backup_client.update_region_settings(
ResourceTypeOptInPreference={"Neptune": False}
)
Throws:
botocore.errorfactory.InvalidParameterValueException: An error occurred (InvalidParameterValueException) when calling the UpdateRegionSettings operation: Element present in resource type opt in preference has invalid values. Please use describeRegionSettings API to know the supported resource types
Example of describe_region_settings:
{'ResponseMetadata': {'RequestId': '0699bf20-0b8b-486b-96e5-59416499cf54', 'HTTPStatusCode': 200, 'HTTPHeaders': {'date': 'Thu, 22 Jun 2023 15:16:08 GMT', 'content-type': 'application/json', 'content-length': '345', 'connection': 'keep-alive', 'x-amzn-requestid': '0699bf20-0b8b-486b-96e5-59416499cf54'}, 'RetryAttempts': 0}, 'ResourceTypeOptInPreference': {'Aurora': False, 'CloudFormation': False, 'DocumentDB': False, 'DynamoDB': True, 'EBS': True, 'EC2': True, 'EFS': True, 'FSx': False, 'Neptune': False, 'RDS': True, 'Redshift': True, 'S3': True, 'SAP HANA on Amazon EC2': False, 'Storage Gateway': True, 'VirtualMachine': False}, 'ResourceTypeManagementPreference': {'DynamoDB': True, 'EFS': True}}
Expected Behavior
That it accepts all AWS Backup services
Current Behavior
Example code:
backup_client = boto3.client("backup")
backup_client.update_region_settings(
ResourceTypeOptInPreference={"Neptune": False}
)
Throws:
botocore.errorfactory.InvalidParameterValueException: An error occurred (InvalidParameterValueException) when calling the UpdateRegionSettings operation: Element present in resource type opt in preference has invalid values. Please use describeRegionSettings API to know the supported resource types
Reproduction Steps
backup_client = boto3.client("backup")
backup_client.update_region_settings(
ResourceTypeOptInPreference={"Neptune": False}
)
Possible Solution
No response
Additional Information/Context
No response
SDK version used
python3.9 - boto3 1.26.158
Environment details (OS name and version, etc.)
windows 10
The text was updated successfully, but these errors were encountered: