pulumi_wasm_providers_azure_mini::storage

Module mover_target_endpoint

source
Expand description

Manages a Storage Mover Target Endpoint.

§Example Usage

use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
    let example = resource_group::create(
        "example",
        ResourceGroupArgs::builder()
            .location("West Europe")
            .name("example-resources")
            .build_struct(),
    );
    let exampleAccount = account::create(
        "exampleAccount",
        AccountArgs::builder()
            .account_replication_type("LRS")
            .account_tier("Standard")
            .allow_nested_items_to_be_public(true)
            .location("${example.location}")
            .name("examplestr")
            .resource_group_name("${example.name}")
            .build_struct(),
    );
    let exampleContainer = container::create(
        "exampleContainer",
        ContainerArgs::builder()
            .container_access_type("blob")
            .name("example-sc")
            .storage_account_name("${exampleAccount.name}")
            .build_struct(),
    );
    let exampleMover = mover::create(
        "exampleMover",
        MoverArgs::builder()
            .location("West Europe")
            .name("example-ssm")
            .resource_group_name("${example.name}")
            .build_struct(),
    );
    let exampleMoverTargetEndpoint = mover_target_endpoint::create(
        "exampleMoverTargetEndpoint",
        MoverTargetEndpointArgs::builder()
            .description("Example Storage Container Endpoint Description")
            .name("example-se")
            .storage_account_id("${exampleAccount.id}")
            .storage_container_name("${exampleContainer.name}")
            .storage_mover_id("${exampleMover.id}")
            .build_struct(),
    );
}

§Import

Storage Mover Target Endpoint can be imported using the resource id, e.g.

$ pulumi import azure:storage/moverTargetEndpoint:MoverTargetEndpoint example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.StorageMover/storageMovers/storageMover1/endpoints/endpoint1

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments