import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS Oracle Database@AWS Associate Disassociate IAM Role. * * Currently supported `resourceArn` targets are Cloud VM Clusters and Cloud Autonomous VM Clusters. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.odb.IamRoleAssociation("example", { * awsIntegration: "KmsTde", * 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 * * Using `pulumi import`, import an Oracle Database@AWS Associate Disassociate IAM Role using the IAM role ARN and resource ARN, separated by a comma. Specify the IAM role ARN first and the resource ARN second. For example: * * ```sh * $ pulumi import aws:odb/iamRoleAssociation:IamRoleAssociation example "arn:aws:iam::123456789012:role/odb-iam-role-example,arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id" * ``` */ export declare class IamRoleAssociation extends pulumi.CustomResource { /** * Get an existing IamRoleAssociation resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: IamRoleAssociationState, opts?: pulumi.CustomResourceOptions): IamRoleAssociation; /** * Returns true if the given object is an instance of IamRoleAssociation. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is IamRoleAssociation; /** * AWS integration configuration for the IAM role association. Valid value: `KmsTde`. */ readonly awsIntegration: pulumi.Output; /** * IAM role ARN to associate. */ readonly iamRoleArn: pulumi.Output; /** * Region where this resource is managed. Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Oracle Database@AWS resource ARN to associate the IAM role with. * * The following arguments are optional: */ readonly resourceArn: pulumi.Output; /** * Current IAM role association status. */ readonly status: pulumi.Output; /** * Additional details about the current status, when available. */ readonly statusReason: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a IamRoleAssociation resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: IamRoleAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IamRoleAssociation resources. */ export interface IamRoleAssociationState { /** * AWS integration configuration for the IAM role association. Valid value: `KmsTde`. */ awsIntegration?: pulumi.Input; /** * IAM role ARN to associate. */ iamRoleArn?: pulumi.Input; /** * Region where this resource is managed. Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Oracle Database@AWS resource ARN to associate the IAM role with. * * The following arguments are optional: */ resourceArn?: pulumi.Input; /** * Current IAM role association status. */ status?: pulumi.Input; /** * Additional details about the current status, when available. */ statusReason?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a IamRoleAssociation resource. */ export interface IamRoleAssociationArgs { /** * AWS integration configuration for the IAM role association. Valid value: `KmsTde`. */ awsIntegration: pulumi.Input; /** * IAM role ARN to associate. */ iamRoleArn: pulumi.Input; /** * Region where this resource is managed. Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Oracle Database@AWS resource ARN to associate the IAM role with. * * The following arguments are optional: */ resourceArn: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=iamRoleAssociation.d.ts.map