@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails extends Object implements Serializable, Cloneable, StructuredPojo
The log configuration specification for the container.
| Constructor and Description |
|---|
AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails() |
public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails()
public void setLogDriver(String logDriver)
The log driver to use for the container.
Valid values on Fargate are as follows:
awsfirelens
awslogs
splunk
Valid values on Amazon EC2 are as follows:
awsfirelens
awslogs
fluentd
gelf
journald
json-file
logentries
splunk
syslog
logDriver - The log driver to use for the container.
Valid values on Fargate are as follows:
awsfirelens
awslogs
splunk
Valid values on Amazon EC2 are as follows:
awsfirelens
awslogs
fluentd
gelf
journald
json-file
logentries
splunk
syslog
public String getLogDriver()
The log driver to use for the container.
Valid values on Fargate are as follows:
awsfirelens
awslogs
splunk
Valid values on Amazon EC2 are as follows:
awsfirelens
awslogs
fluentd
gelf
journald
json-file
logentries
splunk
syslog
Valid values on Fargate are as follows:
awsfirelens
awslogs
splunk
Valid values on Amazon EC2 are as follows:
awsfirelens
awslogs
fluentd
gelf
journald
json-file
logentries
splunk
syslog
public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withLogDriver(String logDriver)
The log driver to use for the container.
Valid values on Fargate are as follows:
awsfirelens
awslogs
splunk
Valid values on Amazon EC2 are as follows:
awsfirelens
awslogs
fluentd
gelf
journald
json-file
logentries
splunk
syslog
logDriver - The log driver to use for the container.
Valid values on Fargate are as follows:
awsfirelens
awslogs
splunk
Valid values on Amazon EC2 are as follows:
awsfirelens
awslogs
fluentd
gelf
journald
json-file
logentries
splunk
syslog
public Map<String,String> getOptions()
The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on your container instance.
public void setOptions(Map<String,String> options)
The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on your container instance.
options - The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or
greater on your container instance.public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withOptions(Map<String,String> options)
The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or greater on your container instance.
options - The configuration options to send to the log driver. Requires version 1.19 of the Docker Remote API or
greater on your container instance.public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails addOptionsEntry(String key, String value)
public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails clearOptionsEntries()
public List<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails> getSecretOptions()
The secrets to pass to the log configuration.
public void setSecretOptions(Collection<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails> secretOptions)
The secrets to pass to the log configuration.
secretOptions - The secrets to pass to the log configuration.public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withSecretOptions(AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails... secretOptions)
The secrets to pass to the log configuration.
NOTE: This method appends the values to the existing list (if any). Use
setSecretOptions(java.util.Collection) or withSecretOptions(java.util.Collection) if you want
to override the existing values.
secretOptions - The secrets to pass to the log configuration.public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails withSecretOptions(Collection<AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationSecretOptionsDetails> secretOptions)
The secrets to pass to the log configuration.
secretOptions - The secrets to pass to the log configuration.public String toString()
toString in class ObjectObject.toString()public AwsEcsTaskDefinitionContainerDefinitionsLogConfigurationDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.