vendor: update all dependencies
This commit is contained in:
parent
3f0789e2db
commit
08021c4636
2474 changed files with 435818 additions and 282709 deletions
514
vendor/github.com/aws/aws-sdk-go/service/configservice/api.go
generated
vendored
514
vendor/github.com/aws/aws-sdk-go/service/configservice/api.go
generated
vendored
|
@ -709,6 +709,91 @@ func (c *ConfigService) DeletePendingAggregationRequestWithContext(ctx aws.Conte
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeleteRetentionConfiguration = "DeleteRetentionConfiguration"
|
||||
|
||||
// DeleteRetentionConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteRetentionConfiguration operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 DeleteRetentionConfiguration for more information on using the DeleteRetentionConfiguration
|
||||
// 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 DeleteRetentionConfigurationRequest method.
|
||||
// req, resp := client.DeleteRetentionConfigurationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteRetentionConfiguration
|
||||
func (c *ConfigService) DeleteRetentionConfigurationRequest(input *DeleteRetentionConfigurationInput) (req *request.Request, output *DeleteRetentionConfigurationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteRetentionConfiguration,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DeleteRetentionConfigurationInput{}
|
||||
}
|
||||
|
||||
output = &DeleteRetentionConfigurationOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
// DeleteRetentionConfiguration API operation for AWS Config.
|
||||
//
|
||||
// Deletes the retention configuration.
|
||||
//
|
||||
// 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 Config's
|
||||
// API operation DeleteRetentionConfiguration for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
|
||||
// One or more of the specified parameters are invalid. Verify that your parameters
|
||||
// are valid and try again.
|
||||
//
|
||||
// * ErrCodeNoSuchRetentionConfigurationException "NoSuchRetentionConfigurationException"
|
||||
// You have specified a retention configuration that does not exist.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteRetentionConfiguration
|
||||
func (c *ConfigService) DeleteRetentionConfiguration(input *DeleteRetentionConfigurationInput) (*DeleteRetentionConfigurationOutput, error) {
|
||||
req, out := c.DeleteRetentionConfigurationRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DeleteRetentionConfigurationWithContext is the same as DeleteRetentionConfiguration with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DeleteRetentionConfiguration 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 *ConfigService) DeleteRetentionConfigurationWithContext(ctx aws.Context, input *DeleteRetentionConfigurationInput, opts ...request.Option) (*DeleteRetentionConfigurationOutput, error) {
|
||||
req, out := c.DeleteRetentionConfigurationRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDeliverConfigSnapshot = "DeliverConfigSnapshot"
|
||||
|
||||
// DeliverConfigSnapshotRequest generates a "aws/request.Request" representing the
|
||||
|
@ -1985,6 +2070,98 @@ func (c *ConfigService) DescribePendingAggregationRequestsWithContext(ctx aws.Co
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opDescribeRetentionConfigurations = "DescribeRetentionConfigurations"
|
||||
|
||||
// DescribeRetentionConfigurationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeRetentionConfigurations operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 DescribeRetentionConfigurations for more information on using the DescribeRetentionConfigurations
|
||||
// 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 DescribeRetentionConfigurationsRequest method.
|
||||
// req, resp := client.DescribeRetentionConfigurationsRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeRetentionConfigurations
|
||||
func (c *ConfigService) DescribeRetentionConfigurationsRequest(input *DescribeRetentionConfigurationsInput) (req *request.Request, output *DescribeRetentionConfigurationsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeRetentionConfigurations,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &DescribeRetentionConfigurationsInput{}
|
||||
}
|
||||
|
||||
output = &DescribeRetentionConfigurationsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// DescribeRetentionConfigurations API operation for AWS Config.
|
||||
//
|
||||
// Returns the details of one or more retention configurations. If the retention
|
||||
// configuration name is not specified, this action returns the details for
|
||||
// all the retention configurations for that account.
|
||||
//
|
||||
// Currently, AWS Config supports only one retention configuration per region
|
||||
// in your account.
|
||||
//
|
||||
// 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 Config's
|
||||
// API operation DescribeRetentionConfigurations for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
|
||||
// One or more of the specified parameters are invalid. Verify that your parameters
|
||||
// are valid and try again.
|
||||
//
|
||||
// * ErrCodeNoSuchRetentionConfigurationException "NoSuchRetentionConfigurationException"
|
||||
// You have specified a retention configuration that does not exist.
|
||||
//
|
||||
// * ErrCodeInvalidNextTokenException "InvalidNextTokenException"
|
||||
// The specified next token is invalid. Specify the nextToken string that was
|
||||
// returned in the previous response to get the next page of results.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeRetentionConfigurations
|
||||
func (c *ConfigService) DescribeRetentionConfigurations(input *DescribeRetentionConfigurationsInput) (*DescribeRetentionConfigurationsOutput, error) {
|
||||
req, out := c.DescribeRetentionConfigurationsRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// DescribeRetentionConfigurationsWithContext is the same as DescribeRetentionConfigurations with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See DescribeRetentionConfigurations 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 *ConfigService) DescribeRetentionConfigurationsWithContext(ctx aws.Context, input *DescribeRetentionConfigurationsInput, opts ...request.Option) (*DescribeRetentionConfigurationsOutput, error) {
|
||||
req, out := c.DescribeRetentionConfigurationsRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opGetAggregateComplianceDetailsByConfigRule = "GetAggregateComplianceDetailsByConfigRule"
|
||||
|
||||
// GetAggregateComplianceDetailsByConfigRuleRequest generates a "aws/request.Request" representing the
|
||||
|
@ -2673,7 +2850,9 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig
|
|||
//
|
||||
// Returns a list of configuration items for the specified resource. The list
|
||||
// contains details about each state of the resource during the specified time
|
||||
// interval.
|
||||
// interval. If you specified a retention period to retain your ConfigurationItems
|
||||
// between a minimum of 30 days and a maximum of 7 years (2557 days), AWS Config
|
||||
// returns the ConfigurationItems for the specified retention period.
|
||||
//
|
||||
// The response is paginated. By default, AWS Config returns a limit of 10 configuration
|
||||
// items per page. You can customize this number with the limit parameter. The
|
||||
|
@ -3517,6 +3696,97 @@ func (c *ConfigService) PutEvaluationsWithContext(ctx aws.Context, input *PutEva
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opPutRetentionConfiguration = "PutRetentionConfiguration"
|
||||
|
||||
// PutRetentionConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutRetentionConfiguration operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// 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 PutRetentionConfiguration for more information on using the PutRetentionConfiguration
|
||||
// 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 PutRetentionConfigurationRequest method.
|
||||
// req, resp := client.PutRetentionConfigurationRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutRetentionConfiguration
|
||||
func (c *ConfigService) PutRetentionConfigurationRequest(input *PutRetentionConfigurationInput) (req *request.Request, output *PutRetentionConfigurationOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutRetentionConfiguration,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &PutRetentionConfigurationInput{}
|
||||
}
|
||||
|
||||
output = &PutRetentionConfigurationOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// PutRetentionConfiguration API operation for AWS Config.
|
||||
//
|
||||
// Creates and updates the retention configuration with details about retention
|
||||
// period (number of days) that AWS Config stores your historical information.
|
||||
// The API creates the RetentionConfiguration object and names the object as
|
||||
// default. When you have a RetentionConfiguration object named default, calling
|
||||
// the API modifies the default object.
|
||||
//
|
||||
// Currently, AWS Config supports only one retention configuration per region
|
||||
// in your account.
|
||||
//
|
||||
// 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 Config's
|
||||
// API operation PutRetentionConfiguration for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
|
||||
// One or more of the specified parameters are invalid. Verify that your parameters
|
||||
// are valid and try again.
|
||||
//
|
||||
// * ErrCodeMaxNumberOfRetentionConfigurationsExceededException "MaxNumberOfRetentionConfigurationsExceededException"
|
||||
// Failed to add the retention configuration because a retention configuration
|
||||
// with that name already exists.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutRetentionConfiguration
|
||||
func (c *ConfigService) PutRetentionConfiguration(input *PutRetentionConfigurationInput) (*PutRetentionConfigurationOutput, error) {
|
||||
req, out := c.PutRetentionConfigurationRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// PutRetentionConfigurationWithContext is the same as PutRetentionConfiguration with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See PutRetentionConfiguration 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 *ConfigService) PutRetentionConfigurationWithContext(ctx aws.Context, input *PutRetentionConfigurationInput, opts ...request.Option) (*PutRetentionConfigurationOutput, error) {
|
||||
req, out := c.PutRetentionConfigurationRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opStartConfigRulesEvaluation = "StartConfigRulesEvaluation"
|
||||
|
||||
// StartConfigRulesEvaluationRequest generates a "aws/request.Request" representing the
|
||||
|
@ -3817,7 +4087,7 @@ type AccountAggregationSource struct {
|
|||
// AccountIds is a required field
|
||||
AccountIds []*string `min:"1" type:"list" required:"true"`
|
||||
|
||||
// If true, aggreagate existing AWS Config regions and future regions.
|
||||
// If true, aggregate existing AWS Config regions and future regions.
|
||||
AllAwsRegions *bool `type:"boolean"`
|
||||
|
||||
// The source regions being aggregated.
|
||||
|
@ -6094,6 +6364,61 @@ func (s DeletePendingAggregationRequestOutput) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
type DeleteRetentionConfigurationInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The name of the retention configuration to delete.
|
||||
//
|
||||
// RetentionConfigurationName is a required field
|
||||
RetentionConfigurationName *string `min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteRetentionConfigurationInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteRetentionConfigurationInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *DeleteRetentionConfigurationInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "DeleteRetentionConfigurationInput"}
|
||||
if s.RetentionConfigurationName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("RetentionConfigurationName"))
|
||||
}
|
||||
if s.RetentionConfigurationName != nil && len(*s.RetentionConfigurationName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("RetentionConfigurationName", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetRetentionConfigurationName sets the RetentionConfigurationName field's value.
|
||||
func (s *DeleteRetentionConfigurationInput) SetRetentionConfigurationName(v string) *DeleteRetentionConfigurationInput {
|
||||
s.RetentionConfigurationName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type DeleteRetentionConfigurationOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DeleteRetentionConfigurationOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DeleteRetentionConfigurationOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// The input for the DeliverConfigSnapshot action.
|
||||
type DeliverConfigSnapshotInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
@ -6911,7 +7236,7 @@ func (s *DescribeConfigurationAggregatorSourcesStatusInput) SetUpdateStatus(v []
|
|||
type DescribeConfigurationAggregatorSourcesStatusOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Retuns an AggregatedSourceStatus object.
|
||||
// Returns an AggregatedSourceStatus object.
|
||||
AggregatedSourceStatusList []*AggregatedSourceStatus `type:"list"`
|
||||
|
||||
// The nextToken string returned on a previous page that you use to get the
|
||||
|
@ -7278,6 +7603,77 @@ func (s *DescribePendingAggregationRequestsOutput) SetPendingAggregationRequests
|
|||
return s
|
||||
}
|
||||
|
||||
type DescribeRetentionConfigurationsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The nextToken string returned on a previous page that you use to get the
|
||||
// next page of results in a paginated response.
|
||||
NextToken *string `type:"string"`
|
||||
|
||||
// A list of names of retention configurations for which you want details. If
|
||||
// you do not specify a name, AWS Config returns details for all the retention
|
||||
// configurations for that account.
|
||||
//
|
||||
// Currently, AWS Config supports only one retention configuration per region
|
||||
// in your account.
|
||||
RetentionConfigurationNames []*string `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeRetentionConfigurationsInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeRetentionConfigurationsInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeRetentionConfigurationsInput) SetNextToken(v string) *DescribeRetentionConfigurationsInput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetentionConfigurationNames sets the RetentionConfigurationNames field's value.
|
||||
func (s *DescribeRetentionConfigurationsInput) SetRetentionConfigurationNames(v []*string) *DescribeRetentionConfigurationsInput {
|
||||
s.RetentionConfigurationNames = v
|
||||
return s
|
||||
}
|
||||
|
||||
type DescribeRetentionConfigurationsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The nextToken string returned on a previous page that you use to get the
|
||||
// next page of results in a paginated response.
|
||||
NextToken *string `type:"string"`
|
||||
|
||||
// Returns a retention configuration object.
|
||||
RetentionConfigurations []*RetentionConfiguration `type:"list"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s DescribeRetentionConfigurationsOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s DescribeRetentionConfigurationsOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetNextToken sets the NextToken field's value.
|
||||
func (s *DescribeRetentionConfigurationsOutput) SetNextToken(v string) *DescribeRetentionConfigurationsOutput {
|
||||
s.NextToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetentionConfigurations sets the RetentionConfigurations field's value.
|
||||
func (s *DescribeRetentionConfigurationsOutput) SetRetentionConfigurations(v []*RetentionConfiguration) *DescribeRetentionConfigurationsOutput {
|
||||
s.RetentionConfigurations = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Identifies an AWS resource and indicates whether it complies with the AWS
|
||||
// Config rule that it was evaluated against.
|
||||
type Evaluation struct {
|
||||
|
@ -8520,7 +8916,7 @@ func (s *ListDiscoveredResourcesOutput) SetResourceIdentifiers(v []*ResourceIden
|
|||
type OrganizationAggregationSource struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// If true, aggreagate existing AWS Config regions and future regions.
|
||||
// If true, aggregate existing AWS Config regions and future regions.
|
||||
AllAwsRegions *bool `type:"boolean"`
|
||||
|
||||
// The source regions being aggregated.
|
||||
|
@ -9059,6 +9455,72 @@ func (s *PutEvaluationsOutput) SetFailedEvaluations(v []*Evaluation) *PutEvaluat
|
|||
return s
|
||||
}
|
||||
|
||||
type PutRetentionConfigurationInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Number of days AWS Config stores your historical information.
|
||||
//
|
||||
// Currently, only applicable to the configuration item history.
|
||||
//
|
||||
// RetentionPeriodInDays is a required field
|
||||
RetentionPeriodInDays *int64 `min:"30" type:"integer" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PutRetentionConfigurationInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PutRetentionConfigurationInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *PutRetentionConfigurationInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "PutRetentionConfigurationInput"}
|
||||
if s.RetentionPeriodInDays == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("RetentionPeriodInDays"))
|
||||
}
|
||||
if s.RetentionPeriodInDays != nil && *s.RetentionPeriodInDays < 30 {
|
||||
invalidParams.Add(request.NewErrParamMinValue("RetentionPeriodInDays", 30))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetRetentionPeriodInDays sets the RetentionPeriodInDays field's value.
|
||||
func (s *PutRetentionConfigurationInput) SetRetentionPeriodInDays(v int64) *PutRetentionConfigurationInput {
|
||||
s.RetentionPeriodInDays = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type PutRetentionConfigurationOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Returns a retention configuration object.
|
||||
RetentionConfiguration *RetentionConfiguration `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s PutRetentionConfigurationOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s PutRetentionConfigurationOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetRetentionConfiguration sets the RetentionConfiguration field's value.
|
||||
func (s *PutRetentionConfigurationOutput) SetRetentionConfiguration(v *RetentionConfiguration) *PutRetentionConfigurationOutput {
|
||||
s.RetentionConfiguration = v
|
||||
return s
|
||||
}
|
||||
|
||||
// Specifies the types of AWS resource for which AWS Config records configuration
|
||||
// changes.
|
||||
//
|
||||
|
@ -9349,6 +9811,47 @@ func (s *ResourceKey) SetResourceType(v string) *ResourceKey {
|
|||
return s
|
||||
}
|
||||
|
||||
// An object with the name of the retention configuration and the retention
|
||||
// period in days. The object stores the configuration for data retention in
|
||||
// AWS Config.
|
||||
type RetentionConfiguration struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The name of the retention configuration object.
|
||||
//
|
||||
// Name is a required field
|
||||
Name *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
// Number of days AWS Config stores your historical information.
|
||||
//
|
||||
// Currently, only applicable to the configuration item history.
|
||||
//
|
||||
// RetentionPeriodInDays is a required field
|
||||
RetentionPeriodInDays *int64 `min:"30" type:"integer" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s RetentionConfiguration) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s RetentionConfiguration) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetName sets the Name field's value.
|
||||
func (s *RetentionConfiguration) SetName(v string) *RetentionConfiguration {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetRetentionPeriodInDays sets the RetentionPeriodInDays field's value.
|
||||
func (s *RetentionConfiguration) SetRetentionPeriodInDays(v int64) *RetentionConfiguration {
|
||||
s.RetentionPeriodInDays = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Defines which resources trigger an evaluation for an AWS Config rule. The
|
||||
// scope can include one or more resource types, a combination of a tag key
|
||||
// and value, or a combination of one resource type and one resource ID. Specify
|
||||
|
@ -10062,4 +10565,7 @@ const (
|
|||
|
||||
// ResourceTypeAwsElasticLoadBalancingLoadBalancer is a ResourceType enum value
|
||||
ResourceTypeAwsElasticLoadBalancingLoadBalancer = "AWS::ElasticLoadBalancing::LoadBalancer"
|
||||
|
||||
// ResourceTypeAwsXrayEncryptionConfig is a ResourceType enum value
|
||||
ResourceTypeAwsXrayEncryptionConfig = "AWS::XRay::EncryptionConfig"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue