organizations_describe_effective_policy: Returns the contents of the effective policy for specified...

Description Usage Arguments Value Request syntax

View source: R/organizations_operations.R

Description

Returns the contents of the effective policy for specified policy type and account. The effective policy is the aggregation of any policies of the specified type that the account inherits, plus any policy of that type that is directly attached to the account.

This operation applies only to policy types other than service control policies (SCPs).

For more information about policy inheritance, see How Policy Inheritance Works in the AWS Organizations User Guide.

This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an AWS service.

Usage

1

Arguments

PolicyType

[required] The type of policy that you want information about. You can specify one of the following values:

TargetId

When you're signed in as the management account, specify the ID of the account that you want details about. Specifying an organization root or organizational unit (OU) as the target is not supported.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
list(
  EffectivePolicy = list(
    PolicyContent = "string",
    LastUpdatedTimestamp = as.POSIXct(
      "2015-01-01"
    ),
    TargetId = "string",
    PolicyType = "TAG_POLICY"|"BACKUP_POLICY"|"AISERVICES_OPT_OUT_POLICY"
  )
)

Request syntax

1
2
3
4
svc$describe_effective_policy(
  PolicyType = "TAG_POLICY"|"BACKUP_POLICY"|"AISERVICES_OPT_OUT_POLICY",
  TargetId = "string"
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.