We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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:
- Permission
Arn string - Specifies the Amazon Resource Name (ARN) of the AWS RAM permission to associate with the resource share.
- 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
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, 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.
- 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
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, 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.
- 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
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, 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.
- 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
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, 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.
- 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
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, 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.
- 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
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, 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.
- 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
trueto replace the current permission. Usefalseto add the permission when no permission is currently associated. The default value isfalse. Updating an existing association also requirestrue, 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:
- Association
Status Pulumi.Aws Native. Ram. Permission Association Association Status - The current status of the association between the permission and the resource share.
- Feature
Set Pulumi.Aws Native. Ram. Permission Association Feature Set - 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 stringTime - 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.
- Association
Status PermissionAssociation Association Status - The current status of the association between the permission and the resource share.
- Feature
Set PermissionAssociation Feature Set - 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 stringTime - 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.
- 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_ stringtime - 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.
- association
Status PermissionAssociation Association Status - The current status of the association between the permission and the resource share.
- feature
Set PermissionAssociation Feature Set - The feature set of the resource share.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Indicates whether the associated resource share is using the default version of the permission.
- last
Updated StringTime - 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.
- association
Status PermissionAssociation Association Status - The current status of the association between the permission and the resource share.
- feature
Set PermissionAssociation Feature Set - The feature set of the resource share.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - Indicates whether the associated resource share is using the default version of the permission.
- last
Updated stringTime - 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.
- association_
status PermissionAssociation Association Status - The current status of the association between the permission and the resource share.
- feature_
set PermissionAssociation Feature Set - 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_ strtime - 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.
- 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 Boolean - Indicates whether the associated resource share is using the default version of the permission.
- last
Updated StringTime - 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.
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) -> PermissionAssociationfunc 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.
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Disassociated | DISASSOCIATED |
| Name | Value |
|---|---|
| Permission | ASSOCIATING |
| Permission | ASSOCIATED |
| Permission | FAILED |
| Permission | DISASSOCIATING |
| Permission | SUSPENDED |
| Permission | SUSPENDING |
| Permission | RESTORING |
| Permission | DISASSOCIATED |
| Value |
|---|
ASSOCIATING |
ASSOCIATED |
FAILED |
DISASSOCIATING |
SUSPENDED |
SUSPENDING |
RESTORING |
DISASSOCIATED |
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Disassociated | DISASSOCIATED |
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Disassociated | DISASSOCIATED |
| Name | Value |
|---|---|
| ASSOCIATING | ASSOCIATING |
| ASSOCIATED | ASSOCIATED |
| FAILED | FAILED |
| DISASSOCIATING | DISASSOCIATING |
| SUSPENDED | SUSPENDED |
| SUSPENDING | SUSPENDING |
| RESTORING | RESTORING |
| DISASSOCIATED | DISASSOCIATED |
| Value |
|---|
ASSOCIATING |
ASSOCIATED |
FAILED |
DISASSOCIATING |
SUSPENDED |
SUSPENDING |
RESTORING |
DISASSOCIATED |
PermissionAssociationFeatureSet
The feature set of the resource share.
| Name | Value |
|---|---|
| Standard | STANDARD |
| Created | CREATED_FROM_POLICY |
| Promoting | PROMOTING_TO_STANDARD |
| Name | Value |
|---|---|
| Permission | STANDARD |
| Permission | CREATED_FROM_POLICY |
| Permission | PROMOTING_TO_STANDARD |
| Value |
|---|
STANDARD |
CREATED_FROM_POLICY |
PROMOTING_TO_STANDARD |
| Name | Value |
|---|---|
| Standard | STANDARD |
| Created | CREATED_FROM_POLICY |
| Promoting | PROMOTING_TO_STANDARD |
| Name | Value |
|---|---|
| Standard | STANDARD |
| Created | CREATED_FROM_POLICY |
| Promoting | PROMOTING_TO_STANDARD |
| Name | Value |
|---|---|
| STANDARD | STANDARD |
| CREATED_FROM_POLICY | CREATED_FROM_POLICY |
| PROMOTING_TO_STANDARD | PROMOTING_TO_STANDARD |
| Value |
|---|
STANDARD |
CREATED_FROM_POLICY |
PROMOTING_TO_STANDARD |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi