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

aws.ssoadmin.PermissionsBoundaryAttachment

Explore with Pulumi AI

Attaches a permissions boundary policy to a Single Sign-On (SSO) Permission Set resource.

NOTE: A permission set can have at most one permissions boundary attached; using more than one aws.ssoadmin.PermissionsBoundaryAttachment references the same permission set will show a permanent difference.

Example Usage

Attaching a customer-managed policy

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 examplePolicy = new aws.iam.Policy("example", {
    name: "TestPolicy",
    description: "My test policy",
    policy: JSON.stringify({
        Version: "2012-10-17",
        Statement: [{
            Action: ["ec2:Describe*"],
            Effect: "Allow",
            Resource: "*",
        }],
    }),
});
const examplePermissionsBoundaryAttachment = new aws.ssoadmin.PermissionsBoundaryAttachment("example", {
    instanceArn: examplePermissionSet.instanceArn,
    permissionSetArn: examplePermissionSet.arn,
    permissionsBoundary: {
        customerManagedPolicyReference: {
            name: examplePolicy.name,
            path: "/",
        },
    },
});
Copy
import pulumi
import json
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_policy = aws.iam.Policy("example",
    name="TestPolicy",
    description="My test policy",
    policy=json.dumps({
        "Version": "2012-10-17",
        "Statement": [{
            "Action": ["ec2:Describe*"],
            "Effect": "Allow",
            "Resource": "*",
        }],
    }))
example_permissions_boundary_attachment = aws.ssoadmin.PermissionsBoundaryAttachment("example",
    instance_arn=example_permission_set.instance_arn,
    permission_set_arn=example_permission_set.arn,
    permissions_boundary={
        "customer_managed_policy_reference": {
            "name": example_policy.name,
            "path": "/",
        },
    })
Copy
package main

import (
	"encoding/json"

	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
	"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
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"Version": "2012-10-17",
			"Statement": []map[string]interface{}{
				map[string]interface{}{
					"Action": []string{
						"ec2:Describe*",
					},
					"Effect":   "Allow",
					"Resource": "*",
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		examplePolicy, err := iam.NewPolicy(ctx, "example", &iam.PolicyArgs{
			Name:        pulumi.String("TestPolicy"),
			Description: pulumi.String("My test policy"),
			Policy:      pulumi.String(json0),
		})
		if err != nil {
			return err
		}
		_, err = ssoadmin.NewPermissionsBoundaryAttachment(ctx, "example", &ssoadmin.PermissionsBoundaryAttachmentArgs{
			InstanceArn:      examplePermissionSet.InstanceArn,
			PermissionSetArn: examplePermissionSet.Arn,
			PermissionsBoundary: &ssoadmin.PermissionsBoundaryAttachmentPermissionsBoundaryArgs{
				CustomerManagedPolicyReference: &ssoadmin.PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs{
					Name: examplePolicy.Name,
					Path: pulumi.String("/"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
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 examplePolicy = new Aws.Iam.Policy("example", new()
    {
        Name = "TestPolicy",
        Description = "My test policy",
        PolicyDocument = JsonSerializer.Serialize(new Dictionary<string, object?>
        {
            ["Version"] = "2012-10-17",
            ["Statement"] = new[]
            {
                new Dictionary<string, object?>
                {
                    ["Action"] = new[]
                    {
                        "ec2:Describe*",
                    },
                    ["Effect"] = "Allow",
                    ["Resource"] = "*",
                },
            },
        }),
    });

    var examplePermissionsBoundaryAttachment = new Aws.SsoAdmin.PermissionsBoundaryAttachment("example", new()
    {
        InstanceArn = examplePermissionSet.InstanceArn,
        PermissionSetArn = examplePermissionSet.Arn,
        PermissionsBoundary = new Aws.SsoAdmin.Inputs.PermissionsBoundaryAttachmentPermissionsBoundaryArgs
        {
            CustomerManagedPolicyReference = new Aws.SsoAdmin.Inputs.PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs
            {
                Name = examplePolicy.Name,
                Path = "/",
            },
        },
    });

});
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.iam.Policy;
import com.pulumi.aws.iam.PolicyArgs;
import com.pulumi.aws.ssoadmin.PermissionsBoundaryAttachment;
import com.pulumi.aws.ssoadmin.PermissionsBoundaryAttachmentArgs;
import com.pulumi.aws.ssoadmin.inputs.PermissionsBoundaryAttachmentPermissionsBoundaryArgs;
import com.pulumi.aws.ssoadmin.inputs.PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 examplePolicy = new Policy("examplePolicy", PolicyArgs.builder()
            .name("TestPolicy")
            .description("My test policy")
            .policy(serializeJson(
                jsonObject(
                    jsonProperty("Version", "2012-10-17"),
                    jsonProperty("Statement", jsonArray(jsonObject(
                        jsonProperty("Action", jsonArray("ec2:Describe*")),
                        jsonProperty("Effect", "Allow"),
                        jsonProperty("Resource", "*")
                    )))
                )))
            .build());

        var examplePermissionsBoundaryAttachment = new PermissionsBoundaryAttachment("examplePermissionsBoundaryAttachment", PermissionsBoundaryAttachmentArgs.builder()
            .instanceArn(examplePermissionSet.instanceArn())
            .permissionSetArn(examplePermissionSet.arn())
            .permissionsBoundary(PermissionsBoundaryAttachmentPermissionsBoundaryArgs.builder()
                .customerManagedPolicyReference(PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs.builder()
                    .name(examplePolicy.name())
                    .path("/")
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  examplePermissionSet:
    type: aws:ssoadmin:PermissionSet
    name: example
    properties:
      name: Example
      instanceArn: ${example.arns[0]}
  examplePolicy:
    type: aws:iam:Policy
    name: example
    properties:
      name: TestPolicy
      description: My test policy
      policy:
        fn::toJSON:
          Version: 2012-10-17
          Statement:
            - Action:
                - ec2:Describe*
              Effect: Allow
              Resource: '*'
  examplePermissionsBoundaryAttachment:
    type: aws:ssoadmin:PermissionsBoundaryAttachment
    name: example
    properties:
      instanceArn: ${examplePermissionSet.instanceArn}
      permissionSetArn: ${examplePermissionSet.arn}
      permissionsBoundary:
        customerManagedPolicyReference:
          name: ${examplePolicy.name}
          path: /
variables:
  example:
    fn::invoke:
      function: aws:ssoadmin:getInstances
      arguments: {}
Copy

Attaching an AWS-managed policy

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

const example = new aws.ssoadmin.PermissionsBoundaryAttachment("example", {
    instanceArn: exampleAwsSsoadminPermissionSet.instanceArn,
    permissionSetArn: exampleAwsSsoadminPermissionSet.arn,
    permissionsBoundary: {
        managedPolicyArn: "arn:aws:iam::aws:policy/ReadOnlyAccess",
    },
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.ssoadmin.PermissionsBoundaryAttachment("example",
    instance_arn=example_aws_ssoadmin_permission_set["instanceArn"],
    permission_set_arn=example_aws_ssoadmin_permission_set["arn"],
    permissions_boundary={
        "managed_policy_arn": "arn:aws:iam::aws:policy/ReadOnlyAccess",
    })
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 {
		_, err := ssoadmin.NewPermissionsBoundaryAttachment(ctx, "example", &ssoadmin.PermissionsBoundaryAttachmentArgs{
			InstanceArn:      pulumi.Any(exampleAwsSsoadminPermissionSet.InstanceArn),
			PermissionSetArn: pulumi.Any(exampleAwsSsoadminPermissionSet.Arn),
			PermissionsBoundary: &ssoadmin.PermissionsBoundaryAttachmentPermissionsBoundaryArgs{
				ManagedPolicyArn: pulumi.String("arn:aws:iam::aws:policy/ReadOnlyAccess"),
			},
		})
		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 = new Aws.SsoAdmin.PermissionsBoundaryAttachment("example", new()
    {
        InstanceArn = exampleAwsSsoadminPermissionSet.InstanceArn,
        PermissionSetArn = exampleAwsSsoadminPermissionSet.Arn,
        PermissionsBoundary = new Aws.SsoAdmin.Inputs.PermissionsBoundaryAttachmentPermissionsBoundaryArgs
        {
            ManagedPolicyArn = "arn:aws:iam::aws:policy/ReadOnlyAccess",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ssoadmin.PermissionsBoundaryAttachment;
import com.pulumi.aws.ssoadmin.PermissionsBoundaryAttachmentArgs;
import com.pulumi.aws.ssoadmin.inputs.PermissionsBoundaryAttachmentPermissionsBoundaryArgs;
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 example = new PermissionsBoundaryAttachment("example", PermissionsBoundaryAttachmentArgs.builder()
            .instanceArn(exampleAwsSsoadminPermissionSet.instanceArn())
            .permissionSetArn(exampleAwsSsoadminPermissionSet.arn())
            .permissionsBoundary(PermissionsBoundaryAttachmentPermissionsBoundaryArgs.builder()
                .managedPolicyArn("arn:aws:iam::aws:policy/ReadOnlyAccess")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: aws:ssoadmin:PermissionsBoundaryAttachment
    properties:
      instanceArn: ${exampleAwsSsoadminPermissionSet.instanceArn}
      permissionSetArn: ${exampleAwsSsoadminPermissionSet.arn}
      permissionsBoundary:
        managedPolicyArn: arn:aws:iam::aws:policy/ReadOnlyAccess
Copy

Create PermissionsBoundaryAttachment Resource

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

Constructor syntax

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

@overload
def PermissionsBoundaryAttachment(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  instance_arn: Optional[str] = None,
                                  permission_set_arn: Optional[str] = None,
                                  permissions_boundary: Optional[PermissionsBoundaryAttachmentPermissionsBoundaryArgs] = None)
func NewPermissionsBoundaryAttachment(ctx *Context, name string, args PermissionsBoundaryAttachmentArgs, opts ...ResourceOption) (*PermissionsBoundaryAttachment, error)
public PermissionsBoundaryAttachment(string name, PermissionsBoundaryAttachmentArgs args, CustomResourceOptions? opts = null)
public PermissionsBoundaryAttachment(String name, PermissionsBoundaryAttachmentArgs args)
public PermissionsBoundaryAttachment(String name, PermissionsBoundaryAttachmentArgs args, CustomResourceOptions options)
type: aws:ssoadmin:PermissionsBoundaryAttachment
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. PermissionsBoundaryAttachmentArgs
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. PermissionsBoundaryAttachmentArgs
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. PermissionsBoundaryAttachmentArgs
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. PermissionsBoundaryAttachmentArgs
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. PermissionsBoundaryAttachmentArgs
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 permissionsBoundaryAttachmentResource = new Aws.SsoAdmin.PermissionsBoundaryAttachment("permissionsBoundaryAttachmentResource", new()
{
    InstanceArn = "string",
    PermissionSetArn = "string",
    PermissionsBoundary = new Aws.SsoAdmin.Inputs.PermissionsBoundaryAttachmentPermissionsBoundaryArgs
    {
        CustomerManagedPolicyReference = new Aws.SsoAdmin.Inputs.PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs
        {
            Name = "string",
            Path = "string",
        },
        ManagedPolicyArn = "string",
    },
});
Copy
example, err := ssoadmin.NewPermissionsBoundaryAttachment(ctx, "permissionsBoundaryAttachmentResource", &ssoadmin.PermissionsBoundaryAttachmentArgs{
	InstanceArn:      pulumi.String("string"),
	PermissionSetArn: pulumi.String("string"),
	PermissionsBoundary: &ssoadmin.PermissionsBoundaryAttachmentPermissionsBoundaryArgs{
		CustomerManagedPolicyReference: &ssoadmin.PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs{
			Name: pulumi.String("string"),
			Path: pulumi.String("string"),
		},
		ManagedPolicyArn: pulumi.String("string"),
	},
})
Copy
var permissionsBoundaryAttachmentResource = new PermissionsBoundaryAttachment("permissionsBoundaryAttachmentResource", PermissionsBoundaryAttachmentArgs.builder()
    .instanceArn("string")
    .permissionSetArn("string")
    .permissionsBoundary(PermissionsBoundaryAttachmentPermissionsBoundaryArgs.builder()
        .customerManagedPolicyReference(PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs.builder()
            .name("string")
            .path("string")
            .build())
        .managedPolicyArn("string")
        .build())
    .build());
Copy
permissions_boundary_attachment_resource = aws.ssoadmin.PermissionsBoundaryAttachment("permissionsBoundaryAttachmentResource",
    instance_arn="string",
    permission_set_arn="string",
    permissions_boundary={
        "customer_managed_policy_reference": {
            "name": "string",
            "path": "string",
        },
        "managed_policy_arn": "string",
    })
Copy
const permissionsBoundaryAttachmentResource = new aws.ssoadmin.PermissionsBoundaryAttachment("permissionsBoundaryAttachmentResource", {
    instanceArn: "string",
    permissionSetArn: "string",
    permissionsBoundary: {
        customerManagedPolicyReference: {
            name: "string",
            path: "string",
        },
        managedPolicyArn: "string",
    },
});
Copy
type: aws:ssoadmin:PermissionsBoundaryAttachment
properties:
    instanceArn: string
    permissionSetArn: string
    permissionsBoundary:
        customerManagedPolicyReference:
            name: string
            path: string
        managedPolicyArn: string
Copy

PermissionsBoundaryAttachment 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 PermissionsBoundaryAttachment 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.
PermissionSetArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the Permission Set.
PermissionsBoundary
This property is required.
Changes to this property will trigger replacement.
PermissionsBoundaryAttachmentPermissionsBoundary
The permissions boundary policy. See below.
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.
PermissionSetArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the Permission Set.
PermissionsBoundary
This property is required.
Changes to this property will trigger replacement.
PermissionsBoundaryAttachmentPermissionsBoundaryArgs
The permissions boundary policy. See below.
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.
permissionSetArn
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) of the Permission Set.
permissionsBoundary
This property is required.
Changes to this property will trigger replacement.
PermissionsBoundaryAttachmentPermissionsBoundary
The permissions boundary policy. See below.
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.
permissionSetArn
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Resource Name (ARN) of the Permission Set.
permissionsBoundary
This property is required.
Changes to this property will trigger replacement.
PermissionsBoundaryAttachmentPermissionsBoundary
The permissions boundary policy. See below.
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.
permission_set_arn
This property is required.
Changes to this property will trigger replacement.
str
The Amazon Resource Name (ARN) of the Permission Set.
permissions_boundary
This property is required.
Changes to this property will trigger replacement.
PermissionsBoundaryAttachmentPermissionsBoundaryArgs
The permissions boundary policy. See below.
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.
permissionSetArn
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Resource Name (ARN) of the Permission Set.
permissionsBoundary
This property is required.
Changes to this property will trigger replacement.
Property Map
The permissions boundary policy. See below.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing PermissionsBoundaryAttachment Resource

Get an existing PermissionsBoundaryAttachment 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?: PermissionsBoundaryAttachmentState, opts?: CustomResourceOptions): PermissionsBoundaryAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        instance_arn: Optional[str] = None,
        permission_set_arn: Optional[str] = None,
        permissions_boundary: Optional[PermissionsBoundaryAttachmentPermissionsBoundaryArgs] = None) -> PermissionsBoundaryAttachment
func GetPermissionsBoundaryAttachment(ctx *Context, name string, id IDInput, state *PermissionsBoundaryAttachmentState, opts ...ResourceOption) (*PermissionsBoundaryAttachment, error)
public static PermissionsBoundaryAttachment Get(string name, Input<string> id, PermissionsBoundaryAttachmentState? state, CustomResourceOptions? opts = null)
public static PermissionsBoundaryAttachment get(String name, Output<String> id, PermissionsBoundaryAttachmentState state, CustomResourceOptions options)
resources:  _:    type: aws:ssoadmin:PermissionsBoundaryAttachment    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.
PermissionSetArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the Permission Set.
PermissionsBoundary Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundary
The permissions boundary policy. See below.
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.
PermissionSetArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the Permission Set.
PermissionsBoundary Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundaryArgs
The permissions boundary policy. See below.
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.
permissionSetArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) of the Permission Set.
permissionsBoundary Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundary
The permissions boundary policy. See below.
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.
permissionSetArn Changes to this property will trigger replacement. string
The Amazon Resource Name (ARN) of the Permission Set.
permissionsBoundary Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundary
The permissions boundary policy. See below.
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.
permission_set_arn Changes to this property will trigger replacement. str
The Amazon Resource Name (ARN) of the Permission Set.
permissions_boundary Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundaryArgs
The permissions boundary policy. See below.
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.
permissionSetArn Changes to this property will trigger replacement. String
The Amazon Resource Name (ARN) of the Permission Set.
permissionsBoundary Changes to this property will trigger replacement. Property Map
The permissions boundary policy. See below.

Supporting Types

PermissionsBoundaryAttachmentPermissionsBoundary
, PermissionsBoundaryAttachmentPermissionsBoundaryArgs

CustomerManagedPolicyReference Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference
Specifies the name and path of a customer managed policy. See below.
ManagedPolicyArn Changes to this property will trigger replacement. string
AWS-managed IAM policy ARN to use as the permissions boundary.
CustomerManagedPolicyReference Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference
Specifies the name and path of a customer managed policy. See below.
ManagedPolicyArn Changes to this property will trigger replacement. string
AWS-managed IAM policy ARN to use as the permissions boundary.
customerManagedPolicyReference Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference
Specifies the name and path of a customer managed policy. See below.
managedPolicyArn Changes to this property will trigger replacement. String
AWS-managed IAM policy ARN to use as the permissions boundary.
customerManagedPolicyReference Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference
Specifies the name and path of a customer managed policy. See below.
managedPolicyArn Changes to this property will trigger replacement. string
AWS-managed IAM policy ARN to use as the permissions boundary.
customer_managed_policy_reference Changes to this property will trigger replacement. PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference
Specifies the name and path of a customer managed policy. See below.
managed_policy_arn Changes to this property will trigger replacement. str
AWS-managed IAM policy ARN to use as the permissions boundary.
customerManagedPolicyReference Changes to this property will trigger replacement. Property Map
Specifies the name and path of a customer managed policy. See below.
managedPolicyArn Changes to this property will trigger replacement. String
AWS-managed IAM policy ARN to use as the permissions boundary.

PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReference
, PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs

Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the customer managed IAM Policy to be attached.
Path Changes to this property will trigger replacement. string
The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the customer managed IAM Policy to be attached.
Path Changes to this property will trigger replacement. string
The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the customer managed IAM Policy to be attached.
path Changes to this property will trigger replacement. String
The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the customer managed IAM Policy to be attached.
path Changes to this property will trigger replacement. string
The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the customer managed IAM Policy to be attached.
path Changes to this property will trigger replacement. str
The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the customer managed IAM Policy to be attached.
path Changes to this property will trigger replacement. String
The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.

Import

Using pulumi import, import SSO Admin Permissions Boundary Attachments using the permission_set_arn and instance_arn, separated by a comma (,). For example:

$ pulumi import aws:ssoadmin/permissionsBoundaryAttachment:PermissionsBoundaryAttachment example 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.