-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add client-application-auto-scaling (#656)
- Loading branch information
Showing
26 changed files
with
8,101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/node_modules/ | ||
/build/ | ||
/coverage/ | ||
/docs/ | ||
/types/ | ||
/dist/ | ||
*.tsbuildinfo | ||
*.tgz | ||
*.log | ||
package-lock.json | ||
|
||
*.d.ts | ||
*.js | ||
*.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/coverage/ | ||
/docs/ | ||
tsconfig.test.json | ||
*.tsbuildinfo |
568 changes: 568 additions & 0 deletions
568
clients/client-application-auto-scaling/ApplicationAutoScaling.ts
Large diffs are not rendered by default.
Oops, something went wrong.
296 changes: 296 additions & 0 deletions
296
clients/client-application-auto-scaling/ApplicationAutoScalingClient.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,296 @@ | ||
import { | ||
DeleteScalingPolicyRequest, | ||
DeleteScalingPolicyResponse, | ||
DeleteScheduledActionRequest, | ||
DeleteScheduledActionResponse, | ||
DeregisterScalableTargetRequest, | ||
DeregisterScalableTargetResponse, | ||
DescribeScalableTargetsRequest, | ||
DescribeScalableTargetsResponse, | ||
DescribeScalingActivitiesRequest, | ||
DescribeScalingActivitiesResponse, | ||
DescribeScalingPoliciesRequest, | ||
DescribeScalingPoliciesResponse, | ||
DescribeScheduledActionsRequest, | ||
DescribeScheduledActionsResponse, | ||
PutScalingPolicyRequest, | ||
PutScalingPolicyResponse, | ||
PutScheduledActionRequest, | ||
PutScheduledActionResponse, | ||
RegisterScalableTargetRequest, | ||
RegisterScalableTargetResponse | ||
} from "./models/index"; | ||
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig"; | ||
import { | ||
EndpointsInputConfig, | ||
EndpointsResolvedConfig, | ||
RegionInputConfig, | ||
RegionResolvedConfig, | ||
resolveEndpointsConfig, | ||
resolveRegionConfig | ||
} from "@aws-sdk/config-resolver"; | ||
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; | ||
import { | ||
HostHeaderInputConfig, | ||
HostHeaderResolvedConfig, | ||
getHostHeaderPlugin, | ||
resolveHostHeaderConfig | ||
} from "@aws-sdk/middleware-host-header"; | ||
import { | ||
RetryInputConfig, | ||
RetryResolvedConfig, | ||
getRetryPlugin, | ||
resolveRetryConfig | ||
} from "@aws-sdk/middleware-retry"; | ||
import { | ||
AwsAuthInputConfig, | ||
AwsAuthResolvedConfig, | ||
getAwsAuthPlugin, | ||
resolveAwsAuthConfig | ||
} from "@aws-sdk/middleware-signing"; | ||
import { | ||
UserAgentInputConfig, | ||
UserAgentResolvedConfig, | ||
getUserAgentPlugin, | ||
resolveUserAgentConfig | ||
} from "@aws-sdk/middleware-user-agent"; | ||
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http"; | ||
import { | ||
Client as __Client, | ||
SmithyConfiguration as __SmithyConfiguration, | ||
SmithyResolvedConfiguration as __SmithyResolvedConfiguration | ||
} from "@aws-sdk/smithy-client"; | ||
import { | ||
RegionInfoProvider, | ||
Credentials as __Credentials, | ||
Decoder as __Decoder, | ||
Encoder as __Encoder, | ||
HashConstructor as __HashConstructor, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
Provider as __Provider, | ||
StreamCollector as __StreamCollector, | ||
UrlParser as __UrlParser | ||
} from "@aws-sdk/types"; | ||
|
||
export type ServiceInputTypes = | ||
| DeleteScalingPolicyRequest | ||
| DeleteScheduledActionRequest | ||
| DeregisterScalableTargetRequest | ||
| DescribeScalableTargetsRequest | ||
| DescribeScalingActivitiesRequest | ||
| DescribeScalingPoliciesRequest | ||
| DescribeScheduledActionsRequest | ||
| PutScalingPolicyRequest | ||
| PutScheduledActionRequest | ||
| RegisterScalableTargetRequest; | ||
|
||
export type ServiceOutputTypes = | ||
| DeleteScalingPolicyResponse | ||
| DeleteScheduledActionResponse | ||
| DeregisterScalableTargetResponse | ||
| DescribeScalableTargetsResponse | ||
| DescribeScalingActivitiesResponse | ||
| DescribeScalingPoliciesResponse | ||
| DescribeScheduledActionsResponse | ||
| PutScalingPolicyResponse | ||
| PutScheduledActionResponse | ||
| RegisterScalableTargetResponse; | ||
|
||
export interface ClientDefaults | ||
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { | ||
/** | ||
* The HTTP handler to use. Fetch in browser and Https in Nodejs. | ||
*/ | ||
requestHandler?: __HttpHandler; | ||
|
||
/** | ||
* A constructor for a class implementing the @aws-sdk/types.Hash interface | ||
* that computes the SHA-256 HMAC or checksum of a string or binary buffer. | ||
*/ | ||
sha256?: __HashConstructor; | ||
|
||
/** | ||
* The function that will be used to convert strings into HTTP endpoints. | ||
*/ | ||
urlParser?: __UrlParser; | ||
|
||
/** | ||
* A function that can calculate the length of a request body. | ||
*/ | ||
bodyLengthChecker?: (body: any) => number | undefined; | ||
|
||
/** | ||
* A function that converts a stream into an array of bytes. | ||
*/ | ||
streamCollector?: __StreamCollector; | ||
|
||
/** | ||
* The function that will be used to convert a base64-encoded string to a byte array | ||
*/ | ||
base64Decoder?: __Decoder; | ||
|
||
/** | ||
* The function that will be used to convert binary data to a base64-encoded string | ||
*/ | ||
base64Encoder?: __Encoder; | ||
|
||
/** | ||
* The function that will be used to convert a UTF8-encoded string to a byte array | ||
*/ | ||
utf8Decoder?: __Decoder; | ||
|
||
/** | ||
* The function that will be used to convert binary data to a UTF-8 encoded string | ||
*/ | ||
utf8Encoder?: __Encoder; | ||
|
||
/** | ||
* The string that will be used to populate default value in 'User-Agent' header | ||
*/ | ||
defaultUserAgent?: string; | ||
|
||
/** | ||
* The runtime environment | ||
*/ | ||
runtime?: string; | ||
|
||
/** | ||
* The service name with which to sign requests. | ||
*/ | ||
signingName?: string; | ||
|
||
/** | ||
* Default credentials provider; Not available in browser runtime | ||
*/ | ||
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; | ||
|
||
/** | ||
* Provider function that return promise of a region string | ||
*/ | ||
regionDefaultProvider?: (input: any) => __Provider<string>; | ||
|
||
/** | ||
* Fetch related hostname, signing name or signing region with given region. | ||
*/ | ||
regionInfoProvider?: RegionInfoProvider; | ||
} | ||
|
||
export type ApplicationAutoScalingClientConfig = Partial< | ||
__SmithyConfiguration<__HttpHandlerOptions> | ||
> & | ||
ClientDefaults & | ||
RegionInputConfig & | ||
EndpointsInputConfig & | ||
AwsAuthInputConfig & | ||
RetryInputConfig & | ||
UserAgentInputConfig & | ||
HostHeaderInputConfig; | ||
|
||
export type ApplicationAutoScalingClientResolvedConfig = __SmithyResolvedConfiguration< | ||
__HttpHandlerOptions | ||
> & | ||
Required<ClientDefaults> & | ||
RegionResolvedConfig & | ||
EndpointsResolvedConfig & | ||
AwsAuthResolvedConfig & | ||
RetryResolvedConfig & | ||
UserAgentResolvedConfig & | ||
HostHeaderResolvedConfig; | ||
|
||
/** | ||
* | ||
* | ||
* <p>With Application Auto Scaling, you can configure automatic scaling for the following | ||
* resources:</p> | ||
* <ul> | ||
* <li> | ||
* <p>Amazon ECS services</p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon EC2 Spot Fleet requests</p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon EMR clusters</p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon AppStream 2.0 fleets</p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon DynamoDB tables and global secondary indexes throughput capacity</p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon Aurora Replicas</p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon SageMaker endpoint variants</p> | ||
* </li> | ||
* <li> | ||
* <p>Custom resources provided by your own applications or services</p> | ||
* </li> | ||
* <li> | ||
* <p>Amazon Comprehend document classification endpoints</p> | ||
* </li> | ||
* <li> | ||
* <p>AWS Lambda function provisioned concurrency</p> | ||
* </li> | ||
* </ul> | ||
* <p> | ||
* <b>API Summary</b> | ||
* </p> | ||
* <p>The Application Auto Scaling service API includes three key sets of actions: </p> | ||
* <ul> | ||
* <li> | ||
* <p>Register and manage scalable targets - Register AWS or custom resources as | ||
* scalable targets (a resource that Application Auto Scaling can scale), set minimum and maximum | ||
* capacity limits, and retrieve information on existing scalable targets.</p> | ||
* </li> | ||
* <li> | ||
* <p>Configure and manage automatic scaling - Define scaling policies to dynamically | ||
* scale your resources in response to CloudWatch alarms, schedule one-time or recurring | ||
* scaling actions, and retrieve your recent scaling activity history.</p> | ||
* </li> | ||
* <li> | ||
* <p>Suspend and resume scaling - Temporarily suspend and later resume automatic | ||
* scaling by calling the <a>RegisterScalableTarget</a> action for any | ||
* Application Auto Scaling scalable target. You can suspend and resume, individually or in combination, | ||
* scale-out activities triggered by a scaling policy, scale-in activities triggered by | ||
* a scaling policy, and scheduled scaling. </p> | ||
* </li> | ||
* </ul> | ||
* | ||
* | ||
* <p>To learn more about Application Auto Scaling, including information about granting IAM users required | ||
* permissions for Application Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/application/userguide/what-is-application-auto-scaling.html">Application Auto Scaling | ||
* User Guide</a>.</p> | ||
* | ||
*/ | ||
export class ApplicationAutoScalingClient extends __Client< | ||
__HttpHandlerOptions, | ||
ServiceInputTypes, | ||
ServiceOutputTypes, | ||
ApplicationAutoScalingClientResolvedConfig | ||
> { | ||
readonly config: ApplicationAutoScalingClientResolvedConfig; | ||
|
||
constructor(configuration: ApplicationAutoScalingClientConfig) { | ||
let _config_0 = { | ||
...__ClientDefaultValues, | ||
...configuration | ||
}; | ||
let _config_1 = resolveRegionConfig(_config_0); | ||
let _config_2 = resolveEndpointsConfig(_config_1); | ||
let _config_3 = resolveAwsAuthConfig(_config_2); | ||
let _config_4 = resolveRetryConfig(_config_3); | ||
let _config_5 = resolveUserAgentConfig(_config_4); | ||
let _config_6 = resolveHostHeaderConfig(_config_5); | ||
super(_config_6); | ||
this.config = _config_6; | ||
this.middlewareStack.use(getAwsAuthPlugin(this.config)); | ||
this.middlewareStack.use(getRetryPlugin(this.config)); | ||
this.middlewareStack.use(getUserAgentPlugin(this.config)); | ||
this.middlewareStack.use(getContentLengthPlugin(this.config)); | ||
this.middlewareStack.use(getHostHeaderPlugin(this.config)); | ||
} | ||
|
||
destroy(): void {} | ||
} |
Oops, something went wrong.