1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ram
  6. PermissionAssociation

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Associates a specified AWS RAM permission with a resource share. You can only associate one permission with each resource type in a resource share.

    Create PermissionAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PermissionAssociation(name: string, args: PermissionAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def PermissionAssociation(resource_name: str,
                              args: PermissionAssociationArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def PermissionAssociation(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              permission_arn: Optional[str] = None,
                              resource_share_arn: Optional[str] = None,
                              replace: Optional[bool] = None)
    func NewPermissionAssociation(ctx *Context, name string, args PermissionAssociationArgs, opts ...ResourceOption) (*PermissionAssociation, error)
    public PermissionAssociation(string name, PermissionAssociationArgs args, CustomResourceOptions? opts = null)
    public PermissionAssociation(String name, PermissionAssociationArgs args)
    public PermissionAssociation(String name, PermissionAssociationArgs args, CustomResourceOptions options)
    
    type: aws-native:ram:PermissionAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ram_permission_association" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PermissionAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PermissionAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PermissionAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PermissionAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PermissionAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PermissionAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PermissionAssociation resource accepts the following input properties:

    PermissionArn string
    Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    Replace bool
    Specifies whether to replace the existing permission on the resource share. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.
    PermissionArn string
    Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    Replace bool
    Specifies whether to replace the existing permission on the resource share. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.
    permission_arn string
    Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
    resource_share_arn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    replace bool
    Specifies whether to replace the existing permission on the resource share. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.
    permissionArn String
    Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.
    replace Boolean
    Specifies whether to replace the existing permission on the resource share. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.
    permissionArn string
    Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
    resourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    replace boolean
    Specifies whether to replace the existing permission on the resource share. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.
    permission_arn str
    Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
    resource_share_arn str
    Specifies the Amazon Resource Name (ARN) of the resource share.
    replace bool
    Specifies whether to replace the existing permission on the resource share. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.
    permissionArn String
    Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.
    replace Boolean
    Specifies whether to replace the existing permission on the resource share. Use true to replace the current permission. Use false to add the permission when no permission is currently associated. The default value is false. Updating an existing association also requires true, because AWS RAM applies the change by re-associating the permission.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PermissionAssociation resource produces the following output properties:

    AssociationStatus Pulumi.AwsNative.Ram.PermissionAssociationAssociationStatus
    The current status of the association between the permission and the resource share.
    FeatureSet Pulumi.AwsNative.Ram.PermissionAssociationFeatureSet
    The feature set of the resource share.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Indicates whether the associated resource share is using the default version of the permission.
    LastUpdatedTime string
    The date and time when the association between the permission and the resource share was last updated.
    PermissionVersion string
    The version of the permission currently associated with the resource share.
    ResourceType string
    The resource type to which the permission applies.
    AssociationStatus PermissionAssociationAssociationStatus
    The current status of the association between the permission and the resource share.
    FeatureSet PermissionAssociationFeatureSet
    The feature set of the resource share.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Indicates whether the associated resource share is using the default version of the permission.
    LastUpdatedTime string
    The date and time when the association between the permission and the resource share was last updated.
    PermissionVersion string
    The version of the permission currently associated with the resource share.
    ResourceType string
    The resource type to which the permission applies.
    association_status "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "SUSPENDED" | "SUSPENDING" | "RESTORING" | "DISASSOCIATED"
    The current status of the association between the permission and the resource share.
    feature_set "STANDARD" | "CREATED_FROM_POLICY" | "PROMOTING_TO_STANDARD"
    The feature set of the resource share.
    id string
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Indicates whether the associated resource share is using the default version of the permission.
    last_updated_time string
    The date and time when the association between the permission and the resource share was last updated.
    permission_version string
    The version of the permission currently associated with the resource share.
    resource_type string
    The resource type to which the permission applies.
    associationStatus PermissionAssociationAssociationStatus
    The current status of the association between the permission and the resource share.
    featureSet PermissionAssociationFeatureSet
    The feature set of the resource share.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Indicates whether the associated resource share is using the default version of the permission.
    lastUpdatedTime String
    The date and time when the association between the permission and the resource share was last updated.
    permissionVersion String
    The version of the permission currently associated with the resource share.
    resourceType String
    The resource type to which the permission applies.
    associationStatus PermissionAssociationAssociationStatus
    The current status of the association between the permission and the resource share.
    featureSet PermissionAssociationFeatureSet
    The feature set of the resource share.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Indicates whether the associated resource share is using the default version of the permission.
    lastUpdatedTime string
    The date and time when the association between the permission and the resource share was last updated.
    permissionVersion string
    The version of the permission currently associated with the resource share.
    resourceType string
    The resource type to which the permission applies.
    association_status PermissionAssociationAssociationStatus
    The current status of the association between the permission and the resource share.
    feature_set PermissionAssociationFeatureSet
    The feature set of the resource share.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Indicates whether the associated resource share is using the default version of the permission.
    last_updated_time str
    The date and time when the association between the permission and the resource share was last updated.
    permission_version str
    The version of the permission currently associated with the resource share.
    resource_type str
    The resource type to which the permission applies.
    associationStatus "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "SUSPENDED" | "SUSPENDING" | "RESTORING" | "DISASSOCIATED"
    The current status of the association between the permission and the resource share.
    featureSet "STANDARD" | "CREATED_FROM_POLICY" | "PROMOTING_TO_STANDARD"
    The feature set of the resource share.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Indicates whether the associated resource share is using the default version of the permission.
    lastUpdatedTime String
    The date and time when the association between the permission and the resource share was last updated.
    permissionVersion String
    The version of the permission currently associated with the resource share.
    resourceType String
    The resource type to which the permission applies.

    Look up Existing PermissionAssociation Resource

    Get an existing PermissionAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): PermissionAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> PermissionAssociation
    func GetPermissionAssociation(ctx *Context, name string, id IDInput, state *PermissionAssociationState, opts ...ResourceOption) (*PermissionAssociation, error)
    public static PermissionAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static PermissionAssociation get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingPermissionAssociation:    type: aws-native:ram:PermissionAssociation    get:      id: ${id}
    import {
      to = aws-native_ram_permission_association.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state PermissionAssociationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    PermissionAssociationAssociationStatus

    The current status of the association between the permission and the resource share.

    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    DisassociatedDISASSOCIATED
    NameValue
    PermissionAssociationAssociationStatusAssociatingASSOCIATING
    PermissionAssociationAssociationStatusAssociatedASSOCIATED
    PermissionAssociationAssociationStatusFailedFAILED
    PermissionAssociationAssociationStatusDisassociatingDISASSOCIATING
    PermissionAssociationAssociationStatusSuspendedSUSPENDED
    PermissionAssociationAssociationStatusSuspendingSUSPENDING
    PermissionAssociationAssociationStatusRestoringRESTORING
    PermissionAssociationAssociationStatusDisassociatedDISASSOCIATED
    Value
    ASSOCIATING
    ASSOCIATED
    FAILED
    DISASSOCIATING
    SUSPENDED
    SUSPENDING
    RESTORING
    DISASSOCIATED
    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    DisassociatedDISASSOCIATED
    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    DisassociatedDISASSOCIATED
    NameValue
    ASSOCIATINGASSOCIATING
    ASSOCIATEDASSOCIATED
    FAILEDFAILED
    DISASSOCIATINGDISASSOCIATING
    SUSPENDEDSUSPENDED
    SUSPENDINGSUSPENDING
    RESTORINGRESTORING
    DISASSOCIATEDDISASSOCIATED
    Value
    ASSOCIATING
    ASSOCIATED
    FAILED
    DISASSOCIATING
    SUSPENDED
    SUSPENDING
    RESTORING
    DISASSOCIATED

    PermissionAssociationFeatureSet

    The feature set of the resource share.

    NameValue
    StandardSTANDARD
    CreatedFromPolicyCREATED_FROM_POLICY
    PromotingToStandardPROMOTING_TO_STANDARD
    NameValue
    PermissionAssociationFeatureSetStandardSTANDARD
    PermissionAssociationFeatureSetCreatedFromPolicyCREATED_FROM_POLICY
    PermissionAssociationFeatureSetPromotingToStandardPROMOTING_TO_STANDARD
    Value
    STANDARD
    CREATED_FROM_POLICY
    PROMOTING_TO_STANDARD
    NameValue
    StandardSTANDARD
    CreatedFromPolicyCREATED_FROM_POLICY
    PromotingToStandardPROMOTING_TO_STANDARD
    NameValue
    StandardSTANDARD
    CreatedFromPolicyCREATED_FROM_POLICY
    PromotingToStandardPROMOTING_TO_STANDARD
    NameValue
    STANDARDSTANDARD
    CREATED_FROM_POLICYCREATED_FROM_POLICY
    PROMOTING_TO_STANDARDPROMOTING_TO_STANDARD
    Value
    STANDARD
    CREATED_FROM_POLICY
    PROMOTING_TO_STANDARD

    Package Details

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

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

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial