Skip to content

Modify Managed Resource Visibility

ec2_modify_managed_resource_visibility R Documentation

Modifies the managed resource visibility configuration for the account

Description

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.

Usage

ec2_modify_managed_resource_visibility(DryRun, DefaultVisibility)

Arguments

DryRun

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.

DefaultVisibility

[required] The default visibility setting for managed resources. Valid values: hidden | visible.

Value

A list with the following syntax:

list(
  Visibility = list(
    DefaultVisibility = "hidden"|"visible"
  )
)

Request syntax

svc$modify_managed_resource_visibility(
  DryRun = TRUE|FALSE,
  DefaultVisibility = "hidden"|"visible"
)