Class: Aws::NetworkSecurityManager::Types::AssociatedTemplateOrRule

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

Overview

Note:

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

An association between a policy and either a template or a rule, as returned in outputs. Exactly one of templateArn or ruleArn is set. The corresponding request structure is TemplateOrRuleReference.

Defined Under Namespace

Classes: RuleArn, TemplateArn, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#rule_arn ⇒ String

The ARN of the associated rule.

Returns:

  • (String)


427
428
429
430
431
432
433
434
435
436
437
438
# File 'gems/aws-sdk-networksecuritymanager/lib/aws-sdk-networksecuritymanager/types.rb', line 427

class AssociatedTemplateOrRule < Struct.new(
  :template_arn,
  :rule_arn,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class TemplateArn < AssociatedTemplateOrRule; end
  class RuleArn < AssociatedTemplateOrRule; end
  class Unknown < AssociatedTemplateOrRule; end
end

#template_arn ⇒ String

The ARN of the associated template.

Returns:

  • (String)


427
428
429
430
431
432
433
434
435
436
437
438
# File 'gems/aws-sdk-networksecuritymanager/lib/aws-sdk-networksecuritymanager/types.rb', line 427

class AssociatedTemplateOrRule < Struct.new(
  :template_arn,
  :rule_arn,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class TemplateArn < AssociatedTemplateOrRule; end
  class RuleArn < AssociatedTemplateOrRule; end
  class Unknown < AssociatedTemplateOrRule; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



427
428
429
# File 'gems/aws-sdk-networksecuritymanager/lib/aws-sdk-networksecuritymanager/types.rb', line 427

def unknown
  @unknown
end