create_pipeline
async
¶
create_pipeline(
pipeline_name: PipelineName,
min_units: PipelineUnits,
max_units: PipelineUnits,
pipeline_configuration_body: PipelineConfigurationBody,
*,
config_overrides: Optional[AsyncOSISClientConfig] = None,
log_publishing_options: Optional[LogPublishingOptions] = None,
vpc_options: Optional[VpcOptions] = None,
buffer_options: Optional[BufferOptions] = None,
encryption_at_rest_options: Optional[EncryptionAtRestOptions] = None,
tags: Optional[TagList] = None,
pipeline_role_arn: Optional[PipelineRoleArn] = None,
) -> CreatePipelineResponse
Creates an OpenSearch Ingestion pipeline. For more information, see Creating Amazon OpenSearch Ingestion pipelines.
Parameters:
-
pipeline_name(PipelineName) –The name of the OpenSearch Ingestion pipeline to create. Pipeline names are unique across the pipelines owned by an account within an Amazon Web Services Region.
-
min_units(PipelineUnits) –The minimum pipeline capacity, in Ingestion Compute Units (ICUs).
-
max_units(PipelineUnits) –The maximum pipeline capacity, in Ingestion Compute Units (ICUs).
-
pipeline_configuration_body(PipelineConfigurationBody) –The pipeline configuration in YAML format. The command accepts the pipeline configuration as a string or within a .yaml file. If you provide the configuration as a string, each new line must be escaped with
\n. -
log_publishing_options(Optional[LogPublishingOptions], default:None) –Key-value pairs to configure log publishing.
-
vpc_options(Optional[VpcOptions], default:None) –Container for the values required to configure VPC access for the pipeline. If you don't specify these values, OpenSearch Ingestion creates the pipeline with a public endpoint.
-
buffer_options(Optional[BufferOptions], default:None) –Key-value pairs to configure persistent buffering for the pipeline.
-
encryption_at_rest_options(Optional[EncryptionAtRestOptions], default:None) –Key-value pairs to configure encryption for data that is written to a persistent buffer.
-
tags(Optional[TagList], default:None) –List of tags to add to the pipeline upon creation.
-
pipeline_role_arn(Optional[PipelineRoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role that grants the pipeline permission to access Amazon Web Services resources.
Raises:
-
AccessDeniedException–You don't have permissions to access the resource.
-
DisabledOperationException–Exception is thrown when an operation has been disabled.
-
InternalException–The request failed because of an unknown error, exception, or failure (the failure is internal to the service).
-
LimitExceededException–You attempted to create more than the allowed number of tags.
-
ResourceAlreadyExistsException–You attempted to create a resource that already exists.
-
ResourceNotFoundException–You attempted to access or delete a resource that does not exist.
-
ValidationException–An exception for missing or invalid input fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_osis/_services/async_osis.py
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | |