Skip to main content

managed_resource_visibilities

Creates, updates, deletes, gets or lists a managed_resource_visibilities resource.

Overview

Namemanaged_resource_visibilities
TypeResource
Idaws.ec2.managed_resource_visibilities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
default_visibilitystringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_resource_visibilityselectregionDryRunRetrieves the managed resource visibility configuration for the account. The response indicates whether managed resources are hidden or visible by default.
modify_managed_resource_visibilityupdateDefaultVisibility, regionDryRunModifies 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.

NameDatatypeDescription
DefaultVisibilitystringThe default visibility setting for managed resources. Valid values: hidden | visible.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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

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

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;