1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. rds
  5. RdsServiceLinkedRole
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.rds.RdsServiceLinkedRole

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a RDS Service Linked Role.

    For information about RDS Service Linked Role and how to use it, see What is Service Linked Role..

    NOTE: Available since v1.189.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.rds.RdsServiceLinkedRole("default", {serviceName: "AliyunServiceRoleForRdsPgsqlOnEcs"});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.rds.RdsServiceLinkedRole("default", service_name="AliyunServiceRoleForRdsPgsqlOnEcs")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rds"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds.NewRdsServiceLinkedRole(ctx, "default", &rds.RdsServiceLinkedRoleArgs{
    			ServiceName: pulumi.String("AliyunServiceRoleForRdsPgsqlOnEcs"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Rds.RdsServiceLinkedRole("default", new()
        {
            ServiceName = "AliyunServiceRoleForRdsPgsqlOnEcs",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.rds.RdsServiceLinkedRole;
    import com.pulumi.alicloud.rds.RdsServiceLinkedRoleArgs;
    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 default_ = new RdsServiceLinkedRole("default", RdsServiceLinkedRoleArgs.builder()
                .serviceName("AliyunServiceRoleForRdsPgsqlOnEcs")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:rds:RdsServiceLinkedRole
        properties:
          serviceName: AliyunServiceRoleForRdsPgsqlOnEcs
    

    Create RdsServiceLinkedRole Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RdsServiceLinkedRole(name: string, args: RdsServiceLinkedRoleArgs, opts?: CustomResourceOptions);
    @overload
    def RdsServiceLinkedRole(resource_name: str,
                             args: RdsServiceLinkedRoleArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def RdsServiceLinkedRole(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             service_name: Optional[str] = None)
    func NewRdsServiceLinkedRole(ctx *Context, name string, args RdsServiceLinkedRoleArgs, opts ...ResourceOption) (*RdsServiceLinkedRole, error)
    public RdsServiceLinkedRole(string name, RdsServiceLinkedRoleArgs args, CustomResourceOptions? opts = null)
    public RdsServiceLinkedRole(String name, RdsServiceLinkedRoleArgs args)
    public RdsServiceLinkedRole(String name, RdsServiceLinkedRoleArgs args, CustomResourceOptions options)
    
    type: alicloud:rds:RdsServiceLinkedRole
    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 RdsServiceLinkedRoleArgs
    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 RdsServiceLinkedRoleArgs
    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 RdsServiceLinkedRoleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RdsServiceLinkedRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RdsServiceLinkedRoleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var rdsServiceLinkedRoleResource = new AliCloud.Rds.RdsServiceLinkedRole("rdsServiceLinkedRoleResource", new()
    {
        ServiceName = "string",
    });
    
    example, err := rds.NewRdsServiceLinkedRole(ctx, "rdsServiceLinkedRoleResource", &rds.RdsServiceLinkedRoleArgs{
    	ServiceName: pulumi.String("string"),
    })
    
    var rdsServiceLinkedRoleResource = new RdsServiceLinkedRole("rdsServiceLinkedRoleResource", RdsServiceLinkedRoleArgs.builder()
        .serviceName("string")
        .build());
    
    rds_service_linked_role_resource = alicloud.rds.RdsServiceLinkedRole("rdsServiceLinkedRoleResource", service_name="string")
    
    const rdsServiceLinkedRoleResource = new alicloud.rds.RdsServiceLinkedRole("rdsServiceLinkedRoleResource", {serviceName: "string"});
    
    type: alicloud:rds:RdsServiceLinkedRole
    properties:
        serviceName: string
    

    RdsServiceLinkedRole Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RdsServiceLinkedRole resource accepts the following input properties:

    ServiceName string
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    ServiceName string
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    serviceName String
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    serviceName string
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    service_name str
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    serviceName String
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RdsServiceLinkedRole resource produces the following output properties:

    Arn string
    The Alibaba Cloud Resource Name (ARN) of the role.
    Id string
    The provider-assigned unique ID for this managed resource.
    RoleId string
    The ID of the role.
    RoleName string
    The name of the role.
    Arn string
    The Alibaba Cloud Resource Name (ARN) of the role.
    Id string
    The provider-assigned unique ID for this managed resource.
    RoleId string
    The ID of the role.
    RoleName string
    The name of the role.
    arn String
    The Alibaba Cloud Resource Name (ARN) of the role.
    id String
    The provider-assigned unique ID for this managed resource.
    roleId String
    The ID of the role.
    roleName String
    The name of the role.
    arn string
    The Alibaba Cloud Resource Name (ARN) of the role.
    id string
    The provider-assigned unique ID for this managed resource.
    roleId string
    The ID of the role.
    roleName string
    The name of the role.
    arn str
    The Alibaba Cloud Resource Name (ARN) of the role.
    id str
    The provider-assigned unique ID for this managed resource.
    role_id str
    The ID of the role.
    role_name str
    The name of the role.
    arn String
    The Alibaba Cloud Resource Name (ARN) of the role.
    id String
    The provider-assigned unique ID for this managed resource.
    roleId String
    The ID of the role.
    roleName String
    The name of the role.

    Look up Existing RdsServiceLinkedRole Resource

    Get an existing RdsServiceLinkedRole 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?: RdsServiceLinkedRoleState, opts?: CustomResourceOptions): RdsServiceLinkedRole
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            role_id: Optional[str] = None,
            role_name: Optional[str] = None,
            service_name: Optional[str] = None) -> RdsServiceLinkedRole
    func GetRdsServiceLinkedRole(ctx *Context, name string, id IDInput, state *RdsServiceLinkedRoleState, opts ...ResourceOption) (*RdsServiceLinkedRole, error)
    public static RdsServiceLinkedRole Get(string name, Input<string> id, RdsServiceLinkedRoleState? state, CustomResourceOptions? opts = null)
    public static RdsServiceLinkedRole get(String name, Output<String> id, RdsServiceLinkedRoleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    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 Alibaba Cloud Resource Name (ARN) of the role.
    RoleId string
    The ID of the role.
    RoleName string
    The name of the role.
    ServiceName string
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    Arn string
    The Alibaba Cloud Resource Name (ARN) of the role.
    RoleId string
    The ID of the role.
    RoleName string
    The name of the role.
    ServiceName string
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    arn String
    The Alibaba Cloud Resource Name (ARN) of the role.
    roleId String
    The ID of the role.
    roleName String
    The name of the role.
    serviceName String
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    arn string
    The Alibaba Cloud Resource Name (ARN) of the role.
    roleId string
    The ID of the role.
    roleName string
    The name of the role.
    serviceName string
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    arn str
    The Alibaba Cloud Resource Name (ARN) of the role.
    role_id str
    The ID of the role.
    role_name str
    The name of the role.
    service_name str
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.
    arn String
    The Alibaba Cloud Resource Name (ARN) of the role.
    roleId String
    The ID of the role.
    roleName String
    The name of the role.
    serviceName String
    The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs, AliyunServiceRoleForRDSProxyOnEcs.

    Import

    RDS Service Linked Role can be imported using the id, e.g.

    $ pulumi import alicloud:rds/rdsServiceLinkedRole:RdsServiceLinkedRole default <service_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi