Try AWS Native preview for resources not in the classic version.
aws.ssoadmin.ManagedPolicyAttachment
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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
Create ManagedPolicyAttachment Resource
new ManagedPolicyAttachment(name: string, args: ManagedPolicyAttachmentArgs, opts?: CustomResourceOptions);
@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)
@overload
def ManagedPolicyAttachment(resource_name: str,
args: ManagedPolicyAttachmentArgs,
opts: Optional[ResourceOptions] = 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.
- name string
- The unique name of the resource.
- args ManagedPolicyAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args ManagedPolicyAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedPolicyAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedPolicyAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
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
The ManagedPolicyAttachment resource accepts the following input properties:
- Instance
Arn string - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- Managed
Policy stringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- Permission
Set stringArn - The Amazon Resource Name (ARN) of the Permission Set.
- Instance
Arn string - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- Managed
Policy stringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- Permission
Set stringArn - The Amazon Resource Name (ARN) of the Permission Set.
- instance
Arn String - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed
Policy StringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- permission
Set StringArn - The Amazon Resource Name (ARN) of the Permission Set.
- instance
Arn string - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed
Policy stringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- permission
Set stringArn - The Amazon Resource Name (ARN) of the Permission Set.
- instance_
arn str - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed_
policy_ strarn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- permission_
set_ strarn - The Amazon Resource Name (ARN) of the Permission Set.
- instance
Arn String - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed
Policy StringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- permission
Set StringArn - 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.
- Managed
Policy stringName - The name of the IAM Managed Policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Policy stringName - The name of the IAM Managed Policy.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Policy StringName - The name of the IAM Managed Policy.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Policy stringName - The name of the IAM Managed Policy.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
policy_ strname - The name of the IAM Managed Policy.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Policy StringName - 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)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Instance
Arn string - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- Managed
Policy stringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- Managed
Policy stringName - The name of the IAM Managed Policy.
- Permission
Set stringArn - The Amazon Resource Name (ARN) of the Permission Set.
- Instance
Arn string - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- Managed
Policy stringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- Managed
Policy stringName - The name of the IAM Managed Policy.
- Permission
Set stringArn - The Amazon Resource Name (ARN) of the Permission Set.
- instance
Arn String - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed
Policy StringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- managed
Policy StringName - The name of the IAM Managed Policy.
- permission
Set StringArn - The Amazon Resource Name (ARN) of the Permission Set.
- instance
Arn string - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed
Policy stringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- managed
Policy stringName - The name of the IAM Managed Policy.
- permission
Set stringArn - The Amazon Resource Name (ARN) of the Permission Set.
- instance_
arn str - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed_
policy_ strarn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- managed_
policy_ strname - The name of the IAM Managed Policy.
- permission_
set_ strarn - The Amazon Resource Name (ARN) of the Permission Set.
- instance
Arn String - The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
- managed
Policy StringArn - The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
- managed
Policy StringName - The name of the IAM Managed Policy.
- permission
Set StringArn - 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
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.