IamRoleAssociation class
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
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 pulumi
import pulumi_aws as aws
example = aws.odb.IamRoleAssociation("example",
aws_integration="KmsTde",
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Odb.IamRoleAssociation("example", new()
{
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",
});
});
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.NewIamRoleAssociation(ctx, "example", &odb.IamRoleAssociationArgs{
AwsIntegration: pulumi.String("KmsTde"),
IamRoleArn: pulumi.String("arn:aws:iam::123456789012:role/odb-iam-role-example"),
ResourceArn: pulumi.String("arn:aws:odb:us-east-1:123456789012:cloud-vm-cluster/odb-example-cluster-id"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_odb_iamroleassociation" "example" {
aws_integration = "KmsTde"
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 generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.odb.IamRoleAssociation;
import com.pulumi.aws.odb.IamRoleAssociationArgs;
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) {
var example = new IamRoleAssociation("example", IamRoleAssociationArgs.builder()
.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")
.build());
}
}
resources:
example:
type: aws:odb:IamRoleAssociation
properties:
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:
$ 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"
Constructors
- IamRoleAssociation(String name, {IamRoleAssociationArgs? args, CustomResourceOptions? options})
-
Creates a new IamRoleAssociation.
nameThe Pulumi resource name.argsArguments used to configure this IamRoleAssociation. The set of arguments for IamRoleAssociation.optionsResource options controlling this resource's behavior. - IamRoleAssociation.reference(String urn)
- Creates a typed reference to an existing IamRoleAssociation resource.
Properties
-
awsIntegration
↔ Output<
String> -
AWS integration configuration for the IAM role association. Valid value:
KmsTde.latefinal -
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
iamRoleArn
↔ Output<
String> -
IAM role ARN to associate.
latefinal
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
region
↔ Output<
String> -
Region where this resource is managed. Defaults to the Region set in the provider configuration.
latefinal
-
resourceArn
↔ Output<
String> -
Oracle Database@AWS resource ARN to associate the IAM role with.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
↔ Output<
String> -
Current IAM role association status.
latefinal
-
statusReason
↔ Output<
String> -
Additional details about the current status, when available.
latefinal
-
timeouts
↔ Output<
IamRoleAssociationTimeouts?> -
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {IamRoleAssociationState? state, CustomResourceOptions? options}) → IamRoleAssociation -
Gets an existing IamRoleAssociation resource's state with the given
nameandid.