Class: Aws::SecurityHub::Types::AwsS3BucketWebsiteConfigurationRoutingRuleRedirect

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb

Overview

Note:

When making an API call, you may pass AwsS3BucketWebsiteConfigurationRoutingRuleRedirect data as a hash:

{
  hostname: "NonEmptyString",
  http_redirect_code: "NonEmptyString",
  protocol: "NonEmptyString",
  replace_key_prefix_with: "NonEmptyString",
  replace_key_with: "NonEmptyString",
}

The rules to redirect the request if the condition in Condition is met.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#hostnameString

The host name to use in the redirect request.

Returns:

  • (String)


16636
16637
16638
16639
16640
16641
16642
16643
16644
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 16636

class AwsS3BucketWebsiteConfigurationRoutingRuleRedirect < Struct.new(
  :hostname,
  :http_redirect_code,
  :protocol,
  :replace_key_prefix_with,
  :replace_key_with)
  SENSITIVE = []
  include Aws::Structure
end

#http_redirect_codeString

The HTTP redirect code to use in the response.

Returns:

  • (String)


16636
16637
16638
16639
16640
16641
16642
16643
16644
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 16636

class AwsS3BucketWebsiteConfigurationRoutingRuleRedirect < Struct.new(
  :hostname,
  :http_redirect_code,
  :protocol,
  :replace_key_prefix_with,
  :replace_key_with)
  SENSITIVE = []
  include Aws::Structure
end

#protocolString

The protocol to use to redirect the request. By default, uses the protocol from the original request.

Returns:

  • (String)


16636
16637
16638
16639
16640
16641
16642
16643
16644
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 16636

class AwsS3BucketWebsiteConfigurationRoutingRuleRedirect < Struct.new(
  :hostname,
  :http_redirect_code,
  :protocol,
  :replace_key_prefix_with,
  :replace_key_with)
  SENSITIVE = []
  include Aws::Structure
end

#replace_key_prefix_withString

The object key prefix to use in the redirect request.

Cannot be provided if ReplaceKeyWith is present.

Returns:

  • (String)


16636
16637
16638
16639
16640
16641
16642
16643
16644
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 16636

class AwsS3BucketWebsiteConfigurationRoutingRuleRedirect < Struct.new(
  :hostname,
  :http_redirect_code,
  :protocol,
  :replace_key_prefix_with,
  :replace_key_with)
  SENSITIVE = []
  include Aws::Structure
end

#replace_key_withString

The specific object key to use in the redirect request.

Cannot be provided if ReplaceKeyPrefixWith is present.

Returns:

  • (String)


16636
16637
16638
16639
16640
16641
16642
16643
16644
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 16636

class AwsS3BucketWebsiteConfigurationRoutingRuleRedirect < Struct.new(
  :hostname,
  :http_redirect_code,
  :protocol,
  :replace_key_prefix_with,
  :replace_key_with)
  SENSITIVE = []
  include Aws::Structure
end