ServiceLinkedRoleArgs

data class ServiceLinkedRoleArgs(val productName: Output<String>? = null) : ConvertibleToJava<ServiceLinkedRoleArgs>

Using this data source can create Dbfs service-linked roles(SLR). Dbfs may need to access another Alibaba Cloud service to implement a specific feature. In this case, Dbfs must assume a specific service-linked role, which is a Resource Access Management (RAM) role, to obtain permissions to access another Alibaba Cloud service. For information about Dbfs service-linked roles(SLR) and how to use it, see What is service-linked roles.

NOTE: Available since v1.157.0.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.databasefilesystem.ServiceLinkedRole;
import com.pulumi.alicloud.databasefilesystem.ServiceLinkedRoleArgs;
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) {
var serviceLinkedRole = new ServiceLinkedRole("serviceLinkedRole", ServiceLinkedRoleArgs.builder()
.productName("AliyunServiceRoleForDbfs")
.build());
}
}

Import

Dbfs service-linked roles(SLR) can be imported using the id, e.g.

$ pulumi import alicloud:databasefilesystem/serviceLinkedRole:ServiceLinkedRole example <product_name>

Constructors

Link copied to clipboard
fun ServiceLinkedRoleArgs(productName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ServiceLinkedRoleArgs

Properties

Link copied to clipboard
val productName: Output<String>? = null

The product name for SLR. Dbfs can automatically create the following service-linked roles: AliyunServiceRoleForDbfs.