ServiceLinkedRole

class ServiceLinkedRole : KotlinCustomResource

Using this resource can create SecurityCenter service-linked role : AliyunServiceRolePolicyForSas. This Role is a Resource Access Management (RAM) role, which to obtain permissions to access another Alibaba Cloud service. For information about Security Center Service Role and how to use it, see What is Security Center.

NOTE: Available in v1.142.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.securitycenter.ServiceLinkedRole;
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");
}
}

Import

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

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

Properties

Link copied to clipboard
val id: Output<String>
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>