managed_resource_visibilities
Creates, updates, deletes, gets or lists a managed_resource_visibilities resource.
Overview
| Name | managed_resource_visibilities |
| Type | Resource |
| Id | aws.ec2.managed_resource_visibilities |
Fields
The following fields are returned by SELECT queries:
- get_managed_resource_visibility
| Name | Datatype | Description |
|---|---|---|
default_visibility | string | The default visibility setting for managed resources. A value of hidden indicates that managed resources are not included in Describe operation responses by default. A value of visible indicates that managed resources are included by default. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_managed_resource_visibility | select | region | DryRun | Retrieves the managed resource visibility configuration for the account. The response indicates whether managed resources are hidden or visible by default. |
modify_managed_resource_visibility | update | DefaultVisibility, region | DryRun | 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
DefaultVisibility | string | The default visibility setting for managed resources. Valid values: hidden | visible. |
region | string | AWS region (default: us-east-1) |
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 is UnauthorizedOperation. |
SELECT examples
- get_managed_resource_visibility
Retrieves the managed resource visibility configuration for the account. The response indicates whether managed resources are hidden or visible by default.
SELECT
default_visibility
FROM aws.ec2.managed_resource_visibilities
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;
UPDATE examples
- modify_managed_resource_visibility
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.
UPDATE aws.ec2.managed_resource_visibilities
SET
-- No updatable properties
WHERE
DefaultVisibility = '{{ DefaultVisibility }}' --required
AND region = '{{ region }}' --required
AND DryRun = {{ DryRun}}
RETURNING
default_visibility;