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

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

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

aws.ssoadmin.CustomerManagedPolicyAttachment

Explore with Pulumi AI

aws logo

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

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

    Provides a customer managed policy attachment 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.

    Create CustomerManagedPolicyAttachment Resource

    new CustomerManagedPolicyAttachment(name: string, args: CustomerManagedPolicyAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def CustomerManagedPolicyAttachment(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        customer_managed_policy_reference: Optional[CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs] = None,
                                        instance_arn: Optional[str] = None,
                                        permission_set_arn: Optional[str] = None)
    @overload
    def CustomerManagedPolicyAttachment(resource_name: str,
                                        args: CustomerManagedPolicyAttachmentArgs,
                                        opts: Optional[ResourceOptions] = None)
    func NewCustomerManagedPolicyAttachment(ctx *Context, name string, args CustomerManagedPolicyAttachmentArgs, opts ...ResourceOption) (*CustomerManagedPolicyAttachment, error)
    public CustomerManagedPolicyAttachment(string name, CustomerManagedPolicyAttachmentArgs args, CustomResourceOptions? opts = null)
    public CustomerManagedPolicyAttachment(String name, CustomerManagedPolicyAttachmentArgs args)
    public CustomerManagedPolicyAttachment(String name, CustomerManagedPolicyAttachmentArgs args, CustomResourceOptions options)
    
    type: aws:ssoadmin:CustomerManagedPolicyAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CustomerManagedPolicyAttachmentArgs
    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 CustomerManagedPolicyAttachmentArgs
    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 CustomerManagedPolicyAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomerManagedPolicyAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomerManagedPolicyAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CustomerManagedPolicyAttachment 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 CustomerManagedPolicyAttachment resource accepts the following input properties:

    CustomerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    InstanceArn string

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    PermissionSetArn string

    The Amazon Resource Name (ARN) of the Permission Set.

    CustomerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    InstanceArn string

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    PermissionSetArn string

    The Amazon Resource Name (ARN) of the Permission Set.

    customerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    instanceArn String

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permissionSetArn String

    The Amazon Resource Name (ARN) of the Permission Set.

    customerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    instanceArn string

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permissionSetArn string

    The Amazon Resource Name (ARN) of the Permission Set.

    customer_managed_policy_reference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    instance_arn str

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permission_set_arn str

    The Amazon Resource Name (ARN) of the Permission Set.

    customerManagedPolicyReference Property Map

    Specifies the name and path of a customer managed policy. See below.

    instanceArn String

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permissionSetArn String

    The Amazon Resource Name (ARN) of the Permission Set.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CustomerManagedPolicyAttachment 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 CustomerManagedPolicyAttachment Resource

    Get an existing CustomerManagedPolicyAttachment 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?: CustomerManagedPolicyAttachmentState, opts?: CustomResourceOptions): CustomerManagedPolicyAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            customer_managed_policy_reference: Optional[CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs] = None,
            instance_arn: Optional[str] = None,
            permission_set_arn: Optional[str] = None) -> CustomerManagedPolicyAttachment
    func GetCustomerManagedPolicyAttachment(ctx *Context, name string, id IDInput, state *CustomerManagedPolicyAttachmentState, opts ...ResourceOption) (*CustomerManagedPolicyAttachment, error)
    public static CustomerManagedPolicyAttachment Get(string name, Input<string> id, CustomerManagedPolicyAttachmentState? state, CustomResourceOptions? opts = null)
    public static CustomerManagedPolicyAttachment get(String name, Output<String> id, CustomerManagedPolicyAttachmentState 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:
    CustomerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    InstanceArn string

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    PermissionSetArn string

    The Amazon Resource Name (ARN) of the Permission Set.

    CustomerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    InstanceArn string

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    PermissionSetArn string

    The Amazon Resource Name (ARN) of the Permission Set.

    customerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    instanceArn String

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permissionSetArn String

    The Amazon Resource Name (ARN) of the Permission Set.

    customerManagedPolicyReference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    instanceArn string

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permissionSetArn string

    The Amazon Resource Name (ARN) of the Permission Set.

    customer_managed_policy_reference CustomerManagedPolicyAttachmentCustomerManagedPolicyReferenceArgs

    Specifies the name and path of a customer managed policy. See below.

    instance_arn str

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permission_set_arn str

    The Amazon Resource Name (ARN) of the Permission Set.

    customerManagedPolicyReference Property Map

    Specifies the name and path of a customer managed policy. See below.

    instanceArn String

    The Amazon Resource Name (ARN) of the SSO Instance under which the operation will be executed.

    permissionSetArn String

    The Amazon Resource Name (ARN) of the Permission Set.

    Supporting Types

    CustomerManagedPolicyAttachmentCustomerManagedPolicyReference

    Name string

    Name of the customer managed IAM Policy to be attached.

    Path string

    The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.

    Name string

    Name of the customer managed IAM Policy to be attached.

    Path string

    The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.

    name String

    Name of the customer managed IAM Policy to be attached.

    path String

    The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.

    name string

    Name of the customer managed IAM Policy to be attached.

    path string

    The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.

    name str

    Name of the customer managed IAM Policy to be attached.

    path str

    The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.

    name String

    Name of the customer managed IAM Policy to be attached.

    path String

    The path to the IAM policy to be attached. The default is /. See IAM Identifiers for more information.

    Import

    SSO Managed Policy Attachments can be imported using the name, path, permission_set_arn, and instance_arn separated by a comma (,) e.g.,

     $ pulumi import aws:ssoadmin/customerManagedPolicyAttachment:CustomerManagedPolicyAttachment example TestPolicy,/,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 v5.41.0 published on Monday, May 15, 2023 by Pulumi