GetEncryptionByDefault

Provides a way to check whether default EBS encryption is enabled for your AWS account in the current AWS region.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Aws.Ebs.GetEncryptionByDefault.InvokeAsync());
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ebs"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := ebs.LookupEncryptionByDefault(ctx, nil, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

current = aws.ebs.get_encryption_by_default()
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const current = pulumi.output(aws.ebs.getEncryptionByDefault({ async: true }));

Using GetEncryptionByDefault

function getEncryptionByDefault(opts?: InvokeOptions): Promise<GetEncryptionByDefaultResult>
function  get_encryption_by_default(opts=None)
func LookupEncryptionByDefault(ctx *Context, opts ...InvokeOption) (*LookupEncryptionByDefaultResult, error)

Note: This function is named LookupEncryptionByDefault in the Go SDK.

public static class GetEncryptionByDefault {
    public static Task<GetEncryptionByDefaultResult> InvokeAsync(InvokeOptions? opts = null)
}

GetEncryptionByDefault Result

The following output properties are available:

Enabled bool

Whether or not default EBS encryption is enabled. Returns as true or false.

Id string

The provider-assigned unique ID for this managed resource.

Enabled bool

Whether or not default EBS encryption is enabled. Returns as true or false.

Id string

The provider-assigned unique ID for this managed resource.

enabled boolean

Whether or not default EBS encryption is enabled. Returns as true or false.

id string

The provider-assigned unique ID for this managed resource.

enabled bool

Whether or not default EBS encryption is enabled. Returns as true or false.

id str

The provider-assigned unique ID for this managed resource.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.