Skip to content

Commit

Permalink
feat(client-acm-pca): Fix broken waiters for the acm-pca client. Wait…
Browse files Browse the repository at this point in the history
…ers broke in version 1.13.144 of the Boto3 SDK.
  • Loading branch information
awstools committed Jul 18, 2024
1 parent 3f9a4c4 commit a867f6e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion clients/client-acm-pca/src/auth/httpAuthSchemeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters: ACMPCAHttpAuthSchemePa
name: "acm-pca",
region: authParameters.region,
},
propertiesExtractor: (config: ACMPCAClientConfig, context) => ({
propertiesExtractor: (config: Partial<ACMPCAClientConfig>, context) => ({
/**
* @internal
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const waitForAuditReportCreated = async (
params: WaiterConfiguration<ACMPCAClient>,
input: DescribeCertificateAuthorityAuditReportCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
const serviceDefaults = { minDelay: 3, maxDelay: 180 };
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
};
/**
Expand All @@ -59,7 +59,7 @@ export const waitUntilAuditReportCreated = async (
params: WaiterConfiguration<ACMPCAClient>,
input: DescribeCertificateAuthorityAuditReportCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
const serviceDefaults = { minDelay: 3, maxDelay: 180 };
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
return checkExceptions(result);
};
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const waitForCertificateAuthorityCSRCreated = async (
params: WaiterConfiguration<ACMPCAClient>,
input: GetCertificateAuthorityCsrCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
const serviceDefaults = { minDelay: 3, maxDelay: 180 };
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
};
/**
Expand All @@ -47,7 +47,7 @@ export const waitUntilCertificateAuthorityCSRCreated = async (
params: WaiterConfiguration<ACMPCAClient>,
input: GetCertificateAuthorityCsrCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
const serviceDefaults = { minDelay: 3, maxDelay: 180 };
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
return checkExceptions(result);
};
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const waitForCertificateIssued = async (
params: WaiterConfiguration<ACMPCAClient>,
input: GetCertificateCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
const serviceDefaults = { minDelay: 1, maxDelay: 60 };
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
};
/**
Expand All @@ -41,7 +41,7 @@ export const waitUntilCertificateIssued = async (
params: WaiterConfiguration<ACMPCAClient>,
input: GetCertificateCommandInput
): Promise<WaiterResult> => {
const serviceDefaults = { minDelay: 1, maxDelay: 120 };
const serviceDefaults = { minDelay: 1, maxDelay: 60 };
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
return checkExceptions(result);
};
9 changes: 6 additions & 3 deletions codegen/sdk-codegen/aws-models/acm-pca.json
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,8 @@
}
}
],
"minDelay": 3
"minDelay": 3,
"maxDelay": 180
}
}
}
Expand Down Expand Up @@ -2738,7 +2739,8 @@
}
}
],
"minDelay": 1
"minDelay": 1,
"maxDelay": 60
}
}
}
Expand Down Expand Up @@ -2852,7 +2854,8 @@
}
}
],
"minDelay": 3
"minDelay": 3,
"maxDelay": 180
}
}
}
Expand Down

0 comments on commit a867f6e

Please sign in to comment.