We recommend new projects start with resources from the AWS provider.
aws-native.organizations.getResourcePolicy
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
You can use AWS::Organizations::ResourcePolicy to delegate policy management for AWS Organizations to specified member accounts to perform policy actions that are by default available only to the management account.
Using getResourcePolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResourcePolicy(args: GetResourcePolicyArgs, opts?: InvokeOptions): Promise<GetResourcePolicyResult>
function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: InvokeOptions): Output<GetResourcePolicyResult>
def get_resource_policy(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
def get_resource_policy_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResourcePolicyResult]
func LookupResourcePolicy(ctx *Context, args *LookupResourcePolicyArgs, opts ...InvokeOption) (*LookupResourcePolicyResult, error)
func LookupResourcePolicyOutput(ctx *Context, args *LookupResourcePolicyOutputArgs, opts ...InvokeOption) LookupResourcePolicyResultOutput
> Note: This function is named LookupResourcePolicy
in the Go SDK.
public static class GetResourcePolicy
{
public static Task<GetResourcePolicyResult> InvokeAsync(GetResourcePolicyArgs args, InvokeOptions? opts = null)
public static Output<GetResourcePolicyResult> Invoke(GetResourcePolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:organizations:getResourcePolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The unique identifier (ID) associated with this resource policy.
- Id string
- The unique identifier (ID) associated with this resource policy.
- id String
- The unique identifier (ID) associated with this resource policy.
- id string
- The unique identifier (ID) associated with this resource policy.
- id str
- The unique identifier (ID) associated with this resource policy.
- id String
- The unique identifier (ID) associated with this resource policy.
getResourcePolicy Result
The following output properties are available:
- Arn string
- The Amazon Resource Name (ARN) of the resource policy.
- Content object
The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
Search the CloudFormation User Guide for
AWS::Organizations::ResourcePolicy
for more information about the expected schema for this property.- Id string
- The unique identifier (ID) associated with this resource policy.
- List<Pulumi.
Aws Native. Outputs. Tag> - A list of tags that you want to attach to the resource policy
- Arn string
- The Amazon Resource Name (ARN) of the resource policy.
- Content interface{}
The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
Search the CloudFormation User Guide for
AWS::Organizations::ResourcePolicy
for more information about the expected schema for this property.- Id string
- The unique identifier (ID) associated with this resource policy.
- Tag
- A list of tags that you want to attach to the resource policy
- arn String
- The Amazon Resource Name (ARN) of the resource policy.
- content Object
The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
Search the CloudFormation User Guide for
AWS::Organizations::ResourcePolicy
for more information about the expected schema for this property.- id String
- The unique identifier (ID) associated with this resource policy.
- List<Tag>
- A list of tags that you want to attach to the resource policy
- arn string
- The Amazon Resource Name (ARN) of the resource policy.
- content any
The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
Search the CloudFormation User Guide for
AWS::Organizations::ResourcePolicy
for more information about the expected schema for this property.- id string
- The unique identifier (ID) associated with this resource policy.
- Tag[]
- A list of tags that you want to attach to the resource policy
- arn str
- The Amazon Resource Name (ARN) of the resource policy.
- content Any
The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
Search the CloudFormation User Guide for
AWS::Organizations::ResourcePolicy
for more information about the expected schema for this property.- id str
- The unique identifier (ID) associated with this resource policy.
- Sequence[root_Tag]
- A list of tags that you want to attach to the resource policy
- arn String
- The Amazon Resource Name (ARN) of the resource policy.
- content Any
The policy document. For AWS CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. AWS CloudFormation always converts a YAML policy to JSON format before submitting it.
Search the CloudFormation User Guide for
AWS::Organizations::ResourcePolicy
for more information about the expected schema for this property.- id String
- The unique identifier (ID) associated with this resource policy.
- List<Property Map>
- A list of tags that you want to attach to the resource policy
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.