Skip to content

Commit af7066f

Browse files
author
awstools
committed
feat(client-license-manager): AWS License Manager now supports license type conversions for AWS Marketplace products. Customers can provide Marketplace codes in the source license context or destination license context in the CreateLicenseConversionTaskForResource requests.
1 parent e51464e commit af7066f

File tree

6 files changed

+134
-1
lines changed

6 files changed

+134
-1
lines changed

clients/client-license-manager/src/commands/CreateLicenseConversionTaskForResourceCommand.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,21 @@ export interface CreateLicenseConversionTaskForResourceCommandOutput
4848
* ResourceArn: "STRING_VALUE", // required
4949
* SourceLicenseContext: { // LicenseConversionContext
5050
* UsageOperation: "STRING_VALUE",
51+
* ProductCodes: [ // ProductCodeList
52+
* { // ProductCodeListItem
53+
* ProductCodeId: "STRING_VALUE", // required
54+
* ProductCodeType: "marketplace", // required
55+
* },
56+
* ],
5157
* },
5258
* DestinationLicenseContext: {
5359
* UsageOperation: "STRING_VALUE",
60+
* ProductCodes: [
61+
* {
62+
* ProductCodeId: "STRING_VALUE", // required
63+
* ProductCodeType: "marketplace", // required
64+
* },
65+
* ],
5466
* },
5567
* };
5668
* const command = new CreateLicenseConversionTaskForResourceCommand(input);

clients/client-license-manager/src/commands/GetLicenseConversionTaskCommand.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,21 @@ export interface GetLicenseConversionTaskCommandOutput extends GetLicenseConvers
4545
* // ResourceArn: "STRING_VALUE",
4646
* // SourceLicenseContext: { // LicenseConversionContext
4747
* // UsageOperation: "STRING_VALUE",
48+
* // ProductCodes: [ // ProductCodeList
49+
* // { // ProductCodeListItem
50+
* // ProductCodeId: "STRING_VALUE", // required
51+
* // ProductCodeType: "marketplace", // required
52+
* // },
53+
* // ],
4854
* // },
4955
* // DestinationLicenseContext: {
5056
* // UsageOperation: "STRING_VALUE",
57+
* // ProductCodes: [
58+
* // {
59+
* // ProductCodeId: "STRING_VALUE", // required
60+
* // ProductCodeType: "marketplace", // required
61+
* // },
62+
* // ],
5163
* // },
5264
* // StatusMessage: "STRING_VALUE",
5365
* // Status: "IN_PROGRESS" || "SUCCEEDED" || "FAILED",

clients/client-license-manager/src/commands/ListLicenseConversionTasksCommand.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,21 @@ export interface ListLicenseConversionTasksCommandOutput extends ListLicenseConv
5656
* // ResourceArn: "STRING_VALUE",
5757
* // SourceLicenseContext: { // LicenseConversionContext
5858
* // UsageOperation: "STRING_VALUE",
59+
* // ProductCodes: [ // ProductCodeList
60+
* // { // ProductCodeListItem
61+
* // ProductCodeId: "STRING_VALUE", // required
62+
* // ProductCodeType: "marketplace", // required
63+
* // },
64+
* // ],
5965
* // },
6066
* // DestinationLicenseContext: {
6167
* // UsageOperation: "STRING_VALUE",
68+
* // ProductCodes: [
69+
* // {
70+
* // ProductCodeId: "STRING_VALUE", // required
71+
* // ProductCodeType: "marketplace", // required
72+
* // },
73+
* // ],
6274
* // },
6375
* // Status: "IN_PROGRESS" || "SUCCEEDED" || "FAILED",
6476
* // StatusMessage: "STRING_VALUE",

clients/client-license-manager/src/models/models_0.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,37 @@ export interface CreateLicenseConfigurationResponse {
14851485
LicenseConfigurationArn?: string | undefined;
14861486
}
14871487

1488+
/**
1489+
* @public
1490+
* @enum
1491+
*/
1492+
export const ProductCodeType = {
1493+
MARKETPLACE: "marketplace",
1494+
} as const;
1495+
1496+
/**
1497+
* @public
1498+
*/
1499+
export type ProductCodeType = (typeof ProductCodeType)[keyof typeof ProductCodeType];
1500+
1501+
/**
1502+
* <p>A list item that contains a product code.</p>
1503+
* @public
1504+
*/
1505+
export interface ProductCodeListItem {
1506+
/**
1507+
* <p>The product code ID</p>
1508+
* @public
1509+
*/
1510+
ProductCodeId: string | undefined;
1511+
1512+
/**
1513+
* <p>The product code type</p>
1514+
* @public
1515+
*/
1516+
ProductCodeType: ProductCodeType | undefined;
1517+
}
1518+
14881519
/**
14891520
* <p>Information about a license type conversion task.</p>
14901521
* @public
@@ -1497,6 +1528,12 @@ export interface LicenseConversionContext {
14971528
* @public
14981529
*/
14991530
UsageOperation?: string | undefined;
1531+
1532+
/**
1533+
* <p>Product codes referred to in the license conversion process.</p>
1534+
* @public
1535+
*/
1536+
ProductCodes?: ProductCodeListItem[] | undefined;
15001537
}
15011538

15021539
/**

clients/client-license-manager/src/protocols/Aws_json1_1.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ import {
240240
NoEntitlementsAllowedException,
241241
Options,
242242
OrganizationConfiguration,
243+
ProductCodeListItem,
243244
ProductInformation,
244245
ProductInformationFilter,
245246
ProvisionalConfiguration,
@@ -2383,6 +2384,10 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont
23832384

23842385
// se_PrincipalArnList omitted.
23852386

2387+
// se_ProductCodeList omitted.
2388+
2389+
// se_ProductCodeListItem omitted.
2390+
23862391
// se_ProductInformation omitted.
23872392

23882393
// se_ProductInformationFilter omitted.
@@ -2841,6 +2846,10 @@ const de_ListUsageForLicenseConfigurationResponse = (
28412846

28422847
// de_OrganizationConfiguration omitted.
28432848

2849+
// de_ProductCodeList omitted.
2850+
2851+
// de_ProductCodeListItem omitted.
2852+
28442853
// de_ProductInformation omitted.
28452854

28462855
// de_ProductInformationFilter omitted.

codegen/sdk-codegen/aws-models/license-manager.json

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@
13581358
"min": 0,
13591359
"max": 2048
13601360
},
1361-
"smithy.api#pattern": "^arn:aws(-(cn|us-gov|iso-b|iso-c|iso-d))?:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$"
1361+
"smithy.api#pattern": "^arn:aws[a-zA-Z-]*:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$"
13621362
}
13631363
},
13641364
"com.amazonaws.licensemanager#ArnList": {
@@ -5249,6 +5249,12 @@
52495249
"traits": {
52505250
"smithy.api#documentation": "<p>The Usage operation value that corresponds to the license type you are converting your resource from. For more information about which platforms correspond to which usage operation values see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/billing-info-fields.html#billing-info\">Sample data: usage operation by platform\n </a>\n </p>"
52515251
}
5252+
},
5253+
"ProductCodes": {
5254+
"target": "com.amazonaws.licensemanager#ProductCodeList",
5255+
"traits": {
5256+
"smithy.api#documentation": "<p>Product codes referred to in the license conversion process.</p>"
5257+
}
52525258
}
52535259
},
52545260
"traits": {
@@ -7081,6 +7087,51 @@
70817087
}
70827088
}
70837089
},
7090+
"com.amazonaws.licensemanager#ProductCodeId": {
7091+
"type": "string",
7092+
"traits": {
7093+
"smithy.api#pattern": "^[A-Za-z0-9]{1,25}$"
7094+
}
7095+
},
7096+
"com.amazonaws.licensemanager#ProductCodeList": {
7097+
"type": "list",
7098+
"member": {
7099+
"target": "com.amazonaws.licensemanager#ProductCodeListItem"
7100+
}
7101+
},
7102+
"com.amazonaws.licensemanager#ProductCodeListItem": {
7103+
"type": "structure",
7104+
"members": {
7105+
"ProductCodeId": {
7106+
"target": "com.amazonaws.licensemanager#ProductCodeId",
7107+
"traits": {
7108+
"smithy.api#documentation": "<p>The product code ID</p>",
7109+
"smithy.api#required": {}
7110+
}
7111+
},
7112+
"ProductCodeType": {
7113+
"target": "com.amazonaws.licensemanager#ProductCodeType",
7114+
"traits": {
7115+
"smithy.api#documentation": "<p>The product code type</p>",
7116+
"smithy.api#required": {}
7117+
}
7118+
}
7119+
},
7120+
"traits": {
7121+
"smithy.api#documentation": "<p>A list item that contains a product code.</p>"
7122+
}
7123+
},
7124+
"com.amazonaws.licensemanager#ProductCodeType": {
7125+
"type": "enum",
7126+
"members": {
7127+
"MARKETPLACE": {
7128+
"target": "smithy.api#Unit",
7129+
"traits": {
7130+
"smithy.api#enumValue": "marketplace"
7131+
}
7132+
}
7133+
}
7134+
},
70847135
"com.amazonaws.licensemanager#ProductInformation": {
70857136
"type": "structure",
70867137
"members": {

0 commit comments

Comments
 (0)