AWS License Manager User Subscriptions

2025/09/19 - AWS License Manager User Subscriptions - 11 updated api methods

Changes  Added support for cross-account Active Directories.

AssociateUser (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'InstanceUserSummary': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}}

Associates the user to an EC2 instance to utilize user-based subscriptions.

See also: AWS API Documentation

Request Syntax

client.associate_user(
    Username='string',
    InstanceId='string',
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    Domain='string',
    Tags={
        'string': 'string'
    }
)
type Username:

string

param Username:

[REQUIRED]

The user name from the identity provider.

type InstanceId:

string

param InstanceId:

[REQUIRED]

The ID of the EC2 instance that provides the user-based subscription.

type IdentityProvider:

dict

param IdentityProvider:

[REQUIRED]

The identity provider for the user.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type Domain:

string

param Domain:

The domain name of the Active Directory that contains information for the user to associate.

type Tags:

dict

param Tags:

The tags that apply for the user association.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'InstanceUserSummary': {
        'Username': 'string',
        'InstanceId': 'string',
        'IdentityProvider': {
            'ActiveDirectoryIdentityProvider': {
                'DirectoryId': 'string',
                'ActiveDirectorySettings': {
                    'DomainName': 'string',
                    'DomainIpv4List': [
                        'string',
                    ],
                    'DomainCredentialsProvider': {
                        'SecretsManagerCredentialsProvider': {
                            'SecretId': 'string'
                        }
                    },
                    'DomainNetworkSettings': {
                        'Subnets': [
                            'string',
                        ]
                    }
                },
                'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                'IsSharedActiveDirectory': True|False
            }
        },
        'Status': 'string',
        'InstanceUserArn': 'string',
        'StatusMessage': 'string',
        'Domain': 'string',
        'AssociationDate': 'string',
        'DisassociationDate': 'string'
    }
}

Response Structure

  • (dict) --

    • InstanceUserSummary (dict) --

      Metadata that describes the associate user operation.

      • Username (string) --

        The user name from the identity provider for the user.

      • InstanceId (string) --

        The ID of the EC2 instance that provides user-based subscriptions.

      • IdentityProvider (dict) --

        The IdentityProvider resource specifies details about the identity provider.

        • ActiveDirectoryIdentityProvider (dict) --

          The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

          • DirectoryId (string) --

            The directory ID for an Active Directory identity provider.

          • ActiveDirectorySettings (dict) --

            The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

            • DomainName (string) --

              The domain name for the Active Directory.

            • DomainIpv4List (list) --

              A list of domain IPv4 addresses that are used for the Active Directory.

              • (string) --

            • DomainCredentialsProvider (dict) --

              Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

              • SecretsManagerCredentialsProvider (dict) --

                Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                • SecretId (string) --

                  The ID of the Secrets Manager secret that contains credentials.

            • DomainNetworkSettings (dict) --

              The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

              • Subnets (list) --

                Contains a list of subnets that apply for the Active Directory domain.

                • (string) --

          • ActiveDirectoryType (string) --

            The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

          • IsSharedActiveDirectory (boolean) --

            Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

      • Status (string) --

        The status of a user associated with an EC2 instance.

      • InstanceUserArn (string) --

        The Amazon Resource Name (ARN) that identifies the instance user.

      • StatusMessage (string) --

        The status message for users of an EC2 instance.

      • Domain (string) --

        The domain name of the Active Directory that contains the user information for the product subscription.

      • AssociationDate (string) --

        The date a user was associated with an EC2 instance.

      • DisassociationDate (string) --

        The date a user was disassociated from an EC2 instance.

DeregisterIdentityProvider (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'IdentityProviderSummary': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}},
                             'OwnerAccountId': 'string'}}

Deregisters the Active Directory identity provider from License Manager user-based subscriptions.

See also: AWS API Documentation

Request Syntax

client.deregister_identity_provider(
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    Product='string',
    IdentityProviderArn='string'
)
type IdentityProvider:

dict

param IdentityProvider:

An object that specifies details for the Active Directory identity provider.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type Product:

string

param Product:

The name of the user-based subscription product.

Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | REMOTE_DESKTOP_SERVICES

type IdentityProviderArn:

string

param IdentityProviderArn:

The Amazon Resource Name (ARN) that identifies the identity provider to deregister.

rtype:

dict

returns:

Response Syntax

{
    'IdentityProviderSummary': {
        'IdentityProvider': {
            'ActiveDirectoryIdentityProvider': {
                'DirectoryId': 'string',
                'ActiveDirectorySettings': {
                    'DomainName': 'string',
                    'DomainIpv4List': [
                        'string',
                    ],
                    'DomainCredentialsProvider': {
                        'SecretsManagerCredentialsProvider': {
                            'SecretId': 'string'
                        }
                    },
                    'DomainNetworkSettings': {
                        'Subnets': [
                            'string',
                        ]
                    }
                },
                'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                'IsSharedActiveDirectory': True|False
            }
        },
        'Settings': {
            'Subnets': [
                'string',
            ],
            'SecurityGroupId': 'string'
        },
        'Product': 'string',
        'Status': 'string',
        'IdentityProviderArn': 'string',
        'FailureMessage': 'string',
        'OwnerAccountId': 'string'
    }
}

Response Structure

  • (dict) --

    • IdentityProviderSummary (dict) --

      Metadata that describes the results of an identity provider operation.

      • IdentityProvider (dict) --

        The IdentityProvider resource contains information about an identity provider.

        • ActiveDirectoryIdentityProvider (dict) --

          The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

          • DirectoryId (string) --

            The directory ID for an Active Directory identity provider.

          • ActiveDirectorySettings (dict) --

            The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

            • DomainName (string) --

              The domain name for the Active Directory.

            • DomainIpv4List (list) --

              A list of domain IPv4 addresses that are used for the Active Directory.

              • (string) --

            • DomainCredentialsProvider (dict) --

              Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

              • SecretsManagerCredentialsProvider (dict) --

                Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                • SecretId (string) --

                  The ID of the Secrets Manager secret that contains credentials.

            • DomainNetworkSettings (dict) --

              The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

              • Subnets (list) --

                Contains a list of subnets that apply for the Active Directory domain.

                • (string) --

          • ActiveDirectoryType (string) --

            The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

          • IsSharedActiveDirectory (boolean) --

            Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

      • Settings (dict) --

        The Settings resource contains details about the registered identity provider’s product related configuration settings, such as the subnets to provision VPC endpoints.

        • Subnets (list) --

          The subnets defined for the registered identity provider.

          • (string) --

        • SecurityGroupId (string) --

          A security group ID that allows inbound TCP port 1688 communication between resources in your VPC and the VPC endpoint for activation servers.

      • Product (string) --

        The name of the user-based subscription product.

      • Status (string) --

        The status of the identity provider.

      • IdentityProviderArn (string) --

        The Amazon Resource Name (ARN) of the identity provider.

      • FailureMessage (string) --

        The failure message associated with an identity provider.

      • OwnerAccountId (string) --

        The AWS Account ID of the owner of this resource.

DisassociateUser (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'InstanceUserSummary': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}}

Disassociates the user from an EC2 instance providing user-based subscriptions.

See also: AWS API Documentation

Request Syntax

client.disassociate_user(
    Username='string',
    InstanceId='string',
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    InstanceUserArn='string',
    Domain='string'
)
type Username:

string

param Username:

The user name from the Active Directory identity provider for the user.

type InstanceId:

string

param InstanceId:

The ID of the EC2 instance which provides user-based subscriptions.

type IdentityProvider:

dict

param IdentityProvider:

An object that specifies details for the Active Directory identity provider.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type InstanceUserArn:

string

param InstanceUserArn:

The Amazon Resource Name (ARN) of the user to disassociate from the EC2 instance.

type Domain:

string

param Domain:

The domain name of the Active Directory that contains information for the user to disassociate.

rtype:

dict

returns:

Response Syntax

{
    'InstanceUserSummary': {
        'Username': 'string',
        'InstanceId': 'string',
        'IdentityProvider': {
            'ActiveDirectoryIdentityProvider': {
                'DirectoryId': 'string',
                'ActiveDirectorySettings': {
                    'DomainName': 'string',
                    'DomainIpv4List': [
                        'string',
                    ],
                    'DomainCredentialsProvider': {
                        'SecretsManagerCredentialsProvider': {
                            'SecretId': 'string'
                        }
                    },
                    'DomainNetworkSettings': {
                        'Subnets': [
                            'string',
                        ]
                    }
                },
                'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                'IsSharedActiveDirectory': True|False
            }
        },
        'Status': 'string',
        'InstanceUserArn': 'string',
        'StatusMessage': 'string',
        'Domain': 'string',
        'AssociationDate': 'string',
        'DisassociationDate': 'string'
    }
}

Response Structure

  • (dict) --

    • InstanceUserSummary (dict) --

      Metadata that describes the associate user operation.

      • Username (string) --

        The user name from the identity provider for the user.

      • InstanceId (string) --

        The ID of the EC2 instance that provides user-based subscriptions.

      • IdentityProvider (dict) --

        The IdentityProvider resource specifies details about the identity provider.

        • ActiveDirectoryIdentityProvider (dict) --

          The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

          • DirectoryId (string) --

            The directory ID for an Active Directory identity provider.

          • ActiveDirectorySettings (dict) --

            The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

            • DomainName (string) --

              The domain name for the Active Directory.

            • DomainIpv4List (list) --

              A list of domain IPv4 addresses that are used for the Active Directory.

              • (string) --

            • DomainCredentialsProvider (dict) --

              Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

              • SecretsManagerCredentialsProvider (dict) --

                Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                • SecretId (string) --

                  The ID of the Secrets Manager secret that contains credentials.

            • DomainNetworkSettings (dict) --

              The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

              • Subnets (list) --

                Contains a list of subnets that apply for the Active Directory domain.

                • (string) --

          • ActiveDirectoryType (string) --

            The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

          • IsSharedActiveDirectory (boolean) --

            Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

      • Status (string) --

        The status of a user associated with an EC2 instance.

      • InstanceUserArn (string) --

        The Amazon Resource Name (ARN) that identifies the instance user.

      • StatusMessage (string) --

        The status message for users of an EC2 instance.

      • Domain (string) --

        The domain name of the Active Directory that contains the user information for the product subscription.

      • AssociationDate (string) --

        The date a user was associated with an EC2 instance.

      • DisassociationDate (string) --

        The date a user was disassociated from an EC2 instance.

ListIdentityProviders (updated) Link ¶
Changes (response)
{'IdentityProviderSummaries': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}},
                               'OwnerAccountId': 'string'}}

Lists the Active Directory identity providers for user-based subscriptions.

See also: AWS API Documentation

Request Syntax

client.list_identity_providers(
    MaxResults=123,
    Filters=[
        {
            'Attribute': 'string',
            'Operation': 'string',
            'Value': 'string'
        },
    ],
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return from a single request.

type Filters:

list

param Filters:

You can use the following filters to streamline results:

  • Product

  • DirectoryId

  • (dict) --

    A filter name and value pair that is used to return more specific results from a describe or list operation. You can use filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    • Attribute (string) --

      The name of an attribute to use as a filter.

    • Operation (string) --

      The type of search (For example, eq, geq, leq)

    • Value (string) --

      Value of the filter.

type NextToken:

string

param NextToken:

A token to specify where to start paginating. This is the nextToken from a previously truncated response.

rtype:

dict

returns:

Response Syntax

{
    'IdentityProviderSummaries': [
        {
            'IdentityProvider': {
                'ActiveDirectoryIdentityProvider': {
                    'DirectoryId': 'string',
                    'ActiveDirectorySettings': {
                        'DomainName': 'string',
                        'DomainIpv4List': [
                            'string',
                        ],
                        'DomainCredentialsProvider': {
                            'SecretsManagerCredentialsProvider': {
                                'SecretId': 'string'
                            }
                        },
                        'DomainNetworkSettings': {
                            'Subnets': [
                                'string',
                            ]
                        }
                    },
                    'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                    'IsSharedActiveDirectory': True|False
                }
            },
            'Settings': {
                'Subnets': [
                    'string',
                ],
                'SecurityGroupId': 'string'
            },
            'Product': 'string',
            'Status': 'string',
            'IdentityProviderArn': 'string',
            'FailureMessage': 'string',
            'OwnerAccountId': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • IdentityProviderSummaries (list) --

      An array of IdentityProviderSummary resources that contain details about the Active Directory identity providers that meet the request criteria.

      • (dict) --

        Describes an identity provider.

        • IdentityProvider (dict) --

          The IdentityProvider resource contains information about an identity provider.

          • ActiveDirectoryIdentityProvider (dict) --

            The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

            • DirectoryId (string) --

              The directory ID for an Active Directory identity provider.

            • ActiveDirectorySettings (dict) --

              The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

              • DomainName (string) --

                The domain name for the Active Directory.

              • DomainIpv4List (list) --

                A list of domain IPv4 addresses that are used for the Active Directory.

                • (string) --

              • DomainCredentialsProvider (dict) --

                Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

                • SecretsManagerCredentialsProvider (dict) --

                  Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                  • SecretId (string) --

                    The ID of the Secrets Manager secret that contains credentials.

              • DomainNetworkSettings (dict) --

                The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

                • Subnets (list) --

                  Contains a list of subnets that apply for the Active Directory domain.

                  • (string) --

            • ActiveDirectoryType (string) --

              The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

            • IsSharedActiveDirectory (boolean) --

              Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

        • Settings (dict) --

          The Settings resource contains details about the registered identity provider’s product related configuration settings, such as the subnets to provision VPC endpoints.

          • Subnets (list) --

            The subnets defined for the registered identity provider.

            • (string) --

          • SecurityGroupId (string) --

            A security group ID that allows inbound TCP port 1688 communication between resources in your VPC and the VPC endpoint for activation servers.

        • Product (string) --

          The name of the user-based subscription product.

        • Status (string) --

          The status of the identity provider.

        • IdentityProviderArn (string) --

          The Amazon Resource Name (ARN) of the identity provider.

        • FailureMessage (string) --

          The failure message associated with an identity provider.

        • OwnerAccountId (string) --

          The AWS Account ID of the owner of this resource.

    • NextToken (string) --

      The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.

ListInstances (updated) Link ¶
Changes (response)
{'InstanceSummaries': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'ActiveDirectorySettings': {'DomainCredentialsProvider': {'SecretsManagerCredentialsProvider': {'SecretId': 'string'}},
                                                                                                            'DomainIpv4List': ['string'],
                                                                                                            'DomainName': 'string',
                                                                                                            'DomainNetworkSettings': {'Subnets': ['string']}},
                                                                                'ActiveDirectoryType': 'SELF_MANAGED '
                                                                                                       '| '
                                                                                                       'AWS_MANAGED',
                                                                                'DirectoryId': 'string',
                                                                                'IsSharedActiveDirectory': 'boolean'}},
                       'OwnerAccountId': 'string'}}

Lists the EC2 instances providing user-based subscriptions.

See also: AWS API Documentation

Request Syntax

client.list_instances(
    MaxResults=123,
    NextToken='string',
    Filters=[
        {
            'Attribute': 'string',
            'Operation': 'string',
            'Value': 'string'
        },
    ]
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return from a single request.

type NextToken:

string

param NextToken:

A token to specify where to start paginating. This is the nextToken from a previously truncated response.

type Filters:

list

param Filters:

You can use the following filters to streamline results:

  • Status

  • InstanceId

  • (dict) --

    A filter name and value pair that is used to return more specific results from a describe or list operation. You can use filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    • Attribute (string) --

      The name of an attribute to use as a filter.

    • Operation (string) --

      The type of search (For example, eq, geq, leq)

    • Value (string) --

      Value of the filter.

rtype:

dict

returns:

Response Syntax

{
    'InstanceSummaries': [
        {
            'InstanceId': 'string',
            'Status': 'string',
            'Products': [
                'string',
            ],
            'LastStatusCheckDate': 'string',
            'StatusMessage': 'string',
            'OwnerAccountId': 'string',
            'IdentityProvider': {
                'ActiveDirectoryIdentityProvider': {
                    'DirectoryId': 'string',
                    'ActiveDirectorySettings': {
                        'DomainName': 'string',
                        'DomainIpv4List': [
                            'string',
                        ],
                        'DomainCredentialsProvider': {
                            'SecretsManagerCredentialsProvider': {
                                'SecretId': 'string'
                            }
                        },
                        'DomainNetworkSettings': {
                            'Subnets': [
                                'string',
                            ]
                        }
                    },
                    'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                    'IsSharedActiveDirectory': True|False
                }
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • InstanceSummaries (list) --

      An array of InstanceSummary resources that contain details about the instances that provide user-based subscriptions and also meet the request criteria.

      • (dict) --

        Describes an EC2 instance providing user-based subscriptions.

        • InstanceId (string) --

          The ID of the EC2 instance, which provides user-based subscriptions.

        • Status (string) --

          The status of an EC2 instance resource.

        • Products (list) --

          A list of provided user-based subscription products.

          • (string) --

        • LastStatusCheckDate (string) --

          The date of the last status check.

        • StatusMessage (string) --

          The status message for an EC2 instance.

        • OwnerAccountId (string) --

          The AWS Account ID of the owner of this resource.

        • IdentityProvider (dict) --

          The IdentityProvider resource specifies details about the identity provider.

          • ActiveDirectoryIdentityProvider (dict) --

            The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

            • DirectoryId (string) --

              The directory ID for an Active Directory identity provider.

            • ActiveDirectorySettings (dict) --

              The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

              • DomainName (string) --

                The domain name for the Active Directory.

              • DomainIpv4List (list) --

                A list of domain IPv4 addresses that are used for the Active Directory.

                • (string) --

              • DomainCredentialsProvider (dict) --

                Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

                • SecretsManagerCredentialsProvider (dict) --

                  Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                  • SecretId (string) --

                    The ID of the Secrets Manager secret that contains credentials.

              • DomainNetworkSettings (dict) --

                The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

                • Subnets (list) --

                  Contains a list of subnets that apply for the Active Directory domain.

                  • (string) --

            • ActiveDirectoryType (string) --

              The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

            • IsSharedActiveDirectory (boolean) --

              Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

    • NextToken (string) --

      The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.

ListProductSubscriptions (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'ProductUserSummaries': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}}

Lists the user-based subscription products available from an identity provider.

See also: AWS API Documentation

Request Syntax

client.list_product_subscriptions(
    Product='string',
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    MaxResults=123,
    Filters=[
        {
            'Attribute': 'string',
            'Operation': 'string',
            'Value': 'string'
        },
    ],
    NextToken='string'
)
type Product:

string

param Product:

The name of the user-based subscription product.

Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | REMOTE_DESKTOP_SERVICES

type IdentityProvider:

dict

param IdentityProvider:

[REQUIRED]

An object that specifies details for the identity provider.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return from a single request.

type Filters:

list

param Filters:

You can use the following filters to streamline results:

  • Status

  • Username

  • Domain

  • (dict) --

    A filter name and value pair that is used to return more specific results from a describe or list operation. You can use filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    • Attribute (string) --

      The name of an attribute to use as a filter.

    • Operation (string) --

      The type of search (For example, eq, geq, leq)

    • Value (string) --

      Value of the filter.

type NextToken:

string

param NextToken:

A token to specify where to start paginating. This is the nextToken from a previously truncated response.

rtype:

dict

returns:

Response Syntax

{
    'ProductUserSummaries': [
        {
            'Username': 'string',
            'Product': 'string',
            'IdentityProvider': {
                'ActiveDirectoryIdentityProvider': {
                    'DirectoryId': 'string',
                    'ActiveDirectorySettings': {
                        'DomainName': 'string',
                        'DomainIpv4List': [
                            'string',
                        ],
                        'DomainCredentialsProvider': {
                            'SecretsManagerCredentialsProvider': {
                                'SecretId': 'string'
                            }
                        },
                        'DomainNetworkSettings': {
                            'Subnets': [
                                'string',
                            ]
                        }
                    },
                    'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                    'IsSharedActiveDirectory': True|False
                }
            },
            'Status': 'string',
            'ProductUserArn': 'string',
            'StatusMessage': 'string',
            'Domain': 'string',
            'SubscriptionStartDate': 'string',
            'SubscriptionEndDate': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ProductUserSummaries (list) --

      Metadata that describes the list product subscriptions operation.

      • (dict) --

        A summary of the user-based subscription products for a specific user.

        • Username (string) --

          The user name from the identity provider for this product user.

        • Product (string) --

          The name of the user-based subscription product.

        • IdentityProvider (dict) --

          An object that specifies details for the identity provider.

          • ActiveDirectoryIdentityProvider (dict) --

            The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

            • DirectoryId (string) --

              The directory ID for an Active Directory identity provider.

            • ActiveDirectorySettings (dict) --

              The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

              • DomainName (string) --

                The domain name for the Active Directory.

              • DomainIpv4List (list) --

                A list of domain IPv4 addresses that are used for the Active Directory.

                • (string) --

              • DomainCredentialsProvider (dict) --

                Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

                • SecretsManagerCredentialsProvider (dict) --

                  Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                  • SecretId (string) --

                    The ID of the Secrets Manager secret that contains credentials.

              • DomainNetworkSettings (dict) --

                The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

                • Subnets (list) --

                  Contains a list of subnets that apply for the Active Directory domain.

                  • (string) --

            • ActiveDirectoryType (string) --

              The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

            • IsSharedActiveDirectory (boolean) --

              Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

        • Status (string) --

          The status of a product for this user.

        • ProductUserArn (string) --

          The Amazon Resource Name (ARN) for this product user.

        • StatusMessage (string) --

          The status message for a product for this user.

        • Domain (string) --

          The domain name of the Active Directory that contains the user information for the product subscription.

        • SubscriptionStartDate (string) --

          The start date of a subscription.

        • SubscriptionEndDate (string) --

          The end date of a subscription.

    • NextToken (string) --

      The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.

ListUserAssociations (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'InstanceUserSummaries': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}}

Lists user associations for an identity provider.

See also: AWS API Documentation

Request Syntax

client.list_user_associations(
    InstanceId='string',
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    MaxResults=123,
    Filters=[
        {
            'Attribute': 'string',
            'Operation': 'string',
            'Value': 'string'
        },
    ],
    NextToken='string'
)
type InstanceId:

string

param InstanceId:

[REQUIRED]

The ID of the EC2 instance, which provides user-based subscriptions.

type IdentityProvider:

dict

param IdentityProvider:

[REQUIRED]

An object that specifies details for the identity provider.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return from a single request.

type Filters:

list

param Filters:

You can use the following filters to streamline results:

  • Status

  • Username

  • Domain

  • (dict) --

    A filter name and value pair that is used to return more specific results from a describe or list operation. You can use filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    • Attribute (string) --

      The name of an attribute to use as a filter.

    • Operation (string) --

      The type of search (For example, eq, geq, leq)

    • Value (string) --

      Value of the filter.

type NextToken:

string

param NextToken:

A token to specify where to start paginating. This is the nextToken from a previously truncated response.

rtype:

dict

returns:

Response Syntax

{
    'InstanceUserSummaries': [
        {
            'Username': 'string',
            'InstanceId': 'string',
            'IdentityProvider': {
                'ActiveDirectoryIdentityProvider': {
                    'DirectoryId': 'string',
                    'ActiveDirectorySettings': {
                        'DomainName': 'string',
                        'DomainIpv4List': [
                            'string',
                        ],
                        'DomainCredentialsProvider': {
                            'SecretsManagerCredentialsProvider': {
                                'SecretId': 'string'
                            }
                        },
                        'DomainNetworkSettings': {
                            'Subnets': [
                                'string',
                            ]
                        }
                    },
                    'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                    'IsSharedActiveDirectory': True|False
                }
            },
            'Status': 'string',
            'InstanceUserArn': 'string',
            'StatusMessage': 'string',
            'Domain': 'string',
            'AssociationDate': 'string',
            'DisassociationDate': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • InstanceUserSummaries (list) --

      Metadata that describes the list user association operation.

      • (dict) --

        Describes users of an EC2 instance providing user-based subscriptions.

        • Username (string) --

          The user name from the identity provider for the user.

        • InstanceId (string) --

          The ID of the EC2 instance that provides user-based subscriptions.

        • IdentityProvider (dict) --

          The IdentityProvider resource specifies details about the identity provider.

          • ActiveDirectoryIdentityProvider (dict) --

            The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

            • DirectoryId (string) --

              The directory ID for an Active Directory identity provider.

            • ActiveDirectorySettings (dict) --

              The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

              • DomainName (string) --

                The domain name for the Active Directory.

              • DomainIpv4List (list) --

                A list of domain IPv4 addresses that are used for the Active Directory.

                • (string) --

              • DomainCredentialsProvider (dict) --

                Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

                • SecretsManagerCredentialsProvider (dict) --

                  Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                  • SecretId (string) --

                    The ID of the Secrets Manager secret that contains credentials.

              • DomainNetworkSettings (dict) --

                The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

                • Subnets (list) --

                  Contains a list of subnets that apply for the Active Directory domain.

                  • (string) --

            • ActiveDirectoryType (string) --

              The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

            • IsSharedActiveDirectory (boolean) --

              Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

        • Status (string) --

          The status of a user associated with an EC2 instance.

        • InstanceUserArn (string) --

          The Amazon Resource Name (ARN) that identifies the instance user.

        • StatusMessage (string) --

          The status message for users of an EC2 instance.

        • Domain (string) --

          The domain name of the Active Directory that contains the user information for the product subscription.

        • AssociationDate (string) --

          The date a user was associated with an EC2 instance.

        • DisassociationDate (string) --

          The date a user was disassociated from an EC2 instance.

    • NextToken (string) --

      The next token used for paginated responses. When this field isn't empty, there are additional elements that the service hasn't included in this request. Use this token with the next request to retrieve additional objects.

RegisterIdentityProvider (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'IdentityProviderSummary': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}},
                             'OwnerAccountId': 'string'}}

Registers an identity provider for user-based subscriptions.

See also: AWS API Documentation

Request Syntax

client.register_identity_provider(
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    Product='string',
    Settings={
        'Subnets': [
            'string',
        ],
        'SecurityGroupId': 'string'
    },
    Tags={
        'string': 'string'
    }
)
type IdentityProvider:

dict

param IdentityProvider:

[REQUIRED]

An object that specifies details for the identity provider to register.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type Product:

string

param Product:

[REQUIRED]

The name of the user-based subscription product.

Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | REMOTE_DESKTOP_SERVICES

type Settings:

dict

param Settings:

The registered identity provider’s product related configuration settings such as the subnets to provision VPC endpoints.

  • Subnets (list) -- [REQUIRED]

    The subnets defined for the registered identity provider.

    • (string) --

  • SecurityGroupId (string) -- [REQUIRED]

    A security group ID that allows inbound TCP port 1688 communication between resources in your VPC and the VPC endpoint for activation servers.

type Tags:

dict

param Tags:

The tags that apply to the identity provider's registration.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'IdentityProviderSummary': {
        'IdentityProvider': {
            'ActiveDirectoryIdentityProvider': {
                'DirectoryId': 'string',
                'ActiveDirectorySettings': {
                    'DomainName': 'string',
                    'DomainIpv4List': [
                        'string',
                    ],
                    'DomainCredentialsProvider': {
                        'SecretsManagerCredentialsProvider': {
                            'SecretId': 'string'
                        }
                    },
                    'DomainNetworkSettings': {
                        'Subnets': [
                            'string',
                        ]
                    }
                },
                'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                'IsSharedActiveDirectory': True|False
            }
        },
        'Settings': {
            'Subnets': [
                'string',
            ],
            'SecurityGroupId': 'string'
        },
        'Product': 'string',
        'Status': 'string',
        'IdentityProviderArn': 'string',
        'FailureMessage': 'string',
        'OwnerAccountId': 'string'
    }
}

Response Structure

  • (dict) --

    • IdentityProviderSummary (dict) --

      Metadata that describes the results of an identity provider operation.

      • IdentityProvider (dict) --

        The IdentityProvider resource contains information about an identity provider.

        • ActiveDirectoryIdentityProvider (dict) --

          The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

          • DirectoryId (string) --

            The directory ID for an Active Directory identity provider.

          • ActiveDirectorySettings (dict) --

            The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

            • DomainName (string) --

              The domain name for the Active Directory.

            • DomainIpv4List (list) --

              A list of domain IPv4 addresses that are used for the Active Directory.

              • (string) --

            • DomainCredentialsProvider (dict) --

              Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

              • SecretsManagerCredentialsProvider (dict) --

                Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                • SecretId (string) --

                  The ID of the Secrets Manager secret that contains credentials.

            • DomainNetworkSettings (dict) --

              The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

              • Subnets (list) --

                Contains a list of subnets that apply for the Active Directory domain.

                • (string) --

          • ActiveDirectoryType (string) --

            The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

          • IsSharedActiveDirectory (boolean) --

            Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

      • Settings (dict) --

        The Settings resource contains details about the registered identity provider’s product related configuration settings, such as the subnets to provision VPC endpoints.

        • Subnets (list) --

          The subnets defined for the registered identity provider.

          • (string) --

        • SecurityGroupId (string) --

          A security group ID that allows inbound TCP port 1688 communication between resources in your VPC and the VPC endpoint for activation servers.

      • Product (string) --

        The name of the user-based subscription product.

      • Status (string) --

        The status of the identity provider.

      • IdentityProviderArn (string) --

        The Amazon Resource Name (ARN) of the identity provider.

      • FailureMessage (string) --

        The failure message associated with an identity provider.

      • OwnerAccountId (string) --

        The AWS Account ID of the owner of this resource.

StartProductSubscription (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'ProductUserSummary': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}}

Starts a product subscription for a user with the specified identity provider.

See also: AWS API Documentation

Request Syntax

client.start_product_subscription(
    Username='string',
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    Product='string',
    Domain='string',
    Tags={
        'string': 'string'
    }
)
type Username:

string

param Username:

[REQUIRED]

The user name from the identity provider of the user.

type IdentityProvider:

dict

param IdentityProvider:

[REQUIRED]

An object that specifies details for the identity provider.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type Product:

string

param Product:

[REQUIRED]

The name of the user-based subscription product.

Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | REMOTE_DESKTOP_SERVICES

type Domain:

string

param Domain:

The domain name of the Active Directory that contains the user for whom to start the product subscription.

type Tags:

dict

param Tags:

The tags that apply to the product subscription.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'ProductUserSummary': {
        'Username': 'string',
        'Product': 'string',
        'IdentityProvider': {
            'ActiveDirectoryIdentityProvider': {
                'DirectoryId': 'string',
                'ActiveDirectorySettings': {
                    'DomainName': 'string',
                    'DomainIpv4List': [
                        'string',
                    ],
                    'DomainCredentialsProvider': {
                        'SecretsManagerCredentialsProvider': {
                            'SecretId': 'string'
                        }
                    },
                    'DomainNetworkSettings': {
                        'Subnets': [
                            'string',
                        ]
                    }
                },
                'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                'IsSharedActiveDirectory': True|False
            }
        },
        'Status': 'string',
        'ProductUserArn': 'string',
        'StatusMessage': 'string',
        'Domain': 'string',
        'SubscriptionStartDate': 'string',
        'SubscriptionEndDate': 'string'
    }
}

Response Structure

  • (dict) --

    • ProductUserSummary (dict) --

      Metadata that describes the start product subscription operation.

      • Username (string) --

        The user name from the identity provider for this product user.

      • Product (string) --

        The name of the user-based subscription product.

      • IdentityProvider (dict) --

        An object that specifies details for the identity provider.

        • ActiveDirectoryIdentityProvider (dict) --

          The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

          • DirectoryId (string) --

            The directory ID for an Active Directory identity provider.

          • ActiveDirectorySettings (dict) --

            The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

            • DomainName (string) --

              The domain name for the Active Directory.

            • DomainIpv4List (list) --

              A list of domain IPv4 addresses that are used for the Active Directory.

              • (string) --

            • DomainCredentialsProvider (dict) --

              Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

              • SecretsManagerCredentialsProvider (dict) --

                Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                • SecretId (string) --

                  The ID of the Secrets Manager secret that contains credentials.

            • DomainNetworkSettings (dict) --

              The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

              • Subnets (list) --

                Contains a list of subnets that apply for the Active Directory domain.

                • (string) --

          • ActiveDirectoryType (string) --

            The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

          • IsSharedActiveDirectory (boolean) --

            Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

      • Status (string) --

        The status of a product for this user.

      • ProductUserArn (string) --

        The Amazon Resource Name (ARN) for this product user.

      • StatusMessage (string) --

        The status message for a product for this user.

      • Domain (string) --

        The domain name of the Active Directory that contains the user information for the product subscription.

      • SubscriptionStartDate (string) --

        The start date of a subscription.

      • SubscriptionEndDate (string) --

        The end date of a subscription.

StopProductSubscription (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'ProductUserSummary': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}}

Stops a product subscription for a user with the specified identity provider.

See also: AWS API Documentation

Request Syntax

client.stop_product_subscription(
    Username='string',
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    Product='string',
    ProductUserArn='string',
    Domain='string'
)
type Username:

string

param Username:

The user name from the identity provider for the user.

type IdentityProvider:

dict

param IdentityProvider:

An object that specifies details for the identity provider.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type Product:

string

param Product:

The name of the user-based subscription product.

Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | REMOTE_DESKTOP_SERVICES

type ProductUserArn:

string

param ProductUserArn:

The Amazon Resource Name (ARN) of the product user.

type Domain:

string

param Domain:

The domain name of the Active Directory that contains the user for whom to stop the product subscription.

rtype:

dict

returns:

Response Syntax

{
    'ProductUserSummary': {
        'Username': 'string',
        'Product': 'string',
        'IdentityProvider': {
            'ActiveDirectoryIdentityProvider': {
                'DirectoryId': 'string',
                'ActiveDirectorySettings': {
                    'DomainName': 'string',
                    'DomainIpv4List': [
                        'string',
                    ],
                    'DomainCredentialsProvider': {
                        'SecretsManagerCredentialsProvider': {
                            'SecretId': 'string'
                        }
                    },
                    'DomainNetworkSettings': {
                        'Subnets': [
                            'string',
                        ]
                    }
                },
                'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                'IsSharedActiveDirectory': True|False
            }
        },
        'Status': 'string',
        'ProductUserArn': 'string',
        'StatusMessage': 'string',
        'Domain': 'string',
        'SubscriptionStartDate': 'string',
        'SubscriptionEndDate': 'string'
    }
}

Response Structure

  • (dict) --

    • ProductUserSummary (dict) --

      Metadata that describes the start product subscription operation.

      • Username (string) --

        The user name from the identity provider for this product user.

      • Product (string) --

        The name of the user-based subscription product.

      • IdentityProvider (dict) --

        An object that specifies details for the identity provider.

        • ActiveDirectoryIdentityProvider (dict) --

          The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

          • DirectoryId (string) --

            The directory ID for an Active Directory identity provider.

          • ActiveDirectorySettings (dict) --

            The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

            • DomainName (string) --

              The domain name for the Active Directory.

            • DomainIpv4List (list) --

              A list of domain IPv4 addresses that are used for the Active Directory.

              • (string) --

            • DomainCredentialsProvider (dict) --

              Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

              • SecretsManagerCredentialsProvider (dict) --

                Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                • SecretId (string) --

                  The ID of the Secrets Manager secret that contains credentials.

            • DomainNetworkSettings (dict) --

              The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

              • Subnets (list) --

                Contains a list of subnets that apply for the Active Directory domain.

                • (string) --

          • ActiveDirectoryType (string) --

            The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

          • IsSharedActiveDirectory (boolean) --

            Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

      • Status (string) --

        The status of a product for this user.

      • ProductUserArn (string) --

        The Amazon Resource Name (ARN) for this product user.

      • StatusMessage (string) --

        The status message for a product for this user.

      • Domain (string) --

        The domain name of the Active Directory that contains the user information for the product subscription.

      • SubscriptionStartDate (string) --

        The start date of a subscription.

      • SubscriptionEndDate (string) --

        The end date of a subscription.

UpdateIdentityProviderSettings (updated) Link ¶
Changes (request, response)
Request
{'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}}}
Response
{'IdentityProviderSummary': {'IdentityProvider': {'ActiveDirectoryIdentityProvider': {'IsSharedActiveDirectory': 'boolean'}},
                             'OwnerAccountId': 'string'}}

Updates additional product configuration settings for the registered identity provider.

See also: AWS API Documentation

Request Syntax

client.update_identity_provider_settings(
    IdentityProvider={
        'ActiveDirectoryIdentityProvider': {
            'DirectoryId': 'string',
            'ActiveDirectorySettings': {
                'DomainName': 'string',
                'DomainIpv4List': [
                    'string',
                ],
                'DomainCredentialsProvider': {
                    'SecretsManagerCredentialsProvider': {
                        'SecretId': 'string'
                    }
                },
                'DomainNetworkSettings': {
                    'Subnets': [
                        'string',
                    ]
                }
            },
            'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
            'IsSharedActiveDirectory': True|False
        }
    },
    Product='string',
    IdentityProviderArn='string',
    UpdateSettings={
        'AddSubnets': [
            'string',
        ],
        'RemoveSubnets': [
            'string',
        ],
        'SecurityGroupId': 'string'
    }
)
type IdentityProvider:

dict

param IdentityProvider:

Refers to an identity provider.

  • ActiveDirectoryIdentityProvider (dict) --

    The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

    • DirectoryId (string) --

      The directory ID for an Active Directory identity provider.

    • ActiveDirectorySettings (dict) --

      The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

      • DomainName (string) --

        The domain name for the Active Directory.

      • DomainIpv4List (list) --

        A list of domain IPv4 addresses that are used for the Active Directory.

        • (string) --

      • DomainCredentialsProvider (dict) --

        Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

        • SecretsManagerCredentialsProvider (dict) --

          Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

          • SecretId (string) --

            The ID of the Secrets Manager secret that contains credentials.

      • DomainNetworkSettings (dict) --

        The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

        • Subnets (list) -- [REQUIRED]

          Contains a list of subnets that apply for the Active Directory domain.

          • (string) --

    • ActiveDirectoryType (string) --

      The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

    • IsSharedActiveDirectory (boolean) --

      Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

type Product:

string

param Product:

The name of the user-based subscription product.

Valid values: VISUAL_STUDIO_ENTERPRISE | VISUAL_STUDIO_PROFESSIONAL | OFFICE_PROFESSIONAL_PLUS | REMOTE_DESKTOP_SERVICES

type IdentityProviderArn:

string

param IdentityProviderArn:

The Amazon Resource Name (ARN) of the identity provider to update.

type UpdateSettings:

dict

param UpdateSettings:

[REQUIRED]

Updates the registered identity provider’s product related configuration settings. You can update any combination of settings in a single operation such as the:

  • Subnets which you want to add to provision VPC endpoints.

  • Subnets which you want to remove the VPC endpoints from.

  • Security group ID which permits traffic to the VPC endpoints.

  • AddSubnets (list) -- [REQUIRED]

    The ID of one or more subnets in which License Manager will create a VPC endpoint for products that require connectivity to activation servers.

    • (string) --

  • RemoveSubnets (list) -- [REQUIRED]

    The ID of one or more subnets to remove.

    • (string) --

  • SecurityGroupId (string) --

    A security group ID that allows inbound TCP port 1688 communication between resources in your VPC and the VPC endpoints for activation servers.

rtype:

dict

returns:

Response Syntax

{
    'IdentityProviderSummary': {
        'IdentityProvider': {
            'ActiveDirectoryIdentityProvider': {
                'DirectoryId': 'string',
                'ActiveDirectorySettings': {
                    'DomainName': 'string',
                    'DomainIpv4List': [
                        'string',
                    ],
                    'DomainCredentialsProvider': {
                        'SecretsManagerCredentialsProvider': {
                            'SecretId': 'string'
                        }
                    },
                    'DomainNetworkSettings': {
                        'Subnets': [
                            'string',
                        ]
                    }
                },
                'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED',
                'IsSharedActiveDirectory': True|False
            }
        },
        'Settings': {
            'Subnets': [
                'string',
            ],
            'SecurityGroupId': 'string'
        },
        'Product': 'string',
        'Status': 'string',
        'IdentityProviderArn': 'string',
        'FailureMessage': 'string',
        'OwnerAccountId': 'string'
    }
}

Response Structure

  • (dict) --

    • IdentityProviderSummary (dict) --

      Describes an identity provider.

      • IdentityProvider (dict) --

        The IdentityProvider resource contains information about an identity provider.

        • ActiveDirectoryIdentityProvider (dict) --

          The ActiveDirectoryIdentityProvider resource contains settings and other details about a specific Active Directory identity provider.

          • DirectoryId (string) --

            The directory ID for an Active Directory identity provider.

          • ActiveDirectorySettings (dict) --

            The ActiveDirectorySettings resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.

            • DomainName (string) --

              The domain name for the Active Directory.

            • DomainIpv4List (list) --

              A list of domain IPv4 addresses that are used for the Active Directory.

              • (string) --

            • DomainCredentialsProvider (dict) --

              Points to the CredentialsProvider resource that contains information about the credential provider for user administration.

              • SecretsManagerCredentialsProvider (dict) --

                Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.

                • SecretId (string) --

                  The ID of the Secrets Manager secret that contains credentials.

            • DomainNetworkSettings (dict) --

              The DomainNetworkSettings resource contains an array of subnets that apply for the Active Directory.

              • Subnets (list) --

                Contains a list of subnets that apply for the Active Directory domain.

                • (string) --

          • ActiveDirectoryType (string) --

            The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.

          • IsSharedActiveDirectory (boolean) --

            Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.

      • Settings (dict) --

        The Settings resource contains details about the registered identity provider’s product related configuration settings, such as the subnets to provision VPC endpoints.

        • Subnets (list) --

          The subnets defined for the registered identity provider.

          • (string) --

        • SecurityGroupId (string) --

          A security group ID that allows inbound TCP port 1688 communication between resources in your VPC and the VPC endpoint for activation servers.

      • Product (string) --

        The name of the user-based subscription product.

      • Status (string) --

        The status of the identity provider.

      • IdentityProviderArn (string) --

        The Amazon Resource Name (ARN) of the identity provider.

      • FailureMessage (string) --

        The failure message associated with an identity provider.

      • OwnerAccountId (string) --

        The AWS Account ID of the owner of this resource.