service/controltower/api.go (2,819 lines of code) (raw):
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package controltower
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opDeleteLandingZone = "DeleteLandingZone"
// DeleteLandingZoneRequest generates a "aws/request.Request" representing the
// client's request for the DeleteLandingZone operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteLandingZone for more information on using the DeleteLandingZone
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the DeleteLandingZoneRequest method.
// req, resp := client.DeleteLandingZoneRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DeleteLandingZone
func (c *ControlTower) DeleteLandingZoneRequest(input *DeleteLandingZoneInput) (req *request.Request, output *DeleteLandingZoneOutput) {
op := &request.Operation{
Name: opDeleteLandingZone,
HTTPMethod: "POST",
HTTPPath: "/delete-landingzone",
}
if input == nil {
input = &DeleteLandingZoneInput{}
}
output = &DeleteLandingZoneOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteLandingZone API operation for AWS Control Tower.
//
// Decommissions a landing zone. This API call starts an asynchronous operation
// that deletes Amazon Web Services Control Tower resources deployed in accounts
// managed by Amazon Web Services Control Tower.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation DeleteLandingZone for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DeleteLandingZone
func (c *ControlTower) DeleteLandingZone(input *DeleteLandingZoneInput) (*DeleteLandingZoneOutput, error) {
req, out := c.DeleteLandingZoneRequest(input)
return out, req.Send()
}
// DeleteLandingZoneWithContext is the same as DeleteLandingZone with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteLandingZone for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) DeleteLandingZoneWithContext(ctx aws.Context, input *DeleteLandingZoneInput, opts ...request.Option) (*DeleteLandingZoneOutput, error) {
req, out := c.DeleteLandingZoneRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDisableBaseline = "DisableBaseline"
// DisableBaselineRequest generates a "aws/request.Request" representing the
// client's request for the DisableBaseline operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DisableBaseline for more information on using the DisableBaseline
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the DisableBaselineRequest method.
// req, resp := client.DisableBaselineRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableBaseline
func (c *ControlTower) DisableBaselineRequest(input *DisableBaselineInput) (req *request.Request, output *DisableBaselineOutput) {
op := &request.Operation{
Name: opDisableBaseline,
HTTPMethod: "POST",
HTTPPath: "/disable-baseline",
}
if input == nil {
input = &DisableBaselineInput{}
}
output = &DisableBaselineOutput{}
req = c.newRequest(op, input, output)
return
}
// DisableBaseline API operation for AWS Control Tower.
//
// Disable an EnabledBaseline resource on the specified Target. This API starts
// an asynchronous operation to remove all resources deployed as part of the
// baseline enablement. The resource will vary depending on the enabled baseline.
// For usage examples, see the Amazon Web Services Control Tower User Guide
// (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation DisableBaseline for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableBaseline
func (c *ControlTower) DisableBaseline(input *DisableBaselineInput) (*DisableBaselineOutput, error) {
req, out := c.DisableBaselineRequest(input)
return out, req.Send()
}
// DisableBaselineWithContext is the same as DisableBaseline with the addition of
// the ability to pass a context and additional request options.
//
// See DisableBaseline for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) DisableBaselineWithContext(ctx aws.Context, input *DisableBaselineInput, opts ...request.Option) (*DisableBaselineOutput, error) {
req, out := c.DisableBaselineRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDisableControl = "DisableControl"
// DisableControlRequest generates a "aws/request.Request" representing the
// client's request for the DisableControl operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DisableControl for more information on using the DisableControl
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the DisableControlRequest method.
// req, resp := client.DisableControlRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableControl
func (c *ControlTower) DisableControlRequest(input *DisableControlInput) (req *request.Request, output *DisableControlOutput) {
op := &request.Operation{
Name: opDisableControl,
HTTPMethod: "POST",
HTTPPath: "/disable-control",
}
if input == nil {
input = &DisableControlInput{}
}
output = &DisableControlOutput{}
req = c.newRequest(op, input, output)
return
}
// DisableControl API operation for AWS Control Tower.
//
// This API call turns off a control. It starts an asynchronous operation that
// deletes Amazon Web Services resources on the specified organizational unit
// and the accounts it contains. The resources will vary according to the control
// that you specify. For usage examples, see the Controls Reference Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation DisableControl for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/DisableControl
func (c *ControlTower) DisableControl(input *DisableControlInput) (*DisableControlOutput, error) {
req, out := c.DisableControlRequest(input)
return out, req.Send()
}
// DisableControlWithContext is the same as DisableControl with the addition of
// the ability to pass a context and additional request options.
//
// See DisableControl for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) DisableControlWithContext(ctx aws.Context, input *DisableControlInput, opts ...request.Option) (*DisableControlOutput, error) {
req, out := c.DisableControlRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opEnableBaseline = "EnableBaseline"
// EnableBaselineRequest generates a "aws/request.Request" representing the
// client's request for the EnableBaseline operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See EnableBaseline for more information on using the EnableBaseline
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the EnableBaselineRequest method.
// req, resp := client.EnableBaselineRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableBaseline
func (c *ControlTower) EnableBaselineRequest(input *EnableBaselineInput) (req *request.Request, output *EnableBaselineOutput) {
op := &request.Operation{
Name: opEnableBaseline,
HTTPMethod: "POST",
HTTPPath: "/enable-baseline",
}
if input == nil {
input = &EnableBaselineInput{}
}
output = &EnableBaselineOutput{}
req = c.newRequest(op, input, output)
return
}
// EnableBaseline API operation for AWS Control Tower.
//
// Enable (apply) a Baseline to a Target. This API starts an asynchronous operation
// to deploy resources specified by the Baseline to the specified Target. For
// usage examples, see the Amazon Web Services Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation EnableBaseline for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableBaseline
func (c *ControlTower) EnableBaseline(input *EnableBaselineInput) (*EnableBaselineOutput, error) {
req, out := c.EnableBaselineRequest(input)
return out, req.Send()
}
// EnableBaselineWithContext is the same as EnableBaseline with the addition of
// the ability to pass a context and additional request options.
//
// See EnableBaseline for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) EnableBaselineWithContext(ctx aws.Context, input *EnableBaselineInput, opts ...request.Option) (*EnableBaselineOutput, error) {
req, out := c.EnableBaselineRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opEnableControl = "EnableControl"
// EnableControlRequest generates a "aws/request.Request" representing the
// client's request for the EnableControl operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See EnableControl for more information on using the EnableControl
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the EnableControlRequest method.
// req, resp := client.EnableControlRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableControl
func (c *ControlTower) EnableControlRequest(input *EnableControlInput) (req *request.Request, output *EnableControlOutput) {
op := &request.Operation{
Name: opEnableControl,
HTTPMethod: "POST",
HTTPPath: "/enable-control",
}
if input == nil {
input = &EnableControlInput{}
}
output = &EnableControlOutput{}
req = c.newRequest(op, input, output)
return
}
// EnableControl API operation for AWS Control Tower.
//
// This API call activates a control. It starts an asynchronous operation that
// creates Amazon Web Services resources on the specified organizational unit
// and the accounts it contains. The resources created will vary according to
// the control that you specify. For usage examples, see the Controls Reference
// Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation EnableControl for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/EnableControl
func (c *ControlTower) EnableControl(input *EnableControlInput) (*EnableControlOutput, error) {
req, out := c.EnableControlRequest(input)
return out, req.Send()
}
// EnableControlWithContext is the same as EnableControl with the addition of
// the ability to pass a context and additional request options.
//
// See EnableControl for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) EnableControlWithContext(ctx aws.Context, input *EnableControlInput, opts ...request.Option) (*EnableControlOutput, error) {
req, out := c.EnableControlRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBaseline = "GetBaseline"
// GetBaselineRequest generates a "aws/request.Request" representing the
// client's request for the GetBaseline operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetBaseline for more information on using the GetBaseline
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the GetBaselineRequest method.
// req, resp := client.GetBaselineRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaseline
func (c *ControlTower) GetBaselineRequest(input *GetBaselineInput) (req *request.Request, output *GetBaselineOutput) {
op := &request.Operation{
Name: opGetBaseline,
HTTPMethod: "POST",
HTTPPath: "/get-baseline",
}
if input == nil {
input = &GetBaselineInput{}
}
output = &GetBaselineOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBaseline API operation for AWS Control Tower.
//
// Retrieve details about an existing Baseline resource by specifying its identifier.
// For usage examples, see the Amazon Web Services Control Tower User Guide
// (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation GetBaseline for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaseline
func (c *ControlTower) GetBaseline(input *GetBaselineInput) (*GetBaselineOutput, error) {
req, out := c.GetBaselineRequest(input)
return out, req.Send()
}
// GetBaselineWithContext is the same as GetBaseline with the addition of
// the ability to pass a context and additional request options.
//
// See GetBaseline for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) GetBaselineWithContext(ctx aws.Context, input *GetBaselineInput, opts ...request.Option) (*GetBaselineOutput, error) {
req, out := c.GetBaselineRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetBaselineOperation = "GetBaselineOperation"
// GetBaselineOperationRequest generates a "aws/request.Request" representing the
// client's request for the GetBaselineOperation operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetBaselineOperation for more information on using the GetBaselineOperation
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the GetBaselineOperationRequest method.
// req, resp := client.GetBaselineOperationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineOperation
func (c *ControlTower) GetBaselineOperationRequest(input *GetBaselineOperationInput) (req *request.Request, output *GetBaselineOperationOutput) {
op := &request.Operation{
Name: opGetBaselineOperation,
HTTPMethod: "POST",
HTTPPath: "/get-baseline-operation",
}
if input == nil {
input = &GetBaselineOperationInput{}
}
output = &GetBaselineOperationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetBaselineOperation API operation for AWS Control Tower.
//
// Returns the details of an asynchronous baseline operation, as initiated by
// any of these APIs: EnableBaseline, DisableBaseline, UpdateEnabledBaseline,
// ResetEnabledBaseline. A status message is displayed in case of operation
// failure. For usage examples, see the Amazon Web Services Control Tower User
// Guide (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation GetBaselineOperation for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetBaselineOperation
func (c *ControlTower) GetBaselineOperation(input *GetBaselineOperationInput) (*GetBaselineOperationOutput, error) {
req, out := c.GetBaselineOperationRequest(input)
return out, req.Send()
}
// GetBaselineOperationWithContext is the same as GetBaselineOperation with the addition of
// the ability to pass a context and additional request options.
//
// See GetBaselineOperation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) GetBaselineOperationWithContext(ctx aws.Context, input *GetBaselineOperationInput, opts ...request.Option) (*GetBaselineOperationOutput, error) {
req, out := c.GetBaselineOperationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetControlOperation = "GetControlOperation"
// GetControlOperationRequest generates a "aws/request.Request" representing the
// client's request for the GetControlOperation operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetControlOperation for more information on using the GetControlOperation
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the GetControlOperationRequest method.
// req, resp := client.GetControlOperationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetControlOperation
func (c *ControlTower) GetControlOperationRequest(input *GetControlOperationInput) (req *request.Request, output *GetControlOperationOutput) {
op := &request.Operation{
Name: opGetControlOperation,
HTTPMethod: "POST",
HTTPPath: "/get-control-operation",
}
if input == nil {
input = &GetControlOperationInput{}
}
output = &GetControlOperationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetControlOperation API operation for AWS Control Tower.
//
// Returns the status of a particular EnableControl or DisableControl operation.
// Displays a message in case of error. Details for an operation are available
// for 90 days. For usage examples, see the Controls Reference Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation GetControlOperation for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetControlOperation
func (c *ControlTower) GetControlOperation(input *GetControlOperationInput) (*GetControlOperationOutput, error) {
req, out := c.GetControlOperationRequest(input)
return out, req.Send()
}
// GetControlOperationWithContext is the same as GetControlOperation with the addition of
// the ability to pass a context and additional request options.
//
// See GetControlOperation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) GetControlOperationWithContext(ctx aws.Context, input *GetControlOperationInput, opts ...request.Option) (*GetControlOperationOutput, error) {
req, out := c.GetControlOperationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetEnabledBaseline = "GetEnabledBaseline"
// GetEnabledBaselineRequest generates a "aws/request.Request" representing the
// client's request for the GetEnabledBaseline operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetEnabledBaseline for more information on using the GetEnabledBaseline
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the GetEnabledBaselineRequest method.
// req, resp := client.GetEnabledBaselineRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledBaseline
func (c *ControlTower) GetEnabledBaselineRequest(input *GetEnabledBaselineInput) (req *request.Request, output *GetEnabledBaselineOutput) {
op := &request.Operation{
Name: opGetEnabledBaseline,
HTTPMethod: "POST",
HTTPPath: "/get-enabled-baseline",
}
if input == nil {
input = &GetEnabledBaselineInput{}
}
output = &GetEnabledBaselineOutput{}
req = c.newRequest(op, input, output)
return
}
// GetEnabledBaseline API operation for AWS Control Tower.
//
// Retrieve details of an EnabledBaseline resource by specifying its identifier.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation GetEnabledBaseline for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledBaseline
func (c *ControlTower) GetEnabledBaseline(input *GetEnabledBaselineInput) (*GetEnabledBaselineOutput, error) {
req, out := c.GetEnabledBaselineRequest(input)
return out, req.Send()
}
// GetEnabledBaselineWithContext is the same as GetEnabledBaseline with the addition of
// the ability to pass a context and additional request options.
//
// See GetEnabledBaseline for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) GetEnabledBaselineWithContext(ctx aws.Context, input *GetEnabledBaselineInput, opts ...request.Option) (*GetEnabledBaselineOutput, error) {
req, out := c.GetEnabledBaselineRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetEnabledControl = "GetEnabledControl"
// GetEnabledControlRequest generates a "aws/request.Request" representing the
// client's request for the GetEnabledControl operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetEnabledControl for more information on using the GetEnabledControl
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the GetEnabledControlRequest method.
// req, resp := client.GetEnabledControlRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledControl
func (c *ControlTower) GetEnabledControlRequest(input *GetEnabledControlInput) (req *request.Request, output *GetEnabledControlOutput) {
op := &request.Operation{
Name: opGetEnabledControl,
HTTPMethod: "POST",
HTTPPath: "/get-enabled-control",
}
if input == nil {
input = &GetEnabledControlInput{}
}
output = &GetEnabledControlOutput{}
req = c.newRequest(op, input, output)
return
}
// GetEnabledControl API operation for AWS Control Tower.
//
// Retrieves details about an enabled control. For usage examples, see the Controls
// Reference Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation GetEnabledControl for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetEnabledControl
func (c *ControlTower) GetEnabledControl(input *GetEnabledControlInput) (*GetEnabledControlOutput, error) {
req, out := c.GetEnabledControlRequest(input)
return out, req.Send()
}
// GetEnabledControlWithContext is the same as GetEnabledControl with the addition of
// the ability to pass a context and additional request options.
//
// See GetEnabledControl for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) GetEnabledControlWithContext(ctx aws.Context, input *GetEnabledControlInput, opts ...request.Option) (*GetEnabledControlOutput, error) {
req, out := c.GetEnabledControlRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetLandingZoneOperation = "GetLandingZoneOperation"
// GetLandingZoneOperationRequest generates a "aws/request.Request" representing the
// client's request for the GetLandingZoneOperation operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetLandingZoneOperation for more information on using the GetLandingZoneOperation
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the GetLandingZoneOperationRequest method.
// req, resp := client.GetLandingZoneOperationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetLandingZoneOperation
func (c *ControlTower) GetLandingZoneOperationRequest(input *GetLandingZoneOperationInput) (req *request.Request, output *GetLandingZoneOperationOutput) {
op := &request.Operation{
Name: opGetLandingZoneOperation,
HTTPMethod: "POST",
HTTPPath: "/get-landingzone-operation",
}
if input == nil {
input = &GetLandingZoneOperationInput{}
}
output = &GetLandingZoneOperationOutput{}
req = c.newRequest(op, input, output)
return
}
// GetLandingZoneOperation API operation for AWS Control Tower.
//
// Returns the status of the specified landing zone operation. Details for an
// operation are available for 90 days.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation GetLandingZoneOperation for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/GetLandingZoneOperation
func (c *ControlTower) GetLandingZoneOperation(input *GetLandingZoneOperationInput) (*GetLandingZoneOperationOutput, error) {
req, out := c.GetLandingZoneOperationRequest(input)
return out, req.Send()
}
// GetLandingZoneOperationWithContext is the same as GetLandingZoneOperation with the addition of
// the ability to pass a context and additional request options.
//
// See GetLandingZoneOperation for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) GetLandingZoneOperationWithContext(ctx aws.Context, input *GetLandingZoneOperationInput, opts ...request.Option) (*GetLandingZoneOperationOutput, error) {
req, out := c.GetLandingZoneOperationRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opListBaselines = "ListBaselines"
// ListBaselinesRequest generates a "aws/request.Request" representing the
// client's request for the ListBaselines operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListBaselines for more information on using the ListBaselines
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ListBaselinesRequest method.
// req, resp := client.ListBaselinesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListBaselines
func (c *ControlTower) ListBaselinesRequest(input *ListBaselinesInput) (req *request.Request, output *ListBaselinesOutput) {
op := &request.Operation{
Name: opListBaselines,
HTTPMethod: "POST",
HTTPPath: "/list-baselines",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListBaselinesInput{}
}
output = &ListBaselinesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListBaselines API operation for AWS Control Tower.
//
// Returns a summary list of all available baselines. For usage examples, see
// the Amazon Web Services Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ListBaselines for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListBaselines
func (c *ControlTower) ListBaselines(input *ListBaselinesInput) (*ListBaselinesOutput, error) {
req, out := c.ListBaselinesRequest(input)
return out, req.Send()
}
// ListBaselinesWithContext is the same as ListBaselines with the addition of
// the ability to pass a context and additional request options.
//
// See ListBaselines for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListBaselinesWithContext(ctx aws.Context, input *ListBaselinesInput, opts ...request.Option) (*ListBaselinesOutput, error) {
req, out := c.ListBaselinesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListBaselinesPages iterates over the pages of a ListBaselines operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListBaselines method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListBaselines operation.
// pageNum := 0
// err := client.ListBaselinesPages(params,
// func(page *controltower.ListBaselinesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListBaselinesPages(input *ListBaselinesInput, fn func(*ListBaselinesOutput, bool) bool) error {
return c.ListBaselinesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListBaselinesPagesWithContext same as ListBaselinesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListBaselinesPagesWithContext(ctx aws.Context, input *ListBaselinesInput, fn func(*ListBaselinesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListBaselinesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListBaselinesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListBaselinesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListControlOperations = "ListControlOperations"
// ListControlOperationsRequest generates a "aws/request.Request" representing the
// client's request for the ListControlOperations operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListControlOperations for more information on using the ListControlOperations
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ListControlOperationsRequest method.
// req, resp := client.ListControlOperationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListControlOperations
func (c *ControlTower) ListControlOperationsRequest(input *ListControlOperationsInput) (req *request.Request, output *ListControlOperationsOutput) {
op := &request.Operation{
Name: opListControlOperations,
HTTPMethod: "POST",
HTTPPath: "/list-control-operations",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListControlOperationsInput{}
}
output = &ListControlOperationsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListControlOperations API operation for AWS Control Tower.
//
// Provides a list of operations in progress or queued. For usage examples,
// see ListControlOperation examples (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html#list-control-operations-api-examples).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ListControlOperations for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListControlOperations
func (c *ControlTower) ListControlOperations(input *ListControlOperationsInput) (*ListControlOperationsOutput, error) {
req, out := c.ListControlOperationsRequest(input)
return out, req.Send()
}
// ListControlOperationsWithContext is the same as ListControlOperations with the addition of
// the ability to pass a context and additional request options.
//
// See ListControlOperations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListControlOperationsWithContext(ctx aws.Context, input *ListControlOperationsInput, opts ...request.Option) (*ListControlOperationsOutput, error) {
req, out := c.ListControlOperationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListControlOperationsPages iterates over the pages of a ListControlOperations operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListControlOperations method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListControlOperations operation.
// pageNum := 0
// err := client.ListControlOperationsPages(params,
// func(page *controltower.ListControlOperationsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListControlOperationsPages(input *ListControlOperationsInput, fn func(*ListControlOperationsOutput, bool) bool) error {
return c.ListControlOperationsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListControlOperationsPagesWithContext same as ListControlOperationsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListControlOperationsPagesWithContext(ctx aws.Context, input *ListControlOperationsInput, fn func(*ListControlOperationsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListControlOperationsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListControlOperationsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListControlOperationsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListEnabledBaselines = "ListEnabledBaselines"
// ListEnabledBaselinesRequest generates a "aws/request.Request" representing the
// client's request for the ListEnabledBaselines operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListEnabledBaselines for more information on using the ListEnabledBaselines
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ListEnabledBaselinesRequest method.
// req, resp := client.ListEnabledBaselinesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledBaselines
func (c *ControlTower) ListEnabledBaselinesRequest(input *ListEnabledBaselinesInput) (req *request.Request, output *ListEnabledBaselinesOutput) {
op := &request.Operation{
Name: opListEnabledBaselines,
HTTPMethod: "POST",
HTTPPath: "/list-enabled-baselines",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListEnabledBaselinesInput{}
}
output = &ListEnabledBaselinesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListEnabledBaselines API operation for AWS Control Tower.
//
// Returns a list of summaries describing EnabledBaseline resources. You can
// filter the list by the corresponding Baseline or Target of the EnabledBaseline
// resources. For usage examples, see the Amazon Web Services Control Tower
// User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ListEnabledBaselines for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledBaselines
func (c *ControlTower) ListEnabledBaselines(input *ListEnabledBaselinesInput) (*ListEnabledBaselinesOutput, error) {
req, out := c.ListEnabledBaselinesRequest(input)
return out, req.Send()
}
// ListEnabledBaselinesWithContext is the same as ListEnabledBaselines with the addition of
// the ability to pass a context and additional request options.
//
// See ListEnabledBaselines for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListEnabledBaselinesWithContext(ctx aws.Context, input *ListEnabledBaselinesInput, opts ...request.Option) (*ListEnabledBaselinesOutput, error) {
req, out := c.ListEnabledBaselinesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListEnabledBaselinesPages iterates over the pages of a ListEnabledBaselines operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListEnabledBaselines method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListEnabledBaselines operation.
// pageNum := 0
// err := client.ListEnabledBaselinesPages(params,
// func(page *controltower.ListEnabledBaselinesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListEnabledBaselinesPages(input *ListEnabledBaselinesInput, fn func(*ListEnabledBaselinesOutput, bool) bool) error {
return c.ListEnabledBaselinesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListEnabledBaselinesPagesWithContext same as ListEnabledBaselinesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListEnabledBaselinesPagesWithContext(ctx aws.Context, input *ListEnabledBaselinesInput, fn func(*ListEnabledBaselinesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListEnabledBaselinesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListEnabledBaselinesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListEnabledBaselinesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListEnabledControls = "ListEnabledControls"
// ListEnabledControlsRequest generates a "aws/request.Request" representing the
// client's request for the ListEnabledControls operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListEnabledControls for more information on using the ListEnabledControls
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ListEnabledControlsRequest method.
// req, resp := client.ListEnabledControlsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledControls
func (c *ControlTower) ListEnabledControlsRequest(input *ListEnabledControlsInput) (req *request.Request, output *ListEnabledControlsOutput) {
op := &request.Operation{
Name: opListEnabledControls,
HTTPMethod: "POST",
HTTPPath: "/list-enabled-controls",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListEnabledControlsInput{}
}
output = &ListEnabledControlsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListEnabledControls API operation for AWS Control Tower.
//
// Lists the controls enabled by Amazon Web Services Control Tower on the specified
// organizational unit and the accounts it contains. For usage examples, see
// the Controls Reference Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ListEnabledControls for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListEnabledControls
func (c *ControlTower) ListEnabledControls(input *ListEnabledControlsInput) (*ListEnabledControlsOutput, error) {
req, out := c.ListEnabledControlsRequest(input)
return out, req.Send()
}
// ListEnabledControlsWithContext is the same as ListEnabledControls with the addition of
// the ability to pass a context and additional request options.
//
// See ListEnabledControls for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListEnabledControlsWithContext(ctx aws.Context, input *ListEnabledControlsInput, opts ...request.Option) (*ListEnabledControlsOutput, error) {
req, out := c.ListEnabledControlsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListEnabledControlsPages iterates over the pages of a ListEnabledControls operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListEnabledControls method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListEnabledControls operation.
// pageNum := 0
// err := client.ListEnabledControlsPages(params,
// func(page *controltower.ListEnabledControlsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListEnabledControlsPages(input *ListEnabledControlsInput, fn func(*ListEnabledControlsOutput, bool) bool) error {
return c.ListEnabledControlsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListEnabledControlsPagesWithContext same as ListEnabledControlsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListEnabledControlsPagesWithContext(ctx aws.Context, input *ListEnabledControlsInput, fn func(*ListEnabledControlsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListEnabledControlsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListEnabledControlsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListEnabledControlsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListLandingZoneOperations = "ListLandingZoneOperations"
// ListLandingZoneOperationsRequest generates a "aws/request.Request" representing the
// client's request for the ListLandingZoneOperations operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListLandingZoneOperations for more information on using the ListLandingZoneOperations
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ListLandingZoneOperationsRequest method.
// req, resp := client.ListLandingZoneOperationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListLandingZoneOperations
func (c *ControlTower) ListLandingZoneOperationsRequest(input *ListLandingZoneOperationsInput) (req *request.Request, output *ListLandingZoneOperationsOutput) {
op := &request.Operation{
Name: opListLandingZoneOperations,
HTTPMethod: "POST",
HTTPPath: "/list-landingzone-operations",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListLandingZoneOperationsInput{}
}
output = &ListLandingZoneOperationsOutput{}
req = c.newRequest(op, input, output)
return
}
// ListLandingZoneOperations API operation for AWS Control Tower.
//
// Lists all landing zone operations from the past 90 days. Results are sorted
// by time, with the most recent operation first.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ListLandingZoneOperations for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListLandingZoneOperations
func (c *ControlTower) ListLandingZoneOperations(input *ListLandingZoneOperationsInput) (*ListLandingZoneOperationsOutput, error) {
req, out := c.ListLandingZoneOperationsRequest(input)
return out, req.Send()
}
// ListLandingZoneOperationsWithContext is the same as ListLandingZoneOperations with the addition of
// the ability to pass a context and additional request options.
//
// See ListLandingZoneOperations for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListLandingZoneOperationsWithContext(ctx aws.Context, input *ListLandingZoneOperationsInput, opts ...request.Option) (*ListLandingZoneOperationsOutput, error) {
req, out := c.ListLandingZoneOperationsRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListLandingZoneOperationsPages iterates over the pages of a ListLandingZoneOperations operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListLandingZoneOperations method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListLandingZoneOperations operation.
// pageNum := 0
// err := client.ListLandingZoneOperationsPages(params,
// func(page *controltower.ListLandingZoneOperationsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListLandingZoneOperationsPages(input *ListLandingZoneOperationsInput, fn func(*ListLandingZoneOperationsOutput, bool) bool) error {
return c.ListLandingZoneOperationsPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListLandingZoneOperationsPagesWithContext same as ListLandingZoneOperationsPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListLandingZoneOperationsPagesWithContext(ctx aws.Context, input *ListLandingZoneOperationsInput, fn func(*ListLandingZoneOperationsOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListLandingZoneOperationsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListLandingZoneOperationsRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListLandingZoneOperationsOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListLandingZones = "ListLandingZones"
// ListLandingZonesRequest generates a "aws/request.Request" representing the
// client's request for the ListLandingZones operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListLandingZones for more information on using the ListLandingZones
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ListLandingZonesRequest method.
// req, resp := client.ListLandingZonesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListLandingZones
func (c *ControlTower) ListLandingZonesRequest(input *ListLandingZonesInput) (req *request.Request, output *ListLandingZonesOutput) {
op := &request.Operation{
Name: opListLandingZones,
HTTPMethod: "POST",
HTTPPath: "/list-landingzones",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &ListLandingZonesInput{}
}
output = &ListLandingZonesOutput{}
req = c.newRequest(op, input, output)
return
}
// ListLandingZones API operation for AWS Control Tower.
//
// Returns the landing zone ARN for the landing zone deployed in your managed
// account. This API also creates an ARN for existing accounts that do not yet
// have a landing zone ARN.
//
// Returns one landing zone ARN.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ListLandingZones for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListLandingZones
func (c *ControlTower) ListLandingZones(input *ListLandingZonesInput) (*ListLandingZonesOutput, error) {
req, out := c.ListLandingZonesRequest(input)
return out, req.Send()
}
// ListLandingZonesWithContext is the same as ListLandingZones with the addition of
// the ability to pass a context and additional request options.
//
// See ListLandingZones for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListLandingZonesWithContext(ctx aws.Context, input *ListLandingZonesInput, opts ...request.Option) (*ListLandingZonesOutput, error) {
req, out := c.ListLandingZonesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// ListLandingZonesPages iterates over the pages of a ListLandingZones operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See ListLandingZones method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a ListLandingZones operation.
// pageNum := 0
// err := client.ListLandingZonesPages(params,
// func(page *controltower.ListLandingZonesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
func (c *ControlTower) ListLandingZonesPages(input *ListLandingZonesInput, fn func(*ListLandingZonesOutput, bool) bool) error {
return c.ListLandingZonesPagesWithContext(aws.BackgroundContext(), input, fn)
}
// ListLandingZonesPagesWithContext same as ListLandingZonesPages except
// it takes a Context and allows setting request options on the pages.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListLandingZonesPagesWithContext(ctx aws.Context, input *ListLandingZonesInput, fn func(*ListLandingZonesOutput, bool) bool, opts ...request.Option) error {
p := request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *ListLandingZonesInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := c.ListLandingZonesRequest(inCpy)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return req, nil
},
}
for p.Next() {
if !fn(p.Page().(*ListLandingZonesOutput), !p.HasNextPage()) {
break
}
}
return p.Err()
}
const opListTagsForResource = "ListTagsForResource"
// ListTagsForResourceRequest generates a "aws/request.Request" representing the
// client's request for the ListTagsForResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ListTagsForResource for more information on using the ListTagsForResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ListTagsForResourceRequest method.
// req, resp := client.ListTagsForResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListTagsForResource
func (c *ControlTower) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
op := &request.Operation{
Name: opListTagsForResource,
HTTPMethod: "GET",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &ListTagsForResourceInput{}
}
output = &ListTagsForResourceOutput{}
req = c.newRequest(op, input, output)
return
}
// ListTagsForResource API operation for AWS Control Tower.
//
// Returns a list of tags associated with the resource. For usage examples,
// see the Controls Reference Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ListTagsForResource for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ListTagsForResource
func (c *ControlTower) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
return out, req.Send()
}
// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
// the ability to pass a context and additional request options.
//
// See ListTagsForResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
req, out := c.ListTagsForResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opResetEnabledBaseline = "ResetEnabledBaseline"
// ResetEnabledBaselineRequest generates a "aws/request.Request" representing the
// client's request for the ResetEnabledBaseline operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ResetEnabledBaseline for more information on using the ResetEnabledBaseline
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ResetEnabledBaselineRequest method.
// req, resp := client.ResetEnabledBaselineRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledBaseline
func (c *ControlTower) ResetEnabledBaselineRequest(input *ResetEnabledBaselineInput) (req *request.Request, output *ResetEnabledBaselineOutput) {
op := &request.Operation{
Name: opResetEnabledBaseline,
HTTPMethod: "POST",
HTTPPath: "/reset-enabled-baseline",
}
if input == nil {
input = &ResetEnabledBaselineInput{}
}
output = &ResetEnabledBaselineOutput{}
req = c.newRequest(op, input, output)
return
}
// ResetEnabledBaseline API operation for AWS Control Tower.
//
// Re-enables an EnabledBaseline resource. For example, this API can re-apply
// the existing Baseline after a new member account is moved to the target OU.
// For usage examples, see the Amazon Web Services Control Tower User Guide
// (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ResetEnabledBaseline for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetEnabledBaseline
func (c *ControlTower) ResetEnabledBaseline(input *ResetEnabledBaselineInput) (*ResetEnabledBaselineOutput, error) {
req, out := c.ResetEnabledBaselineRequest(input)
return out, req.Send()
}
// ResetEnabledBaselineWithContext is the same as ResetEnabledBaseline with the addition of
// the ability to pass a context and additional request options.
//
// See ResetEnabledBaseline for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ResetEnabledBaselineWithContext(ctx aws.Context, input *ResetEnabledBaselineInput, opts ...request.Option) (*ResetEnabledBaselineOutput, error) {
req, out := c.ResetEnabledBaselineRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opResetLandingZone = "ResetLandingZone"
// ResetLandingZoneRequest generates a "aws/request.Request" representing the
// client's request for the ResetLandingZone operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ResetLandingZone for more information on using the ResetLandingZone
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the ResetLandingZoneRequest method.
// req, resp := client.ResetLandingZoneRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetLandingZone
func (c *ControlTower) ResetLandingZoneRequest(input *ResetLandingZoneInput) (req *request.Request, output *ResetLandingZoneOutput) {
op := &request.Operation{
Name: opResetLandingZone,
HTTPMethod: "POST",
HTTPPath: "/reset-landingzone",
}
if input == nil {
input = &ResetLandingZoneInput{}
}
output = &ResetLandingZoneOutput{}
req = c.newRequest(op, input, output)
return
}
// ResetLandingZone API operation for AWS Control Tower.
//
// This API call resets a landing zone. It starts an asynchronous operation
// that resets the landing zone to the parameters specified in the original
// configuration, which you specified in the manifest file. Nothing in the manifest
// file's original landing zone configuration is changed during the reset process,
// by default. This API is not the same as a rollback of a landing zone version,
// which is not a supported operation.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation ResetLandingZone for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/ResetLandingZone
func (c *ControlTower) ResetLandingZone(input *ResetLandingZoneInput) (*ResetLandingZoneOutput, error) {
req, out := c.ResetLandingZoneRequest(input)
return out, req.Send()
}
// ResetLandingZoneWithContext is the same as ResetLandingZone with the addition of
// the ability to pass a context and additional request options.
//
// See ResetLandingZone for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) ResetLandingZoneWithContext(ctx aws.Context, input *ResetLandingZoneInput, opts ...request.Option) (*ResetLandingZoneOutput, error) {
req, out := c.ResetLandingZoneRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opTagResource = "TagResource"
// TagResourceRequest generates a "aws/request.Request" representing the
// client's request for the TagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See TagResource for more information on using the TagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the TagResourceRequest method.
// req, resp := client.TagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/TagResource
func (c *ControlTower) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
op := &request.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &TagResourceInput{}
}
output = &TagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// TagResource API operation for AWS Control Tower.
//
// Applies tags to a resource. For usage examples, see the Controls Reference
// Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation TagResource for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/TagResource
func (c *ControlTower) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
return out, req.Send()
}
// TagResourceWithContext is the same as TagResource with the addition of
// the ability to pass a context and additional request options.
//
// See TagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
req, out := c.TagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUntagResource = "UntagResource"
// UntagResourceRequest generates a "aws/request.Request" representing the
// client's request for the UntagResource operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UntagResource for more information on using the UntagResource
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the UntagResourceRequest method.
// req, resp := client.UntagResourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UntagResource
func (c *ControlTower) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
op := &request.Operation{
Name: opUntagResource,
HTTPMethod: "DELETE",
HTTPPath: "/tags/{resourceArn}",
}
if input == nil {
input = &UntagResourceInput{}
}
output = &UntagResourceOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// UntagResource API operation for AWS Control Tower.
//
// Removes tags from a resource. For usage examples, see the Controls Reference
// Guide (https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation UntagResource for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UntagResource
func (c *ControlTower) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
return out, req.Send()
}
// UntagResourceWithContext is the same as UntagResource with the addition of
// the ability to pass a context and additional request options.
//
// See UntagResource for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
req, out := c.UntagResourceRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opUpdateEnabledBaseline = "UpdateEnabledBaseline"
// UpdateEnabledBaselineRequest generates a "aws/request.Request" representing the
// client's request for the UpdateEnabledBaseline operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See UpdateEnabledBaseline for more information on using the UpdateEnabledBaseline
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
// // Example sending a request using the UpdateEnabledBaselineRequest method.
// req, resp := client.UpdateEnabledBaselineRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UpdateEnabledBaseline
func (c *ControlTower) UpdateEnabledBaselineRequest(input *UpdateEnabledBaselineInput) (req *request.Request, output *UpdateEnabledBaselineOutput) {
op := &request.Operation{
Name: opUpdateEnabledBaseline,
HTTPMethod: "POST",
HTTPPath: "/update-enabled-baseline",
}
if input == nil {
input = &UpdateEnabledBaselineInput{}
}
output = &UpdateEnabledBaselineOutput{}
req = c.newRequest(op, input, output)
return
}
// UpdateEnabledBaseline API operation for AWS Control Tower.
//
// Updates an EnabledBaseline resource's applied parameters or version. For
// usage examples, see the Amazon Web Services Control Tower User Guide (https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Control Tower's
// API operation UpdateEnabledBaseline for usage and error information.
//
// Returned Error Types:
//
// - ValidationException
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
//
// - ConflictException
// Updating or deleting the resource can cause an inconsistent state.
//
// - ServiceQuotaExceededException
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
//
// - InternalServerException
// An unexpected error occurred during processing of a request.
//
// - AccessDeniedException
// You do not have sufficient access to perform this action.
//
// - ThrottlingException
// The request was denied due to request throttling.
//
// - ResourceNotFoundException
// The request references a resource that does not exist.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/controltower-2018-05-10/UpdateEnabledBaseline
func (c *ControlTower) UpdateEnabledBaseline(input *UpdateEnabledBaselineInput) (*UpdateEnabledBaselineOutput, error) {
req, out := c.UpdateEnabledBaselineRequest(input)
return out, req.Send()
}
// UpdateEnabledBaselineWithContext is the same as UpdateEnabledBaseline with the addition of
// the ability to pass a context and additional request options.
//
// See UpdateEnabledBaseline for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *ControlTower) UpdateEnabledBaselineWithContext(ctx aws.Context, input *UpdateEnabledBaselineInput, opts ...request.Option) (*UpdateEnabledBaselineOutput, error) {
req, out := c.UpdateEnabledBaselineRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
// You do not have sufficient access to perform this action.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s AccessDeniedException) GoString() string {
return s.String()
}
func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
return &AccessDeniedException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *AccessDeniedException) Code() string {
return "AccessDeniedException"
}
// Message returns the exception's message.
func (s *AccessDeniedException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) OrigErr() error {
return nil
}
func (s *AccessDeniedException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *AccessDeniedException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) RequestID() string {
return s.RespMetadata.RequestID
}
// An object of shape BaselineOperation, returning details about the specified
// Baseline operation ID.
type BaselineOperation struct {
_ struct{} `type:"structure"`
// The end time of the operation (if applicable), in ISO 8601 format.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
// The identifier of the specified operation.
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string"`
// An enumerated type (enum) with possible values of ENABLE_BASELINE, DISABLE_BASELINE,
// UPDATE_ENABLED_BASELINE, or RESET_ENABLED_BASELINE.
OperationType *string `locationName:"operationType" type:"string" enum:"BaselineOperationType"`
// The start time of the operation, in ISO 8601 format.
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
// An enumerated type (enum) with possible values of SUCCEEDED, FAILED, or IN_PROGRESS.
Status *string `locationName:"status" type:"string" enum:"BaselineOperationStatus"`
// A status message that gives more information about the operation's status,
// if applicable.
StatusMessage *string `locationName:"statusMessage" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s BaselineOperation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s BaselineOperation) GoString() string {
return s.String()
}
// SetEndTime sets the EndTime field's value.
func (s *BaselineOperation) SetEndTime(v time.Time) *BaselineOperation {
s.EndTime = &v
return s
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *BaselineOperation) SetOperationIdentifier(v string) *BaselineOperation {
s.OperationIdentifier = &v
return s
}
// SetOperationType sets the OperationType field's value.
func (s *BaselineOperation) SetOperationType(v string) *BaselineOperation {
s.OperationType = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *BaselineOperation) SetStartTime(v time.Time) *BaselineOperation {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *BaselineOperation) SetStatus(v string) *BaselineOperation {
s.Status = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *BaselineOperation) SetStatusMessage(v string) *BaselineOperation {
s.StatusMessage = &v
return s
}
// Returns a summary of information about a Baseline object.
type BaselineSummary struct {
_ struct{} `type:"structure"`
// The full ARN of a Baseline.
//
// Arn is a required field
Arn *string `locationName:"arn" type:"string" required:"true"`
// A summary description of a Baseline.
Description *string `locationName:"description" type:"string"`
// The human-readable name of a Baseline.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s BaselineSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s BaselineSummary) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *BaselineSummary) SetArn(v string) *BaselineSummary {
s.Arn = &v
return s
}
// SetDescription sets the Description field's value.
func (s *BaselineSummary) SetDescription(v string) *BaselineSummary {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *BaselineSummary) SetName(v string) *BaselineSummary {
s.Name = &v
return s
}
// Updating or deleting the resource can cause an inconsistent state.
type ConflictException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ConflictException) GoString() string {
return s.String()
}
func newErrorConflictException(v protocol.ResponseMetadata) error {
return &ConflictException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ConflictException) Code() string {
return "ConflictException"
}
// Message returns the exception's message.
func (s *ConflictException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) OrigErr() error {
return nil
}
func (s *ConflictException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ConflictException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ConflictException) RequestID() string {
return s.RespMetadata.RequestID
}
// An operation performed by the control.
type ControlOperation struct {
_ struct{} `type:"structure"`
// The controlIdentifier of the control for the operation.
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string"`
// The controlIdentifier of the enabled control.
EnabledControlIdentifier *string `locationName:"enabledControlIdentifier" min:"20" type:"string"`
// The time that the operation finished.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
// The identifier of the specified operation.
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string"`
// One of ENABLE_CONTROL or DISABLE_CONTROL.
OperationType *string `locationName:"operationType" type:"string" enum:"ControlOperationType"`
// The time that the operation began.
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
// One of IN_PROGRESS, SUCEEDED, or FAILED.
Status *string `locationName:"status" type:"string" enum:"ControlOperationStatus"`
// If the operation result is FAILED, this string contains a message explaining
// why the operation failed.
StatusMessage *string `locationName:"statusMessage" type:"string"`
// The target upon which the control operation is working.
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperation) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperation) GoString() string {
return s.String()
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *ControlOperation) SetControlIdentifier(v string) *ControlOperation {
s.ControlIdentifier = &v
return s
}
// SetEnabledControlIdentifier sets the EnabledControlIdentifier field's value.
func (s *ControlOperation) SetEnabledControlIdentifier(v string) *ControlOperation {
s.EnabledControlIdentifier = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *ControlOperation) SetEndTime(v time.Time) *ControlOperation {
s.EndTime = &v
return s
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *ControlOperation) SetOperationIdentifier(v string) *ControlOperation {
s.OperationIdentifier = &v
return s
}
// SetOperationType sets the OperationType field's value.
func (s *ControlOperation) SetOperationType(v string) *ControlOperation {
s.OperationType = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *ControlOperation) SetStartTime(v time.Time) *ControlOperation {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ControlOperation) SetStatus(v string) *ControlOperation {
s.Status = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *ControlOperation) SetStatusMessage(v string) *ControlOperation {
s.StatusMessage = &v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *ControlOperation) SetTargetIdentifier(v string) *ControlOperation {
s.TargetIdentifier = &v
return s
}
// A filter object that lets you call ListControlOperations with a specific
// filter.
type ControlOperationFilter struct {
_ struct{} `type:"structure"`
// The set of controlIdentifier returned by the filter.
ControlIdentifiers []*string `locationName:"controlIdentifiers" min:"1" type:"list"`
// The set of ControlOperation objects returned by the filter.
ControlOperationTypes []*string `locationName:"controlOperationTypes" min:"1" type:"list" enum:"ControlOperationType"`
// The set controlIdentifier of enabled controls selected by the filter.
EnabledControlIdentifiers []*string `locationName:"enabledControlIdentifiers" min:"1" type:"list"`
// Lists the status of control operations.
Statuses []*string `locationName:"statuses" min:"1" type:"list" enum:"ControlOperationStatus"`
// The set of targetIdentifier objects returned by the filter.
TargetIdentifiers []*string `locationName:"targetIdentifiers" min:"1" type:"list"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperationFilter) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperationFilter) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ControlOperationFilter) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ControlOperationFilter"}
if s.ControlIdentifiers != nil && len(s.ControlIdentifiers) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ControlIdentifiers", 1))
}
if s.ControlOperationTypes != nil && len(s.ControlOperationTypes) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ControlOperationTypes", 1))
}
if s.EnabledControlIdentifiers != nil && len(s.EnabledControlIdentifiers) < 1 {
invalidParams.Add(request.NewErrParamMinLen("EnabledControlIdentifiers", 1))
}
if s.Statuses != nil && len(s.Statuses) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Statuses", 1))
}
if s.TargetIdentifiers != nil && len(s.TargetIdentifiers) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifiers", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetControlIdentifiers sets the ControlIdentifiers field's value.
func (s *ControlOperationFilter) SetControlIdentifiers(v []*string) *ControlOperationFilter {
s.ControlIdentifiers = v
return s
}
// SetControlOperationTypes sets the ControlOperationTypes field's value.
func (s *ControlOperationFilter) SetControlOperationTypes(v []*string) *ControlOperationFilter {
s.ControlOperationTypes = v
return s
}
// SetEnabledControlIdentifiers sets the EnabledControlIdentifiers field's value.
func (s *ControlOperationFilter) SetEnabledControlIdentifiers(v []*string) *ControlOperationFilter {
s.EnabledControlIdentifiers = v
return s
}
// SetStatuses sets the Statuses field's value.
func (s *ControlOperationFilter) SetStatuses(v []*string) *ControlOperationFilter {
s.Statuses = v
return s
}
// SetTargetIdentifiers sets the TargetIdentifiers field's value.
func (s *ControlOperationFilter) SetTargetIdentifiers(v []*string) *ControlOperationFilter {
s.TargetIdentifiers = v
return s
}
// A summary of information about the specified control operation.
type ControlOperationSummary struct {
_ struct{} `type:"structure"`
// The controlIdentifier of a control.
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string"`
// The controlIdentifier of an enabled control.
EnabledControlIdentifier *string `locationName:"enabledControlIdentifier" min:"20" type:"string"`
// The time at which the control operation was completed.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
// The unique identifier of a control operation.
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string"`
// The type of operation.
OperationType *string `locationName:"operationType" type:"string" enum:"ControlOperationType"`
// The time at which a control operation began.
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
// The status of the specified control operation.
Status *string `locationName:"status" type:"string" enum:"ControlOperationStatus"`
// A speficic message displayed as part of the control status.
StatusMessage *string `locationName:"statusMessage" type:"string"`
// The unique identifier of the target of a control operation.
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperationSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ControlOperationSummary) GoString() string {
return s.String()
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *ControlOperationSummary) SetControlIdentifier(v string) *ControlOperationSummary {
s.ControlIdentifier = &v
return s
}
// SetEnabledControlIdentifier sets the EnabledControlIdentifier field's value.
func (s *ControlOperationSummary) SetEnabledControlIdentifier(v string) *ControlOperationSummary {
s.EnabledControlIdentifier = &v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *ControlOperationSummary) SetEndTime(v time.Time) *ControlOperationSummary {
s.EndTime = &v
return s
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *ControlOperationSummary) SetOperationIdentifier(v string) *ControlOperationSummary {
s.OperationIdentifier = &v
return s
}
// SetOperationType sets the OperationType field's value.
func (s *ControlOperationSummary) SetOperationType(v string) *ControlOperationSummary {
s.OperationType = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *ControlOperationSummary) SetStartTime(v time.Time) *ControlOperationSummary {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *ControlOperationSummary) SetStatus(v string) *ControlOperationSummary {
s.Status = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *ControlOperationSummary) SetStatusMessage(v string) *ControlOperationSummary {
s.StatusMessage = &v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *ControlOperationSummary) SetTargetIdentifier(v string) *ControlOperationSummary {
s.TargetIdentifier = &v
return s
}
type DeleteLandingZoneInput struct {
_ struct{} `type:"structure"`
// The unique identifier of the landing zone.
//
// LandingZoneIdentifier is a required field
LandingZoneIdentifier *string `locationName:"landingZoneIdentifier" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DeleteLandingZoneInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DeleteLandingZoneInput"}
if s.LandingZoneIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("LandingZoneIdentifier"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLandingZoneIdentifier sets the LandingZoneIdentifier field's value.
func (s *DeleteLandingZoneInput) SetLandingZoneIdentifier(v string) *DeleteLandingZoneInput {
s.LandingZoneIdentifier = &v
return s
}
type DeleteLandingZoneOutput struct {
_ struct{} `type:"structure"`
// >A unique identifier assigned to a DeleteLandingZone operation. You can use
// this identifier as an input parameter of GetLandingZoneOperation to check
// the operation's status.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DeleteLandingZoneOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *DeleteLandingZoneOutput) SetOperationIdentifier(v string) *DeleteLandingZoneOutput {
s.OperationIdentifier = &v
return s
}
type DisableBaselineInput struct {
_ struct{} `type:"structure"`
// Identifier of the EnabledBaseline resource to be deactivated, in ARN format.
//
// EnabledBaselineIdentifier is a required field
EnabledBaselineIdentifier *string `locationName:"enabledBaselineIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableBaselineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableBaselineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DisableBaselineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DisableBaselineInput"}
if s.EnabledBaselineIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("EnabledBaselineIdentifier"))
}
if s.EnabledBaselineIdentifier != nil && len(*s.EnabledBaselineIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("EnabledBaselineIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEnabledBaselineIdentifier sets the EnabledBaselineIdentifier field's value.
func (s *DisableBaselineInput) SetEnabledBaselineIdentifier(v string) *DisableBaselineInput {
s.EnabledBaselineIdentifier = &v
return s
}
type DisableBaselineOutput struct {
_ struct{} `type:"structure"`
// The ID (in UUID format) of the asynchronous DisableBaseline operation. This
// operationIdentifier is used to track status through calls to the GetBaselineOperation
// API.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableBaselineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableBaselineOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *DisableBaselineOutput) SetOperationIdentifier(v string) *DisableBaselineOutput {
s.OperationIdentifier = &v
return s
}
type DisableControlInput struct {
_ struct{} `type:"structure"`
// The ARN of the control. Only Strongly recommended and Elective controls are
// permitted, with the exception of the Region deny control. For information
// on how to find the controlIdentifier, see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// ControlIdentifier is a required field
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string" required:"true"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DisableControlInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DisableControlInput"}
if s.ControlIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("ControlIdentifier"))
}
if s.ControlIdentifier != nil && len(*s.ControlIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ControlIdentifier", 20))
}
if s.TargetIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("TargetIdentifier"))
}
if s.TargetIdentifier != nil && len(*s.TargetIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *DisableControlInput) SetControlIdentifier(v string) *DisableControlInput {
s.ControlIdentifier = &v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *DisableControlInput) SetTargetIdentifier(v string) *DisableControlInput {
s.TargetIdentifier = &v
return s
}
type DisableControlOutput struct {
_ struct{} `type:"structure"`
// The ID of the asynchronous operation, which is used to track status. The
// operation is available for 90 days.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DisableControlOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *DisableControlOutput) SetOperationIdentifier(v string) *DisableControlOutput {
s.OperationIdentifier = &v
return s
}
// The drift summary of the enabled control.
//
// Amazon Web Services Control Tower expects the enabled control configuration
// to include all supported and governed Regions. If the enabled control differs
// from the expected configuration, it is defined to be in a state of drift.
// You can repair this drift by resetting the enabled control.
type DriftStatusSummary struct {
_ struct{} `type:"structure"`
// The drift status of the enabled control.
//
// Valid values:
//
// * DRIFTED: The enabledControl deployed in this configuration doesn’t
// match the configuration that Amazon Web Services Control Tower expected.
//
// * IN_SYNC: The enabledControl deployed in this configuration matches the
// configuration that Amazon Web Services Control Tower expected.
//
// * NOT_CHECKING: Amazon Web Services Control Tower does not check drift
// for this enabled control. Drift is not supported for the control type.
//
// * UNKNOWN: Amazon Web Services Control Tower is not able to check the
// drift status for the enabled control.
DriftStatus *string `locationName:"driftStatus" type:"string" enum:"DriftStatus"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DriftStatusSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s DriftStatusSummary) GoString() string {
return s.String()
}
// SetDriftStatus sets the DriftStatus field's value.
func (s *DriftStatusSummary) SetDriftStatus(v string) *DriftStatusSummary {
s.DriftStatus = &v
return s
}
type EnableBaselineInput struct {
_ struct{} `type:"structure"`
// The ARN of the baseline to be enabled.
//
// BaselineIdentifier is a required field
BaselineIdentifier *string `locationName:"baselineIdentifier" min:"20" type:"string" required:"true"`
// The specific version to be enabled of the specified baseline.
//
// BaselineVersion is a required field
BaselineVersion *string `locationName:"baselineVersion" min:"1" type:"string" required:"true"`
// Tags associated with input to EnableBaseline.
Tags map[string]*string `locationName:"tags" type:"map"`
// The ARN of the target on which the baseline will be enabled. Only OUs are
// supported as targets.
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableBaselineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableBaselineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EnableBaselineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EnableBaselineInput"}
if s.BaselineIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("BaselineIdentifier"))
}
if s.BaselineIdentifier != nil && len(*s.BaselineIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("BaselineIdentifier", 20))
}
if s.BaselineVersion == nil {
invalidParams.Add(request.NewErrParamRequired("BaselineVersion"))
}
if s.BaselineVersion != nil && len(*s.BaselineVersion) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BaselineVersion", 1))
}
if s.TargetIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("TargetIdentifier"))
}
if s.TargetIdentifier != nil && len(*s.TargetIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBaselineIdentifier sets the BaselineIdentifier field's value.
func (s *EnableBaselineInput) SetBaselineIdentifier(v string) *EnableBaselineInput {
s.BaselineIdentifier = &v
return s
}
// SetBaselineVersion sets the BaselineVersion field's value.
func (s *EnableBaselineInput) SetBaselineVersion(v string) *EnableBaselineInput {
s.BaselineVersion = &v
return s
}
// SetTags sets the Tags field's value.
func (s *EnableBaselineInput) SetTags(v map[string]*string) *EnableBaselineInput {
s.Tags = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnableBaselineInput) SetTargetIdentifier(v string) *EnableBaselineInput {
s.TargetIdentifier = &v
return s
}
type EnableBaselineOutput struct {
_ struct{} `type:"structure"`
// The ARN of the EnabledBaseline resource.
//
// Arn is a required field
Arn *string `locationName:"arn" min:"20" type:"string" required:"true"`
// The ID (in UUID format) of the asynchronous EnableBaseline operation. This
// operationIdentifier is used to track status through calls to the GetBaselineOperation
// API.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableBaselineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableBaselineOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnableBaselineOutput) SetArn(v string) *EnableBaselineOutput {
s.Arn = &v
return s
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *EnableBaselineOutput) SetOperationIdentifier(v string) *EnableBaselineOutput {
s.OperationIdentifier = &v
return s
}
type EnableControlInput struct {
_ struct{} `type:"structure"`
// The ARN of the control. Only Strongly recommended and Elective controls are
// permitted, with the exception of the Region deny control. For information
// on how to find the controlIdentifier, see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// ControlIdentifier is a required field
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string" required:"true"`
// Tags to be applied to the EnabledControl resource.
Tags map[string]*string `locationName:"tags" type:"map"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EnableControlInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EnableControlInput"}
if s.ControlIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("ControlIdentifier"))
}
if s.ControlIdentifier != nil && len(*s.ControlIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ControlIdentifier", 20))
}
if s.TargetIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("TargetIdentifier"))
}
if s.TargetIdentifier != nil && len(*s.TargetIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *EnableControlInput) SetControlIdentifier(v string) *EnableControlInput {
s.ControlIdentifier = &v
return s
}
// SetTags sets the Tags field's value.
func (s *EnableControlInput) SetTags(v map[string]*string) *EnableControlInput {
s.Tags = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnableControlInput) SetTargetIdentifier(v string) *EnableControlInput {
s.TargetIdentifier = &v
return s
}
type EnableControlOutput struct {
_ struct{} `type:"structure"`
// The ARN of the EnabledControl resource.
Arn *string `locationName:"arn" min:"20" type:"string"`
// The ID of the asynchronous operation, which is used to track status. The
// operation is available for 90 days.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnableControlOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnableControlOutput) SetArn(v string) *EnableControlOutput {
s.Arn = &v
return s
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *EnableControlOutput) SetOperationIdentifier(v string) *EnableControlOutput {
s.OperationIdentifier = &v
return s
}
// Details of the EnabledBaseline resource.
type EnabledBaselineDetails struct {
_ struct{} `type:"structure"`
// The ARN of the EnabledBaseline resource.
//
// Arn is a required field
Arn *string `locationName:"arn" min:"20" type:"string" required:"true"`
// The specific Baseline enabled as part of the EnabledBaseline resource.
//
// BaselineIdentifier is a required field
BaselineIdentifier *string `locationName:"baselineIdentifier" type:"string" required:"true"`
// The enabled version of the Baseline.
BaselineVersion *string `locationName:"baselineVersion" type:"string"`
// The deployment summary of an EnabledControl or EnabledBaseline resource.
//
// StatusSummary is a required field
StatusSummary *EnablementStatusSummary `locationName:"statusSummary" type:"structure" required:"true"`
// The target on which to enable the Baseline.
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledBaselineDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledBaselineDetails) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnabledBaselineDetails) SetArn(v string) *EnabledBaselineDetails {
s.Arn = &v
return s
}
// SetBaselineIdentifier sets the BaselineIdentifier field's value.
func (s *EnabledBaselineDetails) SetBaselineIdentifier(v string) *EnabledBaselineDetails {
s.BaselineIdentifier = &v
return s
}
// SetBaselineVersion sets the BaselineVersion field's value.
func (s *EnabledBaselineDetails) SetBaselineVersion(v string) *EnabledBaselineDetails {
s.BaselineVersion = &v
return s
}
// SetStatusSummary sets the StatusSummary field's value.
func (s *EnabledBaselineDetails) SetStatusSummary(v *EnablementStatusSummary) *EnabledBaselineDetails {
s.StatusSummary = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnabledBaselineDetails) SetTargetIdentifier(v string) *EnabledBaselineDetails {
s.TargetIdentifier = &v
return s
}
// A filter applied on the ListEnabledBaseline operation. Allowed filters are
// baselineIdentifiers and targetIdentifiers. The filter can be applied for
// either, or both.
type EnabledBaselineFilter struct {
_ struct{} `type:"structure"`
// Identifiers for the Baseline objects returned as part of the filter operation.
BaselineIdentifiers []*string `locationName:"baselineIdentifiers" min:"1" type:"list"`
// Identifiers for the targets of the Baseline filter operation.
TargetIdentifiers []*string `locationName:"targetIdentifiers" min:"1" type:"list"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledBaselineFilter) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledBaselineFilter) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EnabledBaselineFilter) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EnabledBaselineFilter"}
if s.BaselineIdentifiers != nil && len(s.BaselineIdentifiers) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BaselineIdentifiers", 1))
}
if s.TargetIdentifiers != nil && len(s.TargetIdentifiers) < 1 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifiers", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBaselineIdentifiers sets the BaselineIdentifiers field's value.
func (s *EnabledBaselineFilter) SetBaselineIdentifiers(v []*string) *EnabledBaselineFilter {
s.BaselineIdentifiers = v
return s
}
// SetTargetIdentifiers sets the TargetIdentifiers field's value.
func (s *EnabledBaselineFilter) SetTargetIdentifiers(v []*string) *EnabledBaselineFilter {
s.TargetIdentifiers = v
return s
}
// Returns a summary of information about an EnabledBaseline object.
type EnabledBaselineSummary struct {
_ struct{} `type:"structure"`
// The ARN of the EnabledBaseline resource
//
// Arn is a required field
Arn *string `locationName:"arn" min:"20" type:"string" required:"true"`
// The specific baseline that is enabled as part of the EnabledBaseline resource.
//
// BaselineIdentifier is a required field
BaselineIdentifier *string `locationName:"baselineIdentifier" type:"string" required:"true"`
// The enabled version of the baseline.
BaselineVersion *string `locationName:"baselineVersion" type:"string"`
// The deployment summary of an EnabledControl or EnabledBaseline resource.
//
// StatusSummary is a required field
StatusSummary *EnablementStatusSummary `locationName:"statusSummary" type:"structure" required:"true"`
// The target upon which the baseline is enabled.
//
// TargetIdentifier is a required field
TargetIdentifier *string `locationName:"targetIdentifier" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledBaselineSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledBaselineSummary) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnabledBaselineSummary) SetArn(v string) *EnabledBaselineSummary {
s.Arn = &v
return s
}
// SetBaselineIdentifier sets the BaselineIdentifier field's value.
func (s *EnabledBaselineSummary) SetBaselineIdentifier(v string) *EnabledBaselineSummary {
s.BaselineIdentifier = &v
return s
}
// SetBaselineVersion sets the BaselineVersion field's value.
func (s *EnabledBaselineSummary) SetBaselineVersion(v string) *EnabledBaselineSummary {
s.BaselineVersion = &v
return s
}
// SetStatusSummary sets the StatusSummary field's value.
func (s *EnabledBaselineSummary) SetStatusSummary(v *EnablementStatusSummary) *EnabledBaselineSummary {
s.StatusSummary = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnabledBaselineSummary) SetTargetIdentifier(v string) *EnabledBaselineSummary {
s.TargetIdentifier = &v
return s
}
// Information about the enabled control.
type EnabledControlDetails struct {
_ struct{} `type:"structure"`
// The ARN of the enabled control.
Arn *string `locationName:"arn" min:"20" type:"string"`
// The control identifier of the enabled control. For information on how to
// find the controlIdentifier, see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string"`
// The drift status of the enabled control.
DriftStatusSummary *DriftStatusSummary `locationName:"driftStatusSummary" type:"structure"`
// The deployment summary of the enabled control.
StatusSummary *EnablementStatusSummary `locationName:"statusSummary" type:"structure"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string"`
// Target Amazon Web Services Regions for the enabled control.
TargetRegions []*Region `locationName:"targetRegions" type:"list"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlDetails) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnabledControlDetails) SetArn(v string) *EnabledControlDetails {
s.Arn = &v
return s
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *EnabledControlDetails) SetControlIdentifier(v string) *EnabledControlDetails {
s.ControlIdentifier = &v
return s
}
// SetDriftStatusSummary sets the DriftStatusSummary field's value.
func (s *EnabledControlDetails) SetDriftStatusSummary(v *DriftStatusSummary) *EnabledControlDetails {
s.DriftStatusSummary = v
return s
}
// SetStatusSummary sets the StatusSummary field's value.
func (s *EnabledControlDetails) SetStatusSummary(v *EnablementStatusSummary) *EnabledControlDetails {
s.StatusSummary = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnabledControlDetails) SetTargetIdentifier(v string) *EnabledControlDetails {
s.TargetIdentifier = &v
return s
}
// SetTargetRegions sets the TargetRegions field's value.
func (s *EnabledControlDetails) SetTargetRegions(v []*Region) *EnabledControlDetails {
s.TargetRegions = v
return s
}
// A structure that returns a set of control identifiers, the control status
// for each control in the set, and the drift status for each control in the
// set.
type EnabledControlFilter struct {
_ struct{} `type:"structure"`
// The set of controlIdentifier returned by the filter.
ControlIdentifiers []*string `locationName:"controlIdentifiers" min:"1" type:"list"`
// A list of DriftStatus items.
DriftStatuses []*string `locationName:"driftStatuses" min:"1" type:"list" enum:"DriftStatus"`
// A list of EnablementStatus items.
Statuses []*string `locationName:"statuses" min:"1" type:"list" enum:"EnablementStatus"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlFilter) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlFilter) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *EnabledControlFilter) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "EnabledControlFilter"}
if s.ControlIdentifiers != nil && len(s.ControlIdentifiers) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ControlIdentifiers", 1))
}
if s.DriftStatuses != nil && len(s.DriftStatuses) < 1 {
invalidParams.Add(request.NewErrParamMinLen("DriftStatuses", 1))
}
if s.Statuses != nil && len(s.Statuses) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Statuses", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetControlIdentifiers sets the ControlIdentifiers field's value.
func (s *EnabledControlFilter) SetControlIdentifiers(v []*string) *EnabledControlFilter {
s.ControlIdentifiers = v
return s
}
// SetDriftStatuses sets the DriftStatuses field's value.
func (s *EnabledControlFilter) SetDriftStatuses(v []*string) *EnabledControlFilter {
s.DriftStatuses = v
return s
}
// SetStatuses sets the Statuses field's value.
func (s *EnabledControlFilter) SetStatuses(v []*string) *EnabledControlFilter {
s.Statuses = v
return s
}
// Returns a summary of information about an enabled control.
type EnabledControlSummary struct {
_ struct{} `type:"structure"`
// The ARN of the enabled control.
Arn *string `locationName:"arn" min:"20" type:"string"`
// The controlIdentifier of the enabled control.
ControlIdentifier *string `locationName:"controlIdentifier" min:"20" type:"string"`
// The drift status of the enabled control.
DriftStatusSummary *DriftStatusSummary `locationName:"driftStatusSummary" type:"structure"`
// A short description of the status of the enabled control.
StatusSummary *EnablementStatusSummary `locationName:"statusSummary" type:"structure"`
// The ARN of the organizational unit.
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnabledControlSummary) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *EnabledControlSummary) SetArn(v string) *EnabledControlSummary {
s.Arn = &v
return s
}
// SetControlIdentifier sets the ControlIdentifier field's value.
func (s *EnabledControlSummary) SetControlIdentifier(v string) *EnabledControlSummary {
s.ControlIdentifier = &v
return s
}
// SetDriftStatusSummary sets the DriftStatusSummary field's value.
func (s *EnabledControlSummary) SetDriftStatusSummary(v *DriftStatusSummary) *EnabledControlSummary {
s.DriftStatusSummary = v
return s
}
// SetStatusSummary sets the StatusSummary field's value.
func (s *EnabledControlSummary) SetStatusSummary(v *EnablementStatusSummary) *EnabledControlSummary {
s.StatusSummary = v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *EnabledControlSummary) SetTargetIdentifier(v string) *EnabledControlSummary {
s.TargetIdentifier = &v
return s
}
// The deployment summary of an EnabledControl or EnabledBaseline resource.
type EnablementStatusSummary struct {
_ struct{} `type:"structure"`
// The last operation identifier for the enabled resource.
LastOperationIdentifier *string `locationName:"lastOperationIdentifier" min:"36" type:"string"`
// The deployment status of the enabled resource.
//
// Valid values:
//
// * SUCCEEDED: The EnabledControl or EnabledBaseline configuration was deployed
// successfully.
//
// * UNDER_CHANGE: The EnabledControl or EnabledBaseline configuration is
// changing.
//
// * FAILED: The EnabledControl or EnabledBaseline configuration failed to
// deploy.
Status *string `locationName:"status" type:"string" enum:"EnablementStatus"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnablementStatusSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s EnablementStatusSummary) GoString() string {
return s.String()
}
// SetLastOperationIdentifier sets the LastOperationIdentifier field's value.
func (s *EnablementStatusSummary) SetLastOperationIdentifier(v string) *EnablementStatusSummary {
s.LastOperationIdentifier = &v
return s
}
// SetStatus sets the Status field's value.
func (s *EnablementStatusSummary) SetStatus(v string) *EnablementStatusSummary {
s.Status = &v
return s
}
type GetBaselineInput struct {
_ struct{} `type:"structure"`
// The ARN of the Baseline resource to be retrieved.
//
// BaselineIdentifier is a required field
BaselineIdentifier *string `locationName:"baselineIdentifier" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBaselineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBaselineInput"}
if s.BaselineIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("BaselineIdentifier"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBaselineIdentifier sets the BaselineIdentifier field's value.
func (s *GetBaselineInput) SetBaselineIdentifier(v string) *GetBaselineInput {
s.BaselineIdentifier = &v
return s
}
type GetBaselineOperationInput struct {
_ struct{} `type:"structure"`
// The operation ID returned from mutating asynchronous APIs (Enable, Disable,
// Update, Reset).
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineOperationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineOperationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetBaselineOperationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetBaselineOperationInput"}
if s.OperationIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("OperationIdentifier"))
}
if s.OperationIdentifier != nil && len(*s.OperationIdentifier) < 36 {
invalidParams.Add(request.NewErrParamMinLen("OperationIdentifier", 36))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *GetBaselineOperationInput) SetOperationIdentifier(v string) *GetBaselineOperationInput {
s.OperationIdentifier = &v
return s
}
type GetBaselineOperationOutput struct {
_ struct{} `type:"structure"`
// A baselineOperation object that shows information about the specified operation
// ID.
//
// BaselineOperation is a required field
BaselineOperation *BaselineOperation `locationName:"baselineOperation" type:"structure" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineOperationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineOperationOutput) GoString() string {
return s.String()
}
// SetBaselineOperation sets the BaselineOperation field's value.
func (s *GetBaselineOperationOutput) SetBaselineOperation(v *BaselineOperation) *GetBaselineOperationOutput {
s.BaselineOperation = v
return s
}
type GetBaselineOutput struct {
_ struct{} `type:"structure"`
// The baseline ARN.
//
// Arn is a required field
Arn *string `locationName:"arn" type:"string" required:"true"`
// A description of the baseline.
Description *string `locationName:"description" type:"string"`
// A user-friendly name for the baseline.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetBaselineOutput) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *GetBaselineOutput) SetArn(v string) *GetBaselineOutput {
s.Arn = &v
return s
}
// SetDescription sets the Description field's value.
func (s *GetBaselineOutput) SetDescription(v string) *GetBaselineOutput {
s.Description = &v
return s
}
// SetName sets the Name field's value.
func (s *GetBaselineOutput) SetName(v string) *GetBaselineOutput {
s.Name = &v
return s
}
type GetControlOperationInput struct {
_ struct{} `type:"structure"`
// The ID of the asynchronous operation, which is used to track status. The
// operation is available for 90 days.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetControlOperationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetControlOperationInput"}
if s.OperationIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("OperationIdentifier"))
}
if s.OperationIdentifier != nil && len(*s.OperationIdentifier) < 36 {
invalidParams.Add(request.NewErrParamMinLen("OperationIdentifier", 36))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *GetControlOperationInput) SetOperationIdentifier(v string) *GetControlOperationInput {
s.OperationIdentifier = &v
return s
}
type GetControlOperationOutput struct {
_ struct{} `type:"structure"`
// An operation performed by the control.
//
// ControlOperation is a required field
ControlOperation *ControlOperation `locationName:"controlOperation" type:"structure" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetControlOperationOutput) GoString() string {
return s.String()
}
// SetControlOperation sets the ControlOperation field's value.
func (s *GetControlOperationOutput) SetControlOperation(v *ControlOperation) *GetControlOperationOutput {
s.ControlOperation = v
return s
}
type GetEnabledBaselineInput struct {
_ struct{} `type:"structure"`
// Identifier of the EnabledBaseline resource to be retrieved, in ARN format.
//
// EnabledBaselineIdentifier is a required field
EnabledBaselineIdentifier *string `locationName:"enabledBaselineIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledBaselineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledBaselineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetEnabledBaselineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetEnabledBaselineInput"}
if s.EnabledBaselineIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("EnabledBaselineIdentifier"))
}
if s.EnabledBaselineIdentifier != nil && len(*s.EnabledBaselineIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("EnabledBaselineIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEnabledBaselineIdentifier sets the EnabledBaselineIdentifier field's value.
func (s *GetEnabledBaselineInput) SetEnabledBaselineIdentifier(v string) *GetEnabledBaselineInput {
s.EnabledBaselineIdentifier = &v
return s
}
type GetEnabledBaselineOutput struct {
_ struct{} `type:"structure"`
// Details of the EnabledBaseline resource.
EnabledBaselineDetails *EnabledBaselineDetails `locationName:"enabledBaselineDetails" type:"structure"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledBaselineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledBaselineOutput) GoString() string {
return s.String()
}
// SetEnabledBaselineDetails sets the EnabledBaselineDetails field's value.
func (s *GetEnabledBaselineOutput) SetEnabledBaselineDetails(v *EnabledBaselineDetails) *GetEnabledBaselineOutput {
s.EnabledBaselineDetails = v
return s
}
type GetEnabledControlInput struct {
_ struct{} `type:"structure"`
// The controlIdentifier of the enabled control.
//
// EnabledControlIdentifier is a required field
EnabledControlIdentifier *string `locationName:"enabledControlIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetEnabledControlInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetEnabledControlInput"}
if s.EnabledControlIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("EnabledControlIdentifier"))
}
if s.EnabledControlIdentifier != nil && len(*s.EnabledControlIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("EnabledControlIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEnabledControlIdentifier sets the EnabledControlIdentifier field's value.
func (s *GetEnabledControlInput) SetEnabledControlIdentifier(v string) *GetEnabledControlInput {
s.EnabledControlIdentifier = &v
return s
}
type GetEnabledControlOutput struct {
_ struct{} `type:"structure"`
// Information about the enabled control.
//
// EnabledControlDetails is a required field
EnabledControlDetails *EnabledControlDetails `locationName:"enabledControlDetails" type:"structure" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetEnabledControlOutput) GoString() string {
return s.String()
}
// SetEnabledControlDetails sets the EnabledControlDetails field's value.
func (s *GetEnabledControlOutput) SetEnabledControlDetails(v *EnabledControlDetails) *GetEnabledControlOutput {
s.EnabledControlDetails = v
return s
}
type GetLandingZoneOperationInput struct {
_ struct{} `type:"structure"`
// A unique identifier assigned to a landing zone operation.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *GetLandingZoneOperationInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "GetLandingZoneOperationInput"}
if s.OperationIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("OperationIdentifier"))
}
if s.OperationIdentifier != nil && len(*s.OperationIdentifier) < 36 {
invalidParams.Add(request.NewErrParamMinLen("OperationIdentifier", 36))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *GetLandingZoneOperationInput) SetOperationIdentifier(v string) *GetLandingZoneOperationInput {
s.OperationIdentifier = &v
return s
}
type GetLandingZoneOperationOutput struct {
_ struct{} `type:"structure"`
// Details about a landing zone operation.
//
// OperationDetails is a required field
OperationDetails *LandingZoneOperationDetail `locationName:"operationDetails" type:"structure" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s GetLandingZoneOperationOutput) GoString() string {
return s.String()
}
// SetOperationDetails sets the OperationDetails field's value.
func (s *GetLandingZoneOperationOutput) SetOperationDetails(v *LandingZoneOperationDetail) *GetLandingZoneOperationOutput {
s.OperationDetails = v
return s
}
// An unexpected error occurred during processing of a request.
type InternalServerException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s InternalServerException) GoString() string {
return s.String()
}
func newErrorInternalServerException(v protocol.ResponseMetadata) error {
return &InternalServerException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *InternalServerException) Code() string {
return "InternalServerException"
}
// Message returns the exception's message.
func (s *InternalServerException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) OrigErr() error {
return nil
}
func (s *InternalServerException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *InternalServerException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *InternalServerException) RequestID() string {
return s.RespMetadata.RequestID
}
// Information about a landing zone operation.
type LandingZoneOperationDetail struct {
_ struct{} `type:"structure"`
// The landing zone operation end time.
EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`
// The operationIdentifier of the landing zone operation.
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string"`
// The landing zone operation type.
//
// Valid values:
//
// * DELETE: The DeleteLandingZone operation.
//
// * CREATE: The CreateLandingZone operation.
//
// * UPDATE: The UpdateLandingZone operation.
//
// * RESET: The ResetLandingZone operation.
OperationType *string `locationName:"operationType" type:"string" enum:"LandingZoneOperationType"`
// The landing zone operation start time.
StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
// Valid values:
//
// * SUCCEEDED: The landing zone operation succeeded.
//
// * IN_PROGRESS: The landing zone operation is in progress.
//
// * FAILED: The landing zone operation failed.
Status *string `locationName:"status" type:"string" enum:"LandingZoneOperationStatus"`
// If the operation result is FAILED, this string contains a message explaining
// why the operation failed.
StatusMessage *string `locationName:"statusMessage" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationDetail) GoString() string {
return s.String()
}
// SetEndTime sets the EndTime field's value.
func (s *LandingZoneOperationDetail) SetEndTime(v time.Time) *LandingZoneOperationDetail {
s.EndTime = &v
return s
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *LandingZoneOperationDetail) SetOperationIdentifier(v string) *LandingZoneOperationDetail {
s.OperationIdentifier = &v
return s
}
// SetOperationType sets the OperationType field's value.
func (s *LandingZoneOperationDetail) SetOperationType(v string) *LandingZoneOperationDetail {
s.OperationType = &v
return s
}
// SetStartTime sets the StartTime field's value.
func (s *LandingZoneOperationDetail) SetStartTime(v time.Time) *LandingZoneOperationDetail {
s.StartTime = &v
return s
}
// SetStatus sets the Status field's value.
func (s *LandingZoneOperationDetail) SetStatus(v string) *LandingZoneOperationDetail {
s.Status = &v
return s
}
// SetStatusMessage sets the StatusMessage field's value.
func (s *LandingZoneOperationDetail) SetStatusMessage(v string) *LandingZoneOperationDetail {
s.StatusMessage = &v
return s
}
// A filter object that lets you call ListLandingZoneOperations with a specific
// filter.
type LandingZoneOperationFilter struct {
_ struct{} `type:"structure"`
// The statuses of the set of landing zone operations selected by the filter.
Statuses []*string `locationName:"statuses" min:"1" type:"list" enum:"LandingZoneOperationStatus"`
// The set of landing zone operation types selected by the filter.
Types []*string `locationName:"types" min:"1" type:"list" enum:"LandingZoneOperationType"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationFilter) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationFilter) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *LandingZoneOperationFilter) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "LandingZoneOperationFilter"}
if s.Statuses != nil && len(s.Statuses) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Statuses", 1))
}
if s.Types != nil && len(s.Types) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Types", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetStatuses sets the Statuses field's value.
func (s *LandingZoneOperationFilter) SetStatuses(v []*string) *LandingZoneOperationFilter {
s.Statuses = v
return s
}
// SetTypes sets the Types field's value.
func (s *LandingZoneOperationFilter) SetTypes(v []*string) *LandingZoneOperationFilter {
s.Types = v
return s
}
// Returns a summary of information about a landing zone operation.
type LandingZoneOperationSummary struct {
_ struct{} `type:"structure"`
// The operationIdentifier of the landing zone operation.
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string"`
// The type of the landing zone operation.
OperationType *string `locationName:"operationType" type:"string" enum:"LandingZoneOperationType"`
// The status of the landing zone operation.
Status *string `locationName:"status" type:"string" enum:"LandingZoneOperationStatus"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneOperationSummary) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *LandingZoneOperationSummary) SetOperationIdentifier(v string) *LandingZoneOperationSummary {
s.OperationIdentifier = &v
return s
}
// SetOperationType sets the OperationType field's value.
func (s *LandingZoneOperationSummary) SetOperationType(v string) *LandingZoneOperationSummary {
s.OperationType = &v
return s
}
// SetStatus sets the Status field's value.
func (s *LandingZoneOperationSummary) SetStatus(v string) *LandingZoneOperationSummary {
s.Status = &v
return s
}
// Returns a summary of information about a landing zone.
type LandingZoneSummary struct {
_ struct{} `type:"structure"`
// The ARN of the landing zone.
Arn *string `locationName:"arn" min:"20" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s LandingZoneSummary) GoString() string {
return s.String()
}
// SetArn sets the Arn field's value.
func (s *LandingZoneSummary) SetArn(v string) *LandingZoneSummary {
s.Arn = &v
return s
}
type ListBaselinesInput struct {
_ struct{} `type:"structure"`
// The maximum number of results to be shown.
MaxResults *int64 `locationName:"maxResults" min:"4" type:"integer"`
// A pagination token.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListBaselinesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListBaselinesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListBaselinesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListBaselinesInput"}
if s.MaxResults != nil && *s.MaxResults < 4 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 4))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListBaselinesInput) SetMaxResults(v int64) *ListBaselinesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBaselinesInput) SetNextToken(v string) *ListBaselinesInput {
s.NextToken = &v
return s
}
type ListBaselinesOutput struct {
_ struct{} `type:"structure"`
// A list of Baseline object details.
//
// Baselines is a required field
Baselines []*BaselineSummary `locationName:"baselines" type:"list" required:"true"`
// A pagination token.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListBaselinesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListBaselinesOutput) GoString() string {
return s.String()
}
// SetBaselines sets the Baselines field's value.
func (s *ListBaselinesOutput) SetBaselines(v []*BaselineSummary) *ListBaselinesOutput {
s.Baselines = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListBaselinesOutput) SetNextToken(v string) *ListBaselinesOutput {
s.NextToken = &v
return s
}
type ListControlOperationsInput struct {
_ struct{} `type:"structure"`
// An input filter for the ListControlOperations API that lets you select the
// types of control operations to view.
Filter *ControlOperationFilter `locationName:"filter" type:"structure"`
// The maximum number of results to be shown.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// A pagination token.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListControlOperationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListControlOperationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListControlOperationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListControlOperationsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.Filter != nil {
if err := s.Filter.Validate(); err != nil {
invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFilter sets the Filter field's value.
func (s *ListControlOperationsInput) SetFilter(v *ControlOperationFilter) *ListControlOperationsInput {
s.Filter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListControlOperationsInput) SetMaxResults(v int64) *ListControlOperationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListControlOperationsInput) SetNextToken(v string) *ListControlOperationsInput {
s.NextToken = &v
return s
}
type ListControlOperationsOutput struct {
_ struct{} `type:"structure"`
// Returns a list of output from control operations.
//
// ControlOperations is a required field
ControlOperations []*ControlOperationSummary `locationName:"controlOperations" type:"list" required:"true"`
// A pagination token.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListControlOperationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListControlOperationsOutput) GoString() string {
return s.String()
}
// SetControlOperations sets the ControlOperations field's value.
func (s *ListControlOperationsOutput) SetControlOperations(v []*ControlOperationSummary) *ListControlOperationsOutput {
s.ControlOperations = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListControlOperationsOutput) SetNextToken(v string) *ListControlOperationsOutput {
s.NextToken = &v
return s
}
type ListEnabledBaselinesInput struct {
_ struct{} `type:"structure"`
// A filter applied on the ListEnabledBaseline operation. Allowed filters are
// baselineIdentifiers and targetIdentifiers. The filter can be applied for
// either, or both.
Filter *EnabledBaselineFilter `locationName:"filter" type:"structure"`
// The maximum number of results to be shown.
MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
// A pagination token.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledBaselinesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledBaselinesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListEnabledBaselinesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListEnabledBaselinesInput"}
if s.MaxResults != nil && *s.MaxResults < 5 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5))
}
if s.Filter != nil {
if err := s.Filter.Validate(); err != nil {
invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFilter sets the Filter field's value.
func (s *ListEnabledBaselinesInput) SetFilter(v *EnabledBaselineFilter) *ListEnabledBaselinesInput {
s.Filter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListEnabledBaselinesInput) SetMaxResults(v int64) *ListEnabledBaselinesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnabledBaselinesInput) SetNextToken(v string) *ListEnabledBaselinesInput {
s.NextToken = &v
return s
}
type ListEnabledBaselinesOutput struct {
_ struct{} `type:"structure"`
// Retuens a list of summaries of EnabledBaseline resources.
//
// EnabledBaselines is a required field
EnabledBaselines []*EnabledBaselineSummary `locationName:"enabledBaselines" type:"list" required:"true"`
// A pagination token.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledBaselinesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledBaselinesOutput) GoString() string {
return s.String()
}
// SetEnabledBaselines sets the EnabledBaselines field's value.
func (s *ListEnabledBaselinesOutput) SetEnabledBaselines(v []*EnabledBaselineSummary) *ListEnabledBaselinesOutput {
s.EnabledBaselines = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnabledBaselinesOutput) SetNextToken(v string) *ListEnabledBaselinesOutput {
s.NextToken = &v
return s
}
type ListEnabledControlsInput struct {
_ struct{} `type:"structure"`
// An input filter for the ListEnabledControls API that lets you select the
// types of control operations to view.
Filter *EnabledControlFilter `locationName:"filter" type:"structure"`
// How many results to return per API call.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The token to continue the list from a previous API call with the same parameters.
NextToken *string `locationName:"nextToken" type:"string"`
// The ARN of the organizational unit. For information on how to find the targetIdentifier,
// see the overview page (https://docs.aws.amazon.com/controltower/latest/APIReference/Welcome.html).
TargetIdentifier *string `locationName:"targetIdentifier" min:"20" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListEnabledControlsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListEnabledControlsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.TargetIdentifier != nil && len(*s.TargetIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("TargetIdentifier", 20))
}
if s.Filter != nil {
if err := s.Filter.Validate(); err != nil {
invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFilter sets the Filter field's value.
func (s *ListEnabledControlsInput) SetFilter(v *EnabledControlFilter) *ListEnabledControlsInput {
s.Filter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListEnabledControlsInput) SetMaxResults(v int64) *ListEnabledControlsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnabledControlsInput) SetNextToken(v string) *ListEnabledControlsInput {
s.NextToken = &v
return s
}
// SetTargetIdentifier sets the TargetIdentifier field's value.
func (s *ListEnabledControlsInput) SetTargetIdentifier(v string) *ListEnabledControlsInput {
s.TargetIdentifier = &v
return s
}
type ListEnabledControlsOutput struct {
_ struct{} `type:"structure"`
// Lists the controls enabled by Amazon Web Services Control Tower on the specified
// organizational unit and the accounts it contains.
//
// EnabledControls is a required field
EnabledControls []*EnabledControlSummary `locationName:"enabledControls" type:"list" required:"true"`
// Retrieves the next page of results. If the string is empty, the response
// is the end of the results.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListEnabledControlsOutput) GoString() string {
return s.String()
}
// SetEnabledControls sets the EnabledControls field's value.
func (s *ListEnabledControlsOutput) SetEnabledControls(v []*EnabledControlSummary) *ListEnabledControlsOutput {
s.EnabledControls = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListEnabledControlsOutput) SetNextToken(v string) *ListEnabledControlsOutput {
s.NextToken = &v
return s
}
type ListLandingZoneOperationsInput struct {
_ struct{} `type:"structure"`
// An input filter for the ListLandingZoneOperations API that lets you select
// the types of landing zone operations to view.
Filter *LandingZoneOperationFilter `locationName:"filter" type:"structure"`
// How many results to return per API call.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The token to continue the list from a previous API call with the same parameters.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZoneOperationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZoneOperationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListLandingZoneOperationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListLandingZoneOperationsInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if s.Filter != nil {
if err := s.Filter.Validate(); err != nil {
invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetFilter sets the Filter field's value.
func (s *ListLandingZoneOperationsInput) SetFilter(v *LandingZoneOperationFilter) *ListLandingZoneOperationsInput {
s.Filter = v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListLandingZoneOperationsInput) SetMaxResults(v int64) *ListLandingZoneOperationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListLandingZoneOperationsInput) SetNextToken(v string) *ListLandingZoneOperationsInput {
s.NextToken = &v
return s
}
type ListLandingZoneOperationsOutput struct {
_ struct{} `type:"structure"`
// Lists landing zone operations.
//
// LandingZoneOperations is a required field
LandingZoneOperations []*LandingZoneOperationSummary `locationName:"landingZoneOperations" type:"list" required:"true"`
// Retrieves the next page of results. If the string is empty, the response
// is the end of the results.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZoneOperationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZoneOperationsOutput) GoString() string {
return s.String()
}
// SetLandingZoneOperations sets the LandingZoneOperations field's value.
func (s *ListLandingZoneOperationsOutput) SetLandingZoneOperations(v []*LandingZoneOperationSummary) *ListLandingZoneOperationsOutput {
s.LandingZoneOperations = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListLandingZoneOperationsOutput) SetNextToken(v string) *ListLandingZoneOperationsOutput {
s.NextToken = &v
return s
}
type ListLandingZonesInput struct {
_ struct{} `type:"structure"`
// The maximum number of returned landing zone ARNs, which is one.
MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
// The token to continue the list from a previous API call with the same parameters.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListLandingZonesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListLandingZonesInput"}
if s.MaxResults != nil && *s.MaxResults < 1 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetMaxResults sets the MaxResults field's value.
func (s *ListLandingZonesInput) SetMaxResults(v int64) *ListLandingZonesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListLandingZonesInput) SetNextToken(v string) *ListLandingZonesInput {
s.NextToken = &v
return s
}
type ListLandingZonesOutput struct {
_ struct{} `type:"structure"`
// The ARN of the landing zone.
//
// LandingZones is a required field
LandingZones []*LandingZoneSummary `locationName:"landingZones" type:"list" required:"true"`
// Retrieves the next page of results. If the string is empty, the response
// is the end of the results.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListLandingZonesOutput) GoString() string {
return s.String()
}
// SetLandingZones sets the LandingZones field's value.
func (s *ListLandingZonesOutput) SetLandingZones(v []*LandingZoneSummary) *ListLandingZonesOutput {
s.LandingZones = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *ListLandingZonesOutput) SetNextToken(v string) *ListLandingZonesOutput {
s.NextToken = &v
return s
}
type ListTagsForResourceInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// The ARN of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ListTagsForResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
s.ResourceArn = &v
return s
}
type ListTagsForResourceOutput struct {
_ struct{} `type:"structure"`
// A list of tags, as key:value strings.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ListTagsForResourceOutput) GoString() string {
return s.String()
}
// SetTags sets the Tags field's value.
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
s.Tags = v
return s
}
// An Amazon Web Services Region in which Amazon Web Services Control Tower
// expects to find the control deployed.
//
// The expected Regions are based on the Regions that are governed by the landing
// zone. In certain cases, a control is not actually enabled in the Region as
// expected, such as during drift, or mixed governance (https://docs.aws.amazon.com/controltower/latest/userguide/region-how.html#mixed-governance).
type Region struct {
_ struct{} `type:"structure"`
// The Amazon Web Services Region name.
Name *string `locationName:"name" min:"1" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Region) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s Region) GoString() string {
return s.String()
}
// SetName sets the Name field's value.
func (s *Region) SetName(v string) *Region {
s.Name = &v
return s
}
type ResetEnabledBaselineInput struct {
_ struct{} `type:"structure"`
// Specifies the ID of the EnabledBaseline resource to be re-enabled, in ARN
// format.
//
// EnabledBaselineIdentifier is a required field
EnabledBaselineIdentifier *string `locationName:"enabledBaselineIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetEnabledBaselineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetEnabledBaselineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ResetEnabledBaselineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ResetEnabledBaselineInput"}
if s.EnabledBaselineIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("EnabledBaselineIdentifier"))
}
if s.EnabledBaselineIdentifier != nil && len(*s.EnabledBaselineIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("EnabledBaselineIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetEnabledBaselineIdentifier sets the EnabledBaselineIdentifier field's value.
func (s *ResetEnabledBaselineInput) SetEnabledBaselineIdentifier(v string) *ResetEnabledBaselineInput {
s.EnabledBaselineIdentifier = &v
return s
}
type ResetEnabledBaselineOutput struct {
_ struct{} `type:"structure"`
// The ID (in UUID format) of the asynchronous ResetEnabledBaseline operation.
// This operationIdentifier is used to track status through calls to the GetBaselineOperation
// API.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetEnabledBaselineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetEnabledBaselineOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *ResetEnabledBaselineOutput) SetOperationIdentifier(v string) *ResetEnabledBaselineOutput {
s.OperationIdentifier = &v
return s
}
type ResetLandingZoneInput struct {
_ struct{} `type:"structure"`
// The unique identifier of the landing zone.
//
// LandingZoneIdentifier is a required field
LandingZoneIdentifier *string `locationName:"landingZoneIdentifier" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ResetLandingZoneInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "ResetLandingZoneInput"}
if s.LandingZoneIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("LandingZoneIdentifier"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLandingZoneIdentifier sets the LandingZoneIdentifier field's value.
func (s *ResetLandingZoneInput) SetLandingZoneIdentifier(v string) *ResetLandingZoneInput {
s.LandingZoneIdentifier = &v
return s
}
type ResetLandingZoneOutput struct {
_ struct{} `type:"structure"`
// A unique identifier assigned to a ResetLandingZone operation. You can use
// this identifier as an input parameter of GetLandingZoneOperation to check
// the operation's status.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResetLandingZoneOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *ResetLandingZoneOutput) SetOperationIdentifier(v string) *ResetLandingZoneOutput {
s.OperationIdentifier = &v
return s
}
// The request references a resource that does not exist.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ResourceNotFoundException) GoString() string {
return s.String()
}
func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
return &ResourceNotFoundException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ResourceNotFoundException) Code() string {
return "ResourceNotFoundException"
}
// Message returns the exception's message.
func (s *ResourceNotFoundException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) OrigErr() error {
return nil
}
func (s *ResourceNotFoundException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ResourceNotFoundException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
// The request would cause a service quota to be exceeded. The limit is 10 concurrent
// operations.
type ServiceQuotaExceededException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceQuotaExceededException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ServiceQuotaExceededException) GoString() string {
return s.String()
}
func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
return &ServiceQuotaExceededException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ServiceQuotaExceededException) Code() string {
return "ServiceQuotaExceededException"
}
// Message returns the exception's message.
func (s *ServiceQuotaExceededException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) OrigErr() error {
return nil
}
func (s *ServiceQuotaExceededException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ServiceQuotaExceededException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
type TagResourceInput struct {
_ struct{} `type:"structure"`
// The ARN of the resource to be tagged.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
// Tags to be applied to the resource.
//
// Tags is a required field
Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *TagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if s.Tags == nil {
invalidParams.Add(request.NewErrParamRequired("Tags"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
s.ResourceArn = &v
return s
}
// SetTags sets the Tags field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
s.Tags = v
return s
}
type TagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s TagResourceOutput) GoString() string {
return s.String()
}
// The request was denied due to request throttling.
type ThrottlingException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
// The ID of the service quota that was exceeded.
QuotaCode *string `locationName:"quotaCode" type:"string"`
// The number of seconds the caller should wait before retrying.
RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"`
// The ID of the service that is associated with the error.
ServiceCode *string `locationName:"serviceCode" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ThrottlingException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ThrottlingException) GoString() string {
return s.String()
}
func newErrorThrottlingException(v protocol.ResponseMetadata) error {
return &ThrottlingException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ThrottlingException) Code() string {
return "ThrottlingException"
}
// Message returns the exception's message.
func (s *ThrottlingException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) OrigErr() error {
return nil
}
func (s *ThrottlingException) Error() string {
return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ThrottlingException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
type UntagResourceInput struct {
_ struct{} `type:"structure" nopayload:"true"`
// The ARN of the resource.
//
// ResourceArn is a required field
ResourceArn *string `location:"uri" locationName:"resourceArn" min:"20" type:"string" required:"true"`
// Tag keys to be removed from the resource.
//
// TagKeys is a required field
TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UntagResourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
if s.ResourceArn == nil {
invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
}
if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
}
if s.TagKeys == nil {
invalidParams.Add(request.NewErrParamRequired("TagKeys"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
s.ResourceArn = &v
return s
}
// SetTagKeys sets the TagKeys field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
s.TagKeys = v
return s
}
type UntagResourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UntagResourceOutput) GoString() string {
return s.String()
}
type UpdateEnabledBaselineInput struct {
_ struct{} `type:"structure"`
// Specifies the new Baseline version, to which the EnabledBaseline should be
// updated.
//
// BaselineVersion is a required field
BaselineVersion *string `locationName:"baselineVersion" min:"1" type:"string" required:"true"`
// Specifies the EnabledBaseline resource to be updated.
//
// EnabledBaselineIdentifier is a required field
EnabledBaselineIdentifier *string `locationName:"enabledBaselineIdentifier" min:"20" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateEnabledBaselineInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateEnabledBaselineInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *UpdateEnabledBaselineInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "UpdateEnabledBaselineInput"}
if s.BaselineVersion == nil {
invalidParams.Add(request.NewErrParamRequired("BaselineVersion"))
}
if s.BaselineVersion != nil && len(*s.BaselineVersion) < 1 {
invalidParams.Add(request.NewErrParamMinLen("BaselineVersion", 1))
}
if s.EnabledBaselineIdentifier == nil {
invalidParams.Add(request.NewErrParamRequired("EnabledBaselineIdentifier"))
}
if s.EnabledBaselineIdentifier != nil && len(*s.EnabledBaselineIdentifier) < 20 {
invalidParams.Add(request.NewErrParamMinLen("EnabledBaselineIdentifier", 20))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetBaselineVersion sets the BaselineVersion field's value.
func (s *UpdateEnabledBaselineInput) SetBaselineVersion(v string) *UpdateEnabledBaselineInput {
s.BaselineVersion = &v
return s
}
// SetEnabledBaselineIdentifier sets the EnabledBaselineIdentifier field's value.
func (s *UpdateEnabledBaselineInput) SetEnabledBaselineIdentifier(v string) *UpdateEnabledBaselineInput {
s.EnabledBaselineIdentifier = &v
return s
}
type UpdateEnabledBaselineOutput struct {
_ struct{} `type:"structure"`
// The ID (in UUID format) of the asynchronous UpdateEnabledBaseline operation.
// This operationIdentifier is used to track status through calls to the GetBaselineOperation
// API.
//
// OperationIdentifier is a required field
OperationIdentifier *string `locationName:"operationIdentifier" min:"36" type:"string" required:"true"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateEnabledBaselineOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s UpdateEnabledBaselineOutput) GoString() string {
return s.String()
}
// SetOperationIdentifier sets the OperationIdentifier field's value.
func (s *UpdateEnabledBaselineOutput) SetOperationIdentifier(v string) *UpdateEnabledBaselineOutput {
s.OperationIdentifier = &v
return s
}
// The input does not satisfy the constraints specified by an Amazon Web Services
// service.
type ValidationException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
Message_ *string `locationName:"message" type:"string"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s ValidationException) GoString() string {
return s.String()
}
func newErrorValidationException(v protocol.ResponseMetadata) error {
return &ValidationException{
RespMetadata: v,
}
}
// Code returns the exception type name.
func (s *ValidationException) Code() string {
return "ValidationException"
}
// Message returns the exception's message.
func (s *ValidationException) Message() string {
if s.Message_ != nil {
return *s.Message_
}
return ""
}
// OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) OrigErr() error {
return nil
}
func (s *ValidationException) Error() string {
return fmt.Sprintf("%s: %s", s.Code(), s.Message())
}
// Status code returns the HTTP status code for the request's response error.
func (s *ValidationException) StatusCode() int {
return s.RespMetadata.StatusCode
}
// RequestID returns the service's response RequestID for request.
func (s *ValidationException) RequestID() string {
return s.RespMetadata.RequestID
}
const (
// BaselineOperationStatusSucceeded is a BaselineOperationStatus enum value
BaselineOperationStatusSucceeded = "SUCCEEDED"
// BaselineOperationStatusFailed is a BaselineOperationStatus enum value
BaselineOperationStatusFailed = "FAILED"
// BaselineOperationStatusInProgress is a BaselineOperationStatus enum value
BaselineOperationStatusInProgress = "IN_PROGRESS"
)
// BaselineOperationStatus_Values returns all elements of the BaselineOperationStatus enum
func BaselineOperationStatus_Values() []string {
return []string{
BaselineOperationStatusSucceeded,
BaselineOperationStatusFailed,
BaselineOperationStatusInProgress,
}
}
const (
// BaselineOperationTypeEnableBaseline is a BaselineOperationType enum value
BaselineOperationTypeEnableBaseline = "ENABLE_BASELINE"
// BaselineOperationTypeDisableBaseline is a BaselineOperationType enum value
BaselineOperationTypeDisableBaseline = "DISABLE_BASELINE"
// BaselineOperationTypeUpdateEnabledBaseline is a BaselineOperationType enum value
BaselineOperationTypeUpdateEnabledBaseline = "UPDATE_ENABLED_BASELINE"
// BaselineOperationTypeResetEnabledBaseline is a BaselineOperationType enum value
BaselineOperationTypeResetEnabledBaseline = "RESET_ENABLED_BASELINE"
)
// BaselineOperationType_Values returns all elements of the BaselineOperationType enum
func BaselineOperationType_Values() []string {
return []string{
BaselineOperationTypeEnableBaseline,
BaselineOperationTypeDisableBaseline,
BaselineOperationTypeUpdateEnabledBaseline,
BaselineOperationTypeResetEnabledBaseline,
}
}
const (
// ControlOperationStatusSucceeded is a ControlOperationStatus enum value
ControlOperationStatusSucceeded = "SUCCEEDED"
// ControlOperationStatusFailed is a ControlOperationStatus enum value
ControlOperationStatusFailed = "FAILED"
// ControlOperationStatusInProgress is a ControlOperationStatus enum value
ControlOperationStatusInProgress = "IN_PROGRESS"
)
// ControlOperationStatus_Values returns all elements of the ControlOperationStatus enum
func ControlOperationStatus_Values() []string {
return []string{
ControlOperationStatusSucceeded,
ControlOperationStatusFailed,
ControlOperationStatusInProgress,
}
}
const (
// ControlOperationTypeEnableControl is a ControlOperationType enum value
ControlOperationTypeEnableControl = "ENABLE_CONTROL"
// ControlOperationTypeDisableControl is a ControlOperationType enum value
ControlOperationTypeDisableControl = "DISABLE_CONTROL"
// ControlOperationTypeUpdateEnabledControl is a ControlOperationType enum value
ControlOperationTypeUpdateEnabledControl = "UPDATE_ENABLED_CONTROL"
)
// ControlOperationType_Values returns all elements of the ControlOperationType enum
func ControlOperationType_Values() []string {
return []string{
ControlOperationTypeEnableControl,
ControlOperationTypeDisableControl,
ControlOperationTypeUpdateEnabledControl,
}
}
const (
// DriftStatusDrifted is a DriftStatus enum value
DriftStatusDrifted = "DRIFTED"
// DriftStatusInSync is a DriftStatus enum value
DriftStatusInSync = "IN_SYNC"
// DriftStatusNotChecking is a DriftStatus enum value
DriftStatusNotChecking = "NOT_CHECKING"
// DriftStatusUnknown is a DriftStatus enum value
DriftStatusUnknown = "UNKNOWN"
)
// DriftStatus_Values returns all elements of the DriftStatus enum
func DriftStatus_Values() []string {
return []string{
DriftStatusDrifted,
DriftStatusInSync,
DriftStatusNotChecking,
DriftStatusUnknown,
}
}
const (
// EnablementStatusSucceeded is a EnablementStatus enum value
EnablementStatusSucceeded = "SUCCEEDED"
// EnablementStatusFailed is a EnablementStatus enum value
EnablementStatusFailed = "FAILED"
// EnablementStatusUnderChange is a EnablementStatus enum value
EnablementStatusUnderChange = "UNDER_CHANGE"
)
// EnablementStatus_Values returns all elements of the EnablementStatus enum
func EnablementStatus_Values() []string {
return []string{
EnablementStatusSucceeded,
EnablementStatusFailed,
EnablementStatusUnderChange,
}
}
const (
// LandingZoneOperationStatusSucceeded is a LandingZoneOperationStatus enum value
LandingZoneOperationStatusSucceeded = "SUCCEEDED"
// LandingZoneOperationStatusFailed is a LandingZoneOperationStatus enum value
LandingZoneOperationStatusFailed = "FAILED"
// LandingZoneOperationStatusInProgress is a LandingZoneOperationStatus enum value
LandingZoneOperationStatusInProgress = "IN_PROGRESS"
)
// LandingZoneOperationStatus_Values returns all elements of the LandingZoneOperationStatus enum
func LandingZoneOperationStatus_Values() []string {
return []string{
LandingZoneOperationStatusSucceeded,
LandingZoneOperationStatusFailed,
LandingZoneOperationStatusInProgress,
}
}
const (
// LandingZoneOperationTypeDelete is a LandingZoneOperationType enum value
LandingZoneOperationTypeDelete = "DELETE"
// LandingZoneOperationTypeCreate is a LandingZoneOperationType enum value
LandingZoneOperationTypeCreate = "CREATE"
// LandingZoneOperationTypeUpdate is a LandingZoneOperationType enum value
LandingZoneOperationTypeUpdate = "UPDATE"
// LandingZoneOperationTypeReset is a LandingZoneOperationType enum value
LandingZoneOperationTypeReset = "RESET"
)
// LandingZoneOperationType_Values returns all elements of the LandingZoneOperationType enum
func LandingZoneOperationType_Values() []string {
return []string{
LandingZoneOperationTypeDelete,
LandingZoneOperationTypeCreate,
LandingZoneOperationTypeUpdate,
LandingZoneOperationTypeReset,
}
}