Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
aws.memorydb.getSnapshot
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi
Provides information about a MemoryDB Snapshot.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.memorydb.getSnapshot({
name: "my-snapshot",
});
import pulumi
import pulumi_aws as aws
example = aws.memorydb.get_snapshot(name="my-snapshot")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/memorydb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := memorydb.LookupSnapshot(ctx, &memorydb.LookupSnapshotArgs{
Name: "my-snapshot",
}, 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 example = Aws.MemoryDb.GetSnapshot.Invoke(new()
{
Name = "my-snapshot",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.MemorydbFunctions;
import com.pulumi.aws.memorydb.inputs.GetSnapshotArgs;
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 example = MemorydbFunctions.getSnapshot(GetSnapshotArgs.builder()
.name("my-snapshot")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:memorydb:getSnapshot
Arguments:
name: my-snapshot
Using getSnapshot
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 getSnapshot(args: GetSnapshotArgs, opts?: InvokeOptions): Promise<GetSnapshotResult>
function getSnapshotOutput(args: GetSnapshotOutputArgs, opts?: InvokeOptions): Output<GetSnapshotResult>
def get_snapshot(name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetSnapshotResult
def get_snapshot_output(name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotResult]
func LookupSnapshot(ctx *Context, args *LookupSnapshotArgs, opts ...InvokeOption) (*LookupSnapshotResult, error)
func LookupSnapshotOutput(ctx *Context, args *LookupSnapshotOutputArgs, opts ...InvokeOption) LookupSnapshotResultOutput
> Note: This function is named LookupSnapshot
in the Go SDK.
public static class GetSnapshot
{
public static Task<GetSnapshotResult> InvokeAsync(GetSnapshotArgs args, InvokeOptions? opts = null)
public static Output<GetSnapshotResult> Invoke(GetSnapshotInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSnapshotResult> getSnapshot(GetSnapshotArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:memorydb/getSnapshot:getSnapshot
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Name of the snapshot.
- Dictionary<string, string>
- Map of tags assigned to the snapshot.
- Name string
- Name of the snapshot.
- map[string]string
- Map of tags assigned to the snapshot.
- name String
- Name of the snapshot.
- Map<String,String>
- Map of tags assigned to the snapshot.
- name string
- Name of the snapshot.
- {[key: string]: string}
- Map of tags assigned to the snapshot.
- name str
- Name of the snapshot.
- Mapping[str, str]
- Map of tags assigned to the snapshot.
- name String
- Name of the snapshot.
- Map<String>
- Map of tags assigned to the snapshot.
getSnapshot Result
The following output properties are available:
- Arn string
- ARN of the snapshot.
- Cluster
Configurations List<GetSnapshot Cluster Configuration> - The configuration of the cluster from which the snapshot was taken.
- Cluster
Name string - Name of the MemoryDB cluster that this snapshot was taken from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the snapshot at rest.
- Name string
- Name of the cluster.
- Source string
- Whether the snapshot is from an automatic backup (
automated
) or was created manually (manual
). - Dictionary<string, string>
- Map of tags assigned to the snapshot.
- Arn string
- ARN of the snapshot.
- Cluster
Configurations []GetSnapshot Cluster Configuration - The configuration of the cluster from which the snapshot was taken.
- Cluster
Name string - Name of the MemoryDB cluster that this snapshot was taken from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringArn - ARN of the KMS key used to encrypt the snapshot at rest.
- Name string
- Name of the cluster.
- Source string
- Whether the snapshot is from an automatic backup (
automated
) or was created manually (manual
). - map[string]string
- Map of tags assigned to the snapshot.
- arn String
- ARN of the snapshot.
- cluster
Configurations List<GetSnapshot Cluster Configuration> - The configuration of the cluster from which the snapshot was taken.
- cluster
Name String - Name of the MemoryDB cluster that this snapshot was taken from.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringArn - ARN of the KMS key used to encrypt the snapshot at rest.
- name String
- Name of the cluster.
- source String
- Whether the snapshot is from an automatic backup (
automated
) or was created manually (manual
). - Map<String,String>
- Map of tags assigned to the snapshot.
- arn string
- ARN of the snapshot.
- cluster
Configurations GetSnapshot Cluster Configuration[] - The configuration of the cluster from which the snapshot was taken.
- cluster
Name string - Name of the MemoryDB cluster that this snapshot was taken from.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringArn - ARN of the KMS key used to encrypt the snapshot at rest.
- name string
- Name of the cluster.
- source string
- Whether the snapshot is from an automatic backup (
automated
) or was created manually (manual
). - {[key: string]: string}
- Map of tags assigned to the snapshot.
- arn str
- ARN of the snapshot.
- cluster_
configurations Sequence[GetSnapshot Cluster Configuration] - The configuration of the cluster from which the snapshot was taken.
- cluster_
name str - Name of the MemoryDB cluster that this snapshot was taken from.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strarn - ARN of the KMS key used to encrypt the snapshot at rest.
- name str
- Name of the cluster.
- source str
- Whether the snapshot is from an automatic backup (
automated
) or was created manually (manual
). - Mapping[str, str]
- Map of tags assigned to the snapshot.
- arn String
- ARN of the snapshot.
- cluster
Configurations List<Property Map> - The configuration of the cluster from which the snapshot was taken.
- cluster
Name String - Name of the MemoryDB cluster that this snapshot was taken from.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringArn - ARN of the KMS key used to encrypt the snapshot at rest.
- name String
- Name of the cluster.
- source String
- Whether the snapshot is from an automatic backup (
automated
) or was created manually (manual
). - Map<String>
- Map of tags assigned to the snapshot.
Supporting Types
GetSnapshotClusterConfiguration
- Description string
- Description for the cluster.
- Engine
Version string - Version number of the Redis engine used by the cluster.
- Maintenance
Window string - The weekly time range during which maintenance on the cluster is performed.
- Name string
- Name of the snapshot.
- Node
Type string - Compute and memory capacity of the nodes in the cluster.
- Num
Shards int - Number of shards in the cluster.
- Parameter
Group stringName - Name of the parameter group associated with the cluster.
- Port int
- Port number on which the cluster accepts connections.
- Snapshot
Retention intLimit - Number of days for which MemoryDB retains automatic snapshots before deleting them.
- Snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard.
- Subnet
Group stringName - Name of the subnet group used by the cluster.
- Topic
Arn string - ARN of the SNS topic to which cluster notifications are sent.
- Vpc
Id string - The VPC in which the cluster exists.
- Description string
- Description for the cluster.
- Engine
Version string - Version number of the Redis engine used by the cluster.
- Maintenance
Window string - The weekly time range during which maintenance on the cluster is performed.
- Name string
- Name of the snapshot.
- Node
Type string - Compute and memory capacity of the nodes in the cluster.
- Num
Shards int - Number of shards in the cluster.
- Parameter
Group stringName - Name of the parameter group associated with the cluster.
- Port int
- Port number on which the cluster accepts connections.
- Snapshot
Retention intLimit - Number of days for which MemoryDB retains automatic snapshots before deleting them.
- Snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard.
- Subnet
Group stringName - Name of the subnet group used by the cluster.
- Topic
Arn string - ARN of the SNS topic to which cluster notifications are sent.
- Vpc
Id string - The VPC in which the cluster exists.
- description String
- Description for the cluster.
- engine
Version String - Version number of the Redis engine used by the cluster.
- maintenance
Window String - The weekly time range during which maintenance on the cluster is performed.
- name String
- Name of the snapshot.
- node
Type String - Compute and memory capacity of the nodes in the cluster.
- num
Shards Integer - Number of shards in the cluster.
- parameter
Group StringName - Name of the parameter group associated with the cluster.
- port Integer
- Port number on which the cluster accepts connections.
- snapshot
Retention IntegerLimit - Number of days for which MemoryDB retains automatic snapshots before deleting them.
- snapshot
Window String - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard.
- subnet
Group StringName - Name of the subnet group used by the cluster.
- topic
Arn String - ARN of the SNS topic to which cluster notifications are sent.
- vpc
Id String - The VPC in which the cluster exists.
- description string
- Description for the cluster.
- engine
Version string - Version number of the Redis engine used by the cluster.
- maintenance
Window string - The weekly time range during which maintenance on the cluster is performed.
- name string
- Name of the snapshot.
- node
Type string - Compute and memory capacity of the nodes in the cluster.
- num
Shards number - Number of shards in the cluster.
- parameter
Group stringName - Name of the parameter group associated with the cluster.
- port number
- Port number on which the cluster accepts connections.
- snapshot
Retention numberLimit - Number of days for which MemoryDB retains automatic snapshots before deleting them.
- snapshot
Window string - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard.
- subnet
Group stringName - Name of the subnet group used by the cluster.
- topic
Arn string - ARN of the SNS topic to which cluster notifications are sent.
- vpc
Id string - The VPC in which the cluster exists.
- description str
- Description for the cluster.
- engine_
version str - Version number of the Redis engine used by the cluster.
- maintenance_
window str - The weekly time range during which maintenance on the cluster is performed.
- name str
- Name of the snapshot.
- node_
type str - Compute and memory capacity of the nodes in the cluster.
- num_
shards int - Number of shards in the cluster.
- parameter_
group_ strname - Name of the parameter group associated with the cluster.
- port int
- Port number on which the cluster accepts connections.
- snapshot_
retention_ intlimit - Number of days for which MemoryDB retains automatic snapshots before deleting them.
- snapshot_
window str - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard.
- subnet_
group_ strname - Name of the subnet group used by the cluster.
- topic_
arn str - ARN of the SNS topic to which cluster notifications are sent.
- vpc_
id str - The VPC in which the cluster exists.
- description String
- Description for the cluster.
- engine
Version String - Version number of the Redis engine used by the cluster.
- maintenance
Window String - The weekly time range during which maintenance on the cluster is performed.
- name String
- Name of the snapshot.
- node
Type String - Compute and memory capacity of the nodes in the cluster.
- num
Shards Number - Number of shards in the cluster.
- parameter
Group StringName - Name of the parameter group associated with the cluster.
- port Number
- Port number on which the cluster accepts connections.
- snapshot
Retention NumberLimit - Number of days for which MemoryDB retains automatic snapshots before deleting them.
- snapshot
Window String - The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of the shard.
- subnet
Group StringName - Name of the subnet group used by the cluster.
- topic
Arn String - ARN of the SNS topic to which cluster notifications are sent.
- vpc
Id String - The VPC in which the cluster exists.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.
AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi