1. Packages
  2. AWS
  3. API Docs
  4. ssoadmin
  5. ManagedPolicyAttachment
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.ssoadmin.ManagedPolicyAttachment

Explore with Pulumi AI

Provides an IAM managed policy for a Single Sign-On (SSO) Permission Set resource

NOTE: Creating this resource will automatically Provision the Permission Set to apply the corresponding updates to all assigned accounts.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.ssoadmin.getInstances({});
const examplePermissionSet = new aws.ssoadmin.PermissionSet("example", {
    name: "Example",
    instanceArn: example.then(example => example.arns?.[0]),
});
const exampleManagedPolicyAttachment = new aws.ssoadmin.ManagedPolicyAttachment("example", {
    instanceArn: example.then(example => example.arns?.[0]),
    managedPolicyArn: "arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup",
    permissionSetArn: examplePermissionSet.arn,
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.ssoadmin.get_instances()
example_permission_set = aws.ssoadmin.PermissionSet("example",
    name="Example",
    instance_arn=example.arns[0])
example_managed_policy_attachment = aws.ssoadmin.ManagedPolicyAttachment("example",
    instance_arn=example.arns[0],
    managed_policy_arn="arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup",
    permission_set_arn=example_permission_set.arn)
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssoadmin"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ssoadmin.GetInstances(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		examplePermissionSet, err := ssoadmin.NewPermissionSet(ctx, "example", &ssoadmin.PermissionSetArgs{
			Name:        pulumi.String("Example"),
			InstanceArn: pulumi.String(example.Arns[0]),
		})
		if err != nil {
			return err
		}
		_, err = ssoadmin.NewManagedPolicyAttachment(ctx, "example", &ssoadmin.ManagedPolicyAttachmentArgs{
			InstanceArn:      pulumi.String(example.Arns[0]),
			ManagedPolicyArn: pulumi.String("arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup"),
			PermissionSetArn: examplePermissionSet.Arn,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.SsoAdmin.GetInstances.Invoke();

    var examplePermissionSet = new Aws.SsoAdmin.PermissionSet("example", new()
    {
        Name = "Example",
        InstanceArn = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
    });

    var exampleManagedPolicyAttachment = new Aws.SsoAdmin.ManagedPolicyAttachment("example", new()
    {
        InstanceArn = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
        ManagedPolicyArn = "arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup",
        PermissionSetArn = examplePermissionSet.Arn,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.SsoadminFunctions;
import com.pulumi.aws.ssoadmin.PermissionSet;
import com.pulumi.aws.ssoadmin.PermissionSetArgs;
import com.pulumi.aws.ssoadmin.ManagedPolicyAttachment;
import com.pulumi.aws.ssoadmin.ManagedPolicyAttachmentArgs;
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) {
        final var example = SsoadminFunctions.getInstances();

        var examplePermissionSet = new PermissionSet("examplePermissionSet", PermissionSetArgs.builder()
            .name("Example")
            .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
            .build());

        var exampleManagedPolicyAttachment = new ManagedPolicyAttachment("exampleManagedPolicyAttachment", ManagedPolicyAttachmentArgs.builder()
            .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
            .managedPolicyArn("arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup")
            .permissionSetArn(examplePermissionSet.arn())
            .build());

    }
}
Copy
resources:
  examplePermissionSet:
    type: aws:ssoadmin:PermissionSet
    name: example
    properties:
      name: Example
      instanceArn: ${example.arns[0]}
  exampleManagedPolicyAttachment:
    type: aws:ssoadmin:ManagedPolicyAttachment
    name: example
    properties:
      instanceArn: ${example.arns[0]}
      managedPolicyArn: arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup
      permissionSetArn: ${examplePermissionSet.arn}
variables:
  example:
    fn::invoke:
      function: aws:ssoadmin:getInstances
      arguments: {}
Copy

With Account Assignment

Because destruction of a managed policy attachment resource also re-provisions the associated permission set to all accounts, explicitly indicating the dependency with the account assignment resource via the depends_on meta argument is necessary to ensure proper deletion order when these resources are used together.

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.ssoadmin.getInstances({});
const examplePermissionSet = new aws.ssoadmin.PermissionSet("example", {
    name: "Example",
    instanceArn: example.then(example => example.arns?.[0]),
});
const exampleGroup = new aws.identitystore.Group("example", {
    identityStoreId: example.then(example => example.identityStoreIds?.[0]),
    displayName: "Admin",
    description: "Admin Group",
});
const exampleAccountAssignment = new aws.ssoadmin.AccountAssignment("example", {
    instanceArn: example.then(example => example.arns?.[0]),
    permissionSetArn: examplePermissionSet.arn,
    principalId: exampleGroup.groupId,
    principalType: "GROUP",
    targetId: "123456789012",
    targetType: "AWS_ACCOUNT",
});
const exampleManagedPolicyAttachment = new aws.ssoadmin.ManagedPolicyAttachment("example", {
    instanceArn: example.then(example => example.arns?.[0]),
    managedPolicyArn: "arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup",
    permissionSetArn: examplePermissionSet.arn,
}, {
    dependsOn: [exampleAccountAssignment],
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.ssoadmin.get_instances()
example_permission_set = aws.ssoadmin.PermissionSet("example",
    name="Example",
    instance_arn=example.arns[0])
example_group = aws.identitystore.Group("example",
    identity_store_id=example.identity_store_ids[0],
    display_name="Admin",
    description="Admin Group")
example_account_assignment = aws.ssoadmin.AccountAssignment("example",
    instance_arn=example.arns[0],
    permission_set_arn=example_permission_set.arn,
    principal_id=example_group.group_id,
    principal_type="GROUP",
    target_id="123456789012",
    target_type="AWS_ACCOUNT")
example_managed_policy_attachment = aws.ssoadmin.ManagedPolicyAttachment("example",
    instance_arn=example.arns[0],
    managed_policy_arn="arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup",
    permission_set_arn=example_permission_set.arn,
    opts = pulumi.ResourceOptions(depends_on=[example_account_assignment]))
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/identitystore"
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ssoadmin"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ssoadmin.GetInstances(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		examplePermissionSet, err := ssoadmin.NewPermissionSet(ctx, "example", &ssoadmin.PermissionSetArgs{
			Name:        pulumi.String("Example"),
			InstanceArn: pulumi.String(example.Arns[0]),
		})
		if err != nil {
			return err
		}
		exampleGroup, err := identitystore.NewGroup(ctx, "example", &identitystore.GroupArgs{
			IdentityStoreId: pulumi.String(example.IdentityStoreIds[0]),
			DisplayName:     pulumi.String("Admin"),
			Description:     pulumi.String("Admin Group"),
		})
		if err != nil {
			return err
		}
		exampleAccountAssignment, err := ssoadmin.NewAccountAssignment(ctx, "example", &ssoadmin.AccountAssignmentArgs{
			InstanceArn:      pulumi.String(example.Arns[0]),
			PermissionSetArn: examplePermissionSet.Arn,
			PrincipalId:      exampleGroup.GroupId,
			PrincipalType:    pulumi.String("GROUP"),
			TargetId:         pulumi.String("123456789012"),
			TargetType:       pulumi.String("AWS_ACCOUNT"),
		})
		if err != nil {
			return err
		}
		_, err = ssoadmin.NewManagedPolicyAttachment(ctx, "example", &ssoadmin.ManagedPolicyAttachmentArgs{
			InstanceArn:      pulumi.String(example.Arns[0]),
			ManagedPolicyArn: pulumi.String("arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup"),
			PermissionSetArn: examplePermissionSet.Arn,
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleAccountAssignment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.SsoAdmin.GetInstances.Invoke();

    var examplePermissionSet = new Aws.SsoAdmin.PermissionSet("example", new()
    {
        Name = "Example",
        InstanceArn = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
    });

    var exampleGroup = new Aws.IdentityStore.Group("example", new()
    {
        IdentityStoreId = example.Apply(getInstancesResult => getInstancesResult.IdentityStoreIds[0]),
        DisplayName = "Admin",
        Description = "Admin Group",
    });

    var exampleAccountAssignment = new Aws.SsoAdmin.AccountAssignment("example", new()
    {
        InstanceArn = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
        PermissionSetArn = examplePermissionSet.Arn,
        PrincipalId = exampleGroup.GroupId,
        PrincipalType = "GROUP",
        TargetId = "123456789012",
        TargetType = "AWS_ACCOUNT",
    });

    var exampleManagedPolicyAttachment = new Aws.SsoAdmin.ManagedPolicyAttachment("example", new()
    {
        InstanceArn = example.Apply(getInstancesResult => getInstancesResult.Arns[0]),
        ManagedPolicyArn = "arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup",
        PermissionSetArn = examplePermissionSet.Arn,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleAccountAssignment,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.SsoadminFunctions;
import com.pulumi.aws.ssoadmin.PermissionSet;
import com.pulumi.aws.ssoadmin.PermissionSetArgs;
import com.pulumi.aws.identitystore.Group;
import com.pulumi.aws.identitystore.GroupArgs;
import com.pulumi.aws.ssoadmin.AccountAssignment;
import com.pulumi.aws.ssoadmin.AccountAssignmentArgs;
import com.pulumi.aws.ssoadmin.ManagedPolicyAttachment;
import com.pulumi.aws.ssoadmin.ManagedPolicyAttachmentArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
        final var example = SsoadminFunctions.getInstances();

        var examplePermissionSet = new PermissionSet("examplePermissionSet", PermissionSetArgs.builder()
            .name("Example")
            .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
            .build());

        var exampleGroup = new Group("exampleGroup", GroupArgs.builder()
            .identityStoreId(example.applyValue(getInstancesResult -> getInstancesResult.identityStoreIds()[0]))
            .displayName("Admin")
            .description("Admin Group")
            .build());

        var exampleAccountAssignment = new AccountAssignment("exampleAccountAssignment", AccountAssignmentArgs.builder()
            .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
            .permissionSetArn(examplePermissionSet.arn())
            .principalId(exampleGroup.groupId())
            .principalType("GROUP")
            .targetId("123456789012")
            .targetType("AWS_ACCOUNT")
            .build());

        var exampleManagedPolicyAttachment = new ManagedPolicyAttachment("exampleManagedPolicyAttachment", ManagedPolicyAttachmentArgs.builder()
            .instanceArn(example.applyValue(getInstancesResult -> getInstancesResult.arns()[0]))
            .managedPolicyArn("arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup")
            .permissionSetArn(examplePermissionSet.arn())
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleAccountAssignment)
                .build());

    }
}
Copy
resources:
  examplePermissionSet:
    type: aws:ssoadmin:PermissionSet
    name: example
    properties:
      name: Example
      instanceArn: ${example.arns[0]}
  exampleGroup:
    type: aws:identitystore:Group
    name: example
    properties:
      identityStoreId: ${example.identityStoreIds[0]}
      displayName: Admin
      description: Admin Group
  exampleAccountAssignment:
    type: aws:ssoadmin:AccountAssignment
    name: example
    properties:
      instanceArn: ${example.arns[0]}
      permissionSetArn: ${examplePermissionSet.arn}
      principalId: ${exampleGroup.groupId}
      principalType: GROUP
      targetId: '123456789012'
      targetType: AWS_ACCOUNT
  exampleManagedPolicyAttachment:
    type: aws:ssoadmin:ManagedPolicyAttachment
    name: example
    properties:
      instanceArn: ${example.arns[0]}
      managedPolicyArn: arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup
      permissionSetArn: ${examplePermissionSet.arn}
    options:
      dependsOn:
        - ${exampleAccountAssignment}
variables:
  example:
    fn::invoke:
      function: aws:ssoadmin:getInstances
      arguments: {}
Copy

Create ManagedPolicyAttachment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ManagedPolicyAttachment(name: string, args: ManagedPolicyAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ManagedPolicyAttachment(resource_name: str,
                            args: ManagedPolicyAttachmentArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def ManagedPolicyAttachment(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            instance_arn: Optional[str] = None,
                            managed_policy_arn: Optional[str] = None,
                            permission_set_arn: Optional[str] = None)
func NewManagedPolicyAttachment(ctx *Context, name string, args ManagedPolicyAttachmentArgs, opts ...ResourceOption) (*ManagedPolicyAttachment, error)
public ManagedPolicyAttachment(string name, ManagedPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
public ManagedPolicyAttachment(String name, ManagedPolicyAttachmentArgs args)
public ManagedPolicyAttachment(String name, ManagedPolicyAttachmentArgs args, CustomResourceOptions options)
type: aws:ssoadmin:ManagedPolicyAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ManagedPolicyAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ManagedPolicyAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ManagedPolicyAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ManagedPolicyAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ManagedPolicyAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var managedPolicyAttachmentResource = new Aws.SsoAdmin.ManagedPolicyAttachment("managedPolicyAttachmentResource", new()
{
    InstanceArn = "string",
    ManagedPolicyArn = "string",
    PermissionSetArn = "string",
});
Copy
example, err := ssoadmin.NewManagedPolicyAttachment(ctx, "managedPolicyAttachmentResource", &ssoadmin.ManagedPolicyAttachmentArgs{
	InstanceArn:      pulumi.String("string"),
	ManagedPolicyArn: pulumi.String("string"),
	PermissionSetArn: pulumi.String("string"),
})
Copy
var managedPolicyAttachmentResource = new ManagedPolicyAttachment("managedPolicyAttachmentResource", ManagedPolicyAttachmentArgs.builder()
    .instanceArn("string")
    .managedPolicyArn("string")
    .permissionSetArn("string")
    .build());
Copy
managed_policy_attachment_resource = aws.ssoadmin.ManagedPolicyAttachment("managedPolicyAttachmentResource",
    instance_arn="string",
    managed_policy_arn="string",
    permission_set_arn="string")
Copy
const managedPolicyAttachmentResource = new aws.ssoadmin.ManagedPolicyAttachment("managedPolicyAttachmentResource", {
    instanceArn: "string",
    managedPolicyArn: "string",
    permissionSetArn: "string",
});
Copy
type: aws:ssoadmin:ManagedPolicyAttachment
properties:
    instanceArn: string
    managedPolicyArn: string
    permissionSetArn: string
Copy

ManagedPolicyAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ManagedPolicyAttachment resource accepts the following input properties:

InstanceArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
ManagedPolicyArn
This property is required.
Changes to this property will trigger replacement.
string
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
PermissionSetArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the Permission Set.
InstanceArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
ManagedPolicyArn
This property is required.
Changes to this property will trigger replacement.
string
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
PermissionSetArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the Permission Set.
instanceArn
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managedPolicyArn
This property is required.
Changes to this property will trigger replacement.
String
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
permissionSetArn
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) of the Permission Set.
instanceArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managedPolicyArn
This property is required.
Changes to this property will trigger replacement.
string
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
permissionSetArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the Permission Set.
instance_arn
This property is required.
Changes to this property will trigger replacement.
str
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managed_policy_arn
This property is required.
Changes to this property will trigger replacement.
str
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
permission_set_arn
This property is required.
Changes to this property will trigger replacement.
str
The Amazon Resource Name (ARN) of the Permission Set.
instanceArn
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managedPolicyArn
This property is required.
Changes to this property will trigger replacement.
String
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
permissionSetArn
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) of the Permission Set.

Outputs

All input properties are implicitly available as output properties. Additionally, the ManagedPolicyAttachment resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
ManagedPolicyName string
The name of the IAM Managed Policy.
Id string
The provider-assigned unique ID for this managed resource.
ManagedPolicyName string
The name of the IAM Managed Policy.
id String
The provider-assigned unique ID for this managed resource.
managedPolicyName String
The name of the IAM Managed Policy.
id string
The provider-assigned unique ID for this managed resource.
managedPolicyName string
The name of the IAM Managed Policy.
id str
The provider-assigned unique ID for this managed resource.
managed_policy_name str
The name of the IAM Managed Policy.
id String
The provider-assigned unique ID for this managed resource.
managedPolicyName String
The name of the IAM Managed Policy.

Look up Existing ManagedPolicyAttachment Resource

Get an existing ManagedPolicyAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ManagedPolicyAttachmentState, opts?: CustomResourceOptions): ManagedPolicyAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        instance_arn: Optional[str] = None,
        managed_policy_arn: Optional[str] = None,
        managed_policy_name: Optional[str] = None,
        permission_set_arn: Optional[str] = None) -> ManagedPolicyAttachment
func GetManagedPolicyAttachment(ctx *Context, name string, id IDInput, state *ManagedPolicyAttachmentState, opts ...ResourceOption) (*ManagedPolicyAttachment, error)
public static ManagedPolicyAttachment Get(string name, Input<string> id, ManagedPolicyAttachmentState? state, CustomResourceOptions? opts = null)
public static ManagedPolicyAttachment get(String name, Output<String> id, ManagedPolicyAttachmentState state, CustomResourceOptions options)
resources:  _:    type: aws:ssoadmin:ManagedPolicyAttachment    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
InstanceArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
ManagedPolicyArn Changes to this property will trigger replacement. string
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
ManagedPolicyName string
The name of the IAM Managed Policy.
PermissionSetArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the Permission Set.
InstanceArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
ManagedPolicyArn Changes to this property will trigger replacement. string
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
ManagedPolicyName string
The name of the IAM Managed Policy.
PermissionSetArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the Permission Set.
instanceArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managedPolicyArn Changes to this property will trigger replacement. String
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
managedPolicyName String
The name of the IAM Managed Policy.
permissionSetArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) of the Permission Set.
instanceArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managedPolicyArn Changes to this property will trigger replacement. string
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
managedPolicyName string
The name of the IAM Managed Policy.
permissionSetArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the Permission Set.
instance_arn Changes to this property will trigger replacement. str
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managed_policy_arn Changes to this property will trigger replacement. str
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
managed_policy_name str
The name of the IAM Managed Policy.
permission_set_arn Changes to this property will trigger replacement. str
The Amazon Resource Name (ARN) of the Permission Set.
instanceArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
managedPolicyArn Changes to this property will trigger replacement. String
The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
managedPolicyName String
The name of the IAM Managed Policy.
permissionSetArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) of the Permission Set.

Import

Using pulumi import, import SSO Managed Policy Attachments using the managed_policy_arn, permission_set_arn, and instance_arn separated by a comma (,). For example:

$ pulumi import aws:ssoadmin/managedPolicyAttachment:ManagedPolicyAttachment example arn:aws:iam::aws:policy/AlexaForBusinessDeviceSetup,arn:aws:sso:::permissionSet/ssoins-2938j0x8920sbj72/ps-80383020jr9302rk,arn:aws:sso:::instance/ssoins-2938j0x8920sbj72
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.