ServiceLinkedRole

class ServiceLinkedRole : KotlinCustomResource

Provides an IAM service-linked role.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.ServiceLinkedRole;
import com.pulumi.aws.iam.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 elasticbeanstalk = new ServiceLinkedRole("elasticbeanstalk", ServiceLinkedRoleArgs.builder()
.awsServiceName("elasticbeanstalk.amazonaws.com")
.build());
}
}

Import

IAM service-linked roles can be imported using role ARN, e.g.,

$ pulumi import aws:iam/serviceLinkedRole:ServiceLinkedRole elasticbeanstalk arn:aws:iam::123456789012:role/aws-service-role/elasticbeanstalk.amazonaws.com/AWSServiceRoleForElasticBeanstalk

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) specifying the role.

Link copied to clipboard
val awsServiceName: Output<String>

The AWS service to which this role is attached. You use a string similar to a URL but without the http:// in front. For example: elasticbeanstalk.amazonaws.com. To find the full list of services that support service-linked roles, check the docs.

Link copied to clipboard
val createDate: Output<String>

The creation date of the IAM role.

Link copied to clipboard
val customSuffix: Output<String>?

Additional string appended to the role name. Not all AWS services support custom suffixes.

Link copied to clipboard
val description: Output<String>?

The description of the role.

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

The name of the role.

Link copied to clipboard
val path: Output<String>

The path of the role.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value mapping of tags for the IAM role. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val uniqueId: Output<String>

The stable and unique string identifying the role.

Link copied to clipboard
val urn: Output<String>