@effect-aws/client-cloudsearch 1.2.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CloudSearchClientInstance/package.json +6 -0
  2. package/CloudSearchService/package.json +6 -0
  3. package/CloudSearchServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/dist/cjs/CloudSearchClientInstance.d.ts +24 -0
  6. package/dist/cjs/CloudSearchClientInstance.d.ts.map +1 -0
  7. package/dist/cjs/CloudSearchClientInstance.js +50 -0
  8. package/dist/cjs/CloudSearchClientInstance.js.map +1 -0
  9. package/{lib → dist/cjs}/CloudSearchService.d.ts +16 -38
  10. package/dist/cjs/CloudSearchService.d.ts.map +1 -0
  11. package/dist/cjs/CloudSearchService.js +82 -0
  12. package/dist/cjs/CloudSearchService.js.map +1 -0
  13. package/dist/cjs/CloudSearchServiceConfig.d.ts +25 -0
  14. package/dist/cjs/CloudSearchServiceConfig.d.ts.map +1 -0
  15. package/dist/cjs/CloudSearchServiceConfig.js +35 -0
  16. package/dist/cjs/CloudSearchServiceConfig.js.map +1 -0
  17. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  18. package/dist/cjs/Errors.d.ts.map +1 -0
  19. package/dist/cjs/Errors.js +16 -0
  20. package/dist/cjs/Errors.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/CloudSearchClientInstance.d.ts +24 -0
  26. package/dist/dts/CloudSearchClientInstance.d.ts.map +1 -0
  27. package/dist/dts/CloudSearchService.d.ts +173 -0
  28. package/dist/dts/CloudSearchService.d.ts.map +1 -0
  29. package/dist/dts/CloudSearchServiceConfig.d.ts +25 -0
  30. package/dist/dts/CloudSearchServiceConfig.d.ts.map +1 -0
  31. package/dist/dts/Errors.d.ts +15 -0
  32. package/dist/dts/Errors.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/CloudSearchClientInstance.js +23 -0
  36. package/dist/esm/CloudSearchClientInstance.js.map +1 -0
  37. package/dist/esm/CloudSearchService.js +55 -0
  38. package/dist/esm/CloudSearchService.js.map +1 -0
  39. package/dist/esm/CloudSearchServiceConfig.js +31 -0
  40. package/dist/esm/CloudSearchServiceConfig.js.map +1 -0
  41. package/dist/esm/Errors.js +13 -0
  42. package/dist/esm/Errors.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/CloudSearchClientInstance.ts +33 -0
  48. package/src/CloudSearchService.ts +525 -0
  49. package/src/CloudSearchServiceConfig.ts +52 -0
  50. package/src/Errors.ts +35 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -35
  53. package/docgen.json +0 -8
  54. package/lib/CloudSearchClientInstance.d.ts +0 -31
  55. package/lib/CloudSearchClientInstance.js +0 -57
  56. package/lib/CloudSearchClientInstanceConfig.d.ts +0 -23
  57. package/lib/CloudSearchClientInstanceConfig.js +0 -44
  58. package/lib/CloudSearchService.js +0 -114
  59. package/lib/Errors.js +0 -16
  60. package/lib/esm/CloudSearchClientInstance.js +0 -30
  61. package/lib/esm/CloudSearchClientInstanceConfig.js +0 -40
  62. package/lib/esm/CloudSearchService.js +0 -110
  63. package/lib/esm/Errors.js +0 -13
  64. package/lib/esm/index.js +0 -5
  65. package/lib/index.d.ts +0 -4
  66. package/lib/index.js +0 -21
  67. package/project.json +0 -77
  68. package/vitest.config.ts +0 -3
@@ -0,0 +1,173 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { type BuildSuggestersCommandInput, type BuildSuggestersCommandOutput, type CloudSearchClient, type CloudSearchClientConfig, type CreateDomainCommandInput, type CreateDomainCommandOutput, type DefineAnalysisSchemeCommandInput, type DefineAnalysisSchemeCommandOutput, type DefineExpressionCommandInput, type DefineExpressionCommandOutput, type DefineIndexFieldCommandInput, type DefineIndexFieldCommandOutput, type DefineSuggesterCommandInput, type DefineSuggesterCommandOutput, type DeleteAnalysisSchemeCommandInput, type DeleteAnalysisSchemeCommandOutput, type DeleteDomainCommandInput, type DeleteDomainCommandOutput, type DeleteExpressionCommandInput, type DeleteExpressionCommandOutput, type DeleteIndexFieldCommandInput, type DeleteIndexFieldCommandOutput, type DeleteSuggesterCommandInput, type DeleteSuggesterCommandOutput, type DescribeAnalysisSchemesCommandInput, type DescribeAnalysisSchemesCommandOutput, type DescribeAvailabilityOptionsCommandInput, type DescribeAvailabilityOptionsCommandOutput, type DescribeDomainEndpointOptionsCommandInput, type DescribeDomainEndpointOptionsCommandOutput, type DescribeDomainsCommandInput, type DescribeDomainsCommandOutput, type DescribeExpressionsCommandInput, type DescribeExpressionsCommandOutput, type DescribeIndexFieldsCommandInput, type DescribeIndexFieldsCommandOutput, type DescribeScalingParametersCommandInput, type DescribeScalingParametersCommandOutput, type DescribeServiceAccessPoliciesCommandInput, type DescribeServiceAccessPoliciesCommandOutput, type DescribeSuggestersCommandInput, type DescribeSuggestersCommandOutput, type IndexDocumentsCommandInput, type IndexDocumentsCommandOutput, type ListDomainNamesCommandInput, type ListDomainNamesCommandOutput, type UpdateAvailabilityOptionsCommandInput, type UpdateAvailabilityOptionsCommandOutput, type UpdateDomainEndpointOptionsCommandInput, type UpdateDomainEndpointOptionsCommandOutput, type UpdateScalingParametersCommandInput, type UpdateScalingParametersCommandOutput, type UpdateServiceAccessPoliciesCommandInput, type UpdateServiceAccessPoliciesCommandOutput } from "@aws-sdk/client-cloudsearch";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import * as Instance from "./CloudSearchClientInstance.js";
8
+ import type { BaseError, DisabledOperationError, InternalError, InvalidTypeError, LimitExceededError, ResourceAlreadyExistsError, ResourceNotFoundError, ValidationError } from "./Errors.js";
9
+ interface CloudSearchService$ {
10
+ readonly _: unique symbol;
11
+ /**
12
+ * @see {@link BuildSuggestersCommand}
13
+ */
14
+ buildSuggesters(args: BuildSuggestersCommandInput, options?: HttpHandlerOptions): Effect.Effect<BuildSuggestersCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError>;
15
+ /**
16
+ * @see {@link CreateDomainCommand}
17
+ */
18
+ createDomain(args: CreateDomainCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateDomainCommandOutput, SdkError | BaseError | InternalError | LimitExceededError | ResourceAlreadyExistsError | ValidationError>;
19
+ /**
20
+ * @see {@link DefineAnalysisSchemeCommand}
21
+ */
22
+ defineAnalysisScheme(args: DefineAnalysisSchemeCommandInput, options?: HttpHandlerOptions): Effect.Effect<DefineAnalysisSchemeCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
23
+ /**
24
+ * @see {@link DefineExpressionCommand}
25
+ */
26
+ defineExpression(args: DefineExpressionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DefineExpressionCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
27
+ /**
28
+ * @see {@link DefineIndexFieldCommand}
29
+ */
30
+ defineIndexField(args: DefineIndexFieldCommandInput, options?: HttpHandlerOptions): Effect.Effect<DefineIndexFieldCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
31
+ /**
32
+ * @see {@link DefineSuggesterCommand}
33
+ */
34
+ defineSuggester(args: DefineSuggesterCommandInput, options?: HttpHandlerOptions): Effect.Effect<DefineSuggesterCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
35
+ /**
36
+ * @see {@link DeleteAnalysisSchemeCommand}
37
+ */
38
+ deleteAnalysisScheme(args: DeleteAnalysisSchemeCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAnalysisSchemeCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError>;
39
+ /**
40
+ * @see {@link DeleteDomainCommand}
41
+ */
42
+ deleteDomain(args: DeleteDomainCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteDomainCommandOutput, SdkError | BaseError | InternalError>;
43
+ /**
44
+ * @see {@link DeleteExpressionCommand}
45
+ */
46
+ deleteExpression(args: DeleteExpressionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteExpressionCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError>;
47
+ /**
48
+ * @see {@link DeleteIndexFieldCommand}
49
+ */
50
+ deleteIndexField(args: DeleteIndexFieldCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteIndexFieldCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError>;
51
+ /**
52
+ * @see {@link DeleteSuggesterCommand}
53
+ */
54
+ deleteSuggester(args: DeleteSuggesterCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteSuggesterCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError>;
55
+ /**
56
+ * @see {@link DescribeAnalysisSchemesCommand}
57
+ */
58
+ describeAnalysisSchemes(args: DescribeAnalysisSchemesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeAnalysisSchemesCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError>;
59
+ /**
60
+ * @see {@link DescribeAvailabilityOptionsCommand}
61
+ */
62
+ describeAvailabilityOptions(args: DescribeAvailabilityOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeAvailabilityOptionsCommandOutput, SdkError | BaseError | DisabledOperationError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError>;
63
+ /**
64
+ * @see {@link DescribeDomainEndpointOptionsCommand}
65
+ */
66
+ describeDomainEndpointOptions(args: DescribeDomainEndpointOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeDomainEndpointOptionsCommandOutput, SdkError | BaseError | DisabledOperationError | InternalError | LimitExceededError | ResourceNotFoundError>;
67
+ /**
68
+ * @see {@link DescribeDomainsCommand}
69
+ */
70
+ describeDomains(args: DescribeDomainsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeDomainsCommandOutput, SdkError | BaseError | InternalError>;
71
+ /**
72
+ * @see {@link DescribeExpressionsCommand}
73
+ */
74
+ describeExpressions(args: DescribeExpressionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeExpressionsCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError>;
75
+ /**
76
+ * @see {@link DescribeIndexFieldsCommand}
77
+ */
78
+ describeIndexFields(args: DescribeIndexFieldsCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeIndexFieldsCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError>;
79
+ /**
80
+ * @see {@link DescribeScalingParametersCommand}
81
+ */
82
+ describeScalingParameters(args: DescribeScalingParametersCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeScalingParametersCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError>;
83
+ /**
84
+ * @see {@link DescribeServiceAccessPoliciesCommand}
85
+ */
86
+ describeServiceAccessPolicies(args: DescribeServiceAccessPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeServiceAccessPoliciesCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError>;
87
+ /**
88
+ * @see {@link DescribeSuggestersCommand}
89
+ */
90
+ describeSuggesters(args: DescribeSuggestersCommandInput, options?: HttpHandlerOptions): Effect.Effect<DescribeSuggestersCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError>;
91
+ /**
92
+ * @see {@link IndexDocumentsCommand}
93
+ */
94
+ indexDocuments(args: IndexDocumentsCommandInput, options?: HttpHandlerOptions): Effect.Effect<IndexDocumentsCommandOutput, SdkError | BaseError | InternalError | ResourceNotFoundError | ValidationError>;
95
+ /**
96
+ * @see {@link ListDomainNamesCommand}
97
+ */
98
+ listDomainNames(args: ListDomainNamesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDomainNamesCommandOutput, SdkError | BaseError>;
99
+ /**
100
+ * @see {@link UpdateAvailabilityOptionsCommand}
101
+ */
102
+ updateAvailabilityOptions(args: UpdateAvailabilityOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateAvailabilityOptionsCommandOutput, SdkError | BaseError | DisabledOperationError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
103
+ /**
104
+ * @see {@link UpdateDomainEndpointOptionsCommand}
105
+ */
106
+ updateDomainEndpointOptions(args: UpdateDomainEndpointOptionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateDomainEndpointOptionsCommandOutput, SdkError | BaseError | DisabledOperationError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
107
+ /**
108
+ * @see {@link UpdateScalingParametersCommand}
109
+ */
110
+ updateScalingParameters(args: UpdateScalingParametersCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScalingParametersCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
111
+ /**
112
+ * @see {@link UpdateServiceAccessPoliciesCommand}
113
+ */
114
+ updateServiceAccessPolicies(args: UpdateServiceAccessPoliciesCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateServiceAccessPoliciesCommandOutput, SdkError | BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError>;
115
+ }
116
+ /**
117
+ * @since 1.0.0
118
+ * @category constructors
119
+ */
120
+ export declare const makeCloudSearchService: Effect.Effect<CloudSearchService$, never, Instance.CloudSearchClientInstance>;
121
+ declare const CloudSearchService_base: import("effect/Context").TagClass<CloudSearchService, "@effect-aws/client-cloudsearch/CloudSearchService", CloudSearchService$> & {
122
+ readonly _: Effect.Effect<CloudSearchService$["_"], never, CloudSearchService>;
123
+ buildSuggesters: (args: BuildSuggestersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<BuildSuggestersCommandOutput, BaseError | InternalError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
124
+ createDomain: (args: CreateDomainCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateDomainCommandOutput, BaseError | InternalError | LimitExceededError | ResourceAlreadyExistsError | ValidationError | SdkError, CloudSearchService>;
125
+ defineAnalysisScheme: (args: DefineAnalysisSchemeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DefineAnalysisSchemeCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
126
+ defineExpression: (args: DefineExpressionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DefineExpressionCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
127
+ defineIndexField: (args: DefineIndexFieldCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DefineIndexFieldCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
128
+ defineSuggester: (args: DefineSuggesterCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DefineSuggesterCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
129
+ deleteAnalysisScheme: (args: DeleteAnalysisSchemeCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteAnalysisSchemeCommandOutput, BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
130
+ deleteDomain: (args: DeleteDomainCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteDomainCommandOutput, BaseError | InternalError | SdkError, CloudSearchService>;
131
+ deleteExpression: (args: DeleteExpressionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteExpressionCommandOutput, BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
132
+ deleteIndexField: (args: DeleteIndexFieldCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteIndexFieldCommandOutput, BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
133
+ deleteSuggester: (args: DeleteSuggesterCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DeleteSuggesterCommandOutput, BaseError | InternalError | InvalidTypeError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
134
+ describeAnalysisSchemes: (args: DescribeAnalysisSchemesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeAnalysisSchemesCommandOutput, BaseError | InternalError | ResourceNotFoundError | SdkError, CloudSearchService>;
135
+ describeAvailabilityOptions: (args: DescribeAvailabilityOptionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeAvailabilityOptionsCommandOutput, BaseError | DisabledOperationError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | SdkError, CloudSearchService>;
136
+ describeDomainEndpointOptions: (args: DescribeDomainEndpointOptionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeDomainEndpointOptionsCommandOutput, BaseError | DisabledOperationError | InternalError | LimitExceededError | ResourceNotFoundError | SdkError, CloudSearchService>;
137
+ describeDomains: (args: DescribeDomainsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeDomainsCommandOutput, BaseError | InternalError | SdkError, CloudSearchService>;
138
+ describeExpressions: (args: DescribeExpressionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeExpressionsCommandOutput, BaseError | InternalError | ResourceNotFoundError | SdkError, CloudSearchService>;
139
+ describeIndexFields: (args: DescribeIndexFieldsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeIndexFieldsCommandOutput, BaseError | InternalError | ResourceNotFoundError | SdkError, CloudSearchService>;
140
+ describeScalingParameters: (args: DescribeScalingParametersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeScalingParametersCommandOutput, BaseError | InternalError | ResourceNotFoundError | SdkError, CloudSearchService>;
141
+ describeServiceAccessPolicies: (args: DescribeServiceAccessPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeServiceAccessPoliciesCommandOutput, BaseError | InternalError | ResourceNotFoundError | SdkError, CloudSearchService>;
142
+ describeSuggesters: (args: DescribeSuggestersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<DescribeSuggestersCommandOutput, BaseError | InternalError | ResourceNotFoundError | SdkError, CloudSearchService>;
143
+ indexDocuments: (args: IndexDocumentsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<IndexDocumentsCommandOutput, BaseError | InternalError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
144
+ listDomainNames: (args: ListDomainNamesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ListDomainNamesCommandOutput, BaseError | SdkError, CloudSearchService>;
145
+ updateAvailabilityOptions: (args: UpdateAvailabilityOptionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateAvailabilityOptionsCommandOutput, BaseError | DisabledOperationError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
146
+ updateDomainEndpointOptions: (args: UpdateDomainEndpointOptionsCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateDomainEndpointOptionsCommandOutput, BaseError | DisabledOperationError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
147
+ updateScalingParameters: (args: UpdateScalingParametersCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateScalingParametersCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
148
+ updateServiceAccessPolicies: (args: UpdateServiceAccessPoliciesCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateServiceAccessPoliciesCommandOutput, BaseError | InternalError | InvalidTypeError | LimitExceededError | ResourceNotFoundError | ValidationError | SdkError, CloudSearchService>;
149
+ } & {
150
+ use: <X>(body: (_: CloudSearchService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, CloudSearchService | R> : Effect.Effect<X, never, CloudSearchService>;
151
+ };
152
+ /**
153
+ * @since 1.0.0
154
+ * @category models
155
+ */
156
+ export declare class CloudSearchService extends CloudSearchService_base {
157
+ static readonly defaultLayer: Layer.Layer<CloudSearchService, never, never>;
158
+ static readonly layer: (config: CloudSearchService.Config) => Layer.Layer<CloudSearchService, never, never>;
159
+ static readonly baseLayer: (evaluate: (defaultConfig: CloudSearchClientConfig) => CloudSearchClient) => Layer.Layer<CloudSearchService, never, never>;
160
+ }
161
+ /**
162
+ * @since 1.0.0
163
+ */
164
+ export declare namespace CloudSearchService {
165
+ /**
166
+ * @since 1.0.0
167
+ */
168
+ interface Config extends Omit<CloudSearchClientConfig, "logger"> {
169
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
170
+ }
171
+ }
172
+ export {};
173
+ //# sourceMappingURL=CloudSearchService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudSearchService.d.ts","sourceRoot":"","sources":["../../src/CloudSearchService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAE5B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,4BAA4B,EACjC,KAAK,6BA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
+ import type { CloudSearchClientConfig } from "@aws-sdk/client-cloudsearch";
5
+ import { Effect, Layer } from "effect";
6
+ import type { CloudSearchService } from "./CloudSearchService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category cloudsearch service config
10
+ */
11
+ export declare const withCloudSearchServiceConfig: {
12
+ (config: CloudSearchService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
13
+ <A, E, R>(effect: Effect.Effect<A, E, R>, config: CloudSearchService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category cloudsearch service config
18
+ */
19
+ export declare const setCloudSearchServiceConfig: (config: CloudSearchService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toCloudSearchClientConfig: Effect.Effect<CloudSearchClientConfig>;
25
+ //# sourceMappingURL=CloudSearchServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudSearchServiceConfig.d.ts","sourceRoot":"","sources":["../../src/CloudSearchServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAWlE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE;IACzC,CAAC,MAAM,EAAE,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKtG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,WAAY,mBAAmB,MAAM,qCACf,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAQ3E,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException } from "@aws-sdk/client-cloudsearch";
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["BaseException", "DisabledOperationException", "InternalException", "InvalidTypeException", "LimitExceededException", "ResourceAlreadyExistsException", "ResourceNotFoundException", "ValidationException"];
5
+ export type BaseError = TaggedException<BaseException>;
6
+ export type DisabledOperationError = TaggedException<DisabledOperationException>;
7
+ export type InternalError = TaggedException<InternalException>;
8
+ export type InvalidTypeError = TaggedException<InvalidTypeException>;
9
+ export type LimitExceededError = TaggedException<LimitExceededException>;
10
+ export type ResourceAlreadyExistsError = TaggedException<ResourceAlreadyExistsException>;
11
+ export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
12
+ export type ValidationError = TaggedException<ValidationException>;
13
+ export type SdkError = CommonSdkError;
14
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
15
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,uNASnB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,8BAA8B,CAAC,CAAC;AACzF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { CloudSearchService } from "./CloudSearchService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as CloudSearchClientInstance from "./CloudSearchClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./CloudSearchService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias CloudSearchService
25
+ */
26
+ export declare namespace CloudSearch {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias CloudSearchService.Config
30
+ */
31
+ type Config = CloudSearchService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias CloudSearchService
37
+ */
38
+ export declare const CloudSearch: typeof CloudSearchService;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E;;GAEG;AACH,OAAO,KAAK,wBAAwB,MAAM,+BAA+B,CAAC;AAE1E;;GAEG;AACH,cAAc,yBAAyB,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC;;;OAGG;IACH,KAAY,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC;CAChD;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,2BAAqB,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { CloudSearchClient } from "@aws-sdk/client-cloudsearch";
5
+ import { Context, Effect, Layer } from "effect";
6
+ import * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export class CloudSearchClientInstance extends Context.Tag("@effect-aws/client-cloudsearch/CloudSearchClientInstance")() {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export const make = Effect.flatMap(CloudSearchServiceConfig.toCloudSearchClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new CloudSearchClient(config)), (client) => Effect.sync(() => client.destroy())));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export const layer = Layer.scoped(CloudSearchClientInstance, make);
23
+ //# sourceMappingURL=CloudSearchClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudSearchClientInstance.js","sourceRoot":"","sources":["../../src/CloudSearchClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,wBAAwB,MAAM,+BAA+B,CAAC;AAE1E;;;GAGG;AACH,MAAM,OAAO,yBAA0B,SAAQ,OAAO,CAAC,GAAG,CACxD,0DAA0D,CAC3D,EAAgD;CAAG;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,wBAAwB,CAAC,yBAAyB,EAClD,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC,EAChD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { BuildSuggestersCommand, CreateDomainCommand, DefineAnalysisSchemeCommand, DefineExpressionCommand, DefineIndexFieldCommand, DefineSuggesterCommand, DeleteAnalysisSchemeCommand, DeleteDomainCommand, DeleteExpressionCommand, DeleteIndexFieldCommand, DeleteSuggesterCommand, DescribeAnalysisSchemesCommand, DescribeAvailabilityOptionsCommand, DescribeDomainEndpointOptionsCommand, DescribeDomainsCommand, DescribeExpressionsCommand, DescribeIndexFieldsCommand, DescribeScalingParametersCommand, DescribeServiceAccessPoliciesCommand, DescribeSuggestersCommand, IndexDocumentsCommand, ListDomainNamesCommand, UpdateAvailabilityOptionsCommand, UpdateDomainEndpointOptionsCommand, UpdateScalingParametersCommand, UpdateServiceAccessPoliciesCommand, } from "@aws-sdk/client-cloudsearch";
5
+ import { Service } from "@effect-aws/commons";
6
+ import { Effect, Layer } from "effect";
7
+ import * as Instance from "./CloudSearchClientInstance.js";
8
+ import * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
9
+ import { AllServiceErrors } from "./Errors.js";
10
+ const commands = {
11
+ BuildSuggestersCommand,
12
+ CreateDomainCommand,
13
+ DefineAnalysisSchemeCommand,
14
+ DefineExpressionCommand,
15
+ DefineIndexFieldCommand,
16
+ DefineSuggesterCommand,
17
+ DeleteAnalysisSchemeCommand,
18
+ DeleteDomainCommand,
19
+ DeleteExpressionCommand,
20
+ DeleteIndexFieldCommand,
21
+ DeleteSuggesterCommand,
22
+ DescribeAnalysisSchemesCommand,
23
+ DescribeAvailabilityOptionsCommand,
24
+ DescribeDomainEndpointOptionsCommand,
25
+ DescribeDomainsCommand,
26
+ DescribeExpressionsCommand,
27
+ DescribeIndexFieldsCommand,
28
+ DescribeScalingParametersCommand,
29
+ DescribeServiceAccessPoliciesCommand,
30
+ DescribeSuggestersCommand,
31
+ IndexDocumentsCommand,
32
+ ListDomainNamesCommand,
33
+ UpdateAvailabilityOptionsCommand,
34
+ UpdateDomainEndpointOptionsCommand,
35
+ UpdateScalingParametersCommand,
36
+ UpdateServiceAccessPoliciesCommand,
37
+ };
38
+ /**
39
+ * @since 1.0.0
40
+ * @category constructors
41
+ */
42
+ export const makeCloudSearchService = Effect.gen(function* () {
43
+ const client = yield* Instance.CloudSearchClientInstance;
44
+ return Service.fromClientAndCommands(client, commands, AllServiceErrors);
45
+ });
46
+ /**
47
+ * @since 1.0.0
48
+ * @category models
49
+ */
50
+ export class CloudSearchService extends Effect.Tag("@effect-aws/client-cloudsearch/CloudSearchService")() {
51
+ static defaultLayer = Layer.effect(this, makeCloudSearchService).pipe(Layer.provide(Instance.layer));
52
+ static layer = (config) => Layer.effect(this, makeCloudSearchService).pipe(Layer.provide(Instance.layer), Layer.provide(CloudSearchServiceConfig.setCloudSearchServiceConfig(config)));
53
+ static baseLayer = (evaluate) => Layer.effect(this, makeCloudSearchService).pipe(Layer.provide(Layer.effect(Instance.CloudSearchClientInstance, Effect.map(CloudSearchServiceConfig.toCloudSearchClientConfig, evaluate))));
54
+ }
55
+ //# sourceMappingURL=CloudSearchService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudSearchService.js","sourceRoot":"","sources":["../../src/CloudSearchService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,EAKtB,mBAAmB,EAGnB,2BAA2B,EAG3B,uBAAuB,EAGvB,uBAAuB,EAGvB,sBAAsB,EAGtB,2BAA2B,EAG3B,mBAAmB,EAGnB,uBAAuB,EAGvB,uBAAuB,EAGvB,sBAAsB,EAGtB,8BAA8B,EAG9B,kCAAkC,EAGlC,oCAAoC,EAGpC,sBAAsB,EAGtB,0BAA0B,EAG1B,0BAA0B,EAG1B,gCAAgC,EAGhC,oCAAoC,EAGpC,yBAAyB,EAGzB,qBAAqB,EAGrB,sBAAsB,EAGtB,gCAAgC,EAGhC,kCAAkC,EAGlC,8BAA8B,EAG9B,kCAAkC,GAGnC,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,wBAAwB,MAAM,+BAA+B,CAAC;AAW1E,OAAO,EA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,CAAC,CAC5E,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuE,EACvE,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC,IAAI,CAC7C,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,yBAAyB,EAClC,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,yBAAyB,EAAE,QAAQ,CAAC,CACzE,CACF,CACF,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { ServiceLogger } from "@effect-aws/commons";
2
+ import { Effect, FiberRef, Layer } from "effect";
3
+ import { dual } from "effect/Function";
4
+ import { globalValue } from "effect/GlobalValue";
5
+ /**
6
+ * @since 1.0.0
7
+ * @category cloudsearch service config
8
+ */
9
+ const currentCloudSearchServiceConfig = globalValue("@effect-aws/client-cloudsearch/currentCloudSearchServiceConfig", () => FiberRef.unsafeMake({}));
10
+ /**
11
+ * @since 1.0.0
12
+ * @category cloudsearch service config
13
+ */
14
+ export const withCloudSearchServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentCloudSearchServiceConfig, config));
15
+ /**
16
+ * @since 1.0.0
17
+ * @category cloudsearch service config
18
+ */
19
+ export const setCloudSearchServiceConfig = (config) => Layer.locallyScoped(currentCloudSearchServiceConfig, config);
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export const toCloudSearchClientConfig = Effect.gen(function* () {
25
+ const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentCloudSearchServiceConfig);
26
+ const logger = serviceLogger === true
27
+ ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
28
+ : (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
29
+ return { logger, ...config };
30
+ });
31
+ //# sourceMappingURL=CloudSearchServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloudSearchServiceConfig.js","sourceRoot":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CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
2
+ export const AllServiceErrors = [
3
+ "BaseException",
4
+ "DisabledOperationException",
5
+ "InternalException",
6
+ "InvalidTypeException",
7
+ "LimitExceededException",
8
+ "ResourceAlreadyExistsException",
9
+ "ResourceNotFoundException",
10
+ "ValidationException",
11
+ ];
12
+ export const SdkError = CommonSdkError;
13
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,eAAe;IACf,4BAA4B;IAC5B,mBAAmB;IACnB,sBAAsB;IACtB,wBAAwB;IACxB,gCAAgC;IAChC,2BAA2B;IAC3B,qBAAqB;CACb,CAAC;AAYX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { CloudSearchService } from "./CloudSearchService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as CloudSearchClientInstance from "./CloudSearchClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./CloudSearchService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias CloudSearchService
25
+ */
26
+ export const CloudSearch = CloudSearchService;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E;;GAEG;AACH,OAAO,KAAK,wBAAwB,MAAM,+BAA+B,CAAC;AAE1E;;GAEG;AACH,cAAc,yBAAyB,CAAC;AAexC;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": []
4
+ }
package/package.json CHANGED
@@ -1,54 +1,71 @@
1
1
  {
2
2
  "name": "@effect-aws/client-cloudsearch",
3
+ "version": "1.9.0",
4
+ "description": "Effectful AWS CloudSearch client",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "github:floydspace/effect-aws",
9
+ "directory": "packages/client-cloudsearch"
10
+ },
11
+ "sideEffects": [],
3
12
  "author": {
4
13
  "name": "Victor Korzunin",
5
- "email": "ifloydrose@gmail.com",
6
- "organization": false
14
+ "email": "ifloydrose@gmail.com"
7
15
  },
8
- "devDependencies": {
9
- "@types/node": "^18",
10
- "@typescript-eslint/eslint-plugin": "^7",
11
- "@typescript-eslint/parser": "^7",
12
- "aws-sdk-client-mock": "^4.0.2",
13
- "aws-sdk-client-mock-vitest": "^4.0.0",
14
- "effect": "3.0.0",
15
- "eslint": "^8",
16
- "eslint-config-prettier": "^9.1.0",
17
- "eslint-import-resolver-typescript": "^3.6.1",
18
- "eslint-plugin-import": "^2.29.1",
19
- "eslint-plugin-prettier": "^5.2.1",
20
- "prettier": "^3.2.5",
21
- "typescript": "^5.4.2",
22
- "vitest": "^2.0.5"
16
+ "homepage": "https://floydspace.github.io/effect-aws/docs/client-cloudsearch",
17
+ "dependencies": {
18
+ "@aws-sdk/client-cloudsearch": "^3",
19
+ "@effect-aws/commons": "^0.1.0"
23
20
  },
24
21
  "peerDependencies": {
25
- "effect": ">=3.0.0 <4.0.0"
22
+ "effect": ">=3.0.4 <4.0.0"
26
23
  },
27
- "dependencies": {
28
- "@aws-sdk/client-cloudsearch": "^3"
29
- },
30
- "main": "lib/index.js",
31
- "license": "MIT",
32
- "homepage": "https://floydspace.github.io/effect-aws",
33
- "publishConfig": {
34
- "access": "public"
24
+ "main": "./dist/cjs/index.js",
25
+ "module": "./dist/esm/index.js",
26
+ "types": "./dist/dts/index.d.ts",
27
+ "exports": {
28
+ "./package.json": "./package.json",
29
+ ".": {
30
+ "types": "./dist/dts/index.d.ts",
31
+ "import": "./dist/esm/index.js",
32
+ "default": "./dist/cjs/index.js"
33
+ },
34
+ "./CloudSearchClientInstance": {
35
+ "types": "./dist/dts/CloudSearchClientInstance.d.ts",
36
+ "import": "./dist/esm/CloudSearchClientInstance.js",
37
+ "default": "./dist/cjs/CloudSearchClientInstance.js"
38
+ },
39
+ "./CloudSearchService": {
40
+ "types": "./dist/dts/CloudSearchService.d.ts",
41
+ "import": "./dist/esm/CloudSearchService.js",
42
+ "default": "./dist/cjs/CloudSearchService.js"
43
+ },
44
+ "./CloudSearchServiceConfig": {
45
+ "types": "./dist/dts/CloudSearchServiceConfig.d.ts",
46
+ "import": "./dist/esm/CloudSearchServiceConfig.js",
47
+ "default": "./dist/cjs/CloudSearchServiceConfig.js"
48
+ },
49
+ "./Errors": {
50
+ "types": "./dist/dts/Errors.d.ts",
51
+ "import": "./dist/esm/Errors.js",
52
+ "default": "./dist/cjs/Errors.js"
53
+ }
35
54
  },
36
- "version": "1.2.0",
37
- "types": "lib/index.d.ts",
38
- "module": "lib/esm/index.js",
39
- "sideEffects": [],
40
- "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\".",
41
- "scripts": {
42
- "build": "npx projen build",
43
- "compile": "npx projen compile",
44
- "default": "npx projen default",
45
- "eslint": "npx projen eslint",
46
- "package": "npx projen package",
47
- "post-compile": "npx projen post-compile",
48
- "pre-compile": "npx projen pre-compile",
49
- "test": "npx projen test",
50
- "test:watch": "npx projen test:watch",
51
- "watch": "npx projen watch",
52
- "docgen": "docgen"
55
+ "typesVersions": {
56
+ "*": {
57
+ "CloudSearchClientInstance": [
58
+ "./dist/dts/CloudSearchClientInstance.d.ts"
59
+ ],
60
+ "CloudSearchService": [
61
+ "./dist/dts/CloudSearchService.d.ts"
62
+ ],
63
+ "CloudSearchServiceConfig": [
64
+ "./dist/dts/CloudSearchServiceConfig.d.ts"
65
+ ],
66
+ "Errors": [
67
+ "./dist/dts/Errors.d.ts"
68
+ ]
69
+ }
53
70
  }
54
71
  }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { CloudSearchClient } from "@aws-sdk/client-cloudsearch";
5
+ import { Context, Effect, Layer } from "effect";
6
+ import * as CloudSearchServiceConfig from "./CloudSearchServiceConfig.js";
7
+
8
+ /**
9
+ * @since 1.0.0
10
+ * @category tags
11
+ */
12
+ export class CloudSearchClientInstance extends Context.Tag(
13
+ "@effect-aws/client-cloudsearch/CloudSearchClientInstance",
14
+ )<CloudSearchClientInstance, CloudSearchClient>() {}
15
+
16
+ /**
17
+ * @since 1.0.0
18
+ * @category constructors
19
+ */
20
+ export const make = Effect.flatMap(
21
+ CloudSearchServiceConfig.toCloudSearchClientConfig,
22
+ (config) =>
23
+ Effect.acquireRelease(
24
+ Effect.sync(() => new CloudSearchClient(config)),
25
+ (client) => Effect.sync(() => client.destroy()),
26
+ ),
27
+ );
28
+
29
+ /**
30
+ * @since 1.0.0
31
+ * @category layers
32
+ */
33
+ export const layer = Layer.scoped(CloudSearchClientInstance, make);