aws-sdk-go: github.com/aws/aws-sdk-go/service/shield Index | Files | Directories

package shield

import "github.com/aws/aws-sdk-go/service/shield"

Package shield provides the client and types for making API requests to AWS Shield.

This is the AWS Shield Advanced API Reference. This guide is for developers who need detailed information about the AWS Shield Advanced API actions, data types, and errors. For detailed information about AWS WAF and AWS Shield Advanced features and an overview of how to use the AWS WAF and AWS Shield Advanced APIs, see the AWS WAF and AWS Shield Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/).

See https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02 for more information on this service.

See shield package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/shield/

Using the Client

To contact AWS Shield with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS Shield client Shield for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/shield/#New

Index

Package Files

api.go doc.go errors.go service.go

Constants

const (
    // AttackLayerNetwork is a AttackLayer enum value
    AttackLayerNetwork = "NETWORK"

    // AttackLayerApplication is a AttackLayer enum value
    AttackLayerApplication = "APPLICATION"
)
const (
    // AttackPropertyIdentifierDestinationUrl is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierDestinationUrl = "DESTINATION_URL"

    // AttackPropertyIdentifierReferrer is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierReferrer = "REFERRER"

    // AttackPropertyIdentifierSourceAsn is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierSourceAsn = "SOURCE_ASN"

    // AttackPropertyIdentifierSourceCountry is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierSourceCountry = "SOURCE_COUNTRY"

    // AttackPropertyIdentifierSourceIpAddress is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierSourceIpAddress = "SOURCE_IP_ADDRESS"

    // AttackPropertyIdentifierSourceUserAgent is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierSourceUserAgent = "SOURCE_USER_AGENT"

    // AttackPropertyIdentifierWordpressPingbackReflector is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierWordpressPingbackReflector = "WORDPRESS_PINGBACK_REFLECTOR"

    // AttackPropertyIdentifierWordpressPingbackSource is a AttackPropertyIdentifier enum value
    AttackPropertyIdentifierWordpressPingbackSource = "WORDPRESS_PINGBACK_SOURCE"
)
const (
    // AutoRenewEnabled is a AutoRenew enum value
    AutoRenewEnabled = "ENABLED"

    // AutoRenewDisabled is a AutoRenew enum value
    AutoRenewDisabled = "DISABLED"
)
const (
    // SubResourceTypeIp is a SubResourceType enum value
    SubResourceTypeIp = "IP"

    // SubResourceTypeUrl is a SubResourceType enum value
    SubResourceTypeUrl = "URL"
)
const (
    // SubscriptionStateActive is a SubscriptionState enum value
    SubscriptionStateActive = "ACTIVE"

    // SubscriptionStateInactive is a SubscriptionState enum value
    SubscriptionStateInactive = "INACTIVE"
)
const (
    // UnitBits is a Unit enum value
    UnitBits = "BITS"

    // UnitBytes is a Unit enum value
    UnitBytes = "BYTES"

    // UnitPackets is a Unit enum value
    UnitPackets = "PACKETS"

    // UnitRequests is a Unit enum value
    UnitRequests = "REQUESTS"
)
const (

    // ErrCodeAccessDeniedException for service response error code
    // "AccessDeniedException".
    //
    // Exception that indicates the specified AttackId does not exist, or the requester
    // does not have the appropriate permissions to access the AttackId.
    ErrCodeAccessDeniedException = "AccessDeniedException"

    // ErrCodeAccessDeniedForDependencyException for service response error code
    // "AccessDeniedForDependencyException".
    //
    // In order to grant the necessary access to the DDoS Response Team, the user
    // submitting AssociateDRTRole must have the iam:PassRole permission. This error
    // indicates the user did not have the appropriate permissions. For more information,
    // see Granting a User Permissions to Pass a Role to an AWS Service (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).
    ErrCodeAccessDeniedForDependencyException = "AccessDeniedForDependencyException"

    // ErrCodeInternalErrorException for service response error code
    // "InternalErrorException".
    //
    // Exception that indicates that a problem occurred with the service infrastructure.
    // You can retry the request.
    ErrCodeInternalErrorException = "InternalErrorException"

    // ErrCodeInvalidOperationException for service response error code
    // "InvalidOperationException".
    //
    // Exception that indicates that the operation would not cause any change to
    // occur.
    ErrCodeInvalidOperationException = "InvalidOperationException"

    // ErrCodeInvalidPaginationTokenException for service response error code
    // "InvalidPaginationTokenException".
    //
    // Exception that indicates that the NextToken specified in the request is invalid.
    // Submit the request using the NextToken value that was returned in the response.
    ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException"

    // ErrCodeInvalidParameterException for service response error code
    // "InvalidParameterException".
    //
    // Exception that indicates that the parameters passed to the API are invalid.
    ErrCodeInvalidParameterException = "InvalidParameterException"

    // ErrCodeInvalidResourceException for service response error code
    // "InvalidResourceException".
    //
    // Exception that indicates that the resource is invalid. You might not have
    // access to the resource, or the resource might not exist.
    ErrCodeInvalidResourceException = "InvalidResourceException"

    // ErrCodeLimitsExceededException for service response error code
    // "LimitsExceededException".
    //
    // Exception that indicates that the operation would exceed a limit.
    //
    // Type is the type of limit that would be exceeded.
    //
    // Limit is the threshold that would be exceeded.
    ErrCodeLimitsExceededException = "LimitsExceededException"

    // ErrCodeLockedSubscriptionException for service response error code
    // "LockedSubscriptionException".
    //
    // You are trying to update a subscription that has not yet completed the 1-year
    // commitment. You can change the AutoRenew parameter during the last 30 days
    // of your subscription. This exception indicates that you are attempting to
    // change AutoRenew prior to that period.
    ErrCodeLockedSubscriptionException = "LockedSubscriptionException"

    // ErrCodeNoAssociatedRoleException for service response error code
    // "NoAssociatedRoleException".
    //
    // The ARN of the role that you specifed does not exist.
    ErrCodeNoAssociatedRoleException = "NoAssociatedRoleException"

    // ErrCodeOptimisticLockException for service response error code
    // "OptimisticLockException".
    //
    // Exception that indicates that the protection state has been modified by another
    // client. You can retry the request.
    ErrCodeOptimisticLockException = "OptimisticLockException"

    // ErrCodeResourceAlreadyExistsException for service response error code
    // "ResourceAlreadyExistsException".
    //
    // Exception indicating the specified resource already exists.
    ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"

    // ErrCodeResourceNotFoundException for service response error code
    // "ResourceNotFoundException".
    //
    // Exception indicating the specified resource does not exist.
    ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)
const (
    ServiceName = "shield"    // Name of service.
    EndpointsID = ServiceName // ID to lookup a service endpoint with.
    ServiceID   = "Shield"    // ServiceID is a unique identifer of a specific service.
)

Service information constants

type AssociateDRTLogBucketInput Uses

type AssociateDRTLogBucketInput struct {

    // The Amazon S3 bucket that contains your AWS WAF logs.
    //
    // LogBucket is a required field
    LogBucket *string `min:"3" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (AssociateDRTLogBucketInput) GoString Uses

func (s AssociateDRTLogBucketInput) GoString() string

GoString returns the string representation

func (*AssociateDRTLogBucketInput) SetLogBucket Uses

func (s *AssociateDRTLogBucketInput) SetLogBucket(v string) *AssociateDRTLogBucketInput

SetLogBucket sets the LogBucket field's value.

func (AssociateDRTLogBucketInput) String Uses

func (s AssociateDRTLogBucketInput) String() string

String returns the string representation

func (*AssociateDRTLogBucketInput) Validate Uses

func (s *AssociateDRTLogBucketInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AssociateDRTLogBucketOutput Uses

type AssociateDRTLogBucketOutput struct {
    // contains filtered or unexported fields
}

func (AssociateDRTLogBucketOutput) GoString Uses

func (s AssociateDRTLogBucketOutput) GoString() string

GoString returns the string representation

func (AssociateDRTLogBucketOutput) String Uses

func (s AssociateDRTLogBucketOutput) String() string

String returns the string representation

type AssociateDRTRoleInput Uses

type AssociateDRTRoleInput struct {

    // The Amazon Resource Name (ARN) of the role the DRT will use to access your
    // AWS account.
    //
    // Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy
    // (https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy)
    // managed policy to this role. For more information see Attaching and Detaching
    // IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html).
    //
    // RoleArn is a required field
    RoleArn *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (AssociateDRTRoleInput) GoString Uses

func (s AssociateDRTRoleInput) GoString() string

GoString returns the string representation

func (*AssociateDRTRoleInput) SetRoleArn Uses

func (s *AssociateDRTRoleInput) SetRoleArn(v string) *AssociateDRTRoleInput

SetRoleArn sets the RoleArn field's value.

func (AssociateDRTRoleInput) String Uses

func (s AssociateDRTRoleInput) String() string

String returns the string representation

func (*AssociateDRTRoleInput) Validate Uses

func (s *AssociateDRTRoleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AssociateDRTRoleOutput Uses

type AssociateDRTRoleOutput struct {
    // contains filtered or unexported fields
}

func (AssociateDRTRoleOutput) GoString Uses

func (s AssociateDRTRoleOutput) GoString() string

GoString returns the string representation

func (AssociateDRTRoleOutput) String Uses

func (s AssociateDRTRoleOutput) String() string

String returns the string representation

type AttackDetail Uses

type AttackDetail struct {

    // List of counters that describe the attack for the specified time period.
    AttackCounters []*SummarizedCounter `type:"list"`

    // The unique identifier (ID) of the attack.
    AttackId *string `min:"1" type:"string"`

    // The array of AttackProperty objects.
    AttackProperties []*AttackProperty `type:"list"`

    // The time the attack ended, in Unix time in seconds. For more information
    // see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
    EndTime *time.Time `type:"timestamp"`

    // List of mitigation actions taken for the attack.
    Mitigations []*Mitigation `type:"list"`

    // The ARN (Amazon Resource Name) of the resource that was attacked.
    ResourceArn *string `min:"1" type:"string"`

    // The time the attack started, in Unix time in seconds. For more information
    // see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
    StartTime *time.Time `type:"timestamp"`

    // If applicable, additional detail about the resource being attacked, for example,
    // IP address or URL.
    SubResources []*SubResourceSummary `type:"list"`
    // contains filtered or unexported fields
}

The details of a DDoS attack.

func (AttackDetail) GoString Uses

func (s AttackDetail) GoString() string

GoString returns the string representation

func (*AttackDetail) SetAttackCounters Uses

func (s *AttackDetail) SetAttackCounters(v []*SummarizedCounter) *AttackDetail

SetAttackCounters sets the AttackCounters field's value.

func (*AttackDetail) SetAttackId Uses

func (s *AttackDetail) SetAttackId(v string) *AttackDetail

SetAttackId sets the AttackId field's value.

func (*AttackDetail) SetAttackProperties Uses

func (s *AttackDetail) SetAttackProperties(v []*AttackProperty) *AttackDetail

SetAttackProperties sets the AttackProperties field's value.

func (*AttackDetail) SetEndTime Uses

func (s *AttackDetail) SetEndTime(v time.Time) *AttackDetail

SetEndTime sets the EndTime field's value.

func (*AttackDetail) SetMitigations Uses

func (s *AttackDetail) SetMitigations(v []*Mitigation) *AttackDetail

SetMitigations sets the Mitigations field's value.

func (*AttackDetail) SetResourceArn Uses

func (s *AttackDetail) SetResourceArn(v string) *AttackDetail

SetResourceArn sets the ResourceArn field's value.

func (*AttackDetail) SetStartTime Uses

func (s *AttackDetail) SetStartTime(v time.Time) *AttackDetail

SetStartTime sets the StartTime field's value.

func (*AttackDetail) SetSubResources Uses

func (s *AttackDetail) SetSubResources(v []*SubResourceSummary) *AttackDetail

SetSubResources sets the SubResources field's value.

func (AttackDetail) String Uses

func (s AttackDetail) String() string

String returns the string representation

type AttackProperty Uses

type AttackProperty struct {

    // The type of distributed denial of service (DDoS) event that was observed.
    // NETWORK indicates layer 3 and layer 4 events and APPLICATION indicates layer
    // 7 events.
    AttackLayer *string `type:"string" enum:"AttackLayer"`

    // Defines the DDoS attack property information that is provided. The WORDPRESS_PINGBACK_REFLECTOR
    // and WORDPRESS_PINGBACK_SOURCE values are valid only for WordPress reflective
    // pingback DDoS attacks.
    AttackPropertyIdentifier *string `type:"string" enum:"AttackPropertyIdentifier"`

    // The array of Contributor objects that includes the top five contributors
    // to an attack.
    TopContributors []*Contributor `type:"list"`

    // The total contributions made to this attack by all contributors, not just
    // the five listed in the TopContributors list.
    Total *int64 `type:"long"`

    // The unit of the Value of the contributions.
    Unit *string `type:"string" enum:"Unit"`
    // contains filtered or unexported fields
}

Details of the described attack.

func (AttackProperty) GoString Uses

func (s AttackProperty) GoString() string

GoString returns the string representation

func (*AttackProperty) SetAttackLayer Uses

func (s *AttackProperty) SetAttackLayer(v string) *AttackProperty

SetAttackLayer sets the AttackLayer field's value.

func (*AttackProperty) SetAttackPropertyIdentifier Uses

func (s *AttackProperty) SetAttackPropertyIdentifier(v string) *AttackProperty

SetAttackPropertyIdentifier sets the AttackPropertyIdentifier field's value.

func (*AttackProperty) SetTopContributors Uses

func (s *AttackProperty) SetTopContributors(v []*Contributor) *AttackProperty

SetTopContributors sets the TopContributors field's value.

func (*AttackProperty) SetTotal Uses

func (s *AttackProperty) SetTotal(v int64) *AttackProperty

SetTotal sets the Total field's value.

func (*AttackProperty) SetUnit Uses

func (s *AttackProperty) SetUnit(v string) *AttackProperty

SetUnit sets the Unit field's value.

func (AttackProperty) String Uses

func (s AttackProperty) String() string

String returns the string representation

type AttackSummary Uses

type AttackSummary struct {

    // The unique identifier (ID) of the attack.
    AttackId *string `type:"string"`

    // The list of attacks for a specified time period.
    AttackVectors []*AttackVectorDescription `type:"list"`

    // The end time of the attack, in Unix time in seconds. For more information
    // see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
    EndTime *time.Time `type:"timestamp"`

    // The ARN (Amazon Resource Name) of the resource that was attacked.
    ResourceArn *string `type:"string"`

    // The start time of the attack, in Unix time in seconds. For more information
    // see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
    StartTime *time.Time `type:"timestamp"`
    // contains filtered or unexported fields
}

Summarizes all DDoS attacks for a specified time period.

func (AttackSummary) GoString Uses

func (s AttackSummary) GoString() string

GoString returns the string representation

func (*AttackSummary) SetAttackId Uses

func (s *AttackSummary) SetAttackId(v string) *AttackSummary

SetAttackId sets the AttackId field's value.

func (*AttackSummary) SetAttackVectors Uses

func (s *AttackSummary) SetAttackVectors(v []*AttackVectorDescription) *AttackSummary

SetAttackVectors sets the AttackVectors field's value.

func (*AttackSummary) SetEndTime Uses

func (s *AttackSummary) SetEndTime(v time.Time) *AttackSummary

SetEndTime sets the EndTime field's value.

func (*AttackSummary) SetResourceArn Uses

func (s *AttackSummary) SetResourceArn(v string) *AttackSummary

SetResourceArn sets the ResourceArn field's value.

func (*AttackSummary) SetStartTime Uses

func (s *AttackSummary) SetStartTime(v time.Time) *AttackSummary

SetStartTime sets the StartTime field's value.

func (AttackSummary) String Uses

func (s AttackSummary) String() string

String returns the string representation

type AttackVectorDescription Uses

type AttackVectorDescription struct {

    // The attack type. Valid values:
    //
    //    * UDP_TRAFFIC
    //
    //    * UDP_FRAGMENT
    //
    //    * GENERIC_UDP_REFLECTION
    //
    //    * DNS_REFLECTION
    //
    //    * NTP_REFLECTION
    //
    //    * CHARGEN_REFLECTION
    //
    //    * SSDP_REFLECTION
    //
    //    * PORT_MAPPER
    //
    //    * RIP_REFLECTION
    //
    //    * SNMP_REFLECTION
    //
    //    * MSSQL_REFLECTION
    //
    //    * NET_BIOS_REFLECTION
    //
    //    * SYN_FLOOD
    //
    //    * ACK_FLOOD
    //
    //    * REQUEST_FLOOD
    //
    //    * HTTP_REFLECTION
    //
    //    * UDS_REFLECTION
    //
    //    * MEMCACHED_REFLECTION
    //
    // VectorType is a required field
    VectorType *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

Describes the attack.

func (AttackVectorDescription) GoString Uses

func (s AttackVectorDescription) GoString() string

GoString returns the string representation

func (*AttackVectorDescription) SetVectorType Uses

func (s *AttackVectorDescription) SetVectorType(v string) *AttackVectorDescription

SetVectorType sets the VectorType field's value.

func (AttackVectorDescription) String Uses

func (s AttackVectorDescription) String() string

String returns the string representation

type Contributor Uses

type Contributor struct {

    // The name of the contributor. This is dependent on the AttackPropertyIdentifier.
    // For example, if the AttackPropertyIdentifier is SOURCE_COUNTRY, the Name
    // could be United States.
    Name *string `type:"string"`

    // The contribution of this contributor expressed in Protection units. For example
    // 10,000.
    Value *int64 `type:"long"`
    // contains filtered or unexported fields
}

A contributor to the attack and their contribution.

func (Contributor) GoString Uses

func (s Contributor) GoString() string

GoString returns the string representation

func (*Contributor) SetName Uses

func (s *Contributor) SetName(v string) *Contributor

SetName sets the Name field's value.

func (*Contributor) SetValue Uses

func (s *Contributor) SetValue(v int64) *Contributor

SetValue sets the Value field's value.

func (Contributor) String Uses

func (s Contributor) String() string

String returns the string representation

type CreateProtectionInput Uses

type CreateProtectionInput struct {

    // Friendly name for the Protection you are creating.
    //
    // Name is a required field
    Name *string `min:"1" type:"string" required:"true"`

    // The ARN (Amazon Resource Name) of the resource to be protected.
    //
    // The ARN should be in one of the following formats:
    //
    //    * For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
    //
    //    * For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
    //
    //    * For an AWS CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id
    //
    //    * For an AWS Global Accelerator accelerator: arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
    //
    //    * For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id
    //
    //    * For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id
    //
    // ResourceArn is a required field
    ResourceArn *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (CreateProtectionInput) GoString Uses

func (s CreateProtectionInput) GoString() string

GoString returns the string representation

func (*CreateProtectionInput) SetName Uses

func (s *CreateProtectionInput) SetName(v string) *CreateProtectionInput

SetName sets the Name field's value.

func (*CreateProtectionInput) SetResourceArn Uses

func (s *CreateProtectionInput) SetResourceArn(v string) *CreateProtectionInput

SetResourceArn sets the ResourceArn field's value.

func (CreateProtectionInput) String Uses

func (s CreateProtectionInput) String() string

String returns the string representation

func (*CreateProtectionInput) Validate Uses

func (s *CreateProtectionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateProtectionOutput Uses

type CreateProtectionOutput struct {

    // The unique identifier (ID) for the Protection object that is created.
    ProtectionId *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (CreateProtectionOutput) GoString Uses

func (s CreateProtectionOutput) GoString() string

GoString returns the string representation

func (*CreateProtectionOutput) SetProtectionId Uses

func (s *CreateProtectionOutput) SetProtectionId(v string) *CreateProtectionOutput

SetProtectionId sets the ProtectionId field's value.

func (CreateProtectionOutput) String Uses

func (s CreateProtectionOutput) String() string

String returns the string representation

type CreateSubscriptionInput Uses

type CreateSubscriptionInput struct {
    // contains filtered or unexported fields
}

func (CreateSubscriptionInput) GoString Uses

func (s CreateSubscriptionInput) GoString() string

GoString returns the string representation

func (CreateSubscriptionInput) String Uses

func (s CreateSubscriptionInput) String() string

String returns the string representation

type CreateSubscriptionOutput Uses

type CreateSubscriptionOutput struct {
    // contains filtered or unexported fields
}

func (CreateSubscriptionOutput) GoString Uses

func (s CreateSubscriptionOutput) GoString() string

GoString returns the string representation

func (CreateSubscriptionOutput) String Uses

func (s CreateSubscriptionOutput) String() string

String returns the string representation

type DeleteProtectionInput Uses

type DeleteProtectionInput struct {

    // The unique identifier (ID) for the Protection object to be deleted.
    //
    // ProtectionId is a required field
    ProtectionId *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DeleteProtectionInput) GoString Uses

func (s DeleteProtectionInput) GoString() string

GoString returns the string representation

func (*DeleteProtectionInput) SetProtectionId Uses

func (s *DeleteProtectionInput) SetProtectionId(v string) *DeleteProtectionInput

SetProtectionId sets the ProtectionId field's value.

func (DeleteProtectionInput) String Uses

func (s DeleteProtectionInput) String() string

String returns the string representation

func (*DeleteProtectionInput) Validate Uses

func (s *DeleteProtectionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteProtectionOutput Uses

type DeleteProtectionOutput struct {
    // contains filtered or unexported fields
}

func (DeleteProtectionOutput) GoString Uses

func (s DeleteProtectionOutput) GoString() string

GoString returns the string representation

func (DeleteProtectionOutput) String Uses

func (s DeleteProtectionOutput) String() string

String returns the string representation

type DeleteSubscriptionInput Uses

type DeleteSubscriptionInput struct {
    // contains filtered or unexported fields
}

Deprecated: DeleteSubscriptionInput has been deprecated

func (DeleteSubscriptionInput) GoString Uses

func (s DeleteSubscriptionInput) GoString() string

GoString returns the string representation

func (DeleteSubscriptionInput) String Uses

func (s DeleteSubscriptionInput) String() string

String returns the string representation

type DeleteSubscriptionOutput Uses

type DeleteSubscriptionOutput struct {
    // contains filtered or unexported fields
}

Deprecated: DeleteSubscriptionOutput has been deprecated

func (DeleteSubscriptionOutput) GoString Uses

func (s DeleteSubscriptionOutput) GoString() string

GoString returns the string representation

func (DeleteSubscriptionOutput) String Uses

func (s DeleteSubscriptionOutput) String() string

String returns the string representation

type DescribeAttackInput Uses

type DescribeAttackInput struct {

    // The unique identifier (ID) for the attack that to be described.
    //
    // AttackId is a required field
    AttackId *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DescribeAttackInput) GoString Uses

func (s DescribeAttackInput) GoString() string

GoString returns the string representation

func (*DescribeAttackInput) SetAttackId Uses

func (s *DescribeAttackInput) SetAttackId(v string) *DescribeAttackInput

SetAttackId sets the AttackId field's value.

func (DescribeAttackInput) String Uses

func (s DescribeAttackInput) String() string

String returns the string representation

func (*DescribeAttackInput) Validate Uses

func (s *DescribeAttackInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeAttackOutput Uses

type DescribeAttackOutput struct {

    // The attack that is described.
    Attack *AttackDetail `type:"structure"`
    // contains filtered or unexported fields
}

func (DescribeAttackOutput) GoString Uses

func (s DescribeAttackOutput) GoString() string

GoString returns the string representation

func (*DescribeAttackOutput) SetAttack Uses

func (s *DescribeAttackOutput) SetAttack(v *AttackDetail) *DescribeAttackOutput

SetAttack sets the Attack field's value.

func (DescribeAttackOutput) String Uses

func (s DescribeAttackOutput) String() string

String returns the string representation

type DescribeDRTAccessInput Uses

type DescribeDRTAccessInput struct {
    // contains filtered or unexported fields
}

func (DescribeDRTAccessInput) GoString Uses

func (s DescribeDRTAccessInput) GoString() string

GoString returns the string representation

func (DescribeDRTAccessInput) String Uses

func (s DescribeDRTAccessInput) String() string

String returns the string representation

type DescribeDRTAccessOutput Uses

type DescribeDRTAccessOutput struct {

    // The list of Amazon S3 buckets accessed by the DRT.
    LogBucketList []*string `type:"list"`

    // The Amazon Resource Name (ARN) of the role the DRT used to access your AWS
    // account.
    RoleArn *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (DescribeDRTAccessOutput) GoString Uses

func (s DescribeDRTAccessOutput) GoString() string

GoString returns the string representation

func (*DescribeDRTAccessOutput) SetLogBucketList Uses

func (s *DescribeDRTAccessOutput) SetLogBucketList(v []*string) *DescribeDRTAccessOutput

SetLogBucketList sets the LogBucketList field's value.

func (*DescribeDRTAccessOutput) SetRoleArn Uses

func (s *DescribeDRTAccessOutput) SetRoleArn(v string) *DescribeDRTAccessOutput

SetRoleArn sets the RoleArn field's value.

func (DescribeDRTAccessOutput) String Uses

func (s DescribeDRTAccessOutput) String() string

String returns the string representation

type DescribeEmergencyContactSettingsInput Uses

type DescribeEmergencyContactSettingsInput struct {
    // contains filtered or unexported fields
}

func (DescribeEmergencyContactSettingsInput) GoString Uses

func (s DescribeEmergencyContactSettingsInput) GoString() string

GoString returns the string representation

func (DescribeEmergencyContactSettingsInput) String Uses

func (s DescribeEmergencyContactSettingsInput) String() string

String returns the string representation

type DescribeEmergencyContactSettingsOutput Uses

type DescribeEmergencyContactSettingsOutput struct {

    // A list of email addresses that the DRT can use to contact you during a suspected
    // attack.
    EmergencyContactList []*EmergencyContact `type:"list"`
    // contains filtered or unexported fields
}

func (DescribeEmergencyContactSettingsOutput) GoString Uses

func (s DescribeEmergencyContactSettingsOutput) GoString() string

GoString returns the string representation

func (*DescribeEmergencyContactSettingsOutput) SetEmergencyContactList Uses

func (s *DescribeEmergencyContactSettingsOutput) SetEmergencyContactList(v []*EmergencyContact) *DescribeEmergencyContactSettingsOutput

SetEmergencyContactList sets the EmergencyContactList field's value.

func (DescribeEmergencyContactSettingsOutput) String Uses

func (s DescribeEmergencyContactSettingsOutput) String() string

String returns the string representation

type DescribeProtectionInput Uses

type DescribeProtectionInput struct {

    // The unique identifier (ID) for the Protection object that is described. When
    // submitting the DescribeProtection request you must provide either the ResourceArn
    // or the ProtectionID, but not both.
    ProtectionId *string `min:"1" type:"string"`

    // The ARN (Amazon Resource Name) of the AWS resource for the Protection object
    // that is described. When submitting the DescribeProtection request you must
    // provide either the ResourceArn or the ProtectionID, but not both.
    ResourceArn *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (DescribeProtectionInput) GoString Uses

func (s DescribeProtectionInput) GoString() string

GoString returns the string representation

func (*DescribeProtectionInput) SetProtectionId Uses

func (s *DescribeProtectionInput) SetProtectionId(v string) *DescribeProtectionInput

SetProtectionId sets the ProtectionId field's value.

func (*DescribeProtectionInput) SetResourceArn Uses

func (s *DescribeProtectionInput) SetResourceArn(v string) *DescribeProtectionInput

SetResourceArn sets the ResourceArn field's value.

func (DescribeProtectionInput) String Uses

func (s DescribeProtectionInput) String() string

String returns the string representation

func (*DescribeProtectionInput) Validate Uses

func (s *DescribeProtectionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeProtectionOutput Uses

type DescribeProtectionOutput struct {

    // The Protection object that is described.
    Protection *Protection `type:"structure"`
    // contains filtered or unexported fields
}

func (DescribeProtectionOutput) GoString Uses

func (s DescribeProtectionOutput) GoString() string

GoString returns the string representation

func (*DescribeProtectionOutput) SetProtection Uses

func (s *DescribeProtectionOutput) SetProtection(v *Protection) *DescribeProtectionOutput

SetProtection sets the Protection field's value.

func (DescribeProtectionOutput) String Uses

func (s DescribeProtectionOutput) String() string

String returns the string representation

type DescribeSubscriptionInput Uses

type DescribeSubscriptionInput struct {
    // contains filtered or unexported fields
}

func (DescribeSubscriptionInput) GoString Uses

func (s DescribeSubscriptionInput) GoString() string

GoString returns the string representation

func (DescribeSubscriptionInput) String Uses

func (s DescribeSubscriptionInput) String() string

String returns the string representation

type DescribeSubscriptionOutput Uses

type DescribeSubscriptionOutput struct {

    // The AWS Shield Advanced subscription details for an account.
    Subscription *Subscription `type:"structure"`
    // contains filtered or unexported fields
}

func (DescribeSubscriptionOutput) GoString Uses

func (s DescribeSubscriptionOutput) GoString() string

GoString returns the string representation

func (*DescribeSubscriptionOutput) SetSubscription Uses

func (s *DescribeSubscriptionOutput) SetSubscription(v *Subscription) *DescribeSubscriptionOutput

SetSubscription sets the Subscription field's value.

func (DescribeSubscriptionOutput) String Uses

func (s DescribeSubscriptionOutput) String() string

String returns the string representation

type DisassociateDRTLogBucketInput Uses

type DisassociateDRTLogBucketInput struct {

    // The Amazon S3 bucket that contains your AWS WAF logs.
    //
    // LogBucket is a required field
    LogBucket *string `min:"3" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DisassociateDRTLogBucketInput) GoString Uses

func (s DisassociateDRTLogBucketInput) GoString() string

GoString returns the string representation

func (*DisassociateDRTLogBucketInput) SetLogBucket Uses

func (s *DisassociateDRTLogBucketInput) SetLogBucket(v string) *DisassociateDRTLogBucketInput

SetLogBucket sets the LogBucket field's value.

func (DisassociateDRTLogBucketInput) String Uses

func (s DisassociateDRTLogBucketInput) String() string

String returns the string representation

func (*DisassociateDRTLogBucketInput) Validate Uses

func (s *DisassociateDRTLogBucketInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DisassociateDRTLogBucketOutput Uses

type DisassociateDRTLogBucketOutput struct {
    // contains filtered or unexported fields
}

func (DisassociateDRTLogBucketOutput) GoString Uses

func (s DisassociateDRTLogBucketOutput) GoString() string

GoString returns the string representation

func (DisassociateDRTLogBucketOutput) String Uses

func (s DisassociateDRTLogBucketOutput) String() string

String returns the string representation

type DisassociateDRTRoleInput Uses

type DisassociateDRTRoleInput struct {
    // contains filtered or unexported fields
}

func (DisassociateDRTRoleInput) GoString Uses

func (s DisassociateDRTRoleInput) GoString() string

GoString returns the string representation

func (DisassociateDRTRoleInput) String Uses

func (s DisassociateDRTRoleInput) String() string

String returns the string representation

type DisassociateDRTRoleOutput Uses

type DisassociateDRTRoleOutput struct {
    // contains filtered or unexported fields
}

func (DisassociateDRTRoleOutput) GoString Uses

func (s DisassociateDRTRoleOutput) GoString() string

GoString returns the string representation

func (DisassociateDRTRoleOutput) String Uses

func (s DisassociateDRTRoleOutput) String() string

String returns the string representation

type EmergencyContact Uses

type EmergencyContact struct {

    // An email address that the DRT can use to contact you during a suspected attack.
    //
    // EmailAddress is a required field
    EmailAddress *string `min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

Contact information that the DRT can use to contact you during a suspected attack.

func (EmergencyContact) GoString Uses

func (s EmergencyContact) GoString() string

GoString returns the string representation

func (*EmergencyContact) SetEmailAddress Uses

func (s *EmergencyContact) SetEmailAddress(v string) *EmergencyContact

SetEmailAddress sets the EmailAddress field's value.

func (EmergencyContact) String Uses

func (s EmergencyContact) String() string

String returns the string representation

func (*EmergencyContact) Validate Uses

func (s *EmergencyContact) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetSubscriptionStateInput Uses

type GetSubscriptionStateInput struct {
    // contains filtered or unexported fields
}

func (GetSubscriptionStateInput) GoString Uses

func (s GetSubscriptionStateInput) GoString() string

GoString returns the string representation

func (GetSubscriptionStateInput) String Uses

func (s GetSubscriptionStateInput) String() string

String returns the string representation

type GetSubscriptionStateOutput Uses

type GetSubscriptionStateOutput struct {

    // The status of the subscription.
    //
    // SubscriptionState is a required field
    SubscriptionState *string `type:"string" required:"true" enum:"SubscriptionState"`
    // contains filtered or unexported fields
}

func (GetSubscriptionStateOutput) GoString Uses

func (s GetSubscriptionStateOutput) GoString() string

GoString returns the string representation

func (*GetSubscriptionStateOutput) SetSubscriptionState Uses

func (s *GetSubscriptionStateOutput) SetSubscriptionState(v string) *GetSubscriptionStateOutput

SetSubscriptionState sets the SubscriptionState field's value.

func (GetSubscriptionStateOutput) String Uses

func (s GetSubscriptionStateOutput) String() string

String returns the string representation

type Limit Uses

type Limit struct {

    // The maximum number of protections that can be created for the specified Type.
    Max *int64 `type:"long"`

    // The type of protection.
    Type *string `type:"string"`
    // contains filtered or unexported fields
}

Specifies how many protections of a given type you can create.

func (Limit) GoString Uses

func (s Limit) GoString() string

GoString returns the string representation

func (*Limit) SetMax Uses

func (s *Limit) SetMax(v int64) *Limit

SetMax sets the Max field's value.

func (*Limit) SetType Uses

func (s *Limit) SetType(v string) *Limit

SetType sets the Type field's value.

func (Limit) String Uses

func (s Limit) String() string

String returns the string representation

type ListAttacksInput Uses

type ListAttacksInput struct {

    // The end of the time period for the attacks. This is a timestamp type. The
    // sample request above indicates a number type because the default used by
    // WAF is Unix time in seconds. However any valid timestamp format (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types)
    // is allowed.
    EndTime *TimeRange `type:"structure"`

    // The maximum number of AttackSummary objects to be returned. If this is left
    // blank, the first 20 results will be returned.
    //
    // This is a maximum value; it is possible that AWS WAF will return the results
    // in smaller batches. That is, the number of AttackSummary objects returned
    // could be less than MaxResults, even if there are still more AttackSummary
    // objects yet to return. If there are more AttackSummary objects to return,
    // AWS WAF will always also return a NextToken.
    MaxResults *int64 `type:"integer"`

    // The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest.
    // Pass null if this is the first call.
    NextToken *string `min:"1" type:"string"`

    // The ARN (Amazon Resource Name) of the resource that was attacked. If this
    // is left blank, all applicable resources for this account will be included.
    ResourceArns []*string `type:"list"`

    // The start of the time period for the attacks. This is a timestamp type. The
    // sample request above indicates a number type because the default used by
    // WAF is Unix time in seconds. However any valid timestamp format (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types)
    // is allowed.
    StartTime *TimeRange `type:"structure"`
    // contains filtered or unexported fields
}

func (ListAttacksInput) GoString Uses

func (s ListAttacksInput) GoString() string

GoString returns the string representation

func (*ListAttacksInput) SetEndTime Uses

func (s *ListAttacksInput) SetEndTime(v *TimeRange) *ListAttacksInput

SetEndTime sets the EndTime field's value.

func (*ListAttacksInput) SetMaxResults Uses

func (s *ListAttacksInput) SetMaxResults(v int64) *ListAttacksInput

SetMaxResults sets the MaxResults field's value.

func (*ListAttacksInput) SetNextToken Uses

func (s *ListAttacksInput) SetNextToken(v string) *ListAttacksInput

SetNextToken sets the NextToken field's value.

func (*ListAttacksInput) SetResourceArns Uses

func (s *ListAttacksInput) SetResourceArns(v []*string) *ListAttacksInput

SetResourceArns sets the ResourceArns field's value.

func (*ListAttacksInput) SetStartTime Uses

func (s *ListAttacksInput) SetStartTime(v *TimeRange) *ListAttacksInput

SetStartTime sets the StartTime field's value.

func (ListAttacksInput) String Uses

func (s ListAttacksInput) String() string

String returns the string representation

func (*ListAttacksInput) Validate Uses

func (s *ListAttacksInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListAttacksOutput Uses

type ListAttacksOutput struct {

    // The attack information for the specified time range.
    AttackSummaries []*AttackSummary `type:"list"`

    // The token returned by a previous call to indicate that there is more data
    // available. If not null, more results are available. Pass this value for the
    // NextMarker parameter in a subsequent call to ListAttacks to retrieve the
    // next set of items.
    //
    // AWS WAF might return the list of AttackSummary objects in batches smaller
    // than the number specified by MaxResults. If there are more AttackSummary
    // objects to return, AWS WAF will always also return a NextToken.
    NextToken *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (ListAttacksOutput) GoString Uses

func (s ListAttacksOutput) GoString() string

GoString returns the string representation

func (*ListAttacksOutput) SetAttackSummaries Uses

func (s *ListAttacksOutput) SetAttackSummaries(v []*AttackSummary) *ListAttacksOutput

SetAttackSummaries sets the AttackSummaries field's value.

func (*ListAttacksOutput) SetNextToken Uses

func (s *ListAttacksOutput) SetNextToken(v string) *ListAttacksOutput

SetNextToken sets the NextToken field's value.

func (ListAttacksOutput) String Uses

func (s ListAttacksOutput) String() string

String returns the string representation

type ListProtectionsInput Uses

type ListProtectionsInput struct {

    // The maximum number of Protection objects to be returned. If this is left
    // blank the first 20 results will be returned.
    //
    // This is a maximum value; it is possible that AWS WAF will return the results
    // in smaller batches. That is, the number of Protection objects returned could
    // be less than MaxResults, even if there are still more Protection objects
    // yet to return. If there are more Protection objects to return, AWS WAF will
    // always also return a NextToken.
    MaxResults *int64 `type:"integer"`

    // The ListProtectionsRequest.NextToken value from a previous call to ListProtections.
    // Pass null if this is the first call.
    NextToken *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (ListProtectionsInput) GoString Uses

func (s ListProtectionsInput) GoString() string

GoString returns the string representation

func (*ListProtectionsInput) SetMaxResults Uses

func (s *ListProtectionsInput) SetMaxResults(v int64) *ListProtectionsInput

SetMaxResults sets the MaxResults field's value.

func (*ListProtectionsInput) SetNextToken Uses

func (s *ListProtectionsInput) SetNextToken(v string) *ListProtectionsInput

SetNextToken sets the NextToken field's value.

func (ListProtectionsInput) String Uses

func (s ListProtectionsInput) String() string

String returns the string representation

func (*ListProtectionsInput) Validate Uses

func (s *ListProtectionsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListProtectionsOutput Uses

type ListProtectionsOutput struct {

    // If you specify a value for MaxResults and you have more Protections than
    // the value of MaxResults, AWS Shield Advanced returns a NextToken value in
    // the response that allows you to list another group of Protections. For the
    // second and subsequent ListProtections requests, specify the value of NextToken
    // from the previous response to get information about another batch of Protections.
    //
    // AWS WAF might return the list of Protection objects in batches smaller than
    // the number specified by MaxResults. If there are more Protection objects
    // to return, AWS WAF will always also return a NextToken.
    NextToken *string `min:"1" type:"string"`

    // The array of enabled Protection objects.
    Protections []*Protection `type:"list"`
    // contains filtered or unexported fields
}

func (ListProtectionsOutput) GoString Uses

func (s ListProtectionsOutput) GoString() string

GoString returns the string representation

func (*ListProtectionsOutput) SetNextToken Uses

func (s *ListProtectionsOutput) SetNextToken(v string) *ListProtectionsOutput

SetNextToken sets the NextToken field's value.

func (*ListProtectionsOutput) SetProtections Uses

func (s *ListProtectionsOutput) SetProtections(v []*Protection) *ListProtectionsOutput

SetProtections sets the Protections field's value.

func (ListProtectionsOutput) String Uses

func (s ListProtectionsOutput) String() string

String returns the string representation

type Mitigation Uses

type Mitigation struct {

    // The name of the mitigation taken for this attack.
    MitigationName *string `type:"string"`
    // contains filtered or unexported fields
}

The mitigation applied to a DDoS attack.

func (Mitigation) GoString Uses

func (s Mitigation) GoString() string

GoString returns the string representation

func (*Mitigation) SetMitigationName Uses

func (s *Mitigation) SetMitigationName(v string) *Mitigation

SetMitigationName sets the MitigationName field's value.

func (Mitigation) String Uses

func (s Mitigation) String() string

String returns the string representation

type Protection Uses

type Protection struct {

    // The unique identifier (ID) of the protection.
    Id  *string `min:"1" type:"string"`

    // The friendly name of the protection. For example, My CloudFront distributions.
    Name *string `min:"1" type:"string"`

    // The ARN (Amazon Resource Name) of the AWS resource that is protected.
    ResourceArn *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

An object that represents a resource that is under DDoS protection.

func (Protection) GoString Uses

func (s Protection) GoString() string

GoString returns the string representation

func (*Protection) SetId Uses

func (s *Protection) SetId(v string) *Protection

SetId sets the Id field's value.

func (*Protection) SetName Uses

func (s *Protection) SetName(v string) *Protection

SetName sets the Name field's value.

func (*Protection) SetResourceArn Uses

func (s *Protection) SetResourceArn(v string) *Protection

SetResourceArn sets the ResourceArn field's value.

func (Protection) String Uses

func (s Protection) String() string

String returns the string representation

type Shield Uses

type Shield struct {
    *client.Client
}

Shield provides the API operation methods for making requests to AWS Shield. See this package's package overview docs for details on the service.

Shield methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New Uses

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Shield

New creates a new instance of the Shield client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a Shield client from just a session.
svc := shield.New(mySession)

// Create a Shield client with additional configuration
svc := shield.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*Shield) AssociateDRTLogBucket Uses

func (c *Shield) AssociateDRTLogBucket(input *AssociateDRTLogBucketInput) (*AssociateDRTLogBucketOutput, error)

AssociateDRTLogBucket API operation for AWS Shield.

Authorizes the DDoS Response team (DRT) to access the specified Amazon S3 bucket containing your AWS WAF logs. You can associate up to 10 Amazon S3 buckets with your subscription.

To use the services of the DRT and make an AssociateDRTLogBucket request, you must be subscribed to the Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/).

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 Shield's API operation AssociateDRTLogBucket for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidOperationException "InvalidOperationException"
Exception that indicates that the operation would not cause any change to
occur.

* ErrCodeNoAssociatedRoleException "NoAssociatedRoleException"
The ARN of the role that you specifed does not exist.

* ErrCodeLimitsExceededException "LimitsExceededException"
Exception that indicates that the operation would exceed a limit.

Type is the type of limit that would be exceeded.

Limit is the threshold that would be exceeded.

* ErrCodeInvalidParameterException "InvalidParameterException"
Exception that indicates that the parameters passed to the API are invalid.

* ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException"
In order to grant the necessary access to the DDoS Response Team, the user
submitting AssociateDRTRole must have the iam:PassRole permission. This error
indicates the user did not have the appropriate permissions. For more information,
see Granting a User Permissions to Pass a Role to an AWS Service (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AssociateDRTLogBucket

func (*Shield) AssociateDRTLogBucketRequest Uses

func (c *Shield) AssociateDRTLogBucketRequest(input *AssociateDRTLogBucketInput) (req *request.Request, output *AssociateDRTLogBucketOutput)

AssociateDRTLogBucketRequest generates a "aws/request.Request" representing the client's request for the AssociateDRTLogBucket 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 AssociateDRTLogBucket for more information on using the AssociateDRTLogBucket 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 AssociateDRTLogBucketRequest method.
req, resp := client.AssociateDRTLogBucketRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AssociateDRTLogBucket

func (*Shield) AssociateDRTLogBucketWithContext Uses

func (c *Shield) AssociateDRTLogBucketWithContext(ctx aws.Context, input *AssociateDRTLogBucketInput, opts ...request.Option) (*AssociateDRTLogBucketOutput, error)

AssociateDRTLogBucketWithContext is the same as AssociateDRTLogBucket with the addition of the ability to pass a context and additional request options.

See AssociateDRTLogBucket 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 (*Shield) AssociateDRTRole Uses

func (c *Shield) AssociateDRTRole(input *AssociateDRTRoleInput) (*AssociateDRTRoleOutput, error)

AssociateDRTRole API operation for AWS Shield.

Authorizes the DDoS Response team (DRT), using the specified role, to access your AWS account to assist with DDoS attack mitigation during potential attacks. This enables the DRT to inspect your AWS WAF configuration and create or update AWS WAF rules and web ACLs.

You can associate only one RoleArn with your subscription. If you submit an AssociateDRTRole request for an account that already has an associated role, the new RoleArn will replace the existing RoleArn.

Prior to making the AssociateDRTRole request, you must attach the AWSShieldDRTAccessPolicy (https://console.aws.amazon.com/iam/home?#/policies/arn:aws:iam::aws:policy/service-role/AWSShieldDRTAccessPolicy) managed policy to the role you will specify in the request. For more information see Attaching and Detaching IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_manage-attach-detach.html). The role must also trust the service principal drt.shield.amazonaws.com. For more information, see IAM JSON Policy Elements: Principal (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html).

The DRT will have access only to your AWS WAF and Shield resources. By submitting this request, you authorize the DRT to inspect your AWS WAF and Shield configuration and create and update AWS WAF rules and web ACLs on your behalf. The DRT takes these actions only if explicitly authorized by you.

You must have the iam:PassRole permission to make an AssociateDRTRole request. For more information, see Granting a User Permissions to Pass a Role to an AWS Service (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).

To use the services of the DRT and make an AssociateDRTRole request, you must be subscribed to the Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/).

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 Shield's API operation AssociateDRTRole for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidOperationException "InvalidOperationException"
Exception that indicates that the operation would not cause any change to
occur.

* ErrCodeInvalidParameterException "InvalidParameterException"
Exception that indicates that the parameters passed to the API are invalid.

* ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException"
In order to grant the necessary access to the DDoS Response Team, the user
submitting AssociateDRTRole must have the iam:PassRole permission. This error
indicates the user did not have the appropriate permissions. For more information,
see Granting a User Permissions to Pass a Role to an AWS Service (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AssociateDRTRole

func (*Shield) AssociateDRTRoleRequest Uses

func (c *Shield) AssociateDRTRoleRequest(input *AssociateDRTRoleInput) (req *request.Request, output *AssociateDRTRoleOutput)

AssociateDRTRoleRequest generates a "aws/request.Request" representing the client's request for the AssociateDRTRole 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 AssociateDRTRole for more information on using the AssociateDRTRole 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 AssociateDRTRoleRequest method.
req, resp := client.AssociateDRTRoleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AssociateDRTRole

func (*Shield) AssociateDRTRoleWithContext Uses

func (c *Shield) AssociateDRTRoleWithContext(ctx aws.Context, input *AssociateDRTRoleInput, opts ...request.Option) (*AssociateDRTRoleOutput, error)

AssociateDRTRoleWithContext is the same as AssociateDRTRole with the addition of the ability to pass a context and additional request options.

See AssociateDRTRole 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 (*Shield) CreateProtection Uses

func (c *Shield) CreateProtection(input *CreateProtectionInput) (*CreateProtectionOutput, error)

CreateProtection API operation for AWS Shield.

Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, AWS Global Accelerator accelerator, Elastic IP Address, or an Amazon Route 53 hosted zone.

You can add protection to only a single resource with each CreateProtection request. If you want to add protection to multiple resources at once, use the AWS WAF console (https://console.aws.amazon.com/waf/). For more information see Getting Started with AWS Shield Advanced (https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html) and Add AWS Shield Advanced Protection to more AWS Resources (https://docs.aws.amazon.com/waf/latest/developerguide/configure-new-protection.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 Shield's API operation CreateProtection for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidResourceException "InvalidResourceException"
Exception that indicates that the resource is invalid. You might not have
access to the resource, or the resource might not exist.

* ErrCodeInvalidOperationException "InvalidOperationException"
Exception that indicates that the operation would not cause any change to
occur.

* ErrCodeLimitsExceededException "LimitsExceededException"
Exception that indicates that the operation would exceed a limit.

Type is the type of limit that would be exceeded.

Limit is the threshold that would be exceeded.

* ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
Exception indicating the specified resource already exists.

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtection

func (*Shield) CreateProtectionRequest Uses

func (c *Shield) CreateProtectionRequest(input *CreateProtectionInput) (req *request.Request, output *CreateProtectionOutput)

CreateProtectionRequest generates a "aws/request.Request" representing the client's request for the CreateProtection 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 CreateProtection for more information on using the CreateProtection 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 CreateProtectionRequest method.
req, resp := client.CreateProtectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtection

func (*Shield) CreateProtectionWithContext Uses

func (c *Shield) CreateProtectionWithContext(ctx aws.Context, input *CreateProtectionInput, opts ...request.Option) (*CreateProtectionOutput, error)

CreateProtectionWithContext is the same as CreateProtection with the addition of the ability to pass a context and additional request options.

See CreateProtection 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 (*Shield) CreateSubscription Uses

func (c *Shield) CreateSubscription(input *CreateSubscriptionInput) (*CreateSubscriptionOutput, error)

CreateSubscription API operation for AWS Shield.

Activates AWS Shield Advanced for an account.

As part of this request you can specify EmergencySettings that automaticaly grant the DDoS response team (DRT) needed permissions to assist you during a suspected DDoS attack. For more information see Authorize the DDoS Response Team to Create Rules and Web ACLs on Your Behalf (https://docs.aws.amazon.com/waf/latest/developerguide/authorize-DRT.html).

To use the services of the DRT, you must be subscribed to the Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/).

When you initally create a subscription, your subscription is set to be automatically renewed at the end of the existing subscription period. You can change this by submitting an UpdateSubscription request.

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 Shield's API operation CreateSubscription for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
Exception indicating the specified resource already exists.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscription

func (*Shield) CreateSubscriptionRequest Uses

func (c *Shield) CreateSubscriptionRequest(input *CreateSubscriptionInput) (req *request.Request, output *CreateSubscriptionOutput)

CreateSubscriptionRequest generates a "aws/request.Request" representing the client's request for the CreateSubscription 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 CreateSubscription for more information on using the CreateSubscription 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 CreateSubscriptionRequest method.
req, resp := client.CreateSubscriptionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscription

func (*Shield) CreateSubscriptionWithContext Uses

func (c *Shield) CreateSubscriptionWithContext(ctx aws.Context, input *CreateSubscriptionInput, opts ...request.Option) (*CreateSubscriptionOutput, error)

CreateSubscriptionWithContext is the same as CreateSubscription with the addition of the ability to pass a context and additional request options.

See CreateSubscription 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 (*Shield) DeleteProtection Uses

func (c *Shield) DeleteProtection(input *DeleteProtectionInput) (*DeleteProtectionOutput, error)

DeleteProtection API operation for AWS Shield.

Deletes an AWS Shield Advanced Protection.

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 Shield's API operation DeleteProtection for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtection

func (*Shield) DeleteProtectionRequest Uses

func (c *Shield) DeleteProtectionRequest(input *DeleteProtectionInput) (req *request.Request, output *DeleteProtectionOutput)

DeleteProtectionRequest generates a "aws/request.Request" representing the client's request for the DeleteProtection 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 DeleteProtection for more information on using the DeleteProtection 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 DeleteProtectionRequest method.
req, resp := client.DeleteProtectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteProtection

func (*Shield) DeleteProtectionWithContext Uses

func (c *Shield) DeleteProtectionWithContext(ctx aws.Context, input *DeleteProtectionInput, opts ...request.Option) (*DeleteProtectionOutput, error)

DeleteProtectionWithContext is the same as DeleteProtection with the addition of the ability to pass a context and additional request options.

See DeleteProtection 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 (*Shield) DeleteSubscription Uses

func (c *Shield) DeleteSubscription(input *DeleteSubscriptionInput) (*DeleteSubscriptionOutput, error)

DeleteSubscription API operation for AWS Shield.

Removes AWS Shield Advanced from an account. AWS Shield Advanced requires a 1-year subscription commitment. You cannot delete a subscription prior to the completion of that commitment.

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 Shield's API operation DeleteSubscription for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeLockedSubscriptionException "LockedSubscriptionException"
You are trying to update a subscription that has not yet completed the 1-year
commitment. You can change the AutoRenew parameter during the last 30 days
of your subscription. This exception indicates that you are attempting to
change AutoRenew prior to that period.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscription

Deprecated: DeleteSubscription has been deprecated

func (*Shield) DeleteSubscriptionRequest Uses

func (c *Shield) DeleteSubscriptionRequest(input *DeleteSubscriptionInput) (req *request.Request, output *DeleteSubscriptionOutput)

DeleteSubscriptionRequest generates a "aws/request.Request" representing the client's request for the DeleteSubscription 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 DeleteSubscription for more information on using the DeleteSubscription 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 DeleteSubscriptionRequest method.
req, resp := client.DeleteSubscriptionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscription

Deprecated: DeleteSubscription has been deprecated

func (*Shield) DeleteSubscriptionWithContext Uses

func (c *Shield) DeleteSubscriptionWithContext(ctx aws.Context, input *DeleteSubscriptionInput, opts ...request.Option) (*DeleteSubscriptionOutput, error)

DeleteSubscriptionWithContext is the same as DeleteSubscription with the addition of the ability to pass a context and additional request options.

See DeleteSubscription 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.

Deprecated: DeleteSubscriptionWithContext has been deprecated

func (*Shield) DescribeAttack Uses

func (c *Shield) DescribeAttack(input *DescribeAttackInput) (*DescribeAttackOutput, error)

DescribeAttack API operation for AWS Shield.

Describes the details of a DDoS attack.

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 Shield's API operation DescribeAttack for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeAccessDeniedException "AccessDeniedException"
Exception that indicates the specified AttackId does not exist, or the requester
does not have the appropriate permissions to access the AttackId.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttack

func (*Shield) DescribeAttackRequest Uses

func (c *Shield) DescribeAttackRequest(input *DescribeAttackInput) (req *request.Request, output *DescribeAttackOutput)

DescribeAttackRequest generates a "aws/request.Request" representing the client's request for the DescribeAttack 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 DescribeAttack for more information on using the DescribeAttack 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 DescribeAttackRequest method.
req, resp := client.DescribeAttackRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeAttack

func (*Shield) DescribeAttackWithContext Uses

func (c *Shield) DescribeAttackWithContext(ctx aws.Context, input *DescribeAttackInput, opts ...request.Option) (*DescribeAttackOutput, error)

DescribeAttackWithContext is the same as DescribeAttack with the addition of the ability to pass a context and additional request options.

See DescribeAttack 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 (*Shield) DescribeDRTAccess Uses

func (c *Shield) DescribeDRTAccess(input *DescribeDRTAccessInput) (*DescribeDRTAccessOutput, error)

DescribeDRTAccess API operation for AWS Shield.

Returns the current role and list of Amazon S3 log buckets used by the DDoS Response team (DRT) to access your AWS account while assisting with attack mitigation.

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 Shield's API operation DescribeDRTAccess for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeDRTAccess

func (*Shield) DescribeDRTAccessRequest Uses

func (c *Shield) DescribeDRTAccessRequest(input *DescribeDRTAccessInput) (req *request.Request, output *DescribeDRTAccessOutput)

DescribeDRTAccessRequest generates a "aws/request.Request" representing the client's request for the DescribeDRTAccess 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 DescribeDRTAccess for more information on using the DescribeDRTAccess 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 DescribeDRTAccessRequest method.
req, resp := client.DescribeDRTAccessRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeDRTAccess

func (*Shield) DescribeDRTAccessWithContext Uses

func (c *Shield) DescribeDRTAccessWithContext(ctx aws.Context, input *DescribeDRTAccessInput, opts ...request.Option) (*DescribeDRTAccessOutput, error)

DescribeDRTAccessWithContext is the same as DescribeDRTAccess with the addition of the ability to pass a context and additional request options.

See DescribeDRTAccess 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 (*Shield) DescribeEmergencyContactSettings Uses

func (c *Shield) DescribeEmergencyContactSettings(input *DescribeEmergencyContactSettingsInput) (*DescribeEmergencyContactSettingsOutput, error)

DescribeEmergencyContactSettings API operation for AWS Shield.

Lists the email addresses that the DRT can use to contact you during a suspected attack.

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 Shield's API operation DescribeEmergencyContactSettings for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeEmergencyContactSettings

func (*Shield) DescribeEmergencyContactSettingsRequest Uses

func (c *Shield) DescribeEmergencyContactSettingsRequest(input *DescribeEmergencyContactSettingsInput) (req *request.Request, output *DescribeEmergencyContactSettingsOutput)

DescribeEmergencyContactSettingsRequest generates a "aws/request.Request" representing the client's request for the DescribeEmergencyContactSettings 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 DescribeEmergencyContactSettings for more information on using the DescribeEmergencyContactSettings 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 DescribeEmergencyContactSettingsRequest method.
req, resp := client.DescribeEmergencyContactSettingsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeEmergencyContactSettings

func (*Shield) DescribeEmergencyContactSettingsWithContext Uses

func (c *Shield) DescribeEmergencyContactSettingsWithContext(ctx aws.Context, input *DescribeEmergencyContactSettingsInput, opts ...request.Option) (*DescribeEmergencyContactSettingsOutput, error)

DescribeEmergencyContactSettingsWithContext is the same as DescribeEmergencyContactSettings with the addition of the ability to pass a context and additional request options.

See DescribeEmergencyContactSettings 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 (*Shield) DescribeProtection Uses

func (c *Shield) DescribeProtection(input *DescribeProtectionInput) (*DescribeProtectionOutput, error)

DescribeProtection API operation for AWS Shield.

Lists the details of a Protection object.

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 Shield's API operation DescribeProtection for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidParameterException "InvalidParameterException"
Exception that indicates that the parameters passed to the API are invalid.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtection

func (*Shield) DescribeProtectionRequest Uses

func (c *Shield) DescribeProtectionRequest(input *DescribeProtectionInput) (req *request.Request, output *DescribeProtectionOutput)

DescribeProtectionRequest generates a "aws/request.Request" representing the client's request for the DescribeProtection 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 DescribeProtection for more information on using the DescribeProtection 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 DescribeProtectionRequest method.
req, resp := client.DescribeProtectionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtection

func (*Shield) DescribeProtectionWithContext Uses

func (c *Shield) DescribeProtectionWithContext(ctx aws.Context, input *DescribeProtectionInput, opts ...request.Option) (*DescribeProtectionOutput, error)

DescribeProtectionWithContext is the same as DescribeProtection with the addition of the ability to pass a context and additional request options.

See DescribeProtection 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 (*Shield) DescribeSubscription Uses

func (c *Shield) DescribeSubscription(input *DescribeSubscriptionInput) (*DescribeSubscriptionOutput, error)

DescribeSubscription API operation for AWS Shield.

Provides details about the AWS Shield Advanced subscription for an 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 Shield's API operation DescribeSubscription for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscription

func (*Shield) DescribeSubscriptionRequest Uses

func (c *Shield) DescribeSubscriptionRequest(input *DescribeSubscriptionInput) (req *request.Request, output *DescribeSubscriptionOutput)

DescribeSubscriptionRequest generates a "aws/request.Request" representing the client's request for the DescribeSubscription 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 DescribeSubscription for more information on using the DescribeSubscription 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 DescribeSubscriptionRequest method.
req, resp := client.DescribeSubscriptionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscription

func (*Shield) DescribeSubscriptionWithContext Uses

func (c *Shield) DescribeSubscriptionWithContext(ctx aws.Context, input *DescribeSubscriptionInput, opts ...request.Option) (*DescribeSubscriptionOutput, error)

DescribeSubscriptionWithContext is the same as DescribeSubscription with the addition of the ability to pass a context and additional request options.

See DescribeSubscription 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 (*Shield) DisassociateDRTLogBucket Uses

func (c *Shield) DisassociateDRTLogBucket(input *DisassociateDRTLogBucketInput) (*DisassociateDRTLogBucketOutput, error)

DisassociateDRTLogBucket API operation for AWS Shield.

Removes the DDoS Response team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF logs.

To make a DisassociateDRTLogBucket request, you must be subscribed to the Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTLogBucket request to remove this access.

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 Shield's API operation DisassociateDRTLogBucket for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidOperationException "InvalidOperationException"
Exception that indicates that the operation would not cause any change to
occur.

* ErrCodeNoAssociatedRoleException "NoAssociatedRoleException"
The ARN of the role that you specifed does not exist.

* ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException"
In order to grant the necessary access to the DDoS Response Team, the user
submitting AssociateDRTRole must have the iam:PassRole permission. This error
indicates the user did not have the appropriate permissions. For more information,
see Granting a User Permissions to Pass a Role to an AWS Service (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html).

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisassociateDRTLogBucket

func (*Shield) DisassociateDRTLogBucketRequest Uses

func (c *Shield) DisassociateDRTLogBucketRequest(input *DisassociateDRTLogBucketInput) (req *request.Request, output *DisassociateDRTLogBucketOutput)

DisassociateDRTLogBucketRequest generates a "aws/request.Request" representing the client's request for the DisassociateDRTLogBucket 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 DisassociateDRTLogBucket for more information on using the DisassociateDRTLogBucket 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 DisassociateDRTLogBucketRequest method.
req, resp := client.DisassociateDRTLogBucketRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisassociateDRTLogBucket

func (*Shield) DisassociateDRTLogBucketWithContext Uses

func (c *Shield) DisassociateDRTLogBucketWithContext(ctx aws.Context, input *DisassociateDRTLogBucketInput, opts ...request.Option) (*DisassociateDRTLogBucketOutput, error)

DisassociateDRTLogBucketWithContext is the same as DisassociateDRTLogBucket with the addition of the ability to pass a context and additional request options.

See DisassociateDRTLogBucket 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 (*Shield) DisassociateDRTRole Uses

func (c *Shield) DisassociateDRTRole(input *DisassociateDRTRoleInput) (*DisassociateDRTRoleOutput, error)

DisassociateDRTRole API operation for AWS Shield.

Removes the DDoS Response team's (DRT) access to your AWS account.

To make a DisassociateDRTRole request, you must be subscribed to the Business Support plan (https://aws.amazon.com/premiumsupport/business-support/) or the Enterprise Support plan (https://aws.amazon.com/premiumsupport/enterprise-support/). However, if you are not subscribed to one of these support plans, but had been previously and had granted the DRT access to your account, you can submit a DisassociateDRTRole request to remove this access.

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 Shield's API operation DisassociateDRTRole for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidOperationException "InvalidOperationException"
Exception that indicates that the operation would not cause any change to
occur.

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisassociateDRTRole

func (*Shield) DisassociateDRTRoleRequest Uses

func (c *Shield) DisassociateDRTRoleRequest(input *DisassociateDRTRoleInput) (req *request.Request, output *DisassociateDRTRoleOutput)

DisassociateDRTRoleRequest generates a "aws/request.Request" representing the client's request for the DisassociateDRTRole 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 DisassociateDRTRole for more information on using the DisassociateDRTRole 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 DisassociateDRTRoleRequest method.
req, resp := client.DisassociateDRTRoleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisassociateDRTRole

func (*Shield) DisassociateDRTRoleWithContext Uses

func (c *Shield) DisassociateDRTRoleWithContext(ctx aws.Context, input *DisassociateDRTRoleInput, opts ...request.Option) (*DisassociateDRTRoleOutput, error)

DisassociateDRTRoleWithContext is the same as DisassociateDRTRole with the addition of the ability to pass a context and additional request options.

See DisassociateDRTRole 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 (*Shield) GetSubscriptionState Uses

func (c *Shield) GetSubscriptionState(input *GetSubscriptionStateInput) (*GetSubscriptionStateOutput, error)

GetSubscriptionState API operation for AWS Shield.

Returns the SubscriptionState, either Active or Inactive.

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 Shield's API operation GetSubscriptionState for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/GetSubscriptionState

func (*Shield) GetSubscriptionStateRequest Uses

func (c *Shield) GetSubscriptionStateRequest(input *GetSubscriptionStateInput) (req *request.Request, output *GetSubscriptionStateOutput)

GetSubscriptionStateRequest generates a "aws/request.Request" representing the client's request for the GetSubscriptionState 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 GetSubscriptionState for more information on using the GetSubscriptionState 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 GetSubscriptionStateRequest method.
req, resp := client.GetSubscriptionStateRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/GetSubscriptionState

func (*Shield) GetSubscriptionStateWithContext Uses

func (c *Shield) GetSubscriptionStateWithContext(ctx aws.Context, input *GetSubscriptionStateInput, opts ...request.Option) (*GetSubscriptionStateOutput, error)

GetSubscriptionStateWithContext is the same as GetSubscriptionState with the addition of the ability to pass a context and additional request options.

See GetSubscriptionState 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 (*Shield) ListAttacks Uses

func (c *Shield) ListAttacks(input *ListAttacksInput) (*ListAttacksOutput, error)

ListAttacks API operation for AWS Shield.

Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.

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 Shield's API operation ListAttacks for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidParameterException "InvalidParameterException"
Exception that indicates that the parameters passed to the API are invalid.

* ErrCodeInvalidOperationException "InvalidOperationException"
Exception that indicates that the operation would not cause any change to
occur.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacks

func (*Shield) ListAttacksRequest Uses

func (c *Shield) ListAttacksRequest(input *ListAttacksInput) (req *request.Request, output *ListAttacksOutput)

ListAttacksRequest generates a "aws/request.Request" representing the client's request for the ListAttacks 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 ListAttacks for more information on using the ListAttacks 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 ListAttacksRequest method.
req, resp := client.ListAttacksRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListAttacks

func (*Shield) ListAttacksWithContext Uses

func (c *Shield) ListAttacksWithContext(ctx aws.Context, input *ListAttacksInput, opts ...request.Option) (*ListAttacksOutput, error)

ListAttacksWithContext is the same as ListAttacks with the addition of the ability to pass a context and additional request options.

See ListAttacks 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 (*Shield) ListProtections Uses

func (c *Shield) ListProtections(input *ListProtectionsInput) (*ListProtectionsOutput, error)

ListProtections API operation for AWS Shield.

Lists all Protection objects for the 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 Shield's API operation ListProtections for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

* ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException"
Exception that indicates that the NextToken specified in the request is invalid.
Submit the request using the NextToken value that was returned in the response.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtections

func (*Shield) ListProtectionsRequest Uses

func (c *Shield) ListProtectionsRequest(input *ListProtectionsInput) (req *request.Request, output *ListProtectionsOutput)

ListProtectionsRequest generates a "aws/request.Request" representing the client's request for the ListProtections 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 ListProtections for more information on using the ListProtections 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 ListProtectionsRequest method.
req, resp := client.ListProtectionsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ListProtections

func (*Shield) ListProtectionsWithContext Uses

func (c *Shield) ListProtectionsWithContext(ctx aws.Context, input *ListProtectionsInput, opts ...request.Option) (*ListProtectionsOutput, error)

ListProtectionsWithContext is the same as ListProtections with the addition of the ability to pass a context and additional request options.

See ListProtections 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 (*Shield) UpdateEmergencyContactSettings Uses

func (c *Shield) UpdateEmergencyContactSettings(input *UpdateEmergencyContactSettingsInput) (*UpdateEmergencyContactSettingsOutput, error)

UpdateEmergencyContactSettings API operation for AWS Shield.

Updates the details of the list of email addresses that the DRT can use to contact you during a suspected attack.

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 Shield's API operation UpdateEmergencyContactSettings for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeInvalidParameterException "InvalidParameterException"
Exception that indicates that the parameters passed to the API are invalid.

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateEmergencyContactSettings

func (*Shield) UpdateEmergencyContactSettingsRequest Uses

func (c *Shield) UpdateEmergencyContactSettingsRequest(input *UpdateEmergencyContactSettingsInput) (req *request.Request, output *UpdateEmergencyContactSettingsOutput)

UpdateEmergencyContactSettingsRequest generates a "aws/request.Request" representing the client's request for the UpdateEmergencyContactSettings 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 UpdateEmergencyContactSettings for more information on using the UpdateEmergencyContactSettings 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 UpdateEmergencyContactSettingsRequest method.
req, resp := client.UpdateEmergencyContactSettingsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateEmergencyContactSettings

func (*Shield) UpdateEmergencyContactSettingsWithContext Uses

func (c *Shield) UpdateEmergencyContactSettingsWithContext(ctx aws.Context, input *UpdateEmergencyContactSettingsInput, opts ...request.Option) (*UpdateEmergencyContactSettingsOutput, error)

UpdateEmergencyContactSettingsWithContext is the same as UpdateEmergencyContactSettings with the addition of the ability to pass a context and additional request options.

See UpdateEmergencyContactSettings 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 (*Shield) UpdateSubscription Uses

func (c *Shield) UpdateSubscription(input *UpdateSubscriptionInput) (*UpdateSubscriptionOutput, error)

UpdateSubscription API operation for AWS Shield.

Updates the details of an existing subscription. Only enter values for parameters you want to change. Empty parameters are not updated.

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 Shield's API operation UpdateSubscription for usage and error information.

Returned Error Codes:

* ErrCodeInternalErrorException "InternalErrorException"
Exception that indicates that a problem occurred with the service infrastructure.
You can retry the request.

* ErrCodeLockedSubscriptionException "LockedSubscriptionException"
You are trying to update a subscription that has not yet completed the 1-year
commitment. You can change the AutoRenew parameter during the last 30 days
of your subscription. This exception indicates that you are attempting to
change AutoRenew prior to that period.

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
Exception indicating the specified resource does not exist.

* ErrCodeInvalidParameterException "InvalidParameterException"
Exception that indicates that the parameters passed to the API are invalid.

* ErrCodeOptimisticLockException "OptimisticLockException"
Exception that indicates that the protection state has been modified by another
client. You can retry the request.

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateSubscription

func (*Shield) UpdateSubscriptionRequest Uses

func (c *Shield) UpdateSubscriptionRequest(input *UpdateSubscriptionInput) (req *request.Request, output *UpdateSubscriptionOutput)

UpdateSubscriptionRequest generates a "aws/request.Request" representing the client's request for the UpdateSubscription 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 UpdateSubscription for more information on using the UpdateSubscription 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 UpdateSubscriptionRequest method.
req, resp := client.UpdateSubscriptionRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateSubscription

func (*Shield) UpdateSubscriptionWithContext Uses

func (c *Shield) UpdateSubscriptionWithContext(ctx aws.Context, input *UpdateSubscriptionInput, opts ...request.Option) (*UpdateSubscriptionOutput, error)

UpdateSubscriptionWithContext is the same as UpdateSubscription with the addition of the ability to pass a context and additional request options.

See UpdateSubscription 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.

type SubResourceSummary Uses

type SubResourceSummary struct {

    // The list of attack types and associated counters.
    AttackVectors []*SummarizedAttackVector `type:"list"`

    // The counters that describe the details of the attack.
    Counters []*SummarizedCounter `type:"list"`

    // The unique identifier (ID) of the SubResource.
    Id  *string `type:"string"`

    // The SubResource type.
    Type *string `type:"string" enum:"SubResourceType"`
    // contains filtered or unexported fields
}

The attack information for the specified SubResource.

func (SubResourceSummary) GoString Uses

func (s SubResourceSummary) GoString() string

GoString returns the string representation

func (*SubResourceSummary) SetAttackVectors Uses

func (s *SubResourceSummary) SetAttackVectors(v []*SummarizedAttackVector) *SubResourceSummary

SetAttackVectors sets the AttackVectors field's value.

func (*SubResourceSummary) SetCounters Uses

func (s *SubResourceSummary) SetCounters(v []*SummarizedCounter) *SubResourceSummary

SetCounters sets the Counters field's value.

func (*SubResourceSummary) SetId Uses

func (s *SubResourceSummary) SetId(v string) *SubResourceSummary

SetId sets the Id field's value.

func (*SubResourceSummary) SetType Uses

func (s *SubResourceSummary) SetType(v string) *SubResourceSummary

SetType sets the Type field's value.

func (SubResourceSummary) String Uses

func (s SubResourceSummary) String() string

String returns the string representation

type Subscription Uses

type Subscription struct {

    // If ENABLED, the subscription will be automatically renewed at the end of
    // the existing subscription period.
    //
    // When you initally create a subscription, AutoRenew is set to ENABLED. You
    // can change this by submitting an UpdateSubscription request. If the UpdateSubscription
    // request does not included a value for AutoRenew, the existing value for AutoRenew
    // remains unchanged.
    AutoRenew *string `type:"string" enum:"AutoRenew"`

    // The date and time your subscription will end.
    EndTime *time.Time `type:"timestamp"`

    // Specifies how many protections of a given type you can create.
    Limits []*Limit `type:"list"`

    // The start time of the subscription, in Unix time in seconds. For more information
    // see timestamp (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
    StartTime *time.Time `type:"timestamp"`

    // The length, in seconds, of the AWS Shield Advanced subscription for the account.
    TimeCommitmentInSeconds *int64 `type:"long"`
    // contains filtered or unexported fields
}

Information about the AWS Shield Advanced subscription for an account.

func (Subscription) GoString Uses

func (s Subscription) GoString() string

GoString returns the string representation

func (*Subscription) SetAutoRenew Uses

func (s *Subscription) SetAutoRenew(v string) *Subscription

SetAutoRenew sets the AutoRenew field's value.

func (*Subscription) SetEndTime Uses

func (s *Subscription) SetEndTime(v time.Time) *Subscription

SetEndTime sets the EndTime field's value.

func (*Subscription) SetLimits Uses

func (s *Subscription) SetLimits(v []*Limit) *Subscription

SetLimits sets the Limits field's value.

func (*Subscription) SetStartTime Uses

func (s *Subscription) SetStartTime(v time.Time) *Subscription

SetStartTime sets the StartTime field's value.

func (*Subscription) SetTimeCommitmentInSeconds Uses

func (s *Subscription) SetTimeCommitmentInSeconds(v int64) *Subscription

SetTimeCommitmentInSeconds sets the TimeCommitmentInSeconds field's value.

func (Subscription) String Uses

func (s Subscription) String() string

String returns the string representation

type SummarizedAttackVector Uses

type SummarizedAttackVector struct {

    // The list of counters that describe the details of the attack.
    VectorCounters []*SummarizedCounter `type:"list"`

    // The attack type, for example, SNMP reflection or SYN flood.
    //
    // VectorType is a required field
    VectorType *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

A summary of information about the attack.

func (SummarizedAttackVector) GoString Uses

func (s SummarizedAttackVector) GoString() string

GoString returns the string representation

func (*SummarizedAttackVector) SetVectorCounters Uses

func (s *SummarizedAttackVector) SetVectorCounters(v []*SummarizedCounter) *SummarizedAttackVector

SetVectorCounters sets the VectorCounters field's value.

func (*SummarizedAttackVector) SetVectorType Uses

func (s *SummarizedAttackVector) SetVectorType(v string) *SummarizedAttackVector

SetVectorType sets the VectorType field's value.

func (SummarizedAttackVector) String Uses

func (s SummarizedAttackVector) String() string

String returns the string representation

type SummarizedCounter Uses

type SummarizedCounter struct {

    // The average value of the counter for a specified time period.
    Average *float64 `type:"double"`

    // The maximum value of the counter for a specified time period.
    Max *float64 `type:"double"`

    // The number of counters for a specified time period.
    N   *int64 `type:"integer"`

    // The counter name.
    Name *string `type:"string"`

    // The total of counter values for a specified time period.
    Sum *float64 `type:"double"`

    // The unit of the counters.
    Unit *string `type:"string"`
    // contains filtered or unexported fields
}

The counter that describes a DDoS attack.

func (SummarizedCounter) GoString Uses

func (s SummarizedCounter) GoString() string

GoString returns the string representation

func (*SummarizedCounter) SetAverage Uses

func (s *SummarizedCounter) SetAverage(v float64) *SummarizedCounter

SetAverage sets the Average field's value.

func (*SummarizedCounter) SetMax Uses

func (s *SummarizedCounter) SetMax(v float64) *SummarizedCounter

SetMax sets the Max field's value.

func (*SummarizedCounter) SetN Uses

func (s *SummarizedCounter) SetN(v int64) *SummarizedCounter

SetN sets the N field's value.

func (*SummarizedCounter) SetName Uses

func (s *SummarizedCounter) SetName(v string) *SummarizedCounter

SetName sets the Name field's value.

func (*SummarizedCounter) SetSum Uses

func (s *SummarizedCounter) SetSum(v float64) *SummarizedCounter

SetSum sets the Sum field's value.

func (*SummarizedCounter) SetUnit Uses

func (s *SummarizedCounter) SetUnit(v string) *SummarizedCounter

SetUnit sets the Unit field's value.

func (SummarizedCounter) String Uses

func (s SummarizedCounter) String() string

String returns the string representation

type TimeRange Uses

type TimeRange struct {

    // The start time, in Unix time in seconds. For more information see timestamp
    // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
    FromInclusive *time.Time `type:"timestamp"`

    // The end time, in Unix time in seconds. For more information see timestamp
    // (http://docs.aws.amazon.com/cli/latest/userguide/cli-using-param.html#parameter-types).
    ToExclusive *time.Time `type:"timestamp"`
    // contains filtered or unexported fields
}

The time range.

func (TimeRange) GoString Uses

func (s TimeRange) GoString() string

GoString returns the string representation

func (*TimeRange) SetFromInclusive Uses

func (s *TimeRange) SetFromInclusive(v time.Time) *TimeRange

SetFromInclusive sets the FromInclusive field's value.

func (*TimeRange) SetToExclusive Uses

func (s *TimeRange) SetToExclusive(v time.Time) *TimeRange

SetToExclusive sets the ToExclusive field's value.

func (TimeRange) String Uses

func (s TimeRange) String() string

String returns the string representation

type UpdateEmergencyContactSettingsInput Uses

type UpdateEmergencyContactSettingsInput struct {

    // A list of email addresses that the DRT can use to contact you during a suspected
    // attack.
    EmergencyContactList []*EmergencyContact `type:"list"`
    // contains filtered or unexported fields
}

func (UpdateEmergencyContactSettingsInput) GoString Uses

func (s UpdateEmergencyContactSettingsInput) GoString() string

GoString returns the string representation

func (*UpdateEmergencyContactSettingsInput) SetEmergencyContactList Uses

func (s *UpdateEmergencyContactSettingsInput) SetEmergencyContactList(v []*EmergencyContact) *UpdateEmergencyContactSettingsInput

SetEmergencyContactList sets the EmergencyContactList field's value.

func (UpdateEmergencyContactSettingsInput) String Uses

func (s UpdateEmergencyContactSettingsInput) String() string

String returns the string representation

func (*UpdateEmergencyContactSettingsInput) Validate Uses

func (s *UpdateEmergencyContactSettingsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateEmergencyContactSettingsOutput Uses

type UpdateEmergencyContactSettingsOutput struct {
    // contains filtered or unexported fields
}

func (UpdateEmergencyContactSettingsOutput) GoString Uses

func (s UpdateEmergencyContactSettingsOutput) GoString() string

GoString returns the string representation

func (UpdateEmergencyContactSettingsOutput) String Uses

func (s UpdateEmergencyContactSettingsOutput) String() string

String returns the string representation

type UpdateSubscriptionInput Uses

type UpdateSubscriptionInput struct {

    // When you initally create a subscription, AutoRenew is set to ENABLED. If
    // ENABLED, the subscription will be automatically renewed at the end of the
    // existing subscription period. You can change this by submitting an UpdateSubscription
    // request. If the UpdateSubscription request does not included a value for
    // AutoRenew, the existing value for AutoRenew remains unchanged.
    AutoRenew *string `type:"string" enum:"AutoRenew"`
    // contains filtered or unexported fields
}

func (UpdateSubscriptionInput) GoString Uses

func (s UpdateSubscriptionInput) GoString() string

GoString returns the string representation

func (*UpdateSubscriptionInput) SetAutoRenew Uses

func (s *UpdateSubscriptionInput) SetAutoRenew(v string) *UpdateSubscriptionInput

SetAutoRenew sets the AutoRenew field's value.

func (UpdateSubscriptionInput) String Uses

func (s UpdateSubscriptionInput) String() string

String returns the string representation

type UpdateSubscriptionOutput Uses

type UpdateSubscriptionOutput struct {
    // contains filtered or unexported fields
}

func (UpdateSubscriptionOutput) GoString Uses

func (s UpdateSubscriptionOutput) GoString() string

GoString returns the string representation

func (UpdateSubscriptionOutput) String Uses

func (s UpdateSubscriptionOutput) String() string

String returns the string representation

Directories

PathSynopsis
shieldifacePackage shieldiface provides an interface to enable mocking the AWS Shield service client for testing your code.

Package shield imports 10 packages (graph) and is imported by 30 packages. Updated 2019-10-27. Refresh now. Tools for package owners.