1. Packages
  2. AWS Classic
  3. API Docs
  4. ssoadmin
  5. ManagedPolicyAttachment

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.ssoadmin.ManagedPolicyAttachment

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    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:

    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    ManagedPolicyArn string
    The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
    PermissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set.
    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    ManagedPolicyArn string
    The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
    PermissionSetArn string
    The Amazon Resource Name (ARN) of the Permission Set.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    managedPolicyArn String
    The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
    permissionSetArn String
    The Amazon Resource Name (ARN) of the Permission Set.
    instanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    managedPolicyArn string
    The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
    permissionSetArn string
    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_arn str
    The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
    permission_set_arn str
    The Amazon Resource Name (ARN) of the Permission Set.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    managedPolicyArn String
    The IAM managed policy Amazon Resource Name (ARN) to be attached to the Permission Set.
    permissionSetArn 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)
    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.
    The following state arguments are supported:
    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    ManagedPolicyArn 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 string
    The Amazon Resource Name (ARN) of the Permission Set.
    InstanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    ManagedPolicyArn 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 string
    The Amazon Resource Name (ARN) of the Permission Set.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    managedPolicyArn 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 String
    The Amazon Resource Name (ARN) of the Permission Set.
    instanceArn string
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    managedPolicyArn 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 string
    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_arn 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 str
    The Amazon Resource Name (ARN) of the Permission Set.
    instanceArn String
    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.
    managedPolicyArn 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 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
    

    Package Details

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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi