AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.ebs.getEncryptionByDefault
Explore with Pulumi AI
Provides a way to check whether default EBS encryption is enabled for your AWS account in the current AWS region.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const current = aws.ebs.getEncryptionByDefault({});
import pulumi
import pulumi_aws as aws
current = aws.ebs.get_encryption_by_default()
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ebs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ebs.LookupEncryptionByDefault(ctx, map[string]interface{}{}, 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 current = Aws.Ebs.GetEncryptionByDefault.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ebs.EbsFunctions;
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 current = EbsFunctions.getEncryptionByDefault();
}
}
variables:
current:
fn::invoke:
Function: aws:ebs:getEncryptionByDefault
Arguments: {}
Using getEncryptionByDefault
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 getEncryptionByDefault(opts?: InvokeOptions): Promise<GetEncryptionByDefaultResult>
function getEncryptionByDefaultOutput(opts?: InvokeOptions): Output<GetEncryptionByDefaultResult>
def get_encryption_by_default(opts: Optional[InvokeOptions] = None) -> GetEncryptionByDefaultResult
def get_encryption_by_default_output(opts: Optional[InvokeOptions] = None) -> Output[GetEncryptionByDefaultResult]
func LookupEncryptionByDefault(ctx *Context, opts ...InvokeOption) (*LookupEncryptionByDefaultResult, error)
func LookupEncryptionByDefaultOutput(ctx *Context, opts ...InvokeOption) LookupEncryptionByDefaultResultOutput
> Note: This function is named LookupEncryptionByDefault
in the Go SDK.
public static class GetEncryptionByDefault
{
public static Task<GetEncryptionByDefaultResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetEncryptionByDefaultResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetEncryptionByDefaultResult> getEncryptionByDefault(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:ebs/getEncryptionByDefault:getEncryptionByDefault
arguments:
# arguments dictionary
getEncryptionByDefault Result
The following output properties are available:
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.