1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. odb
  6. getIamRoleAssociation
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi

    Provides details about an AWS Oracle Database@AWS Associate Disassociate IAM Role.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.odb.getIamRoleAssociation({
        iamRoleArn: "arn:aws:iam::123456789012:role/odb-iam-role-example",
        resourceArn: "arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.odb.get_iam_role_association(iam_role_arn="arn:aws:iam::123456789012:role/odb-iam-role-example",
        resource_arn="arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/odb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := odb.LookupIamRoleAssociation(ctx, &odb.LookupIamRoleAssociationArgs{
    			IamRoleArn:  "arn:aws:iam::123456789012:role/odb-iam-role-example",
    			ResourceArn: "arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Odb.GetIamRoleAssociation.Invoke(new()
        {
            IamRoleArn = "arn:aws:iam::123456789012:role/odb-iam-role-example",
            ResourceArn = "arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.odb.OdbFunctions;
    import com.pulumi.aws.odb.inputs.GetIamRoleAssociationArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = OdbFunctions.getIamRoleAssociation(GetIamRoleAssociationArgs.builder()
                .iamRoleArn("arn:aws:iam::123456789012:role/odb-iam-role-example")
                .resourceArn("arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:odb:getIamRoleAssociation
          arguments:
            iamRoleArn: arn:aws:iam::123456789012:role/odb-iam-role-example
            resourceArn: arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_odb_getiamroleassociation" "example" {
      iam_role_arn = "arn:aws:iam::123456789012:role/odb-iam-role-example"
      resource_arn = "arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id"
    }
    

    Using getIamRoleAssociation

    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 getIamRoleAssociation(args: GetIamRoleAssociationArgs, opts?: InvokeOptions): Promise<GetIamRoleAssociationResult>
    function getIamRoleAssociationOutput(args: GetIamRoleAssociationOutputArgs, opts?: InvokeOutputOptions): Output<GetIamRoleAssociationResult>
    def get_iam_role_association(iam_role_arn: Optional[str] = None,
                                 region: Optional[str] = None,
                                 resource_arn: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetIamRoleAssociationResult
    def get_iam_role_association_output(iam_role_arn: pulumi.Input[Optional[str]] = None,
                                 region: pulumi.Input[Optional[str]] = None,
                                 resource_arn: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetIamRoleAssociationResult]
    func LookupIamRoleAssociation(ctx *Context, args *LookupIamRoleAssociationArgs, opts ...InvokeOption) (*LookupIamRoleAssociationResult, error)
    func LookupIamRoleAssociationOutput(ctx *Context, args *LookupIamRoleAssociationOutputArgs, opts ...InvokeOption) LookupIamRoleAssociationResultOutput

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

    public static class GetIamRoleAssociation 
    {
        public static Task<GetIamRoleAssociationResult> InvokeAsync(GetIamRoleAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetIamRoleAssociationResult> Invoke(GetIamRoleAssociationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetIamRoleAssociationResult> Invoke(GetIamRoleAssociationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetIamRoleAssociationResult> getIamRoleAssociation(GetIamRoleAssociationArgs args, InvokeOptions options)
    public static Output<GetIamRoleAssociationResult> getIamRoleAssociation(GetIamRoleAssociationArgs args, InvokeOptions options)
    public static Output<GetIamRoleAssociationResult> getIamRoleAssociation(GetIamRoleAssociationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:odb/getIamRoleAssociation:getIamRoleAssociation
      arguments:
        # arguments dictionary
    data "aws_odb_get_iam_role_association" "name" {
        # arguments
    }

    The following arguments are supported:

    IamRoleArn string
    IAM role ARN to look up.
    ResourceArn string

    Oracle Database@AWS resource ARN associated with the IAM role.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    IamRoleArn string
    IAM role ARN to look up.
    ResourceArn string

    Oracle Database@AWS resource ARN associated with the IAM role.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    iam_role_arn string
    IAM role ARN to look up.
    resource_arn string

    Oracle Database@AWS resource ARN associated with the IAM role.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    iamRoleArn String
    IAM role ARN to look up.
    resourceArn String

    Oracle Database@AWS resource ARN associated with the IAM role.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    iamRoleArn string
    IAM role ARN to look up.
    resourceArn string

    Oracle Database@AWS resource ARN associated with the IAM role.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    iam_role_arn str
    IAM role ARN to look up.
    resource_arn str

    Oracle Database@AWS resource ARN associated with the IAM role.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    iamRoleArn String
    IAM role ARN to look up.
    resourceArn String

    Oracle Database@AWS resource ARN associated with the IAM role.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getIamRoleAssociation Result

    The following output properties are available:

    AwsIntegration string
    Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
    IamRoleArn string
    Region string
    ResourceArn string
    Status string
    Current status of the Amazon Web Services Identity and Access Management (IAM) service role.
    StatusReason string
    Additional information about the current status of the Amazon Web Services Identity and Access Management (IAM) service role, if applicable.
    AwsIntegration string
    Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
    IamRoleArn string
    Region string
    ResourceArn string
    Status string
    Current status of the Amazon Web Services Identity and Access Management (IAM) service role.
    StatusReason string
    Additional information about the current status of the Amazon Web Services Identity and Access Management (IAM) service role, if applicable.
    aws_integration string
    Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
    iam_role_arn string
    region string
    resource_arn string
    status string
    Current status of the Amazon Web Services Identity and Access Management (IAM) service role.
    status_reason string
    Additional information about the current status of the Amazon Web Services Identity and Access Management (IAM) service role, if applicable.
    awsIntegration String
    Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
    iamRoleArn String
    region String
    resourceArn String
    status String
    Current status of the Amazon Web Services Identity and Access Management (IAM) service role.
    statusReason String
    Additional information about the current status of the Amazon Web Services Identity and Access Management (IAM) service role, if applicable.
    awsIntegration string
    Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
    iamRoleArn string
    region string
    resourceArn string
    status string
    Current status of the Amazon Web Services Identity and Access Management (IAM) service role.
    statusReason string
    Additional information about the current status of the Amazon Web Services Identity and Access Management (IAM) service role, if applicable.
    aws_integration str
    Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
    iam_role_arn str
    region str
    resource_arn str
    status str
    Current status of the Amazon Web Services Identity and Access Management (IAM) service role.
    status_reason str
    Additional information about the current status of the Amazon Web Services Identity and Access Management (IAM) service role, if applicable.
    awsIntegration String
    Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
    iamRoleArn String
    region String
    resourceArn String
    status String
    Current status of the Amazon Web Services Identity and Access Management (IAM) service role.
    statusReason String
    Additional information about the current status of the Amazon Web Services Identity and Access Management (IAM) service role, if applicable.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.46.0
    published on Thursday, Sep 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial