EC2 / Client / modify_managed_resource_visibility
modify_managed_resource_visibility¶
- EC2.Client.modify_managed_resource_visibility(**kwargs)¶
Modifies the managed resource visibility configuration for the account. Use this operation to control whether managed resources are hidden or visible by default. Visibility settings are account-wide and affect all IAM principals uniformly. Hidden resources remain fully operational and billable.
See also: AWS API Documentation
Request Syntax
response = client.modify_managed_resource_visibility( DryRun=True|False, DefaultVisibility='hidden'|'visible' )
- Parameters:
DryRun (boolean) – Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.DefaultVisibility (string) –
[REQUIRED]
The default visibility setting for managed resources. Valid values:
hidden|visible.
- Return type:
dict
- Returns:
Response Syntax
{ 'Visibility': { 'DefaultVisibility': 'hidden'|'visible' } }
Response Structure
(dict) –
Visibility (dict) –
The updated managed resource visibility settings for the account.
DefaultVisibility (string) –
The default visibility setting for managed resources. A value of
hiddenindicates that managed resources are not included in Describe operation responses by default. A value ofvisibleindicates that managed resources are included by default.