LicenseManager / Client / update_license_asset_ruleset

update_license_asset_ruleset

LicenseManager.Client.update_license_asset_ruleset(**kwargs)

Updates a license asset ruleset.

See also: AWS API Documentation

Request Syntax

response = client.update_license_asset_ruleset(
    Name='string',
    Description='string',
    Rules=[
        {
            'RuleStatement': {
                'LicenseConfigurationRuleStatement': {
                    'AndRuleStatement': {
                        'MatchingRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Constraint': 'string',
                                'ValueToMatch': [
                                    'string',
                                ]
                            },
                        ],
                        'ScriptRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Script': 'string'
                            },
                        ]
                    },
                    'OrRuleStatement': {
                        'MatchingRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Constraint': 'string',
                                'ValueToMatch': [
                                    'string',
                                ]
                            },
                        ],
                        'ScriptRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Script': 'string'
                            },
                        ]
                    },
                    'MatchingRuleStatement': {
                        'KeyToMatch': 'string',
                        'Constraint': 'string',
                        'ValueToMatch': [
                            'string',
                        ]
                    }
                },
                'LicenseRuleStatement': {
                    'AndRuleStatement': {
                        'MatchingRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Constraint': 'string',
                                'ValueToMatch': [
                                    'string',
                                ]
                            },
                        ],
                        'ScriptRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Script': 'string'
                            },
                        ]
                    },
                    'OrRuleStatement': {
                        'MatchingRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Constraint': 'string',
                                'ValueToMatch': [
                                    'string',
                                ]
                            },
                        ],
                        'ScriptRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Script': 'string'
                            },
                        ]
                    },
                    'MatchingRuleStatement': {
                        'KeyToMatch': 'string',
                        'Constraint': 'string',
                        'ValueToMatch': [
                            'string',
                        ]
                    }
                },
                'InstanceRuleStatement': {
                    'AndRuleStatement': {
                        'MatchingRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Constraint': 'string',
                                'ValueToMatch': [
                                    'string',
                                ]
                            },
                        ],
                        'ScriptRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Script': 'string'
                            },
                        ]
                    },
                    'OrRuleStatement': {
                        'MatchingRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Constraint': 'string',
                                'ValueToMatch': [
                                    'string',
                                ]
                            },
                        ],
                        'ScriptRuleStatements': [
                            {
                                'KeyToMatch': 'string',
                                'Script': 'string'
                            },
                        ]
                    },
                    'MatchingRuleStatement': {
                        'KeyToMatch': 'string',
                        'Constraint': 'string',
                        'ValueToMatch': [
                            'string',
                        ]
                    },
                    'ScriptRuleStatement': {
                        'KeyToMatch': 'string',
                        'Script': 'string'
                    }
                }
            }
        },
    ],
    LicenseAssetRulesetArn='string',
    ClientToken='string'
)
Parameters:
  • Name (string) – License asset ruleset name.

  • Description (string) – License asset ruleset description.

  • Rules (list) –

    [REQUIRED]

    License asset rules.

    • (dict) –

      License asset rule.

      • RuleStatement (dict) – [REQUIRED]

        Rule statement.

        • LicenseConfigurationRuleStatement (dict) –

          License configuration rule statement.

          • AndRuleStatement (dict) –

            AND rule statement.

            • MatchingRuleStatements (list) –

              Matching rule statements.

              • (dict) –

                Matching rule statement.

                • KeyToMatch (string) – [REQUIRED]

                  Key to match.

                  The following keys and are supported when the RuleStatement type is Instance:

                  • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

                  • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

                  • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

                  • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

                  • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License:

                  • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

                  • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License Configuration:

                  • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

                • Constraint (string) – [REQUIRED]

                  Constraint.

                • ValueToMatch (list) – [REQUIRED]

                  Value to match.

                  • (string) –

            • ScriptRuleStatements (list) –

              Script rule statements.

              • (dict) –

                Rule statement that uses a script to evaluate license asset conditions.

                • KeyToMatch (string) – [REQUIRED]

                  Key name to match against in the script rule evaluation.

                • Script (string) – [REQUIRED]

                  Script code used to evaluate the rule condition.

          • OrRuleStatement (dict) –

            OR rule statement.

            • MatchingRuleStatements (list) –

              Matching rule statements.

              • (dict) –

                Matching rule statement.

                • KeyToMatch (string) – [REQUIRED]

                  Key to match.

                  The following keys and are supported when the RuleStatement type is Instance:

                  • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

                  • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

                  • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

                  • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

                  • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License:

                  • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

                  • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License Configuration:

                  • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

                • Constraint (string) – [REQUIRED]

                  Constraint.

                • ValueToMatch (list) – [REQUIRED]

                  Value to match.

                  • (string) –

            • ScriptRuleStatements (list) –

              Script rule statements.

              • (dict) –

                Rule statement that uses a script to evaluate license asset conditions.

                • KeyToMatch (string) – [REQUIRED]

                  Key name to match against in the script rule evaluation.

                • Script (string) – [REQUIRED]

                  Script code used to evaluate the rule condition.

          • MatchingRuleStatement (dict) –

            Matching rule statement.

            • KeyToMatch (string) – [REQUIRED]

              Key to match.

              The following keys and are supported when the RuleStatement type is Instance:

              • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

              • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

              • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

              • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

              • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

              • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

              • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

              • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

              The following keys and are supported when the RuleStatement type is License:

              • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

              • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

              • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

              • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

              • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

              • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

              The following keys and are supported when the RuleStatement type is License Configuration:

              • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

              • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

            • Constraint (string) – [REQUIRED]

              Constraint.

            • ValueToMatch (list) – [REQUIRED]

              Value to match.

              • (string) –

        • LicenseRuleStatement (dict) –

          License rule statement.

          • AndRuleStatement (dict) –

            AND rule statement.

            • MatchingRuleStatements (list) –

              Matching rule statements.

              • (dict) –

                Matching rule statement.

                • KeyToMatch (string) – [REQUIRED]

                  Key to match.

                  The following keys and are supported when the RuleStatement type is Instance:

                  • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

                  • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

                  • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

                  • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

                  • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License:

                  • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

                  • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License Configuration:

                  • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

                • Constraint (string) – [REQUIRED]

                  Constraint.

                • ValueToMatch (list) – [REQUIRED]

                  Value to match.

                  • (string) –

            • ScriptRuleStatements (list) –

              Script rule statements.

              • (dict) –

                Rule statement that uses a script to evaluate license asset conditions.

                • KeyToMatch (string) – [REQUIRED]

                  Key name to match against in the script rule evaluation.

                • Script (string) – [REQUIRED]

                  Script code used to evaluate the rule condition.

          • OrRuleStatement (dict) –

            OR rule statement.

            • MatchingRuleStatements (list) –

              Matching rule statements.

              • (dict) –

                Matching rule statement.

                • KeyToMatch (string) – [REQUIRED]

                  Key to match.

                  The following keys and are supported when the RuleStatement type is Instance:

                  • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

                  • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

                  • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

                  • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

                  • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License:

                  • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

                  • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License Configuration:

                  • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

                • Constraint (string) – [REQUIRED]

                  Constraint.

                • ValueToMatch (list) – [REQUIRED]

                  Value to match.

                  • (string) –

            • ScriptRuleStatements (list) –

              Script rule statements.

              • (dict) –

                Rule statement that uses a script to evaluate license asset conditions.

                • KeyToMatch (string) – [REQUIRED]

                  Key name to match against in the script rule evaluation.

                • Script (string) – [REQUIRED]

                  Script code used to evaluate the rule condition.

          • MatchingRuleStatement (dict) –

            Matching rule statement.

            • KeyToMatch (string) – [REQUIRED]

              Key to match.

              The following keys and are supported when the RuleStatement type is Instance:

              • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

              • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

              • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

              • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

              • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

              • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

              • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

              • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

              The following keys and are supported when the RuleStatement type is License:

              • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

              • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

              • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

              • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

              • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

              • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

              The following keys and are supported when the RuleStatement type is License Configuration:

              • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

              • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

            • Constraint (string) – [REQUIRED]

              Constraint.

            • ValueToMatch (list) – [REQUIRED]

              Value to match.

              • (string) –

        • InstanceRuleStatement (dict) –

          Instance rule statement.

          • AndRuleStatement (dict) –

            AND rule statement.

            • MatchingRuleStatements (list) –

              Matching rule statements.

              • (dict) –

                Matching rule statement.

                • KeyToMatch (string) – [REQUIRED]

                  Key to match.

                  The following keys and are supported when the RuleStatement type is Instance:

                  • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

                  • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

                  • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

                  • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

                  • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License:

                  • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

                  • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License Configuration:

                  • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

                • Constraint (string) – [REQUIRED]

                  Constraint.

                • ValueToMatch (list) – [REQUIRED]

                  Value to match.

                  • (string) –

            • ScriptRuleStatements (list) –

              Script rule statements.

              • (dict) –

                Rule statement that uses a script to evaluate license asset conditions.

                • KeyToMatch (string) – [REQUIRED]

                  Key name to match against in the script rule evaluation.

                • Script (string) – [REQUIRED]

                  Script code used to evaluate the rule condition.

          • OrRuleStatement (dict) –

            OR rule statement.

            • MatchingRuleStatements (list) –

              Matching rule statements.

              • (dict) –

                Matching rule statement.

                • KeyToMatch (string) – [REQUIRED]

                  Key to match.

                  The following keys and are supported when the RuleStatement type is Instance:

                  • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

                  • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

                  • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

                  • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

                  • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

                  • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License:

                  • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

                  • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

                  • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

                  The following keys and are supported when the RuleStatement type is License Configuration:

                  • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

                  • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

                • Constraint (string) – [REQUIRED]

                  Constraint.

                • ValueToMatch (list) – [REQUIRED]

                  Value to match.

                  • (string) –

            • ScriptRuleStatements (list) –

              Script rule statements.

              • (dict) –

                Rule statement that uses a script to evaluate license asset conditions.

                • KeyToMatch (string) – [REQUIRED]

                  Key name to match against in the script rule evaluation.

                • Script (string) – [REQUIRED]

                  Script code used to evaluate the rule condition.

          • MatchingRuleStatement (dict) –

            Matching rule statement.

            • KeyToMatch (string) – [REQUIRED]

              Key to match.

              The following keys and are supported when the RuleStatement type is Instance:

              • Platform - The name of the platform. Logical operators are EQUALS and NOT_EQUALS.

              • EC2BillingProduct - The billing product code. Logical operators are EQUALS and NOT_EQUALS. Possible values are: windows-server-enterprise | windows-byol | rhel | rhel-byol | rhel-high-availability | ubuntu-pro | suse-linux | sql-server-standard | sql-server-enterprise.

              • MarketPlaceProductCode - The Marketplace product code. Logical operators are EQUALS and NOT_EQUALS.

              • AMIId - The ID of the AMI. Logical operators are EQUALS and NOT_EQUALS.

              • InstanceType - The instance type. Logical operators are EQUALS and NOT_EQUALS.

              • InstanceId - The ID of the instance. Logical operators are EQUALS and NOT_EQUALS.

              • HostId - The ID of the host. Logical operators are EQUALS and NOT_EQUALS.

              • AccountId - The ID of the account. Logical operators are EQUALS and NOT_EQUALS.

              The following keys and are supported when the RuleStatement type is License:

              • LicenseArn - The ARN of a Managed Entitlement License. Logical operators are EQUALS and NOT_EQUALS.

              • ProductSKU - The productSKU of the license. Logical operators are EQUALS and NOT_EQUALS.

              • Issuer - The issuer of the license. Logical operators are EQUALS and NOT_EQUALS.

              • Beneficiary - The beneficiary of the license. Logical operators are EQUALS and NOT_EQUALS.

              • LicenseStatus - The status of the license. Logical operators are EQUALS and NOT_EQUALS.

              • HomeRegion - The home region of the license. Logical operators are EQUALS and NOT_EQUALS.

              The following keys and are supported when the RuleStatement type is License Configuration:

              • LicenseConfigurationArn - The ARN of a self-managed license configuration. Logical operators are EQUALS and NOT_EQUALS.

              • AccountId - The account of the license configuration. Logical operators are EQUALS and NOT_EQUALS.

            • Constraint (string) – [REQUIRED]

              Constraint.

            • ValueToMatch (list) – [REQUIRED]

              Value to match.

              • (string) –

          • ScriptRuleStatement (dict) –

            Script rule statement.

            • KeyToMatch (string) – [REQUIRED]

              Key name to match against in the script rule evaluation.

            • Script (string) – [REQUIRED]

              Script code used to evaluate the rule condition.

  • LicenseAssetRulesetArn (string) –

    [REQUIRED]

    Amazon Resource Name (ARN) of the license asset ruleset.

  • ClientToken (string) –

    [REQUIRED]

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Return type:

dict

Returns:

Response Syntax

{
    'LicenseAssetRulesetArn': 'string'
}

Response Structure

  • (dict) –

    • LicenseAssetRulesetArn (string) –

      Amazon Resource Name (ARN) of the license asset ruleset.

Exceptions

  • LicenseManager.Client.exceptions.ValidationException

  • LicenseManager.Client.exceptions.InvalidParameterValueException

  • LicenseManager.Client.exceptions.AuthorizationException

  • LicenseManager.Client.exceptions.AccessDeniedException

  • LicenseManager.Client.exceptions.RateLimitExceededException

  • LicenseManager.Client.exceptions.ServerInternalException