AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CreateServiceLinkedRoleInput

import "github.com/aws/aws-sdk-go/service/iam"

type CreateServiceLinkedRoleInput struct { AWSServiceName *string `min:"1" type:"string" required:"true"` CustomSuffix *string `min:"1" type:"string"` Description *string `type:"string"` }

AWSServiceName

Type: *string

The service principal for 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.

Service principals are unique and case-sensitive. To find the exact service principal for your service-linked role, see AWS Services That Work with IAM (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html) in the IAM User Guide and look for the services that have Yes in the Service-Linked Role column. Choose the Yes link to view the service-linked role documentation for that service.

AWSServiceName is a required field

CustomSuffix

Type: *string

A string that you provide, which is combined with the service-provided prefix to form the complete role name. If you make multiple requests for the same service, then you must supply a different CustomSuffixfor each request. Otherwise the request fails with a duplicate role name error. For example, you could add -1or -debugto the suffix.

Some services do not support the CustomSuffix

Description

Type: *string

The description of the role.

Method

GoString

func (s CreateServiceLinkedRoleInput) GoString() string

GoString returns the string representation

SetAWSServiceName

func (s *CreateServiceLinkedRoleInput) SetAWSServiceName(v string) *CreateServiceLinkedRoleInput

SetAWSServiceName sets the AWSServiceName field's value.

SetCustomSuffix

func (s *CreateServiceLinkedRoleInput) SetCustomSuffix(v string) *CreateServiceLinkedRoleInput

SetCustomSuffix sets the CustomSuffix field's value.

SetDescription

func (s *CreateServiceLinkedRoleInput) SetDescription(v string) *CreateServiceLinkedRoleInput

SetDescription sets the Description field's value.

String

func (s CreateServiceLinkedRoleInput) String() string

String returns the string representation

Validate

func (s *CreateServiceLinkedRoleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: