// Updates the instance protection settings of the specified instances. For more
// information about preventing instances that are part of an Auto Scaling group
// from terminating on scale in, see Instance Protection
// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-instance-termination.html#instance-protection)
// in the Amazon EC2 Auto Scaling User Guide.
Updates the instance protection settings of the specified instances. For more
information about preventing instances that are part of an Auto Scaling group
from terminating on scale in, see Instance Protection

in the Amazon EC2 Auto Scaling User Guide.
// Updates the instance protection settings of the specified instances . For more // information about preventing instances that are part of an Auto Scaling group // from terminating on scale in see Instance Protection // ( https : // docs . aws . amazon . com / autoscaling / ec2 / userguide / as - instance - termination . html#instance - protection ) // in the Amazon EC2 Auto Scaling User Guide .
func (c *Client) SetInstanceProtection(ctx context.Context, params *SetInstanceProtectionInput, optFns ...func(*Options)) (*SetInstanceProtectionOutput, error) {
	if params == nil {
		params = &SetInstanceProtectionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "SetInstanceProtection", params, optFns, addOperationSetInstanceProtectionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*SetInstanceProtectionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) SetInstanceProtection ( ctx context . Context , params * SetInstanceProtectionInput , optFns ... func ( * Options ) ) ( * SetInstanceProtectionOutput , error ) { if params == nil { params = & SetInstanceProtectionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationSetInstanceProtectionMiddlewares ) if err != nil { return nil , err } out := result . ( * SetInstanceProtectionOutput ) out . ResultMetadata = metadata return out , nil }
Updates the instance protection settings of the specified instances.
Updates the instance protection settings of the specified instances .