AWS Native is in preview. AWS Classic is fully supported.
aws-native.iam.ServiceLinkedRole
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
Resource Type definition for AWS::IAM::ServiceLinkedRole
Example Usage
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var basicSLR = new AwsNative.Iam.ServiceLinkedRole("basicSLR", new()
{
AwsServiceName = "autoscaling.amazonaws.com",
Description = "Test SLR description",
CustomSuffix = "TestSuffix",
});
return new Dictionary<string, object?>
{
["slrId"] = basicSLR.Id,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
basicSLR, err := iam.NewServiceLinkedRole(ctx, "basicSLR", &iam.ServiceLinkedRoleArgs{
AwsServiceName: pulumi.String("autoscaling.amazonaws.com"),
Description: pulumi.String("Test SLR description"),
CustomSuffix: pulumi.String("TestSuffix"),
})
if err != nil {
return err
}
ctx.Export("slrId", basicSLR.ID())
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
basic_slr = aws_native.iam.ServiceLinkedRole("basicSLR",
aws_service_name="autoscaling.amazonaws.com",
description="Test SLR description",
custom_suffix="TestSuffix")
pulumi.export("slrId", basic_slr.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const basicSLR = new aws_native.iam.ServiceLinkedRole("basicSLR", {
awsServiceName: "autoscaling.amazonaws.com",
description: "Test SLR description",
customSuffix: "TestSuffix",
});
export const slrId = basicSLR.id;
Coming soon!
Example
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;
return await Deployment.RunAsync(() =>
{
var basicSLR = new AwsNative.Iam.ServiceLinkedRole("basicSLR", new()
{
AwsServiceName = "autoscaling.amazonaws.com",
Description = "Test SLR description",
CustomSuffix = "TestSuffix",
});
return new Dictionary<string, object?>
{
["slrId"] = basicSLR.Id,
};
});
package main
import (
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iam"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
basicSLR, err := iam.NewServiceLinkedRole(ctx, "basicSLR", &iam.ServiceLinkedRoleArgs{
AwsServiceName: pulumi.String("autoscaling.amazonaws.com"),
Description: pulumi.String("Test SLR description"),
CustomSuffix: pulumi.String("TestSuffix"),
})
if err != nil {
return err
}
ctx.Export("slrId", basicSLR.ID())
return nil
})
}
Coming soon!
import pulumi
import pulumi_aws_native as aws_native
basic_slr = aws_native.iam.ServiceLinkedRole("basicSLR",
aws_service_name="autoscaling.amazonaws.com",
description="Test SLR description",
custom_suffix="TestSuffix")
pulumi.export("slrId", basic_slr.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";
const basicSLR = new aws_native.iam.ServiceLinkedRole("basicSLR", {
awsServiceName: "autoscaling.amazonaws.com",
description: "Test SLR description",
customSuffix: "TestSuffix",
});
export const slrId = basicSLR.id;
Coming soon!
Create ServiceLinkedRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceLinkedRole(name: string, args?: ServiceLinkedRoleArgs, opts?: CustomResourceOptions);
@overload
def ServiceLinkedRole(resource_name: str,
args: Optional[ServiceLinkedRoleArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceLinkedRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
aws_service_name: Optional[str] = None,
custom_suffix: Optional[str] = None,
description: Optional[str] = None)
func NewServiceLinkedRole(ctx *Context, name string, args *ServiceLinkedRoleArgs, opts ...ResourceOption) (*ServiceLinkedRole, error)
public ServiceLinkedRole(string name, ServiceLinkedRoleArgs? args = null, CustomResourceOptions? opts = null)
public ServiceLinkedRole(String name, ServiceLinkedRoleArgs args)
public ServiceLinkedRole(String name, ServiceLinkedRoleArgs args, CustomResourceOptions options)
type: aws-native:iam:ServiceLinkedRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args ServiceLinkedRoleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args ServiceLinkedRoleArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The ServiceLinkedRole resource accepts the following input properties:
- Aws
Service stringName - The service principal for the AWS service to which this role is attached.
- Custom
Suffix string - A string that you provide, which is combined with the service-provided prefix to form the complete role name.
- Description string
- The description of the role.
- Aws
Service stringName - The service principal for the AWS service to which this role is attached.
- Custom
Suffix string - A string that you provide, which is combined with the service-provided prefix to form the complete role name.
- Description string
- The description of the role.
- aws
Service StringName - The service principal for the AWS service to which this role is attached.
- custom
Suffix String - A string that you provide, which is combined with the service-provided prefix to form the complete role name.
- description String
- The description of the role.
- aws
Service stringName - The service principal for the AWS service to which this role is attached.
- custom
Suffix string - A string that you provide, which is combined with the service-provided prefix to form the complete role name.
- description string
- The description of the role.
- aws_
service_ strname - The service principal for the AWS service to which this role is attached.
- custom_
suffix str - A string that you provide, which is combined with the service-provided prefix to form the complete role name.
- description str
- The description of the role.
- aws
Service StringName - The service principal for the AWS service to which this role is attached.
- custom
Suffix String - A string that you provide, which is combined with the service-provided prefix to form the complete role name.
- description String
- The description of the role.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceLinkedRole resource produces the following output properties:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.