airflow.providers.amazon.aws.operators.ec2
¶
Module Contents¶
Classes¶
Start AWS EC2 instance using boto3. |
|
Stop AWS EC2 instance using boto3. |
- class airflow.providers.amazon.aws.operators.ec2.EC2StartInstanceOperator(*, instance_id, aws_conn_id='aws_default', region_name=None, check_interval=15, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Start AWS EC2 instance using boto3.
See also
For more information on how to use this operator, take a look at the guide: Start an Amazon EC2 instance
- Parameters
instance_id (str) – id of the AWS EC2 instance
aws_conn_id (str) – aws connection to use
region_name (str | None) – (optional) aws region name associated with the client
check_interval (float) – time in seconds that the job should wait in between each instance state checks until operation is completed
- class airflow.providers.amazon.aws.operators.ec2.EC2StopInstanceOperator(*, instance_id, aws_conn_id='aws_default', region_name=None, check_interval=15, **kwargs)[source]¶
Bases:
airflow.models.BaseOperator
Stop AWS EC2 instance using boto3.
See also
For more information on how to use this operator, take a look at the guide: Stop an Amazon EC2 instance
- Parameters
instance_id (str) – id of the AWS EC2 instance
aws_conn_id (str) – aws connection to use
region_name (str | None) – (optional) aws region name associated with the client
check_interval (float) – time in seconds that the job should wait in between each instance state checks until operation is completed