1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. organizations
  5. getResourcePolicy

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.organizations.getResourcePolicy

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    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.
    Tags List<Pulumi.AwsNative.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.
    Tags 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.
    tags 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.
    tags 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.
    tags 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.
    tags List<Property Map>
    A list of tags that you want to attach to the resource policy

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi