AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.docdb.getEngineVersion
Explore with Pulumi AI
Information about a DocumentDB engine version.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.docdb.getEngineVersion({
version: "3.6.0",
});
import pulumi
import pulumi_aws as aws
test = aws.docdb.get_engine_version(version="3.6.0")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/docdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := docdb.GetEngineVersion(ctx, &docdb.GetEngineVersionArgs{
Version: pulumi.StringRef("3.6.0"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.DocDB.GetEngineVersion.Invoke(new()
{
Version = "3.6.0",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.docdb.DocdbFunctions;
import com.pulumi.aws.docdb.inputs.GetEngineVersionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = DocdbFunctions.getEngineVersion(GetEngineVersionArgs.builder()
.version("3.6.0")
.build());
}
}
variables:
test:
fn::invoke:
Function: aws:docdb:getEngineVersion
Arguments:
version: 3.6.0
Using getEngineVersion
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEngineVersion(args: GetEngineVersionArgs, opts?: InvokeOptions): Promise<GetEngineVersionResult>
function getEngineVersionOutput(args: GetEngineVersionOutputArgs, opts?: InvokeOptions): Output<GetEngineVersionResult>
def get_engine_version(engine: Optional[str] = None,
parameter_group_family: Optional[str] = None,
preferred_versions: Optional[Sequence[str]] = None,
version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEngineVersionResult
def get_engine_version_output(engine: Optional[pulumi.Input[str]] = None,
parameter_group_family: Optional[pulumi.Input[str]] = None,
preferred_versions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEngineVersionResult]
func GetEngineVersion(ctx *Context, args *GetEngineVersionArgs, opts ...InvokeOption) (*GetEngineVersionResult, error)
func GetEngineVersionOutput(ctx *Context, args *GetEngineVersionOutputArgs, opts ...InvokeOption) GetEngineVersionResultOutput
> Note: This function is named GetEngineVersion
in the Go SDK.
public static class GetEngineVersion
{
public static Task<GetEngineVersionResult> InvokeAsync(GetEngineVersionArgs args, InvokeOptions? opts = null)
public static Output<GetEngineVersionResult> Invoke(GetEngineVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEngineVersionResult> getEngineVersion(GetEngineVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:docdb/getEngineVersion:getEngineVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Engine string
- DB engine. (Default:
docdb
) - Parameter
Group stringFamily - Name of a specific DB parameter group family. An example parameter group family is
docdb3.6
. - Preferred
Versions List<string> - Ordered list of preferred engine versions. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. If both the
version
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine. - Version string
- Version of the DB engine. For example,
3.6.0
. Ifversion
andpreferred_versions
are not set, the data source will provide information for the AWS-defined default version. If both theversion
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine.
- Engine string
- DB engine. (Default:
docdb
) - Parameter
Group stringFamily - Name of a specific DB parameter group family. An example parameter group family is
docdb3.6
. - Preferred
Versions []string - Ordered list of preferred engine versions. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. If both the
version
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine. - Version string
- Version of the DB engine. For example,
3.6.0
. Ifversion
andpreferred_versions
are not set, the data source will provide information for the AWS-defined default version. If both theversion
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine.
- engine String
- DB engine. (Default:
docdb
) - parameter
Group StringFamily - Name of a specific DB parameter group family. An example parameter group family is
docdb3.6
. - preferred
Versions List<String> - Ordered list of preferred engine versions. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. If both the
version
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine. - version String
- Version of the DB engine. For example,
3.6.0
. Ifversion
andpreferred_versions
are not set, the data source will provide information for the AWS-defined default version. If both theversion
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine.
- engine string
- DB engine. (Default:
docdb
) - parameter
Group stringFamily - Name of a specific DB parameter group family. An example parameter group family is
docdb3.6
. - preferred
Versions string[] - Ordered list of preferred engine versions. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. If both the
version
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine. - version string
- Version of the DB engine. For example,
3.6.0
. Ifversion
andpreferred_versions
are not set, the data source will provide information for the AWS-defined default version. If both theversion
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine.
- engine str
- DB engine. (Default:
docdb
) - parameter_
group_ strfamily - Name of a specific DB parameter group family. An example parameter group family is
docdb3.6
. - preferred_
versions Sequence[str] - Ordered list of preferred engine versions. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. If both the
version
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine. - version str
- Version of the DB engine. For example,
3.6.0
. Ifversion
andpreferred_versions
are not set, the data source will provide information for the AWS-defined default version. If both theversion
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine.
- engine String
- DB engine. (Default:
docdb
) - parameter
Group StringFamily - Name of a specific DB parameter group family. An example parameter group family is
docdb3.6
. - preferred
Versions List<String> - Ordered list of preferred engine versions. The first match in this list will be returned. If no preferred matches are found and the original search returned more than one result, an error is returned. If both the
version
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine. - version String
- Version of the DB engine. For example,
3.6.0
. Ifversion
andpreferred_versions
are not set, the data source will provide information for the AWS-defined default version. If both theversion
andpreferred_versions
arguments are not configured, the data source will return the default version for the engine.
getEngineVersion Result
The following output properties are available:
- Engine
Description string - Description of the database engine.
- Exportable
Log List<string>Types - Set of log types that the database engine has available for export to CloudWatch Logs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Parameter
Group stringFamily - Supports
Log boolExports To Cloudwatch - Indicates whether the engine version supports exporting the log types specified by
exportable_log_types
to CloudWatch Logs. - Valid
Upgrade List<string>Targets - A set of engine versions that this database engine version can be upgraded to.
- Version string
- Version
Description string - Description of the database engine version.
- Engine string
- Preferred
Versions List<string>
- Engine
Description string - Description of the database engine.
- Exportable
Log []stringTypes - Set of log types that the database engine has available for export to CloudWatch Logs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Parameter
Group stringFamily - Supports
Log boolExports To Cloudwatch - Indicates whether the engine version supports exporting the log types specified by
exportable_log_types
to CloudWatch Logs. - Valid
Upgrade []stringTargets - A set of engine versions that this database engine version can be upgraded to.
- Version string
- Version
Description string - Description of the database engine version.
- Engine string
- Preferred
Versions []string
- engine
Description String - Description of the database engine.
- exportable
Log List<String>Types - Set of log types that the database engine has available for export to CloudWatch Logs.
- id String
- The provider-assigned unique ID for this managed resource.
- parameter
Group StringFamily - supports
Log BooleanExports To Cloudwatch - Indicates whether the engine version supports exporting the log types specified by
exportable_log_types
to CloudWatch Logs. - valid
Upgrade List<String>Targets - A set of engine versions that this database engine version can be upgraded to.
- version String
- version
Description String - Description of the database engine version.
- engine String
- preferred
Versions List<String>
- engine
Description string - Description of the database engine.
- exportable
Log string[]Types - Set of log types that the database engine has available for export to CloudWatch Logs.
- id string
- The provider-assigned unique ID for this managed resource.
- parameter
Group stringFamily - supports
Log booleanExports To Cloudwatch - Indicates whether the engine version supports exporting the log types specified by
exportable_log_types
to CloudWatch Logs. - valid
Upgrade string[]Targets - A set of engine versions that this database engine version can be upgraded to.
- version string
- version
Description string - Description of the database engine version.
- engine string
- preferred
Versions string[]
- engine_
description str - Description of the database engine.
- exportable_
log_ Sequence[str]types - Set of log types that the database engine has available for export to CloudWatch Logs.
- id str
- The provider-assigned unique ID for this managed resource.
- parameter_
group_ strfamily - supports_
log_ boolexports_ to_ cloudwatch - Indicates whether the engine version supports exporting the log types specified by
exportable_log_types
to CloudWatch Logs. - valid_
upgrade_ Sequence[str]targets - A set of engine versions that this database engine version can be upgraded to.
- version str
- version_
description str - Description of the database engine version.
- engine str
- preferred_
versions Sequence[str]
- engine
Description String - Description of the database engine.
- exportable
Log List<String>Types - Set of log types that the database engine has available for export to CloudWatch Logs.
- id String
- The provider-assigned unique ID for this managed resource.
- parameter
Group StringFamily - supports
Log BooleanExports To Cloudwatch - Indicates whether the engine version supports exporting the log types specified by
exportable_log_types
to CloudWatch Logs. - valid
Upgrade List<String>Targets - A set of engine versions that this database engine version can be upgraded to.
- version String
- version
Description String - Description of the database engine version.
- engine String
- preferred
Versions List<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.