ServiceLinkedRole

class ServiceLinkedRole : KotlinCustomResource

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>

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val productName: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<Boolean>

The status of the service Associated role. Valid Values: true: Created. false: not created.

Link copied to clipboard
val urn: Output<String>