1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ram
  5. getPermission

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

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.ram.getPermission

Explore with Pulumi AI

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

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource type definition for AWS::RAM::Permission

Using getPermission

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 getPermission(args: GetPermissionArgs, opts?: InvokeOptions): Promise<GetPermissionResult>
function getPermissionOutput(args: GetPermissionOutputArgs, opts?: InvokeOptions): Output<GetPermissionResult>
Copy
def get_permission(arn: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPermissionResult
def get_permission_output(arn: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetPermissionResult]
Copy
func LookupPermission(ctx *Context, args *LookupPermissionArgs, opts ...InvokeOption) (*LookupPermissionResult, error)
func LookupPermissionOutput(ctx *Context, args *LookupPermissionOutputArgs, opts ...InvokeOption) LookupPermissionResultOutput
Copy

> Note: This function is named LookupPermission in the Go SDK.

public static class GetPermission 
{
    public static Task<GetPermissionResult> InvokeAsync(GetPermissionArgs args, InvokeOptions? opts = null)
    public static Output<GetPermissionResult> Invoke(GetPermissionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
public static Output<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ram:getPermission
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Arn This property is required. string
The Amazon Resource Name (ARN) of the new permission.
Arn This property is required. string
The Amazon Resource Name (ARN) of the new permission.
arn This property is required. String
The Amazon Resource Name (ARN) of the new permission.
arn This property is required. string
The Amazon Resource Name (ARN) of the new permission.
arn This property is required. str
The Amazon Resource Name (ARN) of the new permission.
arn This property is required. String
The Amazon Resource Name (ARN) of the new permission.

getPermission Result

The following output properties are available:

Arn string
The Amazon Resource Name (ARN) of the new permission.
IsResourceTypeDefault bool
Set to true to use this as the default permission.
PermissionType string
The type of managed permission. This can be one of the following values:

  • AWS_MANAGED_PERMISSION – AWS created and manages this managed permission. You can associate it with your resource shares, but you can't modify it.
  • CUSTOMER_MANAGED_PERMISSION – You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
Tags List<Pulumi.AwsNative.Outputs.Tag>
Specifies a list of one or more tag key and value pairs to attach to the permission.
Version string
Version of the permission.
Arn string
The Amazon Resource Name (ARN) of the new permission.
IsResourceTypeDefault bool
Set to true to use this as the default permission.
PermissionType string
The type of managed permission. This can be one of the following values:

  • AWS_MANAGED_PERMISSION – AWS created and manages this managed permission. You can associate it with your resource shares, but you can't modify it.
  • CUSTOMER_MANAGED_PERMISSION – You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
Tags Tag
Specifies a list of one or more tag key and value pairs to attach to the permission.
Version string
Version of the permission.
arn String
The Amazon Resource Name (ARN) of the new permission.
isResourceTypeDefault Boolean
Set to true to use this as the default permission.
permissionType String
The type of managed permission. This can be one of the following values:

  • AWS_MANAGED_PERMISSION – AWS created and manages this managed permission. You can associate it with your resource shares, but you can't modify it.
  • CUSTOMER_MANAGED_PERMISSION – You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
tags List<Tag>
Specifies a list of one or more tag key and value pairs to attach to the permission.
version String
Version of the permission.
arn string
The Amazon Resource Name (ARN) of the new permission.
isResourceTypeDefault boolean
Set to true to use this as the default permission.
permissionType string
The type of managed permission. This can be one of the following values:

  • AWS_MANAGED_PERMISSION – AWS created and manages this managed permission. You can associate it with your resource shares, but you can't modify it.
  • CUSTOMER_MANAGED_PERMISSION – You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
tags Tag[]
Specifies a list of one or more tag key and value pairs to attach to the permission.
version string
Version of the permission.
arn str
The Amazon Resource Name (ARN) of the new permission.
is_resource_type_default bool
Set to true to use this as the default permission.
permission_type str
The type of managed permission. This can be one of the following values:

  • AWS_MANAGED_PERMISSION – AWS created and manages this managed permission. You can associate it with your resource shares, but you can't modify it.
  • CUSTOMER_MANAGED_PERMISSION – You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
tags Sequence[root_Tag]
Specifies a list of one or more tag key and value pairs to attach to the permission.
version str
Version of the permission.
arn String
The Amazon Resource Name (ARN) of the new permission.
isResourceTypeDefault Boolean
Set to true to use this as the default permission.
permissionType String
The type of managed permission. This can be one of the following values:

  • AWS_MANAGED_PERMISSION – AWS created and manages this managed permission. You can associate it with your resource shares, but you can't modify it.
  • CUSTOMER_MANAGED_PERMISSION – You, or another principal in your account created this managed permission. You can associate it with your resource shares and create new versions that have different permissions.
tags List<Property Map>
Specifies a list of one or more tag key and value pairs to attach to the permission.
version String
Version of the permission.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the 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.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi