1. Packages
  2. AWS Native
  3. API Docs
  4. iam
  5. ServiceLinkedRole

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.iam.ServiceLinkedRole

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    const serviceLinkedRoleResource = new aws_native.iam.ServiceLinkedRole("serviceLinkedRoleResource", {
        awsServiceName: "string",
        customSuffix: "string",
        description: "string",
    });
    
    Coming soon!
    

    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:

    AwsServiceName string
    The service principal for the AWS service to which this role is attached.
    CustomSuffix 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.
    AwsServiceName string
    The service principal for the AWS service to which this role is attached.
    CustomSuffix 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.
    awsServiceName String
    The service principal for the AWS service to which this role is attached.
    customSuffix 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.
    awsServiceName string
    The service principal for the AWS service to which this role is attached.
    customSuffix 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_name str
    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.
    awsServiceName String
    The service principal for the AWS service to which this role is attached.
    customSuffix 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    RoleName string
    The name of the role.
    Id string
    The provider-assigned unique ID for this managed resource.
    RoleName string
    The name of the role.
    id String
    The provider-assigned unique ID for this managed resource.
    roleName String
    The name of the role.
    id string
    The provider-assigned unique ID for this managed resource.
    roleName string
    The name of the role.
    id str
    The provider-assigned unique ID for this managed resource.
    role_name str
    The name of the role.
    id String
    The provider-assigned unique ID for this managed resource.
    roleName String
    The name of the role.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi