AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

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/v5/go/aws/ebs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ebs.LookupEncryptionByDefault(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var current = Output.of(EbsFunctions.getEncryptionByDefault());

    }
}
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());
variables:
  current:
    Fn::Invoke:
      Function: aws:ebs:getEncryptionByDefault
      Arguments: {}

Using getEncryptionByDefault

function getEncryptionByDefault(opts?: InvokeOptions): Promise<GetEncryptionByDefaultResult>
def get_encryption_by_default(opts: Optional[InvokeOptions] = None) -> GetEncryptionByDefaultResult
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)
}
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:

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 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.

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.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.