IamRole

class IamRole : KotlinCustomResource

A Microsoft.AwsConnector resource Uses Azure REST API version 2024-12-01. In version 2.x of the Azure Native provider, it used API version 2024-12-01.

Example Usage

IamRoles_CreateOrReplace

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var iamRole = new AzureNative.AwsConnector.IamRole("iamRole", new()
{
Location = "vkzeblhpdgxwu",
Name = "Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])",
Properties = new AzureNative.AwsConnector.Inputs.IamRolePropertiesArgs
{
Arn = "cllfeatxzjqiqr",
AwsAccountId = "qlndbvxbvf",
AwsProperties = new AzureNative.AwsConnector.Inputs.AwsIamRolePropertiesArgs
{
Arn = "iqe",
AssumeRolePolicyDocument = null,
Description = "spayefp",
ManagedPolicyArns = new[]
{
"twfombcdqlzq",
},
MaxSessionDuration = 16,
Path = "qxfdn",
PermissionsBoundary = "wofktscexalvotvxaxsq",
Policies = new[]
{
new AzureNative.AwsConnector.Inputs.PolicyArgs
{
PolicyDocument = null,
PolicyName = "bpqsmdhzxaruuvctyddrcedbf",
},
},
RoleId = "l",
RoleName = "vpczljoyhnvybvtyagxaxaraogzdyx",
Tags = new[]
{
new AzureNative.AwsConnector.Inputs.TagArgs
{
Key = "fppaonhdrxztfctritlgmqm",
Value = "jcpberdkjmspmjbzyewyhyd",
},
},
},
AwsRegion = "yqtvmgzsvcgtehapncinnqvsql",
AwsSourceSchema = "onnjxuscupomucwhpltcnogwhxllm",
AwsTags =
{
{ "key9018", "byqrewkofnjfomn" },
},
PublicCloudConnectorsResourceId = "cchmzoxsgytenwavdwoarear",
PublicCloudResourceName = "qn",
},
ResourceGroupName = "rgiamRole",
Tags =
{
{ "key3308", "xn" },
},
});
});
package main
import (
awsconnector "github.com/pulumi/pulumi-azure-native-sdk/awsconnector/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := awsconnector.NewIamRole(ctx, "iamRole", &awsconnector.IamRoleArgs{
Location: pulumi.String("vkzeblhpdgxwu"),
Name: pulumi.String("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])"),
Properties: &awsconnector.IamRolePropertiesArgs{
Arn: pulumi.String("cllfeatxzjqiqr"),
AwsAccountId: pulumi.String("qlndbvxbvf"),
AwsProperties: &awsconnector.AwsIamRolePropertiesArgs{
Arn: pulumi.String("iqe"),
AssumeRolePolicyDocument: pulumi.Any(map[string]interface{}{}),
Description: pulumi.String("spayefp"),
ManagedPolicyArns: pulumi.StringArray{
pulumi.String("twfombcdqlzq"),
},
MaxSessionDuration: pulumi.Int(16),
Path: pulumi.String("qxfdn"),
PermissionsBoundary: pulumi.String("wofktscexalvotvxaxsq"),
Policies: awsconnector.PolicyArray{
&awsconnector.PolicyArgs{
PolicyDocument: pulumi.Any(map[string]interface{}{}),
PolicyName: pulumi.String("bpqsmdhzxaruuvctyddrcedbf"),
},
},
RoleId: pulumi.String("l"),
RoleName: pulumi.String("vpczljoyhnvybvtyagxaxaraogzdyx"),
Tags: awsconnector.TagArray{
&awsconnector.TagArgs{
Key: pulumi.String("fppaonhdrxztfctritlgmqm"),
Value: pulumi.String("jcpberdkjmspmjbzyewyhyd"),
},
},
},
AwsRegion: pulumi.String("yqtvmgzsvcgtehapncinnqvsql"),
AwsSourceSchema: pulumi.String("onnjxuscupomucwhpltcnogwhxllm"),
AwsTags: pulumi.StringMap{
"key9018": pulumi.String("byqrewkofnjfomn"),
},
PublicCloudConnectorsResourceId: pulumi.String("cchmzoxsgytenwavdwoarear"),
PublicCloudResourceName: pulumi.String("qn"),
},
ResourceGroupName: pulumi.String("rgiamRole"),
Tags: pulumi.StringMap{
"key3308": pulumi.String("xn"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.awsconnector.IamRole;
import com.pulumi.azurenative.awsconnector.IamRoleArgs;
import com.pulumi.azurenative.awsconnector.inputs.IamRolePropertiesArgs;
import com.pulumi.azurenative.awsconnector.inputs.AwsIamRolePropertiesArgs;
import java.util.List;
import java.util.ArrayList;
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 iamRole = new IamRole("iamRole", IamRoleArgs.builder()
.location("vkzeblhpdgxwu")
.name("Replace this value with a string matching RegExp ^(z=.{0,259}[^zs.]$)(z!.*[zzzzzzzz])")
.properties(IamRolePropertiesArgs.builder()
.arn("cllfeatxzjqiqr")
.awsAccountId("qlndbvxbvf")
.awsProperties(AwsIamRolePropertiesArgs.builder()
.arn("iqe")
.assumeRolePolicyDocument(Map.ofEntries(
))
.description("spayefp")
.managedPolicyArns("twfombcdqlzq")
.maxSessionDuration(16)
.path("qxfdn")
.permissionsBoundary("wofktscexalvotvxaxsq")
.policies(PolicyArgs.builder()
.policyDocument(Map.ofEntries(
))
.policyName("bpqsmdhzxaruuvctyddrcedbf")
.build())
.roleId("l")
.roleName("vpczljoyhnvybvtyagxaxaraogzdyx")
.tags(TagArgs.builder()
.key("fppaonhdrxztfctritlgmqm")
.value("jcpberdkjmspmjbzyewyhyd")
.build())
.build())
.awsRegion("yqtvmgzsvcgtehapncinnqvsql")
.awsSourceSchema("onnjxuscupomucwhpltcnogwhxllm")
.awsTags(Map.of("key9018", "byqrewkofnjfomn"))
.publicCloudConnectorsResourceId("cchmzoxsgytenwavdwoarear")
.publicCloudResourceName("qn")
.build())
.resourceGroupName("rgiamRole")
.tags(Map.of("key3308", "xn"))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:awsconnector:IamRole szbirdnasrkrwgmqfezjv /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/iamRoles/{name}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The resource-specific properties for this resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>