published on Thursday, Sep 10, 2026 by Pulumi
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 dictionarydata "aws_odb_get_iam_role_association" "name" {
# arguments
}The following arguments are supported:
- Iam
Role stringArn - 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.
- Iam
Role stringArn - 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.
- iam_
role_ stringarn - 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.
- iam
Role StringArn - 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.
- iam
Role stringArn - 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.
- iam_
role_ strarn - 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.
- iam
Role StringArn - 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.
getIamRoleAssociation Result
The following output properties are available:
- Aws
Integration string - Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
- Iam
Role stringArn - 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.
- Aws
Integration string - Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
- Iam
Role stringArn - 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.
- aws_
integration string - Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
- iam_
role_ stringarn - 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.
- aws
Integration String - Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
- iam
Role StringArn - 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.
- aws
Integration string - Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
- iam
Role stringArn - 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.
- aws_
integration str - Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
- iam_
role_ strarn - 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.
- aws
Integration String - Amazon Web Services integration configuration settings for the Amazon Web Services Identity and Access Management (IAM) service role.
- iam
Role StringArn - 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.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Sep 10, 2026 by Pulumi