// Add or change the operations role used by an environment. After this call is
// made, Elastic Beanstalk uses the associated operations role for permissions to
// downstream services during subsequent calls acting on this environment. For more
// information, see Operations roles
// (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-operationsrole.html)
// in the AWS Elastic Beanstalk Developer Guide.
Add or change the operations role used by an environment. After this call is
made, Elastic Beanstalk uses the associated operations role for permissions to
downstream services during subsequent calls acting on this environment. For more
information, see Operations roles

in the AWS Elastic Beanstalk Developer Guide.
// Add or change the operations role used by an environment . After this call is // made Elastic Beanstalk uses the associated operations role for permissions to // downstream services during subsequent calls acting on this environment . For more // information see Operations roles // ( https : // docs . aws . amazon . com / elasticbeanstalk / latest / dg / iam - operationsrole . html ) // in the AWS Elastic Beanstalk Developer Guide .
func (c *Client) AssociateEnvironmentOperationsRole(ctx context.Context, params *AssociateEnvironmentOperationsRoleInput, optFns ...func(*Options)) (*AssociateEnvironmentOperationsRoleOutput, error) {
	if params == nil {
		params = &AssociateEnvironmentOperationsRoleInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "AssociateEnvironmentOperationsRole", params, optFns, addOperationAssociateEnvironmentOperationsRoleMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*AssociateEnvironmentOperationsRoleOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) AssociateEnvironmentOperationsRole ( ctx context . Context , params * AssociateEnvironmentOperationsRoleInput , optFns ... func ( * Options ) ) ( * AssociateEnvironmentOperationsRoleOutput , error ) { if params == nil { params = & AssociateEnvironmentOperationsRoleInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationAssociateEnvironmentOperationsRoleMiddlewares ) if err != nil { return nil , err } out := result . ( * AssociateEnvironmentOperationsRoleOutput ) out . ResultMetadata = metadata return out , nil }
Add or change the operations role used by an environment.
Add or change the operations role used by an environment .