Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shy-gorillas-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect-aws/client-ec2": patch
---

new service methods
55 changes: 55 additions & 0 deletions .changeset/tall-eels-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
"@effect-aws/client-api-gateway-management-api": patch
"@effect-aws/client-cognito-identity-provider": patch
"@effect-aws/client-opensearch-serverless": patch
"@effect-aws/client-iot-jobs-data-plane": patch
"@effect-aws/client-timestream-influxdb": patch
"@effect-aws/client-cloudwatch-events": patch
"@effect-aws/client-timestream-query": patch
"@effect-aws/client-timestream-write": patch
"@effect-aws/client-bedrock-runtime": patch
"@effect-aws/client-cloudwatch-logs": patch
"@effect-aws/client-iot-events-data": patch
"@effect-aws/client-secrets-manager": patch
"@effect-aws/client-api-gateway-v2": patch
"@effect-aws/client-iot-data-plane": patch
"@effect-aws/client-organizations": patch
"@effect-aws/client-auto-scaling": patch
"@effect-aws/client-iot-wireless": patch
"@effect-aws/client-api-gateway": patch
"@effect-aws/client-cloudsearch": patch
"@effect-aws/client-elasticache": patch
"@effect-aws/client-eventbridge": patch
"@effect-aws/client-cloudtrail": patch
"@effect-aws/client-cloudwatch": patch
"@effect-aws/client-codedeploy": patch
"@effect-aws/client-iot-events": patch
"@effect-aws/client-opensearch": patch
"@effect-aws/client-scheduler": patch
"@effect-aws/client-dynamodb": patch
"@effect-aws/client-firehose": patch
"@effect-aws/client-textract": patch
"@effect-aws/client-account": patch
"@effect-aws/client-bedrock": patch
"@effect-aws/client-kinesis": patch
"@effect-aws/client-athena": patch
"@effect-aws/client-lambda": patch
"@effect-aws/lib-dynamodb": patch
"@effect-aws/client-ec2": patch
"@effect-aws/client-ecr": patch
"@effect-aws/client-ecs": patch
"@effect-aws/client-iam": patch
"@effect-aws/client-iot": patch
"@effect-aws/client-kms": patch
"@effect-aws/client-rds": patch
"@effect-aws/client-ses": patch
"@effect-aws/client-sfn": patch
"@effect-aws/client-sns": patch
"@effect-aws/client-sqs": patch
"@effect-aws/client-ssm": patch
"@effect-aws/client-sts": patch
"@effect-aws/client-mq": patch
"@effect-aws/client-s3": patch
---

Fix "cannot be named without a reference" error
3 changes: 2 additions & 1 deletion packages/client-account/src/AccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
type StartPrimaryEmailUpdateCommandInput,
type StartPrimaryEmailUpdateCommandOutput,
} from "@aws-sdk/client-account";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
Expand All @@ -58,6 +58,7 @@ import type {
ConflictError,
InternalServerError,
ResourceNotFoundError,
SdkError,
TooManyRequestsError,
ValidationError,
} from "./Errors.js";
Expand Down
5 changes: 1 addition & 4 deletions packages/client-account/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type {
ValidationException,
} from "@aws-sdk/client-account";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"AccessDeniedException",
Expand All @@ -24,6 +23,4 @@ export type InternalServerError = TaggedException<InternalServerException>;
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
export type ValidationError = TaggedException<ValidationException>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
3 changes: 2 additions & 1 deletion packages/client-account/test/Account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
} from "@aws-sdk/client-account";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-account/dist-cjs/runtimeConfig";
import { Account, AccountServiceConfig, SdkError } from "@effect-aws/client-account";
import { Account, AccountServiceConfig } from "@effect-aws/client-account";
import { SdkError } from "@effect-aws/commons";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import { pipe } from "effect/Function";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
type PostToConnectionCommandInput,
type PostToConnectionCommandOutput,
} from "@aws-sdk/client-apigatewaymanagementapi";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
import * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js";
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError } from "./Errors.js";
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors.js";
import { AllServiceErrors } from "./Errors.js";

const commands = {
Expand Down
5 changes: 1 addition & 4 deletions packages/client-api-gateway-management-api/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type {
PayloadTooLargeException,
} from "@aws-sdk/client-apigatewaymanagementapi";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"ForbiddenException",
Expand All @@ -18,6 +17,4 @@ export type ForbiddenError = TaggedException<ForbiddenException>;
export type GoneError = TaggedException<GoneException>;
export type LimitExceededError = TaggedException<LimitExceededException>;
export type PayloadTooLargeError = TaggedException<PayloadTooLargeException>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import * as runtimeConfig from "@aws-sdk/client-apigatewaymanagementapi/dist-cjs
import {
ApiGatewayManagementApi,
ApiGatewayManagementApiServiceConfig,
SdkError,
} from "@effect-aws/client-api-gateway-management-api";
import { SdkError } from "@effect-aws/commons";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import { pipe } from "effect/Function";
Expand Down
3 changes: 2 additions & 1 deletion packages/client-api-gateway-v2/src/ApiGatewayV2Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ import {
type UpdateVpcLinkCommandInput,
type UpdateVpcLinkCommandOutput,
} from "@aws-sdk/client-apigatewayv2";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
Expand All @@ -232,6 +232,7 @@ import type {
BadRequestError,
ConflictError,
NotFoundError,
SdkError,
TooManyRequestsError,
} from "./Errors.js";
import { AllServiceErrors } from "./Errors.js";
Expand Down
5 changes: 1 addition & 4 deletions packages/client-api-gateway-v2/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {
TooManyRequestsException,
} from "@aws-sdk/client-apigatewayv2";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"AccessDeniedException",
Expand All @@ -21,6 +20,4 @@ export type BadRequestError = TaggedException<BadRequestException>;
export type ConflictError = TaggedException<ConflictException>;
export type NotFoundError = TaggedException<NotFoundException>;
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
3 changes: 2 additions & 1 deletion packages/client-api-gateway-v2/test/ApiGatewayV2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
} from "@aws-sdk/client-apigatewayv2";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-apigatewayv2/dist-cjs/runtimeConfig";
import { ApiGatewayV2, ApiGatewayV2ServiceConfig, SdkError } from "@effect-aws/client-api-gateway-v2";
import { ApiGatewayV2, ApiGatewayV2ServiceConfig } from "@effect-aws/client-api-gateway-v2";
import { SdkError } from "@effect-aws/commons";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import { pipe } from "effect/Function";
Expand Down
3 changes: 2 additions & 1 deletion packages/client-api-gateway/src/APIGatewayService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ import {
type UpdateVpcLinkCommandInput,
type UpdateVpcLinkCommandOutput,
} from "@aws-sdk/client-api-gateway";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
Expand All @@ -388,6 +388,7 @@ import type {
ConflictError,
LimitExceededError,
NotFoundError,
SdkError,
ServiceUnavailableError,
TooManyRequestsError,
UnauthorizedError,
Expand Down
5 changes: 1 addition & 4 deletions packages/client-api-gateway/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import type {
UnauthorizedException,
} from "@aws-sdk/client-api-gateway";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"BadRequestException",
Expand All @@ -27,6 +26,4 @@ export type NotFoundError = TaggedException<NotFoundException>;
export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
export type UnauthorizedError = TaggedException<UnauthorizedException>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
3 changes: 2 additions & 1 deletion packages/client-api-gateway/test/APIGateway.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
} from "@aws-sdk/client-api-gateway";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-api-gateway/dist-cjs/runtimeConfig";
import { APIGateway, APIGatewayServiceConfig, SdkError } from "@effect-aws/client-api-gateway";
import { APIGateway, APIGatewayServiceConfig } from "@effect-aws/client-api-gateway";
import { SdkError } from "@effect-aws/commons";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import { pipe } from "effect/Function";
Expand Down
3 changes: 2 additions & 1 deletion packages/client-athena/src/AthenaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ import {
type UpdateWorkGroupCommandInput,
type UpdateWorkGroupCommandOutput,
} from "@aws-sdk/client-athena";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
Expand All @@ -220,6 +220,7 @@ import type {
InvalidRequestError,
MetadataError,
ResourceNotFoundError,
SdkError,
SessionAlreadyExistsError,
TooManyRequestsError,
} from "./Errors.js";
Expand Down
5 changes: 1 addition & 4 deletions packages/client-athena/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type {
TooManyRequestsException,
} from "@aws-sdk/client-athena";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"InternalServerException",
Expand All @@ -24,6 +23,4 @@ export type MetadataError = TaggedException<MetadataException>;
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
export type SessionAlreadyExistsError = TaggedException<SessionAlreadyExistsException>;
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
3 changes: 2 additions & 1 deletion packages/client-athena/test/Athena.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
} from "@aws-sdk/client-athena";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-athena/dist-cjs/runtimeConfig";
import { Athena, AthenaServiceConfig, SdkError } from "@effect-aws/client-athena";
import { Athena, AthenaServiceConfig } from "@effect-aws/client-athena";
import { SdkError } from "@effect-aws/commons";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import { pipe } from "effect/Function";
Expand Down
3 changes: 2 additions & 1 deletion packages/client-auto-scaling/src/AutoScalingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ import {
type UpdateAutoScalingGroupCommandInput,
type UpdateAutoScalingGroupCommandOutput,
} from "@aws-sdk/client-auto-scaling";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
Expand All @@ -216,6 +216,7 @@ import type {
ResourceContentionFaultError,
ResourceInUseFaultError,
ScalingActivityInProgressFaultError,
SdkError,
ServiceLinkedRoleError,
} from "./Errors.js";
import { AllServiceErrors } from "./Errors.js";
Expand Down
5 changes: 1 addition & 4 deletions packages/client-auto-scaling/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import type {
ServiceLinkedRoleFailure,
} from "@aws-sdk/client-auto-scaling";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"ActiveInstanceRefreshNotFoundFault",
Expand All @@ -36,6 +35,4 @@ export type ResourceContentionFaultError = TaggedException<ResourceContentionFau
export type ResourceInUseFaultError = TaggedException<ResourceInUseFault>;
export type ScalingActivityInProgressFaultError = TaggedException<ScalingActivityInProgressFault>;
export type ServiceLinkedRoleError = TaggedException<ServiceLinkedRoleFailure>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
3 changes: 2 additions & 1 deletion packages/client-auto-scaling/test/AutoScaling.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
} from "@aws-sdk/client-auto-scaling";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-auto-scaling/dist-cjs/runtimeConfig";
import { AutoScaling, AutoScalingServiceConfig, SdkError } from "@effect-aws/client-auto-scaling";
import { AutoScaling, AutoScalingServiceConfig } from "@effect-aws/client-auto-scaling";
import { SdkError } from "@effect-aws/commons";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import { pipe } from "effect/Function";
Expand Down
3 changes: 2 additions & 1 deletion packages/client-bedrock-runtime/src/BedrockRuntimeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
type StartAsyncInvokeCommandInput,
type StartAsyncInvokeCommandOutput,
} from "@aws-sdk/client-bedrock-runtime";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
Expand All @@ -47,6 +47,7 @@ import type {
ModelStreamError,
ModelTimeoutError,
ResourceNotFoundError,
SdkError,
ServiceQuotaExceededError,
ServiceUnavailableError,
ThrottlingError,
Expand Down
5 changes: 1 addition & 4 deletions packages/client-bedrock-runtime/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import type {
ValidationException,
} from "@aws-sdk/client-bedrock-runtime";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"AccessDeniedException",
Expand Down Expand Up @@ -42,6 +41,4 @@ export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededExce
export type ServiceUnavailableError = TaggedException<ServiceUnavailableException>;
export type ThrottlingError = TaggedException<ThrottlingException>;
export type ValidationError = TaggedException<ValidationException>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
3 changes: 2 additions & 1 deletion packages/client-bedrock-runtime/test/BedrockRuntime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
} from "@aws-sdk/client-bedrock-runtime";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig";
import { BedrockRuntime, BedrockRuntimeServiceConfig, SdkError } from "@effect-aws/client-bedrock-runtime";
import { BedrockRuntime, BedrockRuntimeServiceConfig } from "@effect-aws/client-bedrock-runtime";
import { SdkError } from "@effect-aws/commons";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import { pipe } from "effect/Function";
Expand Down
3 changes: 2 additions & 1 deletion packages/client-bedrock/src/BedrockService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ import {
type UpdateProvisionedModelThroughputCommandInput,
type UpdateProvisionedModelThroughputCommandOutput,
} from "@aws-sdk/client-bedrock";
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
Expand All @@ -193,6 +193,7 @@ import type {
ConflictError,
InternalServerError,
ResourceNotFoundError,
SdkError,
ServiceQuotaExceededError,
ServiceUnavailableError,
ThrottlingError,
Expand Down
5 changes: 1 addition & 4 deletions packages/client-bedrock/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import type {
ValidationException,
} from "@aws-sdk/client-bedrock";
import type { TaggedException } from "@effect-aws/commons";
import { SdkError as CommonSdkError } from "@effect-aws/commons";

export const AllServiceErrors = [
"AccessDeniedException",
Expand All @@ -33,6 +32,4 @@ export type ServiceUnavailableError = TaggedException<ServiceUnavailableExceptio
export type ThrottlingError = TaggedException<ThrottlingException>;
export type TooManyTagsError = TaggedException<TooManyTagsException>;
export type ValidationError = TaggedException<ValidationException>;

export type SdkError = CommonSdkError;
export const SdkError = CommonSdkError;
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
Loading