ServiceLinkedRole
Provides an IAM service-linked role.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var elasticbeanstalk = new Aws.Iam.ServiceLinkedRole("elasticbeanstalk", new Aws.Iam.ServiceLinkedRoleArgs
{
AwsServiceName = "elasticbeanstalk.amazonaws.com",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.NewServiceLinkedRole(ctx, "elasticbeanstalk", &iam.ServiceLinkedRoleArgs{
AwsServiceName: pulumi.String("elasticbeanstalk.amazonaws.com"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
elasticbeanstalk = aws.iam.ServiceLinkedRole("elasticbeanstalk", aws_service_name="elasticbeanstalk.amazonaws.com")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const elasticbeanstalk = new aws.iam.ServiceLinkedRole("elasticbeanstalk", {
awsServiceName: "elasticbeanstalk.amazonaws.com",
});Create a ServiceLinkedRole Resource
new ServiceLinkedRole(name: string, args: ServiceLinkedRoleArgs, opts?: CustomResourceOptions);def ServiceLinkedRole(resource_name, opts=None, aws_service_name=None, custom_suffix=None, description=None, __props__=None);func NewServiceLinkedRole(ctx *Context, name string, args ServiceLinkedRoleArgs, opts ...ResourceOption) (*ServiceLinkedRole, error)public ServiceLinkedRole(string name, ServiceLinkedRoleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServiceLinkedRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceLinkedRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceLinkedRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ServiceLinkedRole Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServiceLinkedRole resource accepts the following input properties:
- Aws
Service stringName 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.- Custom
Suffix string Additional string appended to the role name. Not all AWS services support custom suffixes.
- Description string
The description of the role.
- Aws
Service stringName 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.- Custom
Suffix string Additional string appended to the role name. Not all AWS services support custom suffixes.
- Description string
The description of the role.
- aws
Service stringName 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.- custom
Suffix string Additional string appended to the role name. Not all AWS services support custom suffixes.
- description string
The description of the role.
- aws_
service_ strname 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.- custom_
suffix str Additional string appended to the role name. Not all AWS services support custom suffixes.
- description str
The description of the role.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceLinkedRole resource produces the following output properties:
- Arn string
The Amazon Resource Name (ARN) specifying the role.
- Create
Date string The creation date of the IAM role.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
The name of the role.
- Path string
The path of the role.
- Unique
Id string The stable and unique string identifying the role.
- Arn string
The Amazon Resource Name (ARN) specifying the role.
- Create
Date string The creation date of the IAM role.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
The name of the role.
- Path string
The path of the role.
- Unique
Id string The stable and unique string identifying the role.
- arn string
The Amazon Resource Name (ARN) specifying the role.
- create
Date string The creation date of the IAM role.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
The name of the role.
- path string
The path of the role.
- unique
Id string The stable and unique string identifying the role.
Look up an Existing ServiceLinkedRole Resource
Get an existing ServiceLinkedRole resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceLinkedRoleState, opts?: CustomResourceOptions): ServiceLinkedRolestatic get(resource_name, id, opts=None, arn=None, aws_service_name=None, create_date=None, custom_suffix=None, description=None, name=None, path=None, unique_id=None, __props__=None);func GetServiceLinkedRole(ctx *Context, name string, id IDInput, state *ServiceLinkedRoleState, opts ...ResourceOption) (*ServiceLinkedRole, error)public static ServiceLinkedRole Get(string name, Input<string> id, ServiceLinkedRoleState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
The Amazon Resource Name (ARN) specifying the role.
- Aws
Service stringName 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.- Create
Date string The creation date of the IAM role.
- Custom
Suffix string Additional string appended to the role name. Not all AWS services support custom suffixes.
- Description string
The description of the role.
- Name string
The name of the role.
- Path string
The path of the role.
- Unique
Id string The stable and unique string identifying the role.
- Arn string
The Amazon Resource Name (ARN) specifying the role.
- Aws
Service stringName 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.- Create
Date string The creation date of the IAM role.
- Custom
Suffix string Additional string appended to the role name. Not all AWS services support custom suffixes.
- Description string
The description of the role.
- Name string
The name of the role.
- Path string
The path of the role.
- Unique
Id string The stable and unique string identifying the role.
- arn string
The Amazon Resource Name (ARN) specifying the role.
- aws
Service stringName 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.- create
Date string The creation date of the IAM role.
- custom
Suffix string Additional string appended to the role name. Not all AWS services support custom suffixes.
- description string
The description of the role.
- name string
The name of the role.
- path string
The path of the role.
- unique
Id string The stable and unique string identifying the role.
- arn str
The Amazon Resource Name (ARN) specifying the role.
- aws_
service_ strname 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.- create_
date str The creation date of the IAM role.
- custom_
suffix str Additional string appended to the role name. Not all AWS services support custom suffixes.
- description str
The description of the role.
- name str
The name of the role.
- path str
The path of the role.
- unique_
id str The stable and unique string identifying the role.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.