Service Linked Role
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
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
The creation date of the IAM role.
Link copied to clipboard
Additional string appended to the role name. Not all AWS services support custom suffixes.
Link copied to clipboard
The description of the role.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard