Class EC2Metadata
- java.lang.Object
-
- io.fabric8.openshift.api.model.hive.aws.v1.EC2Metadata
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<EC2MetadataBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class EC2Metadata extends Object implements io.fabric8.kubernetes.api.builder.Editable<EC2MetadataBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
EC2Metadata defines the metadata service interaction options for an ec2 instance. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EC2Metadata()No args constructor for use in serializationEC2Metadata(String authentication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EC2MetadataBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAuthentication()Authentication determines whether or not the host requires the use of authentication when interacting with the metadata service.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthentication(String authentication)Authentication determines whether or not the host requires the use of authentication when interacting with the metadata service.EC2MetadataBuildertoBuilder()
-
-
-
Constructor Detail
-
EC2Metadata
public EC2Metadata()
No args constructor for use in serialization
-
EC2Metadata
public EC2Metadata(String authentication)
-
-
Method Detail
-
getAuthentication
public String getAuthentication()
Authentication determines whether or not the host requires the use of authentication when interacting with the metadata service. When using authentication, this enforces v2 interaction method (IMDSv2) with the metadata service. When omitted, this means the user has no opinion and the value is left to the platform to choose a good default, which is subject to change over time. The current default is optional. At this point this field represents `HttpTokens` parameter from `InstanceMetadataOptionsRequest` structure in AWS EC2 API https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_InstanceMetadataOptionsRequest.html
-
setAuthentication
public void setAuthentication(String authentication)
Authentication determines whether or not the host requires the use of authentication when interacting with the metadata service. When using authentication, this enforces v2 interaction method (IMDSv2) with the metadata service. When omitted, this means the user has no opinion and the value is left to the platform to choose a good default, which is subject to change over time. The current default is optional. At this point this field represents `HttpTokens` parameter from `InstanceMetadataOptionsRequest` structure in AWS EC2 API https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_InstanceMetadataOptionsRequest.html
-
edit
public EC2MetadataBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<EC2MetadataBuilder>
-
toBuilder
public EC2MetadataBuilder toBuilder()
-
-