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.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.ram.getPermission

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

    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>
    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]
    func LookupPermission(ctx *Context, args *LookupPermissionArgs, opts ...InvokeOption) (*LookupPermissionResult, error)
    func LookupPermissionOutput(ctx *Context, args *LookupPermissionOutputArgs, opts ...InvokeOption) LookupPermissionResultOutput

    > 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)
    }
    public static CompletableFuture<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ram:getPermission
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the new permission.
    Arn string
    The Amazon Resource Name (ARN) of the new permission.
    arn String
    The Amazon Resource Name (ARN) of the new permission.
    arn string
    The Amazon Resource Name (ARN) of the new permission.
    arn str
    The Amazon Resource Name (ARN) of the new permission.
    arn 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 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