// Deletes the service-linked role that Elasticsearch Service uses to manage and
// maintain VPC domains. Role deletion will fail if any existing VPC domains use
// the role. You must delete any such Elasticsearch domains before deleting the
// role. See Deleting Elasticsearch Service Role
// (http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-vpc.html#es-enabling-slr)
// in VPC Endpoints for Amazon Elasticsearch Service Domains.
Deletes the service-linked role that Elasticsearch Service uses to manage and
maintain VPC domains. Role deletion will fail if any existing VPC domains use
the role. You must delete any such Elasticsearch domains before deleting the
role. See Deleting Elasticsearch Service Role

in VPC Endpoints for Amazon Elasticsearch Service Domains.
// Deletes the service - linked role that Elasticsearch Service uses to manage and // maintain VPC domains . Role deletion will fail if any existing VPC domains use // the role . You must delete any such Elasticsearch domains before deleting the // role . See Deleting Elasticsearch Service Role // ( http : // docs . aws . amazon . com / elasticsearch - service / latest / developerguide / es - vpc . html#es - enabling - slr ) // in VPC Endpoints for Amazon Elasticsearch Service Domains .
func (c *Client) DeleteElasticsearchServiceRole(ctx context.Context, params *DeleteElasticsearchServiceRoleInput, optFns ...func(*Options)) (*DeleteElasticsearchServiceRoleOutput, error) {
	if params == nil {
		params = &DeleteElasticsearchServiceRoleInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DeleteElasticsearchServiceRole", params, optFns, addOperationDeleteElasticsearchServiceRoleMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DeleteElasticsearchServiceRoleOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DeleteElasticsearchServiceRole ( ctx context . Context , params * DeleteElasticsearchServiceRoleInput , optFns ... func ( * Options ) ) ( * DeleteElasticsearchServiceRoleOutput , error ) { if params == nil { params = & DeleteElasticsearchServiceRoleInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDeleteElasticsearchServiceRoleMiddlewares ) if err != nil { return nil , err } out := result . ( * DeleteElasticsearchServiceRoleOutput ) out . ResultMetadata = metadata return out , nil }
Deletes the service-linked role that Elasticsearch Service uses to manage and
maintain VPC domains.
Deletes the service - linked role that Elasticsearch Service uses to manage and maintain VPC domains .