s3outposts.d.ts 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class S3Outposts extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: S3Outposts.Types.ClientConfiguration)
  13. config: Config & S3Outposts.Types.ClientConfiguration;
  14. /**
  15. * Creates an endpoint and associates it with the specified Outpost. It can take up to 5 minutes for this action to finish. Related actions include: DeleteEndpoint ListEndpoints
  16. */
  17. createEndpoint(params: S3Outposts.Types.CreateEndpointRequest, callback?: (err: AWSError, data: S3Outposts.Types.CreateEndpointResult) => void): Request<S3Outposts.Types.CreateEndpointResult, AWSError>;
  18. /**
  19. * Creates an endpoint and associates it with the specified Outpost. It can take up to 5 minutes for this action to finish. Related actions include: DeleteEndpoint ListEndpoints
  20. */
  21. createEndpoint(callback?: (err: AWSError, data: S3Outposts.Types.CreateEndpointResult) => void): Request<S3Outposts.Types.CreateEndpointResult, AWSError>;
  22. /**
  23. * Deletes an endpoint. It can take up to 5 minutes for this action to finish. Related actions include: CreateEndpoint ListEndpoints
  24. */
  25. deleteEndpoint(params: S3Outposts.Types.DeleteEndpointRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  26. /**
  27. * Deletes an endpoint. It can take up to 5 minutes for this action to finish. Related actions include: CreateEndpoint ListEndpoints
  28. */
  29. deleteEndpoint(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  30. /**
  31. * Lists endpoints associated with the specified Outpost. Related actions include: CreateEndpoint DeleteEndpoint
  32. */
  33. listEndpoints(params: S3Outposts.Types.ListEndpointsRequest, callback?: (err: AWSError, data: S3Outposts.Types.ListEndpointsResult) => void): Request<S3Outposts.Types.ListEndpointsResult, AWSError>;
  34. /**
  35. * Lists endpoints associated with the specified Outpost. Related actions include: CreateEndpoint DeleteEndpoint
  36. */
  37. listEndpoints(callback?: (err: AWSError, data: S3Outposts.Types.ListEndpointsResult) => void): Request<S3Outposts.Types.ListEndpointsResult, AWSError>;
  38. /**
  39. * Lists the Outposts with S3 on Outposts capacity for your Amazon Web Services account. Includes S3 on Outposts that you have access to as the Outposts owner, or as a shared user from Resource Access Manager (RAM).
  40. */
  41. listOutpostsWithS3(params: S3Outposts.Types.ListOutpostsWithS3Request, callback?: (err: AWSError, data: S3Outposts.Types.ListOutpostsWithS3Result) => void): Request<S3Outposts.Types.ListOutpostsWithS3Result, AWSError>;
  42. /**
  43. * Lists the Outposts with S3 on Outposts capacity for your Amazon Web Services account. Includes S3 on Outposts that you have access to as the Outposts owner, or as a shared user from Resource Access Manager (RAM).
  44. */
  45. listOutpostsWithS3(callback?: (err: AWSError, data: S3Outposts.Types.ListOutpostsWithS3Result) => void): Request<S3Outposts.Types.ListOutpostsWithS3Result, AWSError>;
  46. /**
  47. * Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM). Related actions include: CreateEndpoint DeleteEndpoint
  48. */
  49. listSharedEndpoints(params: S3Outposts.Types.ListSharedEndpointsRequest, callback?: (err: AWSError, data: S3Outposts.Types.ListSharedEndpointsResult) => void): Request<S3Outposts.Types.ListSharedEndpointsResult, AWSError>;
  50. /**
  51. * Lists all endpoints associated with an Outpost that has been shared by Amazon Web Services Resource Access Manager (RAM). Related actions include: CreateEndpoint DeleteEndpoint
  52. */
  53. listSharedEndpoints(callback?: (err: AWSError, data: S3Outposts.Types.ListSharedEndpointsResult) => void): Request<S3Outposts.Types.ListSharedEndpointsResult, AWSError>;
  54. }
  55. declare namespace S3Outposts {
  56. export type AwsAccountId = string;
  57. export type CapacityInBytes = number;
  58. export type CidrBlock = string;
  59. export interface CreateEndpointRequest {
  60. /**
  61. * The ID of the Outposts.
  62. */
  63. OutpostId: OutpostId;
  64. /**
  65. * The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon S3 on Outposts provisioned.
  66. */
  67. SubnetId: SubnetId;
  68. /**
  69. * The ID of the security group to use with the endpoint.
  70. */
  71. SecurityGroupId: SecurityGroupId;
  72. /**
  73. * The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon Web Services VPC, choose Private. To use the endpoint with an on-premises network, choose CustomerOwnedIp. If you choose CustomerOwnedIp, you must also provide the customer-owned IP address pool (CoIP pool). Private is the default access type value.
  74. */
  75. AccessType?: EndpointAccessType;
  76. /**
  77. * The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated from this pool for the endpoint.
  78. */
  79. CustomerOwnedIpv4Pool?: CustomerOwnedIpv4Pool;
  80. }
  81. export interface CreateEndpointResult {
  82. /**
  83. * The Amazon Resource Name (ARN) of the endpoint.
  84. */
  85. EndpointArn?: EndpointArn;
  86. }
  87. export type CreationTime = Date;
  88. export type CustomerOwnedIpv4Pool = string;
  89. export interface DeleteEndpointRequest {
  90. /**
  91. * The ID of the endpoint.
  92. */
  93. EndpointId: EndpointId;
  94. /**
  95. * The ID of the Outposts.
  96. */
  97. OutpostId: OutpostId;
  98. }
  99. export interface Endpoint {
  100. /**
  101. * The Amazon Resource Name (ARN) of the endpoint.
  102. */
  103. EndpointArn?: EndpointArn;
  104. /**
  105. * The ID of the Outposts.
  106. */
  107. OutpostsId?: OutpostId;
  108. /**
  109. * The VPC CIDR committed by this endpoint.
  110. */
  111. CidrBlock?: CidrBlock;
  112. /**
  113. * The status of the endpoint.
  114. */
  115. Status?: EndpointStatus;
  116. /**
  117. * The time the endpoint was created.
  118. */
  119. CreationTime?: CreationTime;
  120. /**
  121. * The network interface of the endpoint.
  122. */
  123. NetworkInterfaces?: NetworkInterfaces;
  124. /**
  125. * The ID of the VPC used for the endpoint.
  126. */
  127. VpcId?: VpcId;
  128. /**
  129. * The ID of the subnet used for the endpoint.
  130. */
  131. SubnetId?: SubnetId;
  132. /**
  133. * The ID of the security group used for the endpoint.
  134. */
  135. SecurityGroupId?: SecurityGroupId;
  136. /**
  137. * The type of connectivity used to access the Amazon S3 on Outposts endpoint.
  138. */
  139. AccessType?: EndpointAccessType;
  140. /**
  141. * The ID of the customer-owned IPv4 address pool used for the endpoint.
  142. */
  143. CustomerOwnedIpv4Pool?: CustomerOwnedIpv4Pool;
  144. /**
  145. * The failure reason, if any, for a create or delete endpoint operation.
  146. */
  147. FailedReason?: FailedReason;
  148. }
  149. export type EndpointAccessType = "Private"|"CustomerOwnedIp"|string;
  150. export type EndpointArn = string;
  151. export type EndpointId = string;
  152. export type EndpointStatus = "Pending"|"Available"|"Deleting"|"Create_Failed"|"Delete_Failed"|string;
  153. export type Endpoints = Endpoint[];
  154. export type ErrorCode = string;
  155. export interface FailedReason {
  156. /**
  157. * The failure code, if any, for a create or delete endpoint operation.
  158. */
  159. ErrorCode?: ErrorCode;
  160. /**
  161. * Additional error details describing the endpoint failure and recommended action.
  162. */
  163. Message?: Message;
  164. }
  165. export interface ListEndpointsRequest {
  166. /**
  167. * If a previous response from this operation included a NextToken value, provide that value here to retrieve the next page of results.
  168. */
  169. NextToken?: NextToken;
  170. /**
  171. * The maximum number of endpoints that will be returned in the response.
  172. */
  173. MaxResults?: MaxResults;
  174. }
  175. export interface ListEndpointsResult {
  176. /**
  177. * The list of endpoints associated with the specified Outpost.
  178. */
  179. Endpoints?: Endpoints;
  180. /**
  181. * If the number of endpoints associated with the specified Outpost exceeds MaxResults, you can include this value in subsequent calls to this operation to retrieve more results.
  182. */
  183. NextToken?: NextToken;
  184. }
  185. export interface ListOutpostsWithS3Request {
  186. /**
  187. * When you can get additional results from the ListOutpostsWithS3 call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional Outposts.
  188. */
  189. NextToken?: NextToken;
  190. /**
  191. * The maximum number of Outposts to return. The limit is 100.
  192. */
  193. MaxResults?: MaxResults;
  194. }
  195. export interface ListOutpostsWithS3Result {
  196. /**
  197. * Returns the list of Outposts that have the following characteristics: outposts that have S3 provisioned outposts that are Active (not pending any provisioning nor decommissioned) outposts to which the the calling Amazon Web Services account has access
  198. */
  199. Outposts?: Outposts;
  200. /**
  201. * Returns a token that you can use to call ListOutpostsWithS3 again and receive additional results, if there are any.
  202. */
  203. NextToken?: NextToken;
  204. }
  205. export interface ListSharedEndpointsRequest {
  206. /**
  207. * If a previous response from this operation included a NextToken value, you can provide that value here to retrieve the next page of results.
  208. */
  209. NextToken?: NextToken;
  210. /**
  211. * The maximum number of endpoints that will be returned in the response.
  212. */
  213. MaxResults?: MaxResults;
  214. /**
  215. * The ID of the Amazon Web Services Outpost.
  216. */
  217. OutpostId: OutpostId;
  218. }
  219. export interface ListSharedEndpointsResult {
  220. /**
  221. * The list of endpoints associated with the specified Outpost that have been shared by Amazon Web Services Resource Access Manager (RAM).
  222. */
  223. Endpoints?: Endpoints;
  224. /**
  225. * If the number of endpoints associated with the specified Outpost exceeds MaxResults, you can include this value in subsequent calls to this operation to retrieve more results.
  226. */
  227. NextToken?: NextToken;
  228. }
  229. export type MaxResults = number;
  230. export type Message = string;
  231. export interface NetworkInterface {
  232. /**
  233. * The ID for the network interface.
  234. */
  235. NetworkInterfaceId?: NetworkInterfaceId;
  236. }
  237. export type NetworkInterfaceId = string;
  238. export type NetworkInterfaces = NetworkInterface[];
  239. export type NextToken = string;
  240. export interface Outpost {
  241. /**
  242. * Specifies the unique Amazon Resource Name (ARN) for the outpost.
  243. */
  244. OutpostArn?: OutpostArn;
  245. /**
  246. * Specifies the unique S3 on Outposts ARN for use with Resource Access Manager (RAM).
  247. */
  248. S3OutpostArn?: S3OutpostArn;
  249. /**
  250. * Specifies the unique identifier for the outpost.
  251. */
  252. OutpostId?: OutpostId;
  253. /**
  254. * Returns the Amazon Web Services account ID of the outpost owner. Useful for comparing owned versus shared outposts.
  255. */
  256. OwnerId?: AwsAccountId;
  257. /**
  258. * The Amazon S3 capacity of the outpost in bytes.
  259. */
  260. CapacityInBytes?: CapacityInBytes;
  261. }
  262. export type OutpostArn = string;
  263. export type OutpostId = string;
  264. export type Outposts = Outpost[];
  265. export type S3OutpostArn = string;
  266. export type SecurityGroupId = string;
  267. export type SubnetId = string;
  268. export type VpcId = string;
  269. /**
  270. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  271. */
  272. export type apiVersion = "2017-07-25"|"latest"|string;
  273. export interface ClientApiVersions {
  274. /**
  275. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  276. */
  277. apiVersion?: apiVersion;
  278. }
  279. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  280. /**
  281. * Contains interfaces for use with the S3Outposts client.
  282. */
  283. export import Types = S3Outposts;
  284. }
  285. export = S3Outposts;