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 principal with a resource share.
Using getPrincipalAssociation
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 getPrincipalAssociation(args: GetPrincipalAssociationArgs, opts?: InvokeOptions): Promise<GetPrincipalAssociationResult>
function getPrincipalAssociationOutput(args: GetPrincipalAssociationOutputArgs, opts?: InvokeOutputOptions): Output<GetPrincipalAssociationResult>def get_principal_association(principal: Optional[str] = None,
resource_share_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrincipalAssociationResult
def get_principal_association_output(principal: pulumi.Input[Optional[str]] = None,
resource_share_arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetPrincipalAssociationResult]func LookupPrincipalAssociation(ctx *Context, args *LookupPrincipalAssociationArgs, opts ...InvokeOption) (*LookupPrincipalAssociationResult, error)
func LookupPrincipalAssociationOutput(ctx *Context, args *LookupPrincipalAssociationOutputArgs, opts ...InvokeOption) LookupPrincipalAssociationResultOutput> Note: This function is named LookupPrincipalAssociation in the Go SDK.
public static class GetPrincipalAssociation
{
public static Task<GetPrincipalAssociationResult> InvokeAsync(GetPrincipalAssociationArgs args, InvokeOptions? opts = null)
public static Output<GetPrincipalAssociationResult> Invoke(GetPrincipalAssociationInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetPrincipalAssociationResult> Invoke(GetPrincipalAssociationInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetPrincipalAssociationResult> getPrincipalAssociation(GetPrincipalAssociationArgs args, InvokeOptions options)
public static Output<GetPrincipalAssociationResult> getPrincipalAssociation(GetPrincipalAssociationArgs args, InvokeOptions options)
public static Output<GetPrincipalAssociationResult> getPrincipalAssociation(GetPrincipalAssociationArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:ram:getPrincipalAssociation
arguments:
# arguments dictionarydata "aws-native_ram_get_principal_association" "name" {
# arguments
}The following arguments are supported:
- Principal string
Specifies the principal to associate with the resource share. The possible values are:
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user
- string
- Specifies the Amazon Resource Name (ARN) of the resource share.
- Principal string
Specifies the principal to associate with the resource share. The possible values are:
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user
- string
- Specifies the Amazon Resource Name (ARN) of the resource share.
- principal string
Specifies the principal to associate with the resource share. The possible values are:
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user
- string
- Specifies the Amazon Resource Name (ARN) of the resource share.
- principal String
Specifies the principal to associate with the resource share. The possible values are:
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user
- String
- Specifies the Amazon Resource Name (ARN) of the resource share.
- principal string
Specifies the principal to associate with the resource share. The possible values are:
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user
- string
- Specifies the Amazon Resource Name (ARN) of the resource share.
- principal str
Specifies the principal to associate with the resource share. The possible values are:
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user
- str
- Specifies the Amazon Resource Name (ARN) of the resource share.
- principal String
Specifies the principal to associate with the resource share. The possible values are:
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user
- String
- Specifies the Amazon Resource Name (ARN) of the resource share.
getPrincipalAssociation Result
The following output properties are available:
- Association
Type string - The type of entity included in this association.
- Creation
Time string - The date and time when the association was created.
- External bool
- Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
- Last
Updated stringTime - The date and time when the association was last updated.
- Status
Pulumi.
Aws Native. Ram. Principal Association Status - The current status of the association.
- Association
Type string - The type of entity included in this association.
- Creation
Time string - The date and time when the association was created.
- External bool
- Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
- Last
Updated stringTime - The date and time when the association was last updated.
- Status
Principal
Association Status - The current status of the association.
- association_
type string - The type of entity included in this association.
- creation_
time string - The date and time when the association was created.
- external bool
- Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
- last_
updated_ stringtime - The date and time when the association was last updated.
- status "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "DISASSOCIATED" | "SUSPENDED" | "SUSPENDING" | "RESTORING"
- The current status of the association.
- association
Type String - The type of entity included in this association.
- creation
Time String - The date and time when the association was created.
- external Boolean
- Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
- last
Updated StringTime - The date and time when the association was last updated.
- status
Principal
Association Status - The current status of the association.
- association
Type string - The type of entity included in this association.
- creation
Time string - The date and time when the association was created.
- external boolean
- Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
- last
Updated stringTime - The date and time when the association was last updated.
- status
Principal
Association Status - The current status of the association.
- association_
type str - The type of entity included in this association.
- creation_
time str - The date and time when the association was created.
- external bool
- Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
- last_
updated_ strtime - The date and time when the association was last updated.
- status
Principal
Association Status - The current status of the association.
- association
Type String - The type of entity included in this association.
- creation
Time String - The date and time when the association was created.
- external Boolean
- Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
- last
Updated StringTime - The date and time when the association was last updated.
- status "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "DISASSOCIATED" | "SUSPENDED" | "SUSPENDING" | "RESTORING"
- The current status of the association.
Supporting Types
PrincipalAssociationStatus
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Disassociated | DISASSOCIATED |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Name | Value |
|---|---|
| Principal | ASSOCIATING |
| Principal | ASSOCIATED |
| Principal | FAILED |
| Principal | DISASSOCIATING |
| Principal | DISASSOCIATED |
| Principal | SUSPENDED |
| Principal | SUSPENDING |
| Principal | RESTORING |
| Value |
|---|
ASSOCIATING |
ASSOCIATED |
FAILED |
DISASSOCIATING |
DISASSOCIATED |
SUSPENDED |
SUSPENDING |
RESTORING |
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Disassociated | DISASSOCIATED |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Disassociated | DISASSOCIATED |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Name | Value |
|---|---|
| ASSOCIATING | ASSOCIATING |
| ASSOCIATED | ASSOCIATED |
| FAILED | FAILED |
| DISASSOCIATING | DISASSOCIATING |
| DISASSOCIATED | DISASSOCIATED |
| SUSPENDED | SUSPENDED |
| SUSPENDING | SUSPENDING |
| RESTORING | RESTORING |
| Value |
|---|
ASSOCIATING |
ASSOCIATED |
FAILED |
DISASSOCIATING |
DISASSOCIATED |
SUSPENDED |
SUSPENDING |
RESTORING |
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