Documentation
¶
Overview ¶
Package mwaa provides the API client, operations, and parameter types for AmazonMWAA.
Amazon Managed Workflows for Apache Airflow ¶
This section contains the Amazon Managed Workflows for Apache Airflow (MWAA) API reference documentation. For more information, see What is Amazon MWAA?.
Endpoints
- api.airflow.{region}.amazonaws.com - This endpoint is used for environment management.
- env.airflow.{region}.amazonaws.com - This endpoint is used to operate the Airflow environment.
Regions ¶
For a list of supported regions, see Amazon MWAA endpoints and quotas in the Amazon Web Services General Reference.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type Client
- func (c *Client) CreateCliToken(ctx context.Context, params *CreateCliTokenInput, optFns ...func(*Options)) (*CreateCliTokenOutput, error)
- func (c *Client) CreateEnvironment(ctx context.Context, params *CreateEnvironmentInput, optFns ...func(*Options)) (*CreateEnvironmentOutput, error)
- func (c *Client) CreateWebLoginToken(ctx context.Context, params *CreateWebLoginTokenInput, ...) (*CreateWebLoginTokenOutput, error)
- func (c *Client) DeleteEnvironment(ctx context.Context, params *DeleteEnvironmentInput, optFns ...func(*Options)) (*DeleteEnvironmentOutput, error)
- func (c *Client) GetEnvironment(ctx context.Context, params *GetEnvironmentInput, optFns ...func(*Options)) (*GetEnvironmentOutput, error)
- func (c *Client) InvokeRestApi(ctx context.Context, params *InvokeRestApiInput, optFns ...func(*Options)) (*InvokeRestApiOutput, error)
- func (c *Client) ListEnvironments(ctx context.Context, params *ListEnvironmentsInput, optFns ...func(*Options)) (*ListEnvironmentsOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) PublishMetrics(ctx context.Context, params *PublishMetricsInput, optFns ...func(*Options)) (*PublishMetricsOutput, error)deprecated
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateEnvironment(ctx context.Context, params *UpdateEnvironmentInput, optFns ...func(*Options)) (*UpdateEnvironmentOutput, error)
- type CreateCliTokenInput
- type CreateCliTokenOutput
- type CreateEnvironmentInput
- type CreateEnvironmentOutput
- type CreateWebLoginTokenInput
- type CreateWebLoginTokenOutput
- type DeleteEnvironmentInput
- type DeleteEnvironmentOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetEnvironmentInput
- type GetEnvironmentOutput
- type HTTPClient
- type HTTPSignerV4
- type InvokeRestApiInput
- type InvokeRestApiOutput
- type ListEnvironmentsAPIClient
- type ListEnvironmentsInput
- type ListEnvironmentsOutput
- type ListEnvironmentsPaginator
- type ListEnvironmentsPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type PublishMetricsInput
- type PublishMetricsOutput
- type ResolveEndpoint
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateEnvironmentInput
- type UpdateEnvironmentOutput
Constants ¶
const ServiceAPIVersion = "2020-07-01"
const ServiceID = "MWAA"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶ added in v1.17.0
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶ added in v1.21.0
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶ added in v1.21.0
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶ added in v1.21.0
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶ added in v1.21.0
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for AmazonMWAA.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateCliToken ¶
func (c *Client) CreateCliToken(ctx context.Context, params *CreateCliTokenInput, optFns ...func(*Options)) (*CreateCliTokenOutput, error)
Creates a CLI token for the Airflow CLI. To learn more, see Creating an Apache Airflow CLI token.
func (*Client) CreateEnvironment ¶
func (c *Client) CreateEnvironment(ctx context.Context, params *CreateEnvironmentInput, optFns ...func(*Options)) (*CreateEnvironmentOutput, error)
Creates an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.
func (*Client) CreateWebLoginToken ¶
func (c *Client) CreateWebLoginToken(ctx context.Context, params *CreateWebLoginTokenInput, optFns ...func(*Options)) (*CreateWebLoginTokenOutput, error)
Creates a web login token for the Airflow Web UI. To learn more, see Creating an Apache Airflow web login token.
func (*Client) DeleteEnvironment ¶
func (c *Client) DeleteEnvironment(ctx context.Context, params *DeleteEnvironmentInput, optFns ...func(*Options)) (*DeleteEnvironmentOutput, error)
Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.
func (*Client) GetEnvironment ¶
func (c *Client) GetEnvironment(ctx context.Context, params *GetEnvironmentInput, optFns ...func(*Options)) (*GetEnvironmentOutput, error)
Describes an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
func (*Client) InvokeRestApi ¶ added in v1.32.0
func (c *Client) InvokeRestApi(ctx context.Context, params *InvokeRestApiInput, optFns ...func(*Options)) (*InvokeRestApiOutput, error)
Invokes the Apache Airflow REST API on the webserver with the specified inputs. To learn more, see Using the Apache Airflow REST API
func (*Client) ListEnvironments ¶
func (c *Client) ListEnvironments(ctx context.Context, params *ListEnvironmentsInput, optFns ...func(*Options)) (*ListEnvironmentsOutput, error)
Lists the Amazon Managed Workflows for Apache Airflow (MWAA) environments.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Lists the key-value tag pairs associated to the Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, "Environment": "Staging" .
func (*Client) Options ¶ added in v1.22.0
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) PublishMetrics
deprecated
func (c *Client) PublishMetrics(ctx context.Context, params *PublishMetricsInput, optFns ...func(*Options)) (*PublishMetricsOutput, error)
Internal only. Publishes environment health metrics to Amazon CloudWatch.
Deprecated: This API is for internal use and not meant for public use, and is no longer available.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, "Environment": "Staging" .
func (*Client) UpdateEnvironment ¶
func (c *Client) UpdateEnvironment(ctx context.Context, params *UpdateEnvironmentInput, optFns ...func(*Options)) (*UpdateEnvironmentOutput, error)
Updates an Amazon Managed Workflows for Apache Airflow (MWAA) environment.
type CreateCliTokenInput ¶
type CreateCliTokenInput struct { // The name of the Amazon MWAA environment. For example, MyMWAAEnvironment . // // This member is required. Name *string // contains filtered or unexported fields }
type CreateCliTokenOutput ¶
type CreateCliTokenOutput struct { // An Airflow CLI login token. CliToken *string // The Airflow web server hostname for the environment. WebServerHostname *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateEnvironmentInput ¶
type CreateEnvironmentInput struct { // The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags // . For more information, see [Adding or updating DAGs]. // // [Adding or updating DAGs]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html // // This member is required. DagS3Path *string // The Amazon Resource Name (ARN) of the execution role for your environment. An // execution role is an Amazon Web Services Identity and Access Management (IAM) // role that grants MWAA permission to access Amazon Web Services services and // resources used by your environment. For example, // arn:aws:iam::123456789:role/my-execution-role . For more information, see [Amazon MWAA Execution role]. // // [Amazon MWAA Execution role]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html // // This member is required. ExecutionRoleArn *string // The name of the Amazon MWAA environment. For example, MyMWAAEnvironment . // // This member is required. Name *string // The VPC networking components used to secure and enable network traffic between // the Amazon Web Services resources for your environment. For more information, // see [About networking on Amazon MWAA]. // // [About networking on Amazon MWAA]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html // // This member is required. NetworkConfiguration *types.NetworkConfiguration // The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and // supporting files are stored. For example, // arn:aws:s3:::my-airflow-bucket-unique-name . For more information, see [Create an Amazon S3 bucket for Amazon MWAA]. // // [Create an Amazon S3 bucket for Amazon MWAA]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html // // This member is required. SourceBucketArn *string // A list of key-value pairs containing the Apache Airflow configuration options // you want to attach to your environment. For more information, see [Apache Airflow configuration options]. // // [Apache Airflow configuration options]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html AirflowConfigurationOptions map[string]string // The Apache Airflow version for your environment. If no value is specified, it // defaults to the latest version. For more information, see [Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (Amazon MWAA)]. // // Valid values: 1.10.12 , 2.0.2 , 2.2.2 , 2.4.3 , 2.5.1 , 2.6.3 , 2.7.2 , 2.8.1 , // 2.9.2 , 2.10.1 , and 2.10.3 . // // [Apache Airflow versions on Amazon Managed Workflows for Apache Airflow (Amazon MWAA)]: https://docs.aws.amazon.com/mwaa/latest/userguide/airflow-versions.html AirflowVersion *string // Defines whether the VPC endpoints configured for the environment are created, // and managed, by the customer or by Amazon MWAA. If set to SERVICE , Amazon MWAA // will create and manage the required VPC endpoints in your VPC. If set to // CUSTOMER , you must create, and manage, the VPC endpoints for your VPC. If you // choose to create an environment in a shared VPC, you must set this value to // CUSTOMER . In a shared VPC deployment, the environment will remain in PENDING // status until you create the VPC endpoints. If you do not take action to create // the endpoints within 72 hours, the status will change to CREATE_FAILED . You can // delete the failed environment and create a new one. EndpointManagement types.EndpointManagement // The environment class type. Valid values: mw1.micro , mw1.small , mw1.medium , // mw1.large , mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. // // [Amazon MWAA environment class]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html EnvironmentClass *string // The Amazon Web Services Key Management Service (KMS) key to encrypt the data in // your environment. You can use an Amazon Web Services owned CMK, or a Customer // managed CMK (advanced). For more information, see [Create an Amazon MWAA environment]. // // [Create an Amazon MWAA environment]: https://docs.aws.amazon.com/mwaa/latest/userguide/create-environment.html KmsKey *string // Defines the Apache Airflow logs to send to CloudWatch Logs. LoggingConfiguration *types.LoggingConfigurationInput // The maximum number of web servers that you want to run in your environment. // Amazon MWAA scales the number of Apache Airflow web servers up to the number you // specify for MaxWebservers when you interact with your Apache Airflow // environment using Apache Airflow REST API, or the Apache Airflow CLI. For // example, in scenarios where your workload requires network calls to the Apache // Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will // increase the number of web servers up to the number set in MaxWebserers . As TPS // rates decrease Amazon MWAA disposes of the additional web servers, and scales // down to the number set in MinxWebserers . // // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MaxWebservers *int32 // The maximum number of workers that you want to run in your environment. MWAA // scales the number of Apache Airflow workers up to the number you specify in the // MaxWorkers field. For example, 20 . When there are no more tasks running, and no // more in the queue, MWAA disposes of the extra workers leaving the one worker // that is included with your environment, or the number you specify in MinWorkers . MaxWorkers *int32 // The minimum number of web servers that you want to run in your environment. // Amazon MWAA scales the number of Apache Airflow web servers up to the number you // specify for MaxWebservers when you interact with your Apache Airflow // environment using Apache Airflow REST API, or the Apache Airflow CLI. As the // transaction-per-second rate, and the network load, decrease, Amazon MWAA // disposes of the additional web servers, and scales down to the number set in // MinxWebserers . // // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MinWebservers *int32 // The minimum number of workers that you want to run in your environment. MWAA // scales the number of Apache Airflow workers up to the number you specify in the // MaxWorkers field. When there are no more tasks running, and no more in the // queue, MWAA disposes of the extra workers leaving the worker count you specify // in the MinWorkers field. For example, 2 . MinWorkers *int32 // The version of the plugins.zip file on your Amazon S3 bucket. You must specify // a version each time a plugins.zip file is updated. For more information, see [How S3 Versioning works]. // // [How S3 Versioning works]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html PluginsS3ObjectVersion *string // The relative path to the plugins.zip file on your Amazon S3 bucket. For // example, plugins.zip . If specified, then the plugins.zip version is required. // For more information, see [Installing custom plugins]. // // [Installing custom plugins]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html PluginsS3Path *string // The version of the requirements.txt file on your Amazon S3 bucket. You must // specify a version each time a requirements.txt file is updated. For more // information, see [How S3 Versioning works]. // // [How S3 Versioning works]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html RequirementsS3ObjectVersion *string // The relative path to the requirements.txt file on your Amazon S3 bucket. For // example, requirements.txt . If specified, then a version is required. For more // information, see [Installing Python dependencies]. // // [Installing Python dependencies]: https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html RequirementsS3Path *string // The number of Apache Airflow schedulers to run in your environment. Valid // values: // // - v2 - For environments larger than mw1.micro, accepts values from 2 to 5 . // Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . // // - v1 - Accepts 1 . Schedulers *int32 // The version of the startup shell script in your Amazon S3 bucket. You must // specify the [version ID]that Amazon S3 assigns to the file every time you update the // script. // // Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no // more than 1,024 bytes long. The following is an example: // // 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo // // For more information, see [Using a startup script]. // // [Using a startup script]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html // [version ID]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html StartupScriptS3ObjectVersion *string // The relative path to the startup shell script in your Amazon S3 bucket. For // example, s3://mwaa-environment/startup.sh . // // Amazon MWAA runs the script as your environment starts, and before running the // Apache Airflow process. You can use this script to install dependencies, modify // Apache Airflow configuration options, and set environment variables. For more // information, see [Using a startup script]. // // [Using a startup script]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html StartupScriptS3Path *string // The key-value tag pairs you want to associate to your environment. For example, // "Environment": "Staging" . For more information, see [Tagging Amazon Web Services resources]. // // [Tagging Amazon Web Services resources]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tags map[string]string // Defines the access mode for the Apache Airflow web server. For more // information, see [Apache Airflow access modes]. // // [Apache Airflow access modes]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html WebserverAccessMode types.WebserverAccessMode // The day and time of the week in Coordinated Universal Time (UTC) 24-hour // standard time to start weekly maintenance updates of your environment in the // following format: DAY:HH:MM . For example: TUE:03:30 . You can specify a start // time in 30 minute increments only. WeeklyMaintenanceWindowStart *string // contains filtered or unexported fields }
This section contains the Amazon Managed Workflows for Apache Airflow (Amazon MWAA) API reference documentation to create an environment. For more information, see Get started with Amazon Managed Workflows for Apache Airflow.
type CreateEnvironmentOutput ¶
type CreateEnvironmentOutput struct { // The Amazon Resource Name (ARN) returned in the response for the environment. Arn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateWebLoginTokenInput ¶
type CreateWebLoginTokenInput struct { // The name of the Amazon MWAA environment. For example, MyMWAAEnvironment . // // This member is required. Name *string // contains filtered or unexported fields }
type CreateWebLoginTokenOutput ¶
type CreateWebLoginTokenOutput struct { // The user name of the Apache Airflow identity creating the web login token. AirflowIdentity *string // The name of the IAM identity creating the web login token. This might be an IAM // user, or an assumed or federated identity. For example, // assumed-role/Admin/your-name . IamIdentity *string // The Airflow web server hostname for the environment. WebServerHostname *string // An Airflow web server login token. WebToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteEnvironmentInput ¶
type DeleteEnvironmentInput struct { // The name of the Amazon MWAA environment. For example, MyMWAAEnvironment . // // This member is required. Name *string // contains filtered or unexported fields }
type DeleteEnvironmentOutput ¶
type DeleteEnvironmentOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.17.0
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶ added in v1.17.0
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶ added in v1.17.0
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.17.0
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.17.0
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetEnvironmentInput ¶
type GetEnvironmentInput struct { // The name of the Amazon MWAA environment. For example, MyMWAAEnvironment . // // This member is required. Name *string // contains filtered or unexported fields }
type GetEnvironmentOutput ¶
type GetEnvironmentOutput struct { // An object containing all available details about the environment. Environment *types.Environment // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type InvokeRestApiInput ¶ added in v1.32.0
type InvokeRestApiInput struct { // The HTTP method used for making Airflow REST API calls. For example, POST . // // This member is required. Method types.RestApiMethod // The name of the Amazon MWAA environment. For example, MyMWAAEnvironment . // // This member is required. Name *string // The Apache Airflow REST API endpoint path to be called. For example, // /dags/123456/clearTaskInstances . For more information, see [Apache Airflow API] // // [Apache Airflow API]: https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html // // This member is required. Path *string // The request body for the Apache Airflow REST API call, provided as a JSON // object. Body document.Interface // Query parameters to be included in the Apache Airflow REST API call, provided // as a JSON object. QueryParameters document.Interface // contains filtered or unexported fields }
type InvokeRestApiOutput ¶ added in v1.32.0
type InvokeRestApiOutput struct { // The response data from the Apache Airflow REST API call, provided as a JSON // object. RestApiResponse document.Interface // The HTTP status code returned by the Apache Airflow REST API call. RestApiStatusCode *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListEnvironmentsAPIClient ¶
type ListEnvironmentsAPIClient interface {
ListEnvironments(context.Context, *ListEnvironmentsInput, ...func(*Options)) (*ListEnvironmentsOutput, error)
}
ListEnvironmentsAPIClient is a client that implements the ListEnvironments operation.
type ListEnvironmentsInput ¶
type ListEnvironmentsOutput ¶
type ListEnvironmentsOutput struct { // Returns a list of Amazon MWAA environments. // // This member is required. Environments []string // Retrieves the next page of the results. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListEnvironmentsPaginator ¶
type ListEnvironmentsPaginator struct {
// contains filtered or unexported fields
}
ListEnvironmentsPaginator is a paginator for ListEnvironments
func NewListEnvironmentsPaginator ¶
func NewListEnvironmentsPaginator(client ListEnvironmentsAPIClient, params *ListEnvironmentsInput, optFns ...func(*ListEnvironmentsPaginatorOptions)) *ListEnvironmentsPaginator
NewListEnvironmentsPaginator returns a new ListEnvironmentsPaginator
func (*ListEnvironmentsPaginator) HasMorePages ¶
func (p *ListEnvironmentsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListEnvironmentsPaginator) NextPage ¶
func (p *ListEnvironmentsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListEnvironmentsOutput, error)
NextPage retrieves the next ListEnvironments page.
type ListEnvironmentsPaginatorOptions ¶
type ListEnvironmentsPaginatorOptions struct { // The maximum number of results to retrieve per page. For example, 5 environments // per page. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListEnvironmentsPaginatorOptions is the paginator options for ListEnvironments
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, // arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment . // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // The key-value tag pairs associated to your environment. For more information, // see [Tagging Amazon Web Services resources]. // // [Tagging Amazon Web Services resources]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The client meter provider. MeterProvider metrics.MeterProvider // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The client tracer provider. TracerProvider tracing.TracerProvider // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) GetIdentityResolver ¶ added in v1.21.0
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type PublishMetricsInput ¶
type PublishMetricsInput struct { // Internal only. The name of the environment. // // This member is required. EnvironmentName *string // Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the // metrics published to Amazon CloudWatch, see [Amazon MWAA performance metrics in Amazon CloudWatch]. // // [Amazon MWAA performance metrics in Amazon CloudWatch]: https://docs.aws.amazon.com/mwaa/latest/userguide/cw-metrics.html // // This member is required. // // Deprecated: This type is for internal use and not meant for public use. Data // set for this type will be ignored. MetricData []types.MetricDatum // contains filtered or unexported fields }
type PublishMetricsOutput ¶
type PublishMetricsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, // arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment . // // This member is required. ResourceArn *string // The key-value tag pairs you want to associate to your environment. For example, // "Environment": "Staging" . For more information, see [Tagging Amazon Web Services resources]. // // [Tagging Amazon Web Services resources]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html // // This member is required. Tags map[string]string // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, // arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment . // // This member is required. ResourceArn *string // The key-value tag pair you want to remove. For example, "Environment": "Staging" // . // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateEnvironmentInput ¶
type UpdateEnvironmentInput struct { // The name of your Amazon MWAA environment. For example, MyMWAAEnvironment . // // This member is required. Name *string // A list of key-value pairs containing the Apache Airflow configuration options // you want to attach to your environment. For more information, see [Apache Airflow configuration options]. // // [Apache Airflow configuration options]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-env-variables.html AirflowConfigurationOptions map[string]string // The Apache Airflow version for your environment. To upgrade your environment, // specify a newer version of Apache Airflow supported by Amazon MWAA. // // Before you upgrade an environment, make sure your requirements, DAGs, plugins, // and other resources used in your workflows are compatible with the new Apache // Airflow version. For more information about updating your resources, see [Upgrading an Amazon MWAA environment]. // // Valid values: 1.10.12 , 2.0.2 , 2.2.2 , 2.4.3 , 2.5.1 , 2.6.3 , 2.7.2 , 2.8.1 , // 2.9.2 , 2.10.1 , and 2.10.3 . // // [Upgrading an Amazon MWAA environment]: https://docs.aws.amazon.com/mwaa/latest/userguide/upgrading-environment.html AirflowVersion *string // The relative path to the DAGs folder on your Amazon S3 bucket. For example, dags // . For more information, see [Adding or updating DAGs]. // // [Adding or updating DAGs]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-folder.html DagS3Path *string // The environment class type. Valid values: mw1.micro , mw1.small , mw1.medium , // mw1.large , mw1.xlarge , and mw1.2xlarge . For more information, see [Amazon MWAA environment class]. // // [Amazon MWAA environment class]: https://docs.aws.amazon.com/mwaa/latest/userguide/environment-class.html EnvironmentClass *string // The Amazon Resource Name (ARN) of the execution role in IAM that allows MWAA to // access Amazon Web Services resources in your environment. For example, // arn:aws:iam::123456789:role/my-execution-role . For more information, see [Amazon MWAA Execution role]. // // [Amazon MWAA Execution role]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html ExecutionRoleArn *string // The Apache Airflow log types to send to CloudWatch Logs. LoggingConfiguration *types.LoggingConfigurationInput // The maximum number of web servers that you want to run in your environment. // Amazon MWAA scales the number of Apache Airflow web servers up to the number you // specify for MaxWebservers when you interact with your Apache Airflow // environment using Apache Airflow REST API, or the Apache Airflow CLI. For // example, in scenarios where your workload requires network calls to the Apache // Airflow REST API with a high transaction-per-second (TPS) rate, Amazon MWAA will // increase the number of web servers up to the number set in MaxWebserers . As TPS // rates decrease Amazon MWAA disposes of the additional web servers, and scales // down to the number set in MinxWebserers . // // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MaxWebservers *int32 // The maximum number of workers that you want to run in your environment. MWAA // scales the number of Apache Airflow workers up to the number you specify in the // MaxWorkers field. For example, 20 . When there are no more tasks running, and no // more in the queue, MWAA disposes of the extra workers leaving the one worker // that is included with your environment, or the number you specify in MinWorkers . MaxWorkers *int32 // The minimum number of web servers that you want to run in your environment. // Amazon MWAA scales the number of Apache Airflow web servers up to the number you // specify for MaxWebservers when you interact with your Apache Airflow // environment using Apache Airflow REST API, or the Apache Airflow CLI. As the // transaction-per-second rate, and the network load, decrease, Amazon MWAA // disposes of the additional web servers, and scales down to the number set in // MinxWebserers . // // Valid values: For environments larger than mw1.micro, accepts values from 2 to 5 // . Defaults to 2 for all environment sizes except mw1.micro, which defaults to 1 . MinWebservers *int32 // The minimum number of workers that you want to run in your environment. MWAA // scales the number of Apache Airflow workers up to the number you specify in the // MaxWorkers field. When there are no more tasks running, and no more in the // queue, MWAA disposes of the extra workers leaving the worker count you specify // in the MinWorkers field. For example, 2 . MinWorkers *int32 // The VPC networking components used to secure and enable network traffic between // the Amazon Web Services resources for your environment. For more information, // see [About networking on Amazon MWAA]. // // [About networking on Amazon MWAA]: https://docs.aws.amazon.com/mwaa/latest/userguide/networking-about.html NetworkConfiguration *types.UpdateNetworkConfigurationInput // The version of the plugins.zip file on your Amazon S3 bucket. You must specify // a version each time a plugins.zip file is updated. For more information, see [How S3 Versioning works]. // // [How S3 Versioning works]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html PluginsS3ObjectVersion *string // The relative path to the plugins.zip file on your Amazon S3 bucket. For // example, plugins.zip . If specified, then the plugins.zip version is required. // For more information, see [Installing custom plugins]. // // [Installing custom plugins]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-dag-import-plugins.html PluginsS3Path *string // The version of the requirements.txt file on your Amazon S3 bucket. You must // specify a version each time a requirements.txt file is updated. For more // information, see [How S3 Versioning works]. // // [How S3 Versioning works]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html RequirementsS3ObjectVersion *string // The relative path to the requirements.txt file on your Amazon S3 bucket. For // example, requirements.txt . If specified, then a file version is required. For // more information, see [Installing Python dependencies]. // // [Installing Python dependencies]: https://docs.aws.amazon.com/mwaa/latest/userguide/working-dags-dependencies.html RequirementsS3Path *string // The number of Apache Airflow schedulers to run in your Amazon MWAA environment. Schedulers *int32 // The Amazon Resource Name (ARN) of the Amazon S3 bucket where your DAG code and // supporting files are stored. For example, // arn:aws:s3:::my-airflow-bucket-unique-name . For more information, see [Create an Amazon S3 bucket for Amazon MWAA]. // // [Create an Amazon S3 bucket for Amazon MWAA]: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-s3-bucket.html SourceBucketArn *string // The version of the startup shell script in your Amazon S3 bucket. You must // specify the [version ID]that Amazon S3 assigns to the file every time you update the // script. // // Version IDs are Unicode, UTF-8 encoded, URL-ready, opaque strings that are no // more than 1,024 bytes long. The following is an example: // // 3sL4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo // // For more information, see [Using a startup script]. // // [Using a startup script]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html // [version ID]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/versioning-workflows.html StartupScriptS3ObjectVersion *string // The relative path to the startup shell script in your Amazon S3 bucket. For // example, s3://mwaa-environment/startup.sh . // // Amazon MWAA runs the script as your environment starts, and before running the // Apache Airflow process. You can use this script to install dependencies, modify // Apache Airflow configuration options, and set environment variables. For more // information, see [Using a startup script]. // // [Using a startup script]: https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html StartupScriptS3Path *string // The Apache Airflow Web server access mode. For more information, see [Apache Airflow access modes]. // // [Apache Airflow access modes]: https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html WebserverAccessMode types.WebserverAccessMode // The day and time of the week in Coordinated Universal Time (UTC) 24-hour // standard time to start weekly maintenance updates of your environment in the // following format: DAY:HH:MM . For example: TUE:03:30 . You can specify a start // time in 30 minute increments only. WeeklyMaintenanceWindowStart *string // contains filtered or unexported fields }
type UpdateEnvironmentOutput ¶
type UpdateEnvironmentOutput struct { // The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, // arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment . Arn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files
¶
- api_client.go
- api_op_CreateCliToken.go
- api_op_CreateEnvironment.go
- api_op_CreateWebLoginToken.go
- api_op_DeleteEnvironment.go
- api_op_GetEnvironment.go
- api_op_InvokeRestApi.go
- api_op_ListEnvironments.go
- api_op_ListTagsForResource.go
- api_op_PublishMetrics.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateEnvironment.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go