AWS Native is in preview. AWS Classic is fully supported.
aws-native.vpclattice.getResourcePolicy
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Retrieves information about the resource policy. The resource policy is an IAM policy created by AWS RAM on behalf of the resource owner when they share a resource.
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(resource_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
def get_resource_policy_output(resource_arn: 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:vpclattice:getResourcePolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Arn string - An IAM policy.
- Resource
Arn string - An IAM policy.
- resource
Arn String - An IAM policy.
- resource
Arn string - An IAM policy.
- resource_
arn str - An IAM policy.
- resource
Arn String - An IAM policy.
getResourcePolicy Result
The following output properties are available:
- Policy object
The Amazon Resource Name (ARN) of the service network or service.
Search the CloudFormation User Guide for
AWS::VpcLattice::ResourcePolicy
for more information about the expected schema for this property.
- Policy interface{}
The Amazon Resource Name (ARN) of the service network or service.
Search the CloudFormation User Guide for
AWS::VpcLattice::ResourcePolicy
for more information about the expected schema for this property.
- policy Object
The Amazon Resource Name (ARN) of the service network or service.
Search the CloudFormation User Guide for
AWS::VpcLattice::ResourcePolicy
for more information about the expected schema for this property.
- policy any
The Amazon Resource Name (ARN) of the service network or service.
Search the CloudFormation User Guide for
AWS::VpcLattice::ResourcePolicy
for more information about the expected schema for this property.
- policy Any
The Amazon Resource Name (ARN) of the service network or service.
Search the CloudFormation User Guide for
AWS::VpcLattice::ResourcePolicy
for more information about the expected schema for this property.
- policy Any
The Amazon Resource Name (ARN) of the service network or service.
Search the CloudFormation User Guide for
AWS::VpcLattice::ResourcePolicy
for more information about the expected schema for this property.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.