Class: Aws::NetworkSecurityManager::Types::AccountFilter

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

Overview

Note:

AccountFilter is a union - when making an API calls you must set exactly one of the members.

Note:

AccountFilter is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of AccountFilter corresponding to the set member.

Determines which accounts are in scope. Exactly one of includeAll, include, or exclude is set.

Defined Under Namespace

Classes: Exclude, Include, IncludeAll, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#exclude ⇒ Types::AccountSet

Excludes the specified accounts and organizational units. All others are in scope.

Returns:



48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'gems/aws-sdk-networksecuritymanager/lib/aws-sdk-networksecuritymanager/types.rb', line 48

class AccountFilter < Struct.new(
  :include_all,
  :include,
  :exclude,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class IncludeAll < AccountFilter; end
  class Include < AccountFilter; end
  class Exclude < AccountFilter; end
  class Unknown < AccountFilter; end
end

#include ⇒ Types::AccountSet

Includes only the specified accounts and organizational units.

Returns:



48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'gems/aws-sdk-networksecuritymanager/lib/aws-sdk-networksecuritymanager/types.rb', line 48

class AccountFilter < Struct.new(
  :include_all,
  :include,
  :exclude,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class IncludeAll < AccountFilter; end
  class Include < AccountFilter; end
  class Exclude < AccountFilter; end
  class Unknown < AccountFilter; end
end

#include_all ⇒ Types::Unit

Includes all accounts. No account filtering is applied.

Returns:

  • (Types::Unit)


48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'gems/aws-sdk-networksecuritymanager/lib/aws-sdk-networksecuritymanager/types.rb', line 48

class AccountFilter < Struct.new(
  :include_all,
  :include,
  :exclude,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class IncludeAll < AccountFilter; end
  class Include < AccountFilter; end
  class Exclude < AccountFilter; end
  class Unknown < AccountFilter; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



48
49
50
# File 'gems/aws-sdk-networksecuritymanager/lib/aws-sdk-networksecuritymanager/types.rb', line 48

def unknown
  @unknown
end