Skip to content

Commit

Permalink
feat(client-iot): The release is to support attach a provisioning tem…
Browse files Browse the repository at this point in the history
…plate to CACert for JITP function, Customer now doesn't have to hardcode a roleArn and templateBody during register a CACert to enable JITP.
  • Loading branch information
awstools committed Aug 4, 2022
1 parent a232401 commit 1d537f3
Show file tree
Hide file tree
Showing 20 changed files with 270 additions and 166 deletions.
30 changes: 16 additions & 14 deletions clients/client-iot/src/IoT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Creates a fleet provisioning template.</p>
* <p>Creates a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateProvisioningTemplate</a> action.</p>
*/
public createProvisioningTemplate(
Expand Down Expand Up @@ -2348,7 +2348,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Creates a new version of a fleet provisioning template.</p>
* <p>Creates a new version of a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateProvisioningTemplateVersion</a> action.</p>
*/
public createProvisioningTemplateVersion(
Expand Down Expand Up @@ -3306,7 +3306,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Deletes a fleet provisioning template.</p>
* <p>Deletes a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DeleteProvisioningTemplate</a> action.</p>
*/
public deleteProvisioningTemplate(
Expand Down Expand Up @@ -3339,7 +3339,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Deletes a fleet provisioning template version.</p>
* <p>Deletes a provisioning template version.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DeleteProvisioningTemplateVersion</a> action.</p>
*/
public deleteProvisioningTemplateVersion(
Expand Down Expand Up @@ -4524,7 +4524,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Returns information about a fleet provisioning template.</p>
* <p>Returns information about a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DescribeProvisioningTemplate</a> action.</p>
*/
public describeProvisioningTemplate(
Expand Down Expand Up @@ -4557,7 +4557,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Returns information about a fleet provisioning template version.</p>
* <p>Returns information about a provisioning template version.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DescribeProvisioningTemplateVersion</a> action.</p>
*/
public describeProvisioningTemplateVersion(
Expand Down Expand Up @@ -4891,9 +4891,9 @@ export class IoT extends IoTClient {
* @deprecated
*
* <p>Removes the specified policy from the specified certificate.</p>
* <note>
* <p>This action is deprecated. Please use <a>DetachPolicy</a> instead.</p>
* </note>
* <p>
* <b>Note:</b> This action is deprecated and works as
* expected for backward compatibility, but we won't add enhancements. Use <a>DetachPolicy</a> instead.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DetachPrincipalPolicy</a> action.</p>
*/
public detachPrincipalPolicy(
Expand Down Expand Up @@ -6559,7 +6559,8 @@ export class IoT extends IoTClient {
*
* <p>Lists the principals associated with the specified policy.</p>
* <p>
* <b>Note:</b> This action is deprecated. Please use <a>ListTargetsForPolicy</a> instead.</p>
* <b>Note:</b> This action is deprecated and works as
* expected for backward compatibility, but we won't add enhancements. Use <a>ListTargetsForPolicy</a> instead.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListPolicyPrincipals</a> action.</p>
*/
public listPolicyPrincipals(
Expand Down Expand Up @@ -6631,7 +6632,8 @@ export class IoT extends IoTClient {
* <p>Lists the policies attached to the specified principal. If you use an Cognito
* identity, the ID must be in <a href="https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax">AmazonCognito Identity format</a>.</p>
* <p>
* <b>Note:</b> This action is deprecated. Please use <a>ListAttachedPolicies</a> instead.</p>
* <b>Note:</b> This action is deprecated and works as
* expected for backward compatibility, but we won't add enhancements. Use <a>ListAttachedPolicies</a> instead.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListPrincipalPolicies</a> action.</p>
*/
public listPrincipalPolicies(
Expand Down Expand Up @@ -6699,7 +6701,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Lists the fleet provisioning templates in your Amazon Web Services account.</p>
* <p>Lists the provisioning templates in your Amazon Web Services account.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListProvisioningTemplates</a> action.</p>
*/
public listProvisioningTemplates(
Expand Down Expand Up @@ -6732,7 +6734,7 @@ export class IoT extends IoTClient {
}

/**
* <p>A list of fleet provisioning template versions.</p>
* <p>A list of provisioning template versions.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListProvisioningTemplateVersions</a> action.</p>
*/
public listProvisioningTemplateVersions(
Expand Down Expand Up @@ -8827,7 +8829,7 @@ export class IoT extends IoTClient {
}

/**
* <p>Updates a fleet provisioning template.</p>
* <p>Updates a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdateProvisioningTemplate</a> action.</p>
*/
public updateProvisioningTemplate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface CreateProvisioningTemplateCommandInput extends CreateProvisioni
export interface CreateProvisioningTemplateCommandOutput extends CreateProvisioningTemplateResponse, __MetadataBearer {}

/**
* <p>Creates a fleet provisioning template.</p>
* <p>Creates a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateProvisioningTemplate</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface CreateProvisioningTemplateVersionCommandOutput
__MetadataBearer {}

/**
* <p>Creates a new version of a fleet provisioning template.</p>
* <p>Creates a new version of a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateProvisioningTemplateVersion</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface DeleteProvisioningTemplateCommandInput extends DeleteProvisioni
export interface DeleteProvisioningTemplateCommandOutput extends DeleteProvisioningTemplateResponse, __MetadataBearer {}

/**
* <p>Deletes a fleet provisioning template.</p>
* <p>Deletes a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DeleteProvisioningTemplate</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface DeleteProvisioningTemplateVersionCommandOutput
__MetadataBearer {}

/**
* <p>Deletes a fleet provisioning template version.</p>
* <p>Deletes a provisioning template version.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DeleteProvisioningTemplateVersion</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
8 changes: 2 additions & 6 deletions clients/client-iot/src/commands/DeleteRoleAliasCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ import {
} from "@aws-sdk/types";

import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import {
DeleteRoleAliasRequest,
DeleteRoleAliasRequestFilterSensitiveLog,
DeleteRoleAliasResponse,
DeleteRoleAliasResponseFilterSensitiveLog,
} from "../models/models_0";
import { DeleteRoleAliasRequest, DeleteRoleAliasRequestFilterSensitiveLog } from "../models/models_0";
import { DeleteRoleAliasResponse, DeleteRoleAliasResponseFilterSensitiveLog } from "../models/models_1";
import {
deserializeAws_restJson1DeleteRoleAliasCommand,
serializeAws_restJson1DeleteRoleAliasCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface DescribeProvisioningTemplateCommandOutput
__MetadataBearer {}

/**
* <p>Returns information about a fleet provisioning template.</p>
* <p>Returns information about a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DescribeProvisioningTemplate</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface DescribeProvisioningTemplateVersionCommandOutput
__MetadataBearer {}

/**
* <p>Returns information about a fleet provisioning template version.</p>
* <p>Returns information about a provisioning template version.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DescribeProvisioningTemplateVersion</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export interface DetachPrincipalPolicyCommandOutput extends __MetadataBearer {}
* @deprecated
*
* <p>Removes the specified policy from the specified certificate.</p>
* <note>
* <p>This action is deprecated. Please use <a>DetachPolicy</a> instead.</p>
* </note>
* <p>
* <b>Note:</b> This action is deprecated and works as
* expected for backward compatibility, but we won't add enhancements. Use <a>DetachPolicy</a> instead.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DetachPrincipalPolicy</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export interface ListPolicyPrincipalsCommandOutput extends ListPolicyPrincipalsR
*
* <p>Lists the principals associated with the specified policy.</p>
* <p>
* <b>Note:</b> This action is deprecated. Please use <a>ListTargetsForPolicy</a> instead.</p>
* <b>Note:</b> This action is deprecated and works as
* expected for backward compatibility, but we won't add enhancements. Use <a>ListTargetsForPolicy</a> instead.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListPolicyPrincipals</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export interface ListPrincipalPoliciesCommandOutput extends ListPrincipalPolicie
* <p>Lists the policies attached to the specified principal. If you use an Cognito
* identity, the ID must be in <a href="https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax">AmazonCognito Identity format</a>.</p>
* <p>
* <b>Note:</b> This action is deprecated. Please use <a>ListAttachedPolicies</a> instead.</p>
* <b>Note:</b> This action is deprecated and works as
* expected for backward compatibility, but we won't add enhancements. Use <a>ListAttachedPolicies</a> instead.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListPrincipalPolicies</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface ListProvisioningTemplateVersionsCommandOutput
__MetadataBearer {}

/**
* <p>A list of fleet provisioning template versions.</p>
* <p>A list of provisioning template versions.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListProvisioningTemplateVersions</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ListProvisioningTemplatesCommandInput extends ListProvisioningT
export interface ListProvisioningTemplatesCommandOutput extends ListProvisioningTemplatesResponse, __MetadataBearer {}

/**
* <p>Lists the fleet provisioning templates in your Amazon Web Services account.</p>
* <p>Lists the provisioning templates in your Amazon Web Services account.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListProvisioningTemplates</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ import {
} from "@aws-sdk/types";

import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
import { ListThingGroupsForThingRequest, ListThingGroupsForThingRequestFilterSensitiveLog } from "../models/models_1";
import { ListThingGroupsForThingResponse, ListThingGroupsForThingResponseFilterSensitiveLog } from "../models/models_2";
import {
ListThingGroupsForThingRequest,
ListThingGroupsForThingRequestFilterSensitiveLog,
ListThingGroupsForThingResponse,
ListThingGroupsForThingResponseFilterSensitiveLog,
} from "../models/models_2";
import {
deserializeAws_restJson1ListThingGroupsForThingCommand,
serializeAws_restJson1ListThingGroupsForThingCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface UpdateProvisioningTemplateCommandInput extends UpdateProvisioni
export interface UpdateProvisioningTemplateCommandOutput extends UpdateProvisioningTemplateResponse, __MetadataBearer {}

/**
* <p>Updates a fleet provisioning template.</p>
* <p>Updates a provisioning template.</p>
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdateProvisioningTemplate</a> action.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
Loading

0 comments on commit 1d537f3

Please sign in to comment.