id
int32 0
165k
| repo
stringlengths 7
58
| path
stringlengths 12
218
| func_name
stringlengths 3
140
| original_string
stringlengths 73
34.1k
| language
stringclasses 1
value | code
stringlengths 73
34.1k
| code_tokens
list | docstring
stringlengths 3
16k
| docstring_tokens
list | sha
stringlengths 40
40
| url
stringlengths 105
339
|
|---|---|---|---|---|---|---|---|---|---|---|---|
20,300
|
aws/aws-sdk-java
|
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java
|
StepFunctionBuilder.lt
|
public static StringLessThanCondition.Builder lt(String variable, String expectedValue) {
return StringLessThanCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
java
|
public static StringLessThanCondition.Builder lt(String variable, String expectedValue) {
return StringLessThanCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
[
"public",
"static",
"StringLessThanCondition",
".",
"Builder",
"lt",
"(",
"String",
"variable",
",",
"String",
"expectedValue",
")",
"{",
"return",
"StringLessThanCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",
"expectedValue",
")",
";",
"}"
] |
Binary condition for String less than comparison.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-language.net/spec.html#choice-state</a>
@see com.amazonaws.services.stepfunctions.builder.states.Choice
|
[
"Binary",
"condition",
"for",
"String",
"less",
"than",
"comparison",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L368-L370
|
20,301
|
aws/aws-sdk-java
|
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java
|
StepFunctionBuilder.lt
|
public static NumericLessThanCondition.Builder lt(String variable, long expectedValue) {
return NumericLessThanCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
java
|
public static NumericLessThanCondition.Builder lt(String variable, long expectedValue) {
return NumericLessThanCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
[
"public",
"static",
"NumericLessThanCondition",
".",
"Builder",
"lt",
"(",
"String",
"variable",
",",
"long",
"expectedValue",
")",
"{",
"return",
"NumericLessThanCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",
"expectedValue",
")",
";",
"}"
] |
Binary condition for Numeric less than comparison. Supports both integral and floating point numeric types.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-language.net/spec.html#choice-state</a>
@see com.amazonaws.services.stepfunctions.builder.states.Choice
|
[
"Binary",
"condition",
"for",
"Numeric",
"less",
"than",
"comparison",
".",
"Supports",
"both",
"integral",
"and",
"floating",
"point",
"numeric",
"types",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L380-L382
|
20,302
|
aws/aws-sdk-java
|
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java
|
StepFunctionBuilder.lt
|
public static TimestampLessThanCondition.Builder lt(String variable, Date expectedValue) {
return TimestampLessThanCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
java
|
public static TimestampLessThanCondition.Builder lt(String variable, Date expectedValue) {
return TimestampLessThanCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
[
"public",
"static",
"TimestampLessThanCondition",
".",
"Builder",
"lt",
"(",
"String",
"variable",
",",
"Date",
"expectedValue",
")",
"{",
"return",
"TimestampLessThanCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",
"expectedValue",
")",
";",
"}"
] |
Binary condition for Timestamp less than comparison. Dates are converted to ISO8601 UTC timestamps.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-language.net/spec.html#choice-state</a>
@see com.amazonaws.services.stepfunctions.builder.states.Choice
|
[
"Binary",
"condition",
"for",
"Timestamp",
"less",
"than",
"comparison",
".",
"Dates",
"are",
"converted",
"to",
"ISO8601",
"UTC",
"timestamps",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L404-L406
|
20,303
|
aws/aws-sdk-java
|
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java
|
StepFunctionBuilder.lte
|
public static StringLessThanOrEqualCondition.Builder lte(String variable, String expectedValue) {
return StringLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
java
|
public static StringLessThanOrEqualCondition.Builder lte(String variable, String expectedValue) {
return StringLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
[
"public",
"static",
"StringLessThanOrEqualCondition",
".",
"Builder",
"lte",
"(",
"String",
"variable",
",",
"String",
"expectedValue",
")",
"{",
"return",
"StringLessThanOrEqualCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",
"expectedValue",
")",
";",
"}"
] |
Binary condition for String less than or equal to comparison.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-language.net/spec.html#choice-state</a>
@see com.amazonaws.services.stepfunctions.builder.states.Choice
|
[
"Binary",
"condition",
"for",
"String",
"less",
"than",
"or",
"equal",
"to",
"comparison",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L416-L418
|
20,304
|
aws/aws-sdk-java
|
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java
|
StepFunctionBuilder.lte
|
public static NumericLessThanOrEqualCondition.Builder lte(String variable, long expectedValue) {
return NumericLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
java
|
public static NumericLessThanOrEqualCondition.Builder lte(String variable, long expectedValue) {
return NumericLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
[
"public",
"static",
"NumericLessThanOrEqualCondition",
".",
"Builder",
"lte",
"(",
"String",
"variable",
",",
"long",
"expectedValue",
")",
"{",
"return",
"NumericLessThanOrEqualCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",
"expectedValue",
")",
";",
"}"
] |
Binary condition for Numeric less than or equal to comparison. Supports both integral and floating point numeric types.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-language.net/spec.html#choice-state</a>
@see com.amazonaws.services.stepfunctions.builder.states.Choice
|
[
"Binary",
"condition",
"for",
"Numeric",
"less",
"than",
"or",
"equal",
"to",
"comparison",
".",
"Supports",
"both",
"integral",
"and",
"floating",
"point",
"numeric",
"types",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L428-L430
|
20,305
|
aws/aws-sdk-java
|
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java
|
StepFunctionBuilder.lte
|
public static TimestampLessThanOrEqualCondition.Builder lte(String variable, Date expectedValue) {
return TimestampLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
java
|
public static TimestampLessThanOrEqualCondition.Builder lte(String variable, Date expectedValue) {
return TimestampLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
}
|
[
"public",
"static",
"TimestampLessThanOrEqualCondition",
".",
"Builder",
"lte",
"(",
"String",
"variable",
",",
"Date",
"expectedValue",
")",
"{",
"return",
"TimestampLessThanOrEqualCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",
"expectedValue",
")",
";",
"}"
] |
Binary condition for Timestamp less than or equal to comparison. Dates are converted to ISO8601 UTC timestamps.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-language.net/spec.html#choice-state</a>
@see com.amazonaws.services.stepfunctions.builder.states.Choice
|
[
"Binary",
"condition",
"for",
"Timestamp",
"less",
"than",
"or",
"equal",
"to",
"comparison",
".",
"Dates",
"are",
"converted",
"to",
"ISO8601",
"UTC",
"timestamps",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L452-L454
|
20,306
|
aws/aws-sdk-java
|
aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java
|
SimpleDBUtils.encodeZeroPadding
|
public static String encodeZeroPadding(int number, int maxNumDigits) {
String integerString = Integer.toString(number);
int numZeroes = maxNumDigits - integerString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + integerString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(integerString);
return strBuffer.toString();
}
|
java
|
public static String encodeZeroPadding(int number, int maxNumDigits) {
String integerString = Integer.toString(number);
int numZeroes = maxNumDigits - integerString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + integerString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(integerString);
return strBuffer.toString();
}
|
[
"public",
"static",
"String",
"encodeZeroPadding",
"(",
"int",
"number",
",",
"int",
"maxNumDigits",
")",
"{",
"String",
"integerString",
"=",
"Integer",
".",
"toString",
"(",
"number",
")",
";",
"int",
"numZeroes",
"=",
"maxNumDigits",
"-",
"integerString",
".",
"length",
"(",
")",
";",
"StringBuffer",
"strBuffer",
"=",
"new",
"StringBuffer",
"(",
"numZeroes",
"+",
"integerString",
".",
"length",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numZeroes",
";",
"i",
"++",
")",
"{",
"strBuffer",
".",
"insert",
"(",
"i",
",",
"'",
"'",
")",
";",
"}",
"strBuffer",
".",
"append",
"(",
"integerString",
")",
";",
"return",
"strBuffer",
".",
"toString",
"(",
")",
";",
"}"
] |
Encodes positive integer value into a string by zero-padding number up to the specified
number of digits.
@param number
positive integer to be encoded
@param maxNumDigits
maximum number of digits in the largest value in the data set
@return string representation of the zero-padded integer
|
[
"Encodes",
"positive",
"integer",
"value",
"into",
"a",
"string",
"by",
"zero",
"-",
"padding",
"number",
"up",
"to",
"the",
"specified",
"number",
"of",
"digits",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java#L43-L52
|
20,307
|
aws/aws-sdk-java
|
aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java
|
SimpleDBUtils.encodeZeroPadding
|
public static String encodeZeroPadding(long number, int maxNumDigits) {
String longString = Long.toString(number);
int numZeroes = maxNumDigits - longString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + longString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(longString);
return strBuffer.toString();
}
|
java
|
public static String encodeZeroPadding(long number, int maxNumDigits) {
String longString = Long.toString(number);
int numZeroes = maxNumDigits - longString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + longString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(longString);
return strBuffer.toString();
}
|
[
"public",
"static",
"String",
"encodeZeroPadding",
"(",
"long",
"number",
",",
"int",
"maxNumDigits",
")",
"{",
"String",
"longString",
"=",
"Long",
".",
"toString",
"(",
"number",
")",
";",
"int",
"numZeroes",
"=",
"maxNumDigits",
"-",
"longString",
".",
"length",
"(",
")",
";",
"StringBuffer",
"strBuffer",
"=",
"new",
"StringBuffer",
"(",
"numZeroes",
"+",
"longString",
".",
"length",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numZeroes",
";",
"i",
"++",
")",
"{",
"strBuffer",
".",
"insert",
"(",
"i",
",",
"'",
"'",
")",
";",
"}",
"strBuffer",
".",
"append",
"(",
"longString",
")",
";",
"return",
"strBuffer",
".",
"toString",
"(",
")",
";",
"}"
] |
Encodes positive long value into a string by zero-padding the value up to the specified
number of digits.
@param number
positive long to be encoded
@param maxNumDigits
maximum number of digits in the largest value in the data set
@return string representation of the zero-padded long
|
[
"Encodes",
"positive",
"long",
"value",
"into",
"a",
"string",
"by",
"zero",
"-",
"padding",
"the",
"value",
"up",
"to",
"the",
"specified",
"number",
"of",
"digits",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java#L64-L73
|
20,308
|
aws/aws-sdk-java
|
aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java
|
SimpleDBUtils.encodeZeroPadding
|
public static String encodeZeroPadding(float number, int maxNumDigits) {
String floatString = Float.toString(number);
int numBeforeDecimal = floatString.indexOf('.');
numBeforeDecimal = (numBeforeDecimal >= 0 ? numBeforeDecimal : floatString.length());
int numZeroes = maxNumDigits - numBeforeDecimal;
StringBuffer strBuffer = new StringBuffer(numZeroes + floatString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(floatString);
return strBuffer.toString();
}
|
java
|
public static String encodeZeroPadding(float number, int maxNumDigits) {
String floatString = Float.toString(number);
int numBeforeDecimal = floatString.indexOf('.');
numBeforeDecimal = (numBeforeDecimal >= 0 ? numBeforeDecimal : floatString.length());
int numZeroes = maxNumDigits - numBeforeDecimal;
StringBuffer strBuffer = new StringBuffer(numZeroes + floatString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(floatString);
return strBuffer.toString();
}
|
[
"public",
"static",
"String",
"encodeZeroPadding",
"(",
"float",
"number",
",",
"int",
"maxNumDigits",
")",
"{",
"String",
"floatString",
"=",
"Float",
".",
"toString",
"(",
"number",
")",
";",
"int",
"numBeforeDecimal",
"=",
"floatString",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"numBeforeDecimal",
"=",
"(",
"numBeforeDecimal",
">=",
"0",
"?",
"numBeforeDecimal",
":",
"floatString",
".",
"length",
"(",
")",
")",
";",
"int",
"numZeroes",
"=",
"maxNumDigits",
"-",
"numBeforeDecimal",
";",
"StringBuffer",
"strBuffer",
"=",
"new",
"StringBuffer",
"(",
"numZeroes",
"+",
"floatString",
".",
"length",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numZeroes",
";",
"i",
"++",
")",
"{",
"strBuffer",
".",
"insert",
"(",
"i",
",",
"'",
"'",
")",
";",
"}",
"strBuffer",
".",
"append",
"(",
"floatString",
")",
";",
"return",
"strBuffer",
".",
"toString",
"(",
")",
";",
"}"
] |
Encodes positive float value into a string by zero-padding number up to the specified number
of digits
@param number
positive float value to be encoded
@param maxNumDigits
maximum number of digits preceding the decimal point in the largest value in the
data set
@return string representation of the zero-padded float value
|
[
"Encodes",
"positive",
"float",
"value",
"into",
"a",
"string",
"by",
"zero",
"-",
"padding",
"number",
"up",
"to",
"the",
"specified",
"number",
"of",
"digits"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java#L86-L97
|
20,309
|
aws/aws-sdk-java
|
aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java
|
SimpleDBUtils.encodeRealNumberRange
|
public static String encodeRealNumberRange(int number, int maxNumDigits, int offsetValue) {
long offsetNumber = number + offsetValue;
String longString = Long.toString(offsetNumber);
int numZeroes = maxNumDigits - longString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + longString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(longString);
return strBuffer.toString();
}
|
java
|
public static String encodeRealNumberRange(int number, int maxNumDigits, int offsetValue) {
long offsetNumber = number + offsetValue;
String longString = Long.toString(offsetNumber);
int numZeroes = maxNumDigits - longString.length();
StringBuffer strBuffer = new StringBuffer(numZeroes + longString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(longString);
return strBuffer.toString();
}
|
[
"public",
"static",
"String",
"encodeRealNumberRange",
"(",
"int",
"number",
",",
"int",
"maxNumDigits",
",",
"int",
"offsetValue",
")",
"{",
"long",
"offsetNumber",
"=",
"number",
"+",
"offsetValue",
";",
"String",
"longString",
"=",
"Long",
".",
"toString",
"(",
"offsetNumber",
")",
";",
"int",
"numZeroes",
"=",
"maxNumDigits",
"-",
"longString",
".",
"length",
"(",
")",
";",
"StringBuffer",
"strBuffer",
"=",
"new",
"StringBuffer",
"(",
"numZeroes",
"+",
"longString",
".",
"length",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numZeroes",
";",
"i",
"++",
")",
"{",
"strBuffer",
".",
"insert",
"(",
"i",
",",
"'",
"'",
")",
";",
"}",
"strBuffer",
".",
"append",
"(",
"longString",
")",
";",
"return",
"strBuffer",
".",
"toString",
"(",
")",
";",
"}"
] |
Encodes real integer value into a string by offsetting and zero-padding number up to the
specified number of digits. Use this encoding method if the data range set includes both
positive and negative values.
@param number
integer to be encoded
@param maxNumDigits
maximum number of digits in the largest absolute value in the data set
@param offsetValue
offset value, has to be greater than absolute value of any negative number in the
data set.
@return string representation of the integer
|
[
"Encodes",
"real",
"integer",
"value",
"into",
"a",
"string",
"by",
"offsetting",
"and",
"zero",
"-",
"padding",
"number",
"up",
"to",
"the",
"specified",
"number",
"of",
"digits",
".",
"Use",
"this",
"encoding",
"method",
"if",
"the",
"data",
"range",
"set",
"includes",
"both",
"positive",
"and",
"negative",
"values",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java#L146-L156
|
20,310
|
aws/aws-sdk-java
|
aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java
|
SimpleDBUtils.encodeRealNumberRange
|
public static String encodeRealNumberRange(float number, int maxDigitsLeft, int maxDigitsRight, int offsetValue) {
int shiftMultiplier = (int) Math.pow(10, maxDigitsRight);
long shiftedNumber = (long) Math.round((double) number * shiftMultiplier);
long shiftedOffset = offsetValue * shiftMultiplier;
long offsetNumber = shiftedNumber + shiftedOffset;
if (offsetNumber < 0) {
throw new IllegalArgumentException("OffsetNumber[" + offsetNumber + "] is negative - Number[" + number
+ "], maxDigitsLeft[" + maxDigitsLeft + "], maxDigitsRight[" + maxDigitsRight + "], offsetValue["
+ offsetValue + "]");
}
String longString = Long.toString(offsetNumber);
int numBeforeDecimal = longString.length();
int numZeroes = maxDigitsLeft + maxDigitsRight - numBeforeDecimal;
if (numZeroes < 0) {
throw new IllegalArgumentException("Number[" + number + "] has too many digits - maxDigitsLeft["
+ maxDigitsLeft + "], maxDigitsRight[" + maxDigitsRight + "], offsetValue[" + offsetValue + "]");
}
StringBuffer strBuffer = new StringBuffer(numZeroes + longString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(longString);
return strBuffer.toString();
}
|
java
|
public static String encodeRealNumberRange(float number, int maxDigitsLeft, int maxDigitsRight, int offsetValue) {
int shiftMultiplier = (int) Math.pow(10, maxDigitsRight);
long shiftedNumber = (long) Math.round((double) number * shiftMultiplier);
long shiftedOffset = offsetValue * shiftMultiplier;
long offsetNumber = shiftedNumber + shiftedOffset;
if (offsetNumber < 0) {
throw new IllegalArgumentException("OffsetNumber[" + offsetNumber + "] is negative - Number[" + number
+ "], maxDigitsLeft[" + maxDigitsLeft + "], maxDigitsRight[" + maxDigitsRight + "], offsetValue["
+ offsetValue + "]");
}
String longString = Long.toString(offsetNumber);
int numBeforeDecimal = longString.length();
int numZeroes = maxDigitsLeft + maxDigitsRight - numBeforeDecimal;
if (numZeroes < 0) {
throw new IllegalArgumentException("Number[" + number + "] has too many digits - maxDigitsLeft["
+ maxDigitsLeft + "], maxDigitsRight[" + maxDigitsRight + "], offsetValue[" + offsetValue + "]");
}
StringBuffer strBuffer = new StringBuffer(numZeroes + longString.length());
for (int i = 0; i < numZeroes; i++) {
strBuffer.insert(i, '0');
}
strBuffer.append(longString);
return strBuffer.toString();
}
|
[
"public",
"static",
"String",
"encodeRealNumberRange",
"(",
"float",
"number",
",",
"int",
"maxDigitsLeft",
",",
"int",
"maxDigitsRight",
",",
"int",
"offsetValue",
")",
"{",
"int",
"shiftMultiplier",
"=",
"(",
"int",
")",
"Math",
".",
"pow",
"(",
"10",
",",
"maxDigitsRight",
")",
";",
"long",
"shiftedNumber",
"=",
"(",
"long",
")",
"Math",
".",
"round",
"(",
"(",
"double",
")",
"number",
"*",
"shiftMultiplier",
")",
";",
"long",
"shiftedOffset",
"=",
"offsetValue",
"*",
"shiftMultiplier",
";",
"long",
"offsetNumber",
"=",
"shiftedNumber",
"+",
"shiftedOffset",
";",
"if",
"(",
"offsetNumber",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"OffsetNumber[\"",
"+",
"offsetNumber",
"+",
"\"] is negative - Number[\"",
"+",
"number",
"+",
"\"], maxDigitsLeft[\"",
"+",
"maxDigitsLeft",
"+",
"\"], maxDigitsRight[\"",
"+",
"maxDigitsRight",
"+",
"\"], offsetValue[\"",
"+",
"offsetValue",
"+",
"\"]\"",
")",
";",
"}",
"String",
"longString",
"=",
"Long",
".",
"toString",
"(",
"offsetNumber",
")",
";",
"int",
"numBeforeDecimal",
"=",
"longString",
".",
"length",
"(",
")",
";",
"int",
"numZeroes",
"=",
"maxDigitsLeft",
"+",
"maxDigitsRight",
"-",
"numBeforeDecimal",
";",
"if",
"(",
"numZeroes",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Number[\"",
"+",
"number",
"+",
"\"] has too many digits - maxDigitsLeft[\"",
"+",
"maxDigitsLeft",
"+",
"\"], maxDigitsRight[\"",
"+",
"maxDigitsRight",
"+",
"\"], offsetValue[\"",
"+",
"offsetValue",
"+",
"\"]\"",
")",
";",
"}",
"StringBuffer",
"strBuffer",
"=",
"new",
"StringBuffer",
"(",
"numZeroes",
"+",
"longString",
".",
"length",
"(",
")",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"numZeroes",
";",
"i",
"++",
")",
"{",
"strBuffer",
".",
"insert",
"(",
"i",
",",
"'",
"'",
")",
";",
"}",
"strBuffer",
".",
"append",
"(",
"longString",
")",
";",
"return",
"strBuffer",
".",
"toString",
"(",
")",
";",
"}"
] |
Encodes real float value into a string by offsetting and zero-padding number up to the
specified number of digits. Use this encoding method if the data range set includes both
positive and negative values.
@param number
float to be encoded
@param maxDigitsLeft
maximum number of digits left of the decimal point in the largest absolute value
in the data set
@param maxDigitsRight
maximum number of digits right of the decimal point in the largest absolute value
in the data set, i.e. precision
@param offsetValue
offset value, has to be greater than absolute value of any negative number in the
data set.
@return string representation of the integer
|
[
"Encodes",
"real",
"float",
"value",
"into",
"a",
"string",
"by",
"offsetting",
"and",
"zero",
"-",
"padding",
"number",
"up",
"to",
"the",
"specified",
"number",
"of",
"digits",
".",
"Use",
"this",
"encoding",
"method",
"if",
"the",
"data",
"range",
"set",
"includes",
"both",
"positive",
"and",
"negative",
"values",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java#L202-L229
|
20,311
|
aws/aws-sdk-java
|
aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java
|
SimpleDBUtils.quoteValues
|
public static String quoteValues(Collection<String> values) {
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String s : values) {
if (!first)
sb.append(",");
first = false;
sb.append(quoteValue(s));
}
return sb.toString();
}
|
java
|
public static String quoteValues(Collection<String> values) {
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String s : values) {
if (!first)
sb.append(",");
first = false;
sb.append(quoteValue(s));
}
return sb.toString();
}
|
[
"public",
"static",
"String",
"quoteValues",
"(",
"Collection",
"<",
"String",
">",
"values",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"boolean",
"first",
"=",
"true",
";",
"for",
"(",
"String",
"s",
":",
"values",
")",
"{",
"if",
"(",
"!",
"first",
")",
"sb",
".",
"append",
"(",
"\",\"",
")",
";",
"first",
"=",
"false",
";",
"sb",
".",
"append",
"(",
"quoteValue",
"(",
"s",
")",
")",
";",
"}",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
Quotes and escapes a list of values so that they can be used in a SimpleDB query.
@param values
The collection of attribute values that will be quoted, escaped, and included in
the returned string list.
@return A string representation of the list of specified values, with individual values
properly quoted and escaped.
|
[
"Quotes",
"and",
"escapes",
"a",
"list",
"of",
"values",
"so",
"that",
"they",
"can",
"be",
"used",
"in",
"a",
"SimpleDB",
"query",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-simpledb/src/main/java/com/amazonaws/services/simpledb/util/SimpleDBUtils.java#L317-L329
|
20,312
|
aws/aws-sdk-java
|
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerEngineType.java
|
BrokerEngineType.setEngineVersions
|
public void setEngineVersions(java.util.Collection<EngineVersion> engineVersions) {
if (engineVersions == null) {
this.engineVersions = null;
return;
}
this.engineVersions = new java.util.ArrayList<EngineVersion>(engineVersions);
}
|
java
|
public void setEngineVersions(java.util.Collection<EngineVersion> engineVersions) {
if (engineVersions == null) {
this.engineVersions = null;
return;
}
this.engineVersions = new java.util.ArrayList<EngineVersion>(engineVersions);
}
|
[
"public",
"void",
"setEngineVersions",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"EngineVersion",
">",
"engineVersions",
")",
"{",
"if",
"(",
"engineVersions",
"==",
"null",
")",
"{",
"this",
".",
"engineVersions",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"engineVersions",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"EngineVersion",
">",
"(",
"engineVersions",
")",
";",
"}"
] |
The list of engine versions.
@param engineVersions
The list of engine versions.
|
[
"The",
"list",
"of",
"engine",
"versions",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerEngineType.java#L102-L109
|
20,313
|
aws/aws-sdk-java
|
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/waiters/AmazonRedshiftWaiters.java
|
AmazonRedshiftWaiters.snapshotAvailable
|
public Waiter<DescribeClusterSnapshotsRequest> snapshotAvailable() {
return new WaiterBuilder<DescribeClusterSnapshotsRequest, DescribeClusterSnapshotsResult>()
.withSdkFunction(new DescribeClusterSnapshotsFunction(client))
.withAcceptors(new SnapshotAvailable.IsAvailableMatcher(), new SnapshotAvailable.IsFailedMatcher(), new SnapshotAvailable.IsDeletedMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(20), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeClusterSnapshotsRequest> snapshotAvailable() {
return new WaiterBuilder<DescribeClusterSnapshotsRequest, DescribeClusterSnapshotsResult>()
.withSdkFunction(new DescribeClusterSnapshotsFunction(client))
.withAcceptors(new SnapshotAvailable.IsAvailableMatcher(), new SnapshotAvailable.IsFailedMatcher(), new SnapshotAvailable.IsDeletedMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(20), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeClusterSnapshotsRequest",
">",
"snapshotAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeClusterSnapshotsRequest",
",",
"DescribeClusterSnapshotsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeClusterSnapshotsFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"SnapshotAvailable",
".",
"IsAvailableMatcher",
"(",
")",
",",
"new",
"SnapshotAvailable",
".",
"IsFailedMatcher",
"(",
")",
",",
"new",
"SnapshotAvailable",
".",
"IsDeletedMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"20",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"15",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a SnapshotAvailable waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"SnapshotAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/waiters/AmazonRedshiftWaiters.java#L64-L71
|
20,314
|
aws/aws-sdk-java
|
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/waiters/AmazonRedshiftWaiters.java
|
AmazonRedshiftWaiters.clusterRestored
|
public Waiter<DescribeClustersRequest> clusterRestored() {
return new WaiterBuilder<DescribeClustersRequest, DescribeClustersResult>().withSdkFunction(new DescribeClustersFunction(client))
.withAcceptors(new ClusterRestored.IsCompletedMatcher(), new ClusterRestored.IsDeletingMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(30), new FixedDelayStrategy(60)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeClustersRequest> clusterRestored() {
return new WaiterBuilder<DescribeClustersRequest, DescribeClustersResult>().withSdkFunction(new DescribeClustersFunction(client))
.withAcceptors(new ClusterRestored.IsCompletedMatcher(), new ClusterRestored.IsDeletingMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(30), new FixedDelayStrategy(60)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeClustersRequest",
">",
"clusterRestored",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeClustersRequest",
",",
"DescribeClustersResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeClustersFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"ClusterRestored",
".",
"IsCompletedMatcher",
"(",
")",
",",
"new",
"ClusterRestored",
".",
"IsDeletingMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"30",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"60",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a ClusterRestored waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"ClusterRestored",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/waiters/AmazonRedshiftWaiters.java#L78-L84
|
20,315
|
aws/aws-sdk-java
|
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/waiters/AmazonRedshiftWaiters.java
|
AmazonRedshiftWaiters.clusterAvailable
|
public Waiter<DescribeClustersRequest> clusterAvailable() {
return new WaiterBuilder<DescribeClustersRequest, DescribeClustersResult>()
.withSdkFunction(new DescribeClustersFunction(client))
.withAcceptors(new ClusterAvailable.IsAvailableMatcher(), new ClusterAvailable.IsDeletingMatcher(),
new ClusterAvailable.IsClusterNotFoundMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(30), new FixedDelayStrategy(60)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeClustersRequest> clusterAvailable() {
return new WaiterBuilder<DescribeClustersRequest, DescribeClustersResult>()
.withSdkFunction(new DescribeClustersFunction(client))
.withAcceptors(new ClusterAvailable.IsAvailableMatcher(), new ClusterAvailable.IsDeletingMatcher(),
new ClusterAvailable.IsClusterNotFoundMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(30), new FixedDelayStrategy(60)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeClustersRequest",
">",
"clusterAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeClustersRequest",
",",
"DescribeClustersResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeClustersFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"ClusterAvailable",
".",
"IsAvailableMatcher",
"(",
")",
",",
"new",
"ClusterAvailable",
".",
"IsDeletingMatcher",
"(",
")",
",",
"new",
"ClusterAvailable",
".",
"IsClusterNotFoundMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"30",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"60",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a ClusterAvailable waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"ClusterAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/waiters/AmazonRedshiftWaiters.java#L91-L99
|
20,316
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentResponse.java
|
SegmentResponse.withTags
|
public SegmentResponse withTags(java.util.Map<String, String> tags) {
setTags(tags);
return this;
}
|
java
|
public SegmentResponse withTags(java.util.Map<String, String> tags) {
setTags(tags);
return this;
}
|
[
"public",
"SegmentResponse",
"withTags",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"String",
">",
"tags",
")",
"{",
"setTags",
"(",
"tags",
")",
";",
"return",
"this",
";",
"}"
] |
The Tags for the segment.
@param tags
The Tags for the segment.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"The",
"Tags",
"for",
"the",
"segment",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentResponse.java#L507-L510
|
20,317
|
aws/aws-sdk-java
|
aws-java-sdk-sts/src/main/java/com/amazonaws/auth/SessionCredentialsProviderFactory.java
|
SessionCredentialsProviderFactory.getSessionCredentialsProvider
|
public static synchronized STSSessionCredentialsProvider getSessionCredentialsProvider(AWSCredentials longTermCredentials,
String serviceEndpoint,
ClientConfiguration stsClientConfiguration) {
Key key = new Key(longTermCredentials.getAWSAccessKeyId(), serviceEndpoint);
if ( !cache.containsKey(key) ) {
cache.put(key, new STSSessionCredentialsProvider(longTermCredentials, stsClientConfiguration));
}
return cache.get(key);
}
|
java
|
public static synchronized STSSessionCredentialsProvider getSessionCredentialsProvider(AWSCredentials longTermCredentials,
String serviceEndpoint,
ClientConfiguration stsClientConfiguration) {
Key key = new Key(longTermCredentials.getAWSAccessKeyId(), serviceEndpoint);
if ( !cache.containsKey(key) ) {
cache.put(key, new STSSessionCredentialsProvider(longTermCredentials, stsClientConfiguration));
}
return cache.get(key);
}
|
[
"public",
"static",
"synchronized",
"STSSessionCredentialsProvider",
"getSessionCredentialsProvider",
"(",
"AWSCredentials",
"longTermCredentials",
",",
"String",
"serviceEndpoint",
",",
"ClientConfiguration",
"stsClientConfiguration",
")",
"{",
"Key",
"key",
"=",
"new",
"Key",
"(",
"longTermCredentials",
".",
"getAWSAccessKeyId",
"(",
")",
",",
"serviceEndpoint",
")",
";",
"if",
"(",
"!",
"cache",
".",
"containsKey",
"(",
"key",
")",
")",
"{",
"cache",
".",
"put",
"(",
"key",
",",
"new",
"STSSessionCredentialsProvider",
"(",
"longTermCredentials",
",",
"stsClientConfiguration",
")",
")",
";",
"}",
"return",
"cache",
".",
"get",
"(",
"key",
")",
";",
"}"
] |
Gets a session credentials provider for the long-term credentials and
service endpoint given. These are shared globally to support reuse of
session tokens.
@param longTermCredentials
The long-term AWS account credentials used to initiate a
session.
@param serviceEndpoint
The service endpoint for the service the session credentials
will be used to access.
@param stsClientConfiguration
Client configuration for the {@link AWSSecurityTokenService}
used to fetch session credentials.
|
[
"Gets",
"a",
"session",
"credentials",
"provider",
"for",
"the",
"long",
"-",
"term",
"credentials",
"and",
"service",
"endpoint",
"given",
".",
"These",
"are",
"shared",
"globally",
"to",
"support",
"reuse",
"of",
"session",
"tokens",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sts/src/main/java/com/amazonaws/auth/SessionCredentialsProviderFactory.java#L91-L99
|
20,318
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterImpl.java
|
WaiterImpl.run
|
public void run(WaiterParameters<Input> waiterParameters)
throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
ValidationUtils.assertNotNull(waiterParameters, "waiterParameters");
@SuppressWarnings("unchecked")
Input request = (Input) ValidationUtils.assertNotNull(waiterParameters.getRequest(), "request").clone();
request.getRequestClientOptions().appendUserAgent("waiter-request");
WaiterExecution<Input, Output> waiterExecution = new WaiterExecutionBuilder<Input, Output>()
.withRequest(request)
.withPollingStrategy(waiterParameters.getPollingStrategy() != null ? waiterParameters.getPollingStrategy() : defaultPollingStrategy)
.withAcceptors(acceptors)
.withSdkFunction(sdkFunction)
.build();
waiterExecution.pollResource();
}
|
java
|
public void run(WaiterParameters<Input> waiterParameters)
throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
ValidationUtils.assertNotNull(waiterParameters, "waiterParameters");
@SuppressWarnings("unchecked")
Input request = (Input) ValidationUtils.assertNotNull(waiterParameters.getRequest(), "request").clone();
request.getRequestClientOptions().appendUserAgent("waiter-request");
WaiterExecution<Input, Output> waiterExecution = new WaiterExecutionBuilder<Input, Output>()
.withRequest(request)
.withPollingStrategy(waiterParameters.getPollingStrategy() != null ? waiterParameters.getPollingStrategy() : defaultPollingStrategy)
.withAcceptors(acceptors)
.withSdkFunction(sdkFunction)
.build();
waiterExecution.pollResource();
}
|
[
"public",
"void",
"run",
"(",
"WaiterParameters",
"<",
"Input",
">",
"waiterParameters",
")",
"throws",
"AmazonServiceException",
",",
"WaiterTimedOutException",
",",
"WaiterUnrecoverableException",
"{",
"ValidationUtils",
".",
"assertNotNull",
"(",
"waiterParameters",
",",
"\"waiterParameters\"",
")",
";",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"Input",
"request",
"=",
"(",
"Input",
")",
"ValidationUtils",
".",
"assertNotNull",
"(",
"waiterParameters",
".",
"getRequest",
"(",
")",
",",
"\"request\"",
")",
".",
"clone",
"(",
")",
";",
"request",
".",
"getRequestClientOptions",
"(",
")",
".",
"appendUserAgent",
"(",
"\"waiter-request\"",
")",
";",
"WaiterExecution",
"<",
"Input",
",",
"Output",
">",
"waiterExecution",
"=",
"new",
"WaiterExecutionBuilder",
"<",
"Input",
",",
"Output",
">",
"(",
")",
".",
"withRequest",
"(",
"request",
")",
".",
"withPollingStrategy",
"(",
"waiterParameters",
".",
"getPollingStrategy",
"(",
")",
"!=",
"null",
"?",
"waiterParameters",
".",
"getPollingStrategy",
"(",
")",
":",
"defaultPollingStrategy",
")",
".",
"withAcceptors",
"(",
"acceptors",
")",
".",
"withSdkFunction",
"(",
"sdkFunction",
")",
".",
"build",
"(",
")",
";",
"waiterExecution",
".",
"pollResource",
"(",
")",
";",
"}"
] |
Polls synchronously until it is determined that the resource
transitioned into the desired state or not.
@param waiterParameters Custom provided parameters. Includes request and
optional custom polling strategy
@throws AmazonServiceException If the service exception thrown doesn't match any of the expected
exceptions, it's re-thrown.
@throws WaiterUnrecoverableException If the resource transitions into a failure/unexpected state.
@throws WaiterTimedOutException If the resource doesn't transition into the desired state
even after a certain number of retries.
|
[
"Polls",
"synchronously",
"until",
"it",
"is",
"determined",
"that",
"the",
"resource",
"transitioned",
"into",
"the",
"desired",
"state",
"or",
"not",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterImpl.java#L74-L90
|
20,319
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterImpl.java
|
WaiterImpl.runAsync
|
public Future<Void> runAsync(final WaiterParameters<Input> waiterParameters, final WaiterHandler callback)
throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
return executorService.submit(new java.util.concurrent.Callable<Void>() {
@Override
public Void call() throws Exception {
try {
run(waiterParameters);
callback.onWaitSuccess(waiterParameters.getRequest());
} catch (Exception ex) {
callback.onWaitFailure(ex);
throw ex;
}
return null;
}
});
}
|
java
|
public Future<Void> runAsync(final WaiterParameters<Input> waiterParameters, final WaiterHandler callback)
throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
return executorService.submit(new java.util.concurrent.Callable<Void>() {
@Override
public Void call() throws Exception {
try {
run(waiterParameters);
callback.onWaitSuccess(waiterParameters.getRequest());
} catch (Exception ex) {
callback.onWaitFailure(ex);
throw ex;
}
return null;
}
});
}
|
[
"public",
"Future",
"<",
"Void",
">",
"runAsync",
"(",
"final",
"WaiterParameters",
"<",
"Input",
">",
"waiterParameters",
",",
"final",
"WaiterHandler",
"callback",
")",
"throws",
"AmazonServiceException",
",",
"WaiterTimedOutException",
",",
"WaiterUnrecoverableException",
"{",
"return",
"executorService",
".",
"submit",
"(",
"new",
"java",
".",
"util",
".",
"concurrent",
".",
"Callable",
"<",
"Void",
">",
"(",
")",
"{",
"@",
"Override",
"public",
"Void",
"call",
"(",
")",
"throws",
"Exception",
"{",
"try",
"{",
"run",
"(",
"waiterParameters",
")",
";",
"callback",
".",
"onWaitSuccess",
"(",
"waiterParameters",
".",
"getRequest",
"(",
")",
")",
";",
"}",
"catch",
"(",
"Exception",
"ex",
")",
"{",
"callback",
".",
"onWaitFailure",
"(",
"ex",
")",
";",
"throw",
"ex",
";",
"}",
"return",
"null",
";",
"}",
"}",
")",
";",
"}"
] |
Polls asynchronously until it is determined that the resource
transitioned into the desired state or not. Includes additional
callback.
@param waiterParameters Custom provided parameters. Includes request and
optional custom polling strategy
@param callback Custom callback
@return Future object that holds the result of an asynchronous
computation of waiter
|
[
"Polls",
"asynchronously",
"until",
"it",
"is",
"determined",
"that",
"the",
"resource",
"transitioned",
"into",
"the",
"desired",
"state",
"or",
"not",
".",
"Includes",
"additional",
"callback",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterImpl.java#L103-L121
|
20,320
|
aws/aws-sdk-java
|
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/CreateInputRequest.java
|
CreateInputRequest.setDestinations
|
public void setDestinations(java.util.Collection<InputDestinationRequest> destinations) {
if (destinations == null) {
this.destinations = null;
return;
}
this.destinations = new java.util.ArrayList<InputDestinationRequest>(destinations);
}
|
java
|
public void setDestinations(java.util.Collection<InputDestinationRequest> destinations) {
if (destinations == null) {
this.destinations = null;
return;
}
this.destinations = new java.util.ArrayList<InputDestinationRequest>(destinations);
}
|
[
"public",
"void",
"setDestinations",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"InputDestinationRequest",
">",
"destinations",
")",
"{",
"if",
"(",
"destinations",
"==",
"null",
")",
"{",
"this",
".",
"destinations",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"destinations",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"InputDestinationRequest",
">",
"(",
"destinations",
")",
";",
"}"
] |
Destination settings for PUSH type inputs.
@param destinations
Destination settings for PUSH type inputs.
|
[
"Destination",
"settings",
"for",
"PUSH",
"type",
"inputs",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/CreateInputRequest.java#L76-L83
|
20,321
|
aws/aws-sdk-java
|
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/CreateInputRequest.java
|
CreateInputRequest.setInputSecurityGroups
|
public void setInputSecurityGroups(java.util.Collection<String> inputSecurityGroups) {
if (inputSecurityGroups == null) {
this.inputSecurityGroups = null;
return;
}
this.inputSecurityGroups = new java.util.ArrayList<String>(inputSecurityGroups);
}
|
java
|
public void setInputSecurityGroups(java.util.Collection<String> inputSecurityGroups) {
if (inputSecurityGroups == null) {
this.inputSecurityGroups = null;
return;
}
this.inputSecurityGroups = new java.util.ArrayList<String>(inputSecurityGroups);
}
|
[
"public",
"void",
"setInputSecurityGroups",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"String",
">",
"inputSecurityGroups",
")",
"{",
"if",
"(",
"inputSecurityGroups",
"==",
"null",
")",
"{",
"this",
".",
"inputSecurityGroups",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"inputSecurityGroups",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"String",
">",
"(",
"inputSecurityGroups",
")",
";",
"}"
] |
A list of security groups referenced by IDs to attach to the input.
@param inputSecurityGroups
A list of security groups referenced by IDs to attach to the input.
|
[
"A",
"list",
"of",
"security",
"groups",
"referenced",
"by",
"IDs",
"to",
"attach",
"to",
"the",
"input",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/CreateInputRequest.java#L138-L145
|
20,322
|
aws/aws-sdk-java
|
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/CreateInputRequest.java
|
CreateInputRequest.setMediaConnectFlows
|
public void setMediaConnectFlows(java.util.Collection<MediaConnectFlowRequest> mediaConnectFlows) {
if (mediaConnectFlows == null) {
this.mediaConnectFlows = null;
return;
}
this.mediaConnectFlows = new java.util.ArrayList<MediaConnectFlowRequest>(mediaConnectFlows);
}
|
java
|
public void setMediaConnectFlows(java.util.Collection<MediaConnectFlowRequest> mediaConnectFlows) {
if (mediaConnectFlows == null) {
this.mediaConnectFlows = null;
return;
}
this.mediaConnectFlows = new java.util.ArrayList<MediaConnectFlowRequest>(mediaConnectFlows);
}
|
[
"public",
"void",
"setMediaConnectFlows",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"MediaConnectFlowRequest",
">",
"mediaConnectFlows",
")",
"{",
"if",
"(",
"mediaConnectFlows",
"==",
"null",
")",
"{",
"this",
".",
"mediaConnectFlows",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"mediaConnectFlows",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"MediaConnectFlowRequest",
">",
"(",
"mediaConnectFlows",
")",
";",
"}"
] |
A list of the MediaConnect Flows that you want to use in this input. You can specify as few as one Flow and
presently, as many as two. The only requirement is when you have more than one is that each Flow is in a separate
Availability Zone as this ensures your EML input is redundant to AZ issues.
@param mediaConnectFlows
A list of the MediaConnect Flows that you want to use in this input. You can specify as few as one Flow
and presently, as many as two. The only requirement is when you have more than one is that each Flow is in
a separate Availability Zone as this ensures your EML input is redundant to AZ issues.
|
[
"A",
"list",
"of",
"the",
"MediaConnect",
"Flows",
"that",
"you",
"want",
"to",
"use",
"in",
"this",
"input",
".",
"You",
"can",
"specify",
"as",
"few",
"as",
"one",
"Flow",
"and",
"presently",
"as",
"many",
"as",
"two",
".",
"The",
"only",
"requirement",
"is",
"when",
"you",
"have",
"more",
"than",
"one",
"is",
"that",
"each",
"Flow",
"is",
"in",
"a",
"separate",
"Availability",
"Zone",
"as",
"this",
"ensures",
"your",
"EML",
"input",
"is",
"redundant",
"to",
"AZ",
"issues",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/CreateInputRequest.java#L208-L215
|
20,323
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLiteInputStream.java
|
CipherLiteInputStream.nextChunk
|
private int nextChunk() throws IOException {
abortIfNeeded();
if (eof)
return -1;
bufout = null;
int len = in.read(bufin);
if (len == -1) {
eof = true;
// Skip doFinal if it's a multi-part upload but not the last part
if (!multipart || lastMultiPart) {
try {
bufout = cipherLite.doFinal();
if (bufout == null) {
// bufout can be null, for example, when it was the
// javax.crypto.NullCipher
return -1;
}
curr_pos = 0;
return max_pos = bufout.length;
} catch (IllegalBlockSizeException ignore) {
// like the RI
} catch (BadPaddingException e) {
if (S3CryptoScheme.isAesGcm(cipherLite.getCipherAlgorithm()))
throw new SecurityException(e);
}
}
return -1;
}
bufout = cipherLite.update(bufin, 0, len);
curr_pos = 0;
return max_pos = (bufout == null ? 0 : bufout.length);
}
|
java
|
private int nextChunk() throws IOException {
abortIfNeeded();
if (eof)
return -1;
bufout = null;
int len = in.read(bufin);
if (len == -1) {
eof = true;
// Skip doFinal if it's a multi-part upload but not the last part
if (!multipart || lastMultiPart) {
try {
bufout = cipherLite.doFinal();
if (bufout == null) {
// bufout can be null, for example, when it was the
// javax.crypto.NullCipher
return -1;
}
curr_pos = 0;
return max_pos = bufout.length;
} catch (IllegalBlockSizeException ignore) {
// like the RI
} catch (BadPaddingException e) {
if (S3CryptoScheme.isAesGcm(cipherLite.getCipherAlgorithm()))
throw new SecurityException(e);
}
}
return -1;
}
bufout = cipherLite.update(bufin, 0, len);
curr_pos = 0;
return max_pos = (bufout == null ? 0 : bufout.length);
}
|
[
"private",
"int",
"nextChunk",
"(",
")",
"throws",
"IOException",
"{",
"abortIfNeeded",
"(",
")",
";",
"if",
"(",
"eof",
")",
"return",
"-",
"1",
";",
"bufout",
"=",
"null",
";",
"int",
"len",
"=",
"in",
".",
"read",
"(",
"bufin",
")",
";",
"if",
"(",
"len",
"==",
"-",
"1",
")",
"{",
"eof",
"=",
"true",
";",
"// Skip doFinal if it's a multi-part upload but not the last part ",
"if",
"(",
"!",
"multipart",
"||",
"lastMultiPart",
")",
"{",
"try",
"{",
"bufout",
"=",
"cipherLite",
".",
"doFinal",
"(",
")",
";",
"if",
"(",
"bufout",
"==",
"null",
")",
"{",
"// bufout can be null, for example, when it was the",
"// javax.crypto.NullCipher ",
"return",
"-",
"1",
";",
"}",
"curr_pos",
"=",
"0",
";",
"return",
"max_pos",
"=",
"bufout",
".",
"length",
";",
"}",
"catch",
"(",
"IllegalBlockSizeException",
"ignore",
")",
"{",
"// like the RI",
"}",
"catch",
"(",
"BadPaddingException",
"e",
")",
"{",
"if",
"(",
"S3CryptoScheme",
".",
"isAesGcm",
"(",
"cipherLite",
".",
"getCipherAlgorithm",
"(",
")",
")",
")",
"throw",
"new",
"SecurityException",
"(",
"e",
")",
";",
"}",
"}",
"return",
"-",
"1",
";",
"}",
"bufout",
"=",
"cipherLite",
".",
"update",
"(",
"bufin",
",",
"0",
",",
"len",
")",
";",
"curr_pos",
"=",
"0",
";",
"return",
"max_pos",
"=",
"(",
"bufout",
"==",
"null",
"?",
"0",
":",
"bufout",
".",
"length",
")",
";",
"}"
] |
Reads and process the next chunk of data into memory.
@return the length of the data chunk read and processed, or -1 if end of
stream.
@throws IOException
if there is an IO exception from the underlying input stream
@throws SecurityException
if there is authentication failure
|
[
"Reads",
"and",
"process",
"the",
"next",
"chunk",
"of",
"data",
"into",
"memory",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLiteInputStream.java#L220-L251
|
20,324
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/log/InternalLogFactory.java
|
InternalLogFactory.getLog
|
public static InternalLogApi getLog(Class<?> clazz) {
return factoryConfigured
? factory.doGetLog(clazz)
: new InternalLog(clazz.getName()); // will look up actual logger per log
}
|
java
|
public static InternalLogApi getLog(Class<?> clazz) {
return factoryConfigured
? factory.doGetLog(clazz)
: new InternalLog(clazz.getName()); // will look up actual logger per log
}
|
[
"public",
"static",
"InternalLogApi",
"getLog",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"return",
"factoryConfigured",
"?",
"factory",
".",
"doGetLog",
"(",
"clazz",
")",
":",
"new",
"InternalLog",
"(",
"clazz",
".",
"getName",
"(",
")",
")",
";",
"// will look up actual logger per log",
"}"
] |
Returns an SDK logger that logs using the currently configured default
log factory, given the class.
|
[
"Returns",
"an",
"SDK",
"logger",
"that",
"logs",
"using",
"the",
"currently",
"configured",
"default",
"log",
"factory",
"given",
"the",
"class",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/log/InternalLogFactory.java#L35-L39
|
20,325
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/log/InternalLogFactory.java
|
InternalLogFactory.getLog
|
public static InternalLogApi getLog(String name) {
return factoryConfigured
? factory.doGetLog(name)
: new InternalLog(name); // will look up actual logger per log
}
|
java
|
public static InternalLogApi getLog(String name) {
return factoryConfigured
? factory.doGetLog(name)
: new InternalLog(name); // will look up actual logger per log
}
|
[
"public",
"static",
"InternalLogApi",
"getLog",
"(",
"String",
"name",
")",
"{",
"return",
"factoryConfigured",
"?",
"factory",
".",
"doGetLog",
"(",
"name",
")",
":",
"new",
"InternalLog",
"(",
"name",
")",
";",
"// will look up actual logger per log",
"}"
] |
Returns an SDK logger that logs using the currently configured default
log factory, given the name.
|
[
"Returns",
"an",
"SDK",
"logger",
"that",
"logs",
"using",
"the",
"currently",
"configured",
"default",
"log",
"factory",
"given",
"the",
"name",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/log/InternalLogFactory.java#L45-L49
|
20,326
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/log/InternalLogFactory.java
|
InternalLogFactory.configureFactory
|
public synchronized static boolean configureFactory(
InternalLogFactory factory) {
if (factory == null)
throw new IllegalArgumentException();
if (factoryConfigured)
return false;
InternalLogFactory.factory = factory;
factoryConfigured = true;
return true;
}
|
java
|
public synchronized static boolean configureFactory(
InternalLogFactory factory) {
if (factory == null)
throw new IllegalArgumentException();
if (factoryConfigured)
return false;
InternalLogFactory.factory = factory;
factoryConfigured = true;
return true;
}
|
[
"public",
"synchronized",
"static",
"boolean",
"configureFactory",
"(",
"InternalLogFactory",
"factory",
")",
"{",
"if",
"(",
"factory",
"==",
"null",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"if",
"(",
"factoryConfigured",
")",
"return",
"false",
";",
"InternalLogFactory",
".",
"factory",
"=",
"factory",
";",
"factoryConfigured",
"=",
"true",
";",
"return",
"true",
";",
"}"
] |
Used to explicitly configure the log factory. The log factory can only be
configured at most once. All subsequent configurations will have no
effect.
Note explicitly configuring the log factory will have positive
performance impact on all subsequent logging, since the specific logger
can be directly referenced instead of being searched every time.
@param factory
the log factory to be used internally by the SDK
@return true if the log factory is successfully configured; false
otherwise (ie the log factory is not allowed to be configured
more than once for performance reasons.)
|
[
"Used",
"to",
"explicitly",
"configure",
"the",
"log",
"factory",
".",
"The",
"log",
"factory",
"can",
"only",
"be",
"configured",
"at",
"most",
"once",
".",
"All",
"subsequent",
"configurations",
"will",
"have",
"no",
"effect",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/log/InternalLogFactory.java#L84-L93
|
20,327
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ListJobsResult.java
|
ListJobsResult.setJobs
|
public void setJobs(java.util.Collection<Job> jobs) {
if (jobs == null) {
this.jobs = null;
return;
}
this.jobs = new java.util.ArrayList<Job>(jobs);
}
|
java
|
public void setJobs(java.util.Collection<Job> jobs) {
if (jobs == null) {
this.jobs = null;
return;
}
this.jobs = new java.util.ArrayList<Job>(jobs);
}
|
[
"public",
"void",
"setJobs",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Job",
">",
"jobs",
")",
"{",
"if",
"(",
"jobs",
"==",
"null",
")",
"{",
"this",
".",
"jobs",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"jobs",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Job",
">",
"(",
"jobs",
")",
";",
"}"
] |
List of jobs
@param jobs
List of jobs
|
[
"List",
"of",
"jobs"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ListJobsResult.java#L48-L55
|
20,328
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/NumericComparator.java
|
NumericComparator.matches
|
@Override
public final boolean matches(JsonNode lhs, JsonNode rhs) {
return matches(lhs.decimalValue(), rhs.decimalValue());
}
|
java
|
@Override
public final boolean matches(JsonNode lhs, JsonNode rhs) {
return matches(lhs.decimalValue(), rhs.decimalValue());
}
|
[
"@",
"Override",
"public",
"final",
"boolean",
"matches",
"(",
"JsonNode",
"lhs",
",",
"JsonNode",
"rhs",
")",
"{",
"return",
"matches",
"(",
"lhs",
".",
"decimalValue",
"(",
")",
",",
"rhs",
".",
"decimalValue",
"(",
")",
")",
";",
"}"
] |
Converts the lhs and rhs JsonNodes to the numeric values
and delegates to the matches method that operates on the
numeric values alone.
@param lhs Lhs expression
@param rhs Rhs expression
@return Boolean result of the matches method of the
corresponding comparison operator
|
[
"Converts",
"the",
"lhs",
"and",
"rhs",
"JsonNodes",
"to",
"the",
"numeric",
"values",
"and",
"delegates",
"to",
"the",
"matches",
"method",
"that",
"operates",
"on",
"the",
"numeric",
"values",
"alone",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/NumericComparator.java#L45-L48
|
20,329
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/CapacityManager.java
|
CapacityManager.acquire
|
public boolean acquire(int capacity) {
if (capacity < 0) {
throw new IllegalArgumentException("capacity to acquire cannot be negative");
}
if (availableCapacity < 0) {
return true;
}
synchronized (lock) {
if (availableCapacity - capacity >= 0) {
availableCapacity -= capacity;
return true;
} else {
return false;
}
}
}
|
java
|
public boolean acquire(int capacity) {
if (capacity < 0) {
throw new IllegalArgumentException("capacity to acquire cannot be negative");
}
if (availableCapacity < 0) {
return true;
}
synchronized (lock) {
if (availableCapacity - capacity >= 0) {
availableCapacity -= capacity;
return true;
} else {
return false;
}
}
}
|
[
"public",
"boolean",
"acquire",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"capacity to acquire cannot be negative\"",
")",
";",
"}",
"if",
"(",
"availableCapacity",
"<",
"0",
")",
"{",
"return",
"true",
";",
"}",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"availableCapacity",
"-",
"capacity",
">=",
"0",
")",
"{",
"availableCapacity",
"-=",
"capacity",
";",
"return",
"true",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}",
"}"
] |
Attempts to acquire a given amount of capacity.
If acquired, capacity will be consumed from the available pool.
@param capacity capacity to acquire
@return true if capacity can be acquired, false if not
@throws IllegalArgumentException if given capacity is negative
|
[
"Attempts",
"to",
"acquire",
"a",
"given",
"amount",
"of",
"capacity",
".",
"If",
"acquired",
"capacity",
"will",
"be",
"consumed",
"from",
"the",
"available",
"pool",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/CapacityManager.java#L59-L76
|
20,330
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/CapacityManager.java
|
CapacityManager.release
|
public void release(int capacity) {
if (capacity < 0) {
throw new IllegalArgumentException("capacity to release cannot be negative");
}
// in the common 'good' case where we have our full capacity available we can
// short circuit going any further and avoid unnecessary locking.
if (availableCapacity >= 0 && availableCapacity != maxCapacity) {
synchronized (lock) {
availableCapacity = Math.min((availableCapacity + capacity), maxCapacity);
}
}
}
|
java
|
public void release(int capacity) {
if (capacity < 0) {
throw new IllegalArgumentException("capacity to release cannot be negative");
}
// in the common 'good' case where we have our full capacity available we can
// short circuit going any further and avoid unnecessary locking.
if (availableCapacity >= 0 && availableCapacity != maxCapacity) {
synchronized (lock) {
availableCapacity = Math.min((availableCapacity + capacity), maxCapacity);
}
}
}
|
[
"public",
"void",
"release",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"capacity to release cannot be negative\"",
")",
";",
"}",
"// in the common 'good' case where we have our full capacity available we can",
"// short circuit going any further and avoid unnecessary locking.",
"if",
"(",
"availableCapacity",
">=",
"0",
"&&",
"availableCapacity",
"!=",
"maxCapacity",
")",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"availableCapacity",
"=",
"Math",
".",
"min",
"(",
"(",
"availableCapacity",
"+",
"capacity",
")",
",",
"maxCapacity",
")",
";",
"}",
"}",
"}"
] |
Releases a given amount of capacity back to the pool, making it available
to consumers.
@param capacity capacity to release
@throws IllegalArgumentException if given capacity is negative
|
[
"Releases",
"a",
"given",
"amount",
"of",
"capacity",
"back",
"to",
"the",
"pool",
"making",
"it",
"available",
"to",
"consumers",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/CapacityManager.java#L93-L105
|
20,331
|
aws/aws-sdk-java
|
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/waiters/AmazonGlacierWaiters.java
|
AmazonGlacierWaiters.vaultExists
|
public Waiter<DescribeVaultRequest> vaultExists() {
return new WaiterBuilder<DescribeVaultRequest, DescribeVaultResult>().withSdkFunction(new DescribeVaultFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new VaultExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(15), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeVaultRequest> vaultExists() {
return new WaiterBuilder<DescribeVaultRequest, DescribeVaultResult>().withSdkFunction(new DescribeVaultFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new VaultExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(15), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeVaultRequest",
">",
"vaultExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeVaultRequest",
",",
"DescribeVaultResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeVaultFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"HttpSuccessStatusAcceptor",
"(",
"WaiterState",
".",
"SUCCESS",
")",
",",
"new",
"VaultExists",
".",
"IsResourceNotFoundExceptionMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"15",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"3",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a VaultExists waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"VaultExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/waiters/AmazonGlacierWaiters.java#L51-L57
|
20,332
|
aws/aws-sdk-java
|
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/waiters/AmazonGlacierWaiters.java
|
AmazonGlacierWaiters.vaultNotExists
|
public Waiter<DescribeVaultRequest> vaultNotExists() {
return new WaiterBuilder<DescribeVaultRequest, DescribeVaultResult>().withSdkFunction(new DescribeVaultFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.RETRY), new VaultNotExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(15), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeVaultRequest> vaultNotExists() {
return new WaiterBuilder<DescribeVaultRequest, DescribeVaultResult>().withSdkFunction(new DescribeVaultFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.RETRY), new VaultNotExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(15), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeVaultRequest",
">",
"vaultNotExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeVaultRequest",
",",
"DescribeVaultResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeVaultFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"HttpSuccessStatusAcceptor",
"(",
"WaiterState",
".",
"RETRY",
")",
",",
"new",
"VaultNotExists",
".",
"IsResourceNotFoundExceptionMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"15",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"3",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a VaultNotExists waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"VaultNotExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/waiters/AmazonGlacierWaiters.java#L64-L70
|
20,333
|
aws/aws-sdk-java
|
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/DefaultMetricCollectorFactory.java
|
DefaultMetricCollectorFactory.getInstance
|
@Override
public MetricCollector getInstance() {
AWSCredentialsProvider provider = AwsSdkMetrics.getCredentialProvider();
Region region = RegionUtils.getRegion(AwsSdkMetrics.getRegionName());
Integer qSize = AwsSdkMetrics.getMetricQueueSize();
Long timeoutMilli = AwsSdkMetrics.getQueuePollTimeoutMilli();
CloudWatchMetricConfig config = new CloudWatchMetricConfig();
ClientConfiguration clientConfig = new ClientConfiguration();
if (provider != null)
config.setCredentialsProvider(provider);
if (region != null) {
String endPoint = region.getServiceEndpoint(AmazonCloudWatch.ENDPOINT_PREFIX);
config.setCloudWatchEndPoint(endPoint);
}
if (qSize != null)
config.setMetricQueueSize(qSize.intValue());
if (timeoutMilli != null)
config.setQueuePollTimeoutMilli(timeoutMilli.longValue());
config.setClientConfiguration(clientConfig);
MetricCollectorSupport.startSingleton(config);
return MetricCollectorSupport.getInstance();
}
|
java
|
@Override
public MetricCollector getInstance() {
AWSCredentialsProvider provider = AwsSdkMetrics.getCredentialProvider();
Region region = RegionUtils.getRegion(AwsSdkMetrics.getRegionName());
Integer qSize = AwsSdkMetrics.getMetricQueueSize();
Long timeoutMilli = AwsSdkMetrics.getQueuePollTimeoutMilli();
CloudWatchMetricConfig config = new CloudWatchMetricConfig();
ClientConfiguration clientConfig = new ClientConfiguration();
if (provider != null)
config.setCredentialsProvider(provider);
if (region != null) {
String endPoint = region.getServiceEndpoint(AmazonCloudWatch.ENDPOINT_PREFIX);
config.setCloudWatchEndPoint(endPoint);
}
if (qSize != null)
config.setMetricQueueSize(qSize.intValue());
if (timeoutMilli != null)
config.setQueuePollTimeoutMilli(timeoutMilli.longValue());
config.setClientConfiguration(clientConfig);
MetricCollectorSupport.startSingleton(config);
return MetricCollectorSupport.getInstance();
}
|
[
"@",
"Override",
"public",
"MetricCollector",
"getInstance",
"(",
")",
"{",
"AWSCredentialsProvider",
"provider",
"=",
"AwsSdkMetrics",
".",
"getCredentialProvider",
"(",
")",
";",
"Region",
"region",
"=",
"RegionUtils",
".",
"getRegion",
"(",
"AwsSdkMetrics",
".",
"getRegionName",
"(",
")",
")",
";",
"Integer",
"qSize",
"=",
"AwsSdkMetrics",
".",
"getMetricQueueSize",
"(",
")",
";",
"Long",
"timeoutMilli",
"=",
"AwsSdkMetrics",
".",
"getQueuePollTimeoutMilli",
"(",
")",
";",
"CloudWatchMetricConfig",
"config",
"=",
"new",
"CloudWatchMetricConfig",
"(",
")",
";",
"ClientConfiguration",
"clientConfig",
"=",
"new",
"ClientConfiguration",
"(",
")",
";",
"if",
"(",
"provider",
"!=",
"null",
")",
"config",
".",
"setCredentialsProvider",
"(",
"provider",
")",
";",
"if",
"(",
"region",
"!=",
"null",
")",
"{",
"String",
"endPoint",
"=",
"region",
".",
"getServiceEndpoint",
"(",
"AmazonCloudWatch",
".",
"ENDPOINT_PREFIX",
")",
";",
"config",
".",
"setCloudWatchEndPoint",
"(",
"endPoint",
")",
";",
"}",
"if",
"(",
"qSize",
"!=",
"null",
")",
"config",
".",
"setMetricQueueSize",
"(",
"qSize",
".",
"intValue",
"(",
")",
")",
";",
"if",
"(",
"timeoutMilli",
"!=",
"null",
")",
"config",
".",
"setQueuePollTimeoutMilli",
"(",
"timeoutMilli",
".",
"longValue",
"(",
")",
")",
";",
"config",
".",
"setClientConfiguration",
"(",
"clientConfig",
")",
";",
"MetricCollectorSupport",
".",
"startSingleton",
"(",
"config",
")",
";",
"return",
"MetricCollectorSupport",
".",
"getInstance",
"(",
")",
";",
"}"
] |
Returns a instance of the Amazon CloudWatch request metric collector either by
starting up a new one or returning an existing one if it's already
started; null if any failure.
|
[
"Returns",
"a",
"instance",
"of",
"the",
"Amazon",
"CloudWatch",
"request",
"metric",
"collector",
"either",
"by",
"starting",
"up",
"a",
"new",
"one",
"or",
"returning",
"an",
"existing",
"one",
"if",
"it",
"s",
"already",
"started",
";",
"null",
"if",
"any",
"failure",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/DefaultMetricCollectorFactory.java#L38-L59
|
20,334
|
aws/aws-sdk-java
|
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AmazonDynamoDBClientBuilder.java
|
AmazonDynamoDBClientBuilder.build
|
@Override
protected AmazonDynamoDB build(AwsSyncClientParams params) {
if (endpointDiscoveryEnabled() && getEndpoint() == null) {
return new AmazonDynamoDBClient(params, true);
}
return new AmazonDynamoDBClient(params);
}
|
java
|
@Override
protected AmazonDynamoDB build(AwsSyncClientParams params) {
if (endpointDiscoveryEnabled() && getEndpoint() == null) {
return new AmazonDynamoDBClient(params, true);
}
return new AmazonDynamoDBClient(params);
}
|
[
"@",
"Override",
"protected",
"AmazonDynamoDB",
"build",
"(",
"AwsSyncClientParams",
"params",
")",
"{",
"if",
"(",
"endpointDiscoveryEnabled",
"(",
")",
"&&",
"getEndpoint",
"(",
")",
"==",
"null",
")",
"{",
"return",
"new",
"AmazonDynamoDBClient",
"(",
"params",
",",
"true",
")",
";",
"}",
"return",
"new",
"AmazonDynamoDBClient",
"(",
"params",
")",
";",
"}"
] |
Construct a synchronous implementation of AmazonDynamoDB using the current builder configuration.
@param params
Current builder configuration represented as a parameter object.
@return Fully configured implementation of AmazonDynamoDB.
|
[
"Construct",
"a",
"synchronous",
"implementation",
"of",
"AmazonDynamoDB",
"using",
"the",
"current",
"builder",
"configuration",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AmazonDynamoDBClientBuilder.java#L104-L110
|
20,335
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/AbstractProfilesConfigFileScanner.java
|
AbstractProfilesConfigFileScanner.run
|
protected void run(Scanner scanner) {
String currentProfileName = null;
try {
while(scanner.hasNextLine()) {
String line = scanner.nextLine().trim();
// Empty or comment lines
if (line.isEmpty() || line.startsWith("#")) {
onEmptyOrCommentLine(currentProfileName, line);
continue;
}
// parseGroupName returns null if this line does not
// indicate a new property group.
String newProfileName = parseProfileName(line);
boolean atNewProfileStartingLine = newProfileName != null;
if (atNewProfileStartingLine) {
if (currentProfileName != null) {
onProfileEndingLine(currentProfileName);
}
onProfileStartingLine(newProfileName, line);
// Start the new profile
currentProfileName = newProfileName;
} else {
// Parse the property line
Entry<String, String> property = parsePropertyLine(line);
if (currentProfileName == null) {
throw new IllegalArgumentException(
"Property is defined without a preceding profile name. "
+ "Current line: " + line);
}
onProfileProperty(currentProfileName,
property.getKey(),
property.getValue(),
isSupportedProperty(property.getKey()),
line);
}
}
// EOF
if (currentProfileName != null) {
onProfileEndingLine(currentProfileName);
}
onEndOfFile();
} finally {
scanner.close();
}
}
|
java
|
protected void run(Scanner scanner) {
String currentProfileName = null;
try {
while(scanner.hasNextLine()) {
String line = scanner.nextLine().trim();
// Empty or comment lines
if (line.isEmpty() || line.startsWith("#")) {
onEmptyOrCommentLine(currentProfileName, line);
continue;
}
// parseGroupName returns null if this line does not
// indicate a new property group.
String newProfileName = parseProfileName(line);
boolean atNewProfileStartingLine = newProfileName != null;
if (atNewProfileStartingLine) {
if (currentProfileName != null) {
onProfileEndingLine(currentProfileName);
}
onProfileStartingLine(newProfileName, line);
// Start the new profile
currentProfileName = newProfileName;
} else {
// Parse the property line
Entry<String, String> property = parsePropertyLine(line);
if (currentProfileName == null) {
throw new IllegalArgumentException(
"Property is defined without a preceding profile name. "
+ "Current line: " + line);
}
onProfileProperty(currentProfileName,
property.getKey(),
property.getValue(),
isSupportedProperty(property.getKey()),
line);
}
}
// EOF
if (currentProfileName != null) {
onProfileEndingLine(currentProfileName);
}
onEndOfFile();
} finally {
scanner.close();
}
}
|
[
"protected",
"void",
"run",
"(",
"Scanner",
"scanner",
")",
"{",
"String",
"currentProfileName",
"=",
"null",
";",
"try",
"{",
"while",
"(",
"scanner",
".",
"hasNextLine",
"(",
")",
")",
"{",
"String",
"line",
"=",
"scanner",
".",
"nextLine",
"(",
")",
".",
"trim",
"(",
")",
";",
"// Empty or comment lines",
"if",
"(",
"line",
".",
"isEmpty",
"(",
")",
"||",
"line",
".",
"startsWith",
"(",
"\"#\"",
")",
")",
"{",
"onEmptyOrCommentLine",
"(",
"currentProfileName",
",",
"line",
")",
";",
"continue",
";",
"}",
"// parseGroupName returns null if this line does not",
"// indicate a new property group.",
"String",
"newProfileName",
"=",
"parseProfileName",
"(",
"line",
")",
";",
"boolean",
"atNewProfileStartingLine",
"=",
"newProfileName",
"!=",
"null",
";",
"if",
"(",
"atNewProfileStartingLine",
")",
"{",
"if",
"(",
"currentProfileName",
"!=",
"null",
")",
"{",
"onProfileEndingLine",
"(",
"currentProfileName",
")",
";",
"}",
"onProfileStartingLine",
"(",
"newProfileName",
",",
"line",
")",
";",
"// Start the new profile",
"currentProfileName",
"=",
"newProfileName",
";",
"}",
"else",
"{",
"// Parse the property line",
"Entry",
"<",
"String",
",",
"String",
">",
"property",
"=",
"parsePropertyLine",
"(",
"line",
")",
";",
"if",
"(",
"currentProfileName",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Property is defined without a preceding profile name. \"",
"+",
"\"Current line: \"",
"+",
"line",
")",
";",
"}",
"onProfileProperty",
"(",
"currentProfileName",
",",
"property",
".",
"getKey",
"(",
")",
",",
"property",
".",
"getValue",
"(",
")",
",",
"isSupportedProperty",
"(",
"property",
".",
"getKey",
"(",
")",
")",
",",
"line",
")",
";",
"}",
"}",
"// EOF",
"if",
"(",
"currentProfileName",
"!=",
"null",
")",
"{",
"onProfileEndingLine",
"(",
"currentProfileName",
")",
";",
"}",
"onEndOfFile",
"(",
")",
";",
"}",
"finally",
"{",
"scanner",
".",
"close",
"(",
")",
";",
"}",
"}"
] |
Scan through the given input, and perform the defined actions.
@param scanner
The scanner for the credentials file input.
|
[
"Scan",
"through",
"the",
"given",
"input",
"and",
"perform",
"the",
"defined",
"actions",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/AbstractProfilesConfigFileScanner.java#L89-L143
|
20,336
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/AbstractProfilesConfigFileScanner.java
|
AbstractProfilesConfigFileScanner.parseProfileName
|
private static String parseProfileName(String trimmedLine) {
if (trimmedLine.startsWith("[") && trimmedLine.endsWith("]")) {
String profileName = trimmedLine.substring(1, trimmedLine.length() - 1);
return profileName.trim();
}
return null;
}
|
java
|
private static String parseProfileName(String trimmedLine) {
if (trimmedLine.startsWith("[") && trimmedLine.endsWith("]")) {
String profileName = trimmedLine.substring(1, trimmedLine.length() - 1);
return profileName.trim();
}
return null;
}
|
[
"private",
"static",
"String",
"parseProfileName",
"(",
"String",
"trimmedLine",
")",
"{",
"if",
"(",
"trimmedLine",
".",
"startsWith",
"(",
"\"[\"",
")",
"&&",
"trimmedLine",
".",
"endsWith",
"(",
"\"]\"",
")",
")",
"{",
"String",
"profileName",
"=",
"trimmedLine",
".",
"substring",
"(",
"1",
",",
"trimmedLine",
".",
"length",
"(",
")",
"-",
"1",
")",
";",
"return",
"profileName",
".",
"trim",
"(",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
Returns the profile name if this line indicates the beginning of a new
profile section. Otherwise, returns null.
|
[
"Returns",
"the",
"profile",
"name",
"if",
"this",
"line",
"indicates",
"the",
"beginning",
"of",
"a",
"new",
"profile",
"section",
".",
"Otherwise",
"returns",
"null",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/AbstractProfilesConfigFileScanner.java#L150-L156
|
20,337
|
aws/aws-sdk-java
|
src/samples/AwsCloudFormation/CloudFormationSample.java
|
CloudFormationSample.convertStreamToString
|
public static String convertStreamToString(InputStream in) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
StringBuilder stringbuilder = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
stringbuilder.append(line + "\n");
}
in.close();
return stringbuilder.toString();
}
|
java
|
public static String convertStreamToString(InputStream in) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
StringBuilder stringbuilder = new StringBuilder();
String line = null;
while ((line = reader.readLine()) != null) {
stringbuilder.append(line + "\n");
}
in.close();
return stringbuilder.toString();
}
|
[
"public",
"static",
"String",
"convertStreamToString",
"(",
"InputStream",
"in",
")",
"throws",
"Exception",
"{",
"BufferedReader",
"reader",
"=",
"new",
"BufferedReader",
"(",
"new",
"InputStreamReader",
"(",
"in",
")",
")",
";",
"StringBuilder",
"stringbuilder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"String",
"line",
"=",
"null",
";",
"while",
"(",
"(",
"line",
"=",
"reader",
".",
"readLine",
"(",
")",
")",
"!=",
"null",
")",
"{",
"stringbuilder",
".",
"append",
"(",
"line",
"+",
"\"\\n\"",
")",
";",
"}",
"in",
".",
"close",
"(",
")",
";",
"return",
"stringbuilder",
".",
"toString",
"(",
")",
";",
"}"
] |
Convert a stream into a single, newline separated string
|
[
"Convert",
"a",
"stream",
"into",
"a",
"single",
"newline",
"separated",
"string"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AwsCloudFormation/CloudFormationSample.java#L141-L151
|
20,338
|
aws/aws-sdk-java
|
src/samples/AwsCloudFormation/CloudFormationSample.java
|
CloudFormationSample.waitForCompletion
|
public static String waitForCompletion(AmazonCloudFormation stackbuilder, String stackName) throws Exception {
DescribeStacksRequest wait = new DescribeStacksRequest();
wait.setStackName(stackName);
Boolean completed = false;
String stackStatus = "Unknown";
String stackReason = "";
System.out.print("Waiting");
while (!completed) {
List<Stack> stacks = stackbuilder.describeStacks(wait).getStacks();
if (stacks.isEmpty())
{
completed = true;
stackStatus = "NO_SUCH_STACK";
stackReason = "Stack has been deleted";
} else {
for (Stack stack : stacks) {
if (stack.getStackStatus().equals(StackStatus.CREATE_COMPLETE.toString()) ||
stack.getStackStatus().equals(StackStatus.CREATE_FAILED.toString()) ||
stack.getStackStatus().equals(StackStatus.ROLLBACK_FAILED.toString()) ||
stack.getStackStatus().equals(StackStatus.DELETE_FAILED.toString())) {
completed = true;
stackStatus = stack.getStackStatus();
stackReason = stack.getStackStatusReason();
}
}
}
// Show we are waiting
System.out.print(".");
// Not done yet so sleep for 10 seconds.
if (!completed) Thread.sleep(10000);
}
// Show we are done
System.out.print("done\n");
return stackStatus + " (" + stackReason + ")";
}
|
java
|
public static String waitForCompletion(AmazonCloudFormation stackbuilder, String stackName) throws Exception {
DescribeStacksRequest wait = new DescribeStacksRequest();
wait.setStackName(stackName);
Boolean completed = false;
String stackStatus = "Unknown";
String stackReason = "";
System.out.print("Waiting");
while (!completed) {
List<Stack> stacks = stackbuilder.describeStacks(wait).getStacks();
if (stacks.isEmpty())
{
completed = true;
stackStatus = "NO_SUCH_STACK";
stackReason = "Stack has been deleted";
} else {
for (Stack stack : stacks) {
if (stack.getStackStatus().equals(StackStatus.CREATE_COMPLETE.toString()) ||
stack.getStackStatus().equals(StackStatus.CREATE_FAILED.toString()) ||
stack.getStackStatus().equals(StackStatus.ROLLBACK_FAILED.toString()) ||
stack.getStackStatus().equals(StackStatus.DELETE_FAILED.toString())) {
completed = true;
stackStatus = stack.getStackStatus();
stackReason = stack.getStackStatusReason();
}
}
}
// Show we are waiting
System.out.print(".");
// Not done yet so sleep for 10 seconds.
if (!completed) Thread.sleep(10000);
}
// Show we are done
System.out.print("done\n");
return stackStatus + " (" + stackReason + ")";
}
|
[
"public",
"static",
"String",
"waitForCompletion",
"(",
"AmazonCloudFormation",
"stackbuilder",
",",
"String",
"stackName",
")",
"throws",
"Exception",
"{",
"DescribeStacksRequest",
"wait",
"=",
"new",
"DescribeStacksRequest",
"(",
")",
";",
"wait",
".",
"setStackName",
"(",
"stackName",
")",
";",
"Boolean",
"completed",
"=",
"false",
";",
"String",
"stackStatus",
"=",
"\"Unknown\"",
";",
"String",
"stackReason",
"=",
"\"\"",
";",
"System",
".",
"out",
".",
"print",
"(",
"\"Waiting\"",
")",
";",
"while",
"(",
"!",
"completed",
")",
"{",
"List",
"<",
"Stack",
">",
"stacks",
"=",
"stackbuilder",
".",
"describeStacks",
"(",
"wait",
")",
".",
"getStacks",
"(",
")",
";",
"if",
"(",
"stacks",
".",
"isEmpty",
"(",
")",
")",
"{",
"completed",
"=",
"true",
";",
"stackStatus",
"=",
"\"NO_SUCH_STACK\"",
";",
"stackReason",
"=",
"\"Stack has been deleted\"",
";",
"}",
"else",
"{",
"for",
"(",
"Stack",
"stack",
":",
"stacks",
")",
"{",
"if",
"(",
"stack",
".",
"getStackStatus",
"(",
")",
".",
"equals",
"(",
"StackStatus",
".",
"CREATE_COMPLETE",
".",
"toString",
"(",
")",
")",
"||",
"stack",
".",
"getStackStatus",
"(",
")",
".",
"equals",
"(",
"StackStatus",
".",
"CREATE_FAILED",
".",
"toString",
"(",
")",
")",
"||",
"stack",
".",
"getStackStatus",
"(",
")",
".",
"equals",
"(",
"StackStatus",
".",
"ROLLBACK_FAILED",
".",
"toString",
"(",
")",
")",
"||",
"stack",
".",
"getStackStatus",
"(",
")",
".",
"equals",
"(",
"StackStatus",
".",
"DELETE_FAILED",
".",
"toString",
"(",
")",
")",
")",
"{",
"completed",
"=",
"true",
";",
"stackStatus",
"=",
"stack",
".",
"getStackStatus",
"(",
")",
";",
"stackReason",
"=",
"stack",
".",
"getStackStatusReason",
"(",
")",
";",
"}",
"}",
"}",
"// Show we are waiting\r",
"System",
".",
"out",
".",
"print",
"(",
"\".\"",
")",
";",
"// Not done yet so sleep for 10 seconds.\r",
"if",
"(",
"!",
"completed",
")",
"Thread",
".",
"sleep",
"(",
"10000",
")",
";",
"}",
"// Show we are done\r",
"System",
".",
"out",
".",
"print",
"(",
"\"done\\n\"",
")",
";",
"return",
"stackStatus",
"+",
"\" (\"",
"+",
"stackReason",
"+",
"\")\"",
";",
"}"
] |
OR the stack no longer exists
|
[
"OR",
"the",
"stack",
"no",
"longer",
"exists"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AwsCloudFormation/CloudFormationSample.java#L160-L201
|
20,339
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java
|
DateUtils.handleException
|
private static <E extends RuntimeException> E handleException(E ex) {
if (JodaTime.hasExpectedBehavior())
return ex;
throw new IllegalStateException("Joda-time 2.2 or later version is required, but found version: " + JodaTime.getVersion(), ex);
}
|
java
|
private static <E extends RuntimeException> E handleException(E ex) {
if (JodaTime.hasExpectedBehavior())
return ex;
throw new IllegalStateException("Joda-time 2.2 or later version is required, but found version: " + JodaTime.getVersion(), ex);
}
|
[
"private",
"static",
"<",
"E",
"extends",
"RuntimeException",
">",
"E",
"handleException",
"(",
"E",
"ex",
")",
"{",
"if",
"(",
"JodaTime",
".",
"hasExpectedBehavior",
"(",
")",
")",
"return",
"ex",
";",
"throw",
"new",
"IllegalStateException",
"(",
"\"Joda-time 2.2 or later version is required, but found version: \"",
"+",
"JodaTime",
".",
"getVersion",
"(",
")",
",",
"ex",
")",
";",
"}"
] |
Returns the original runtime exception iff the joda-time being used
at runtime behaves as expected.
@throws IllegalStateException if the joda-time being used at runtime
doens't appear to be of the right version.
|
[
"Returns",
"the",
"original",
"runtime",
"exception",
"iff",
"the",
"joda",
"-",
"time",
"being",
"used",
"at",
"runtime",
"behaves",
"as",
"expected",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java#L146-L150
|
20,340
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java
|
DateUtils.parseRFC822Date
|
public static Date parseRFC822Date(String dateString) {
if (dateString == null) {
return null;
}
try {
return new Date(rfc822DateFormat.parseMillis(dateString));
} catch(RuntimeException ex) {
throw handleException(ex);
}
}
|
java
|
public static Date parseRFC822Date(String dateString) {
if (dateString == null) {
return null;
}
try {
return new Date(rfc822DateFormat.parseMillis(dateString));
} catch(RuntimeException ex) {
throw handleException(ex);
}
}
|
[
"public",
"static",
"Date",
"parseRFC822Date",
"(",
"String",
"dateString",
")",
"{",
"if",
"(",
"dateString",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"try",
"{",
"return",
"new",
"Date",
"(",
"rfc822DateFormat",
".",
"parseMillis",
"(",
"dateString",
")",
")",
";",
"}",
"catch",
"(",
"RuntimeException",
"ex",
")",
"{",
"throw",
"handleException",
"(",
"ex",
")",
";",
"}",
"}"
] |
Parses the specified date string as an RFC 822 date and returns the Date
object.
@param dateString
The date string to parse.
@return The parsed Date object.
|
[
"Parses",
"the",
"specified",
"date",
"string",
"as",
"an",
"RFC",
"822",
"date",
"and",
"returns",
"the",
"Date",
"object",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java#L191-L200
|
20,341
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java
|
DateUtils.formatRFC822Date
|
public static String formatRFC822Date(Date date) {
try {
return rfc822DateFormat.print(date.getTime());
} catch(RuntimeException ex) {
throw handleException(ex);
}
}
|
java
|
public static String formatRFC822Date(Date date) {
try {
return rfc822DateFormat.print(date.getTime());
} catch(RuntimeException ex) {
throw handleException(ex);
}
}
|
[
"public",
"static",
"String",
"formatRFC822Date",
"(",
"Date",
"date",
")",
"{",
"try",
"{",
"return",
"rfc822DateFormat",
".",
"print",
"(",
"date",
".",
"getTime",
"(",
")",
")",
";",
"}",
"catch",
"(",
"RuntimeException",
"ex",
")",
"{",
"throw",
"handleException",
"(",
"ex",
")",
";",
"}",
"}"
] |
Formats the specified date as an RFC 822 string.
@param date
The date to format.
@return The RFC 822 string representing the specified date.
|
[
"Formats",
"the",
"specified",
"date",
"as",
"an",
"RFC",
"822",
"string",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java#L210-L216
|
20,342
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java
|
DateUtils.parseServiceSpecificDate
|
public static Date parseServiceSpecificDate(String dateString) {
if (dateString == null)
return null;
try {
BigDecimal dateValue = new BigDecimal(dateString);
return new Date(dateValue.scaleByPowerOfTen(
AWS_DATE_MILLI_SECOND_PRECISION).longValue());
} catch (NumberFormatException nfe) {
throw new SdkClientException("Unable to parse date : "
+ dateString, nfe);
}
}
|
java
|
public static Date parseServiceSpecificDate(String dateString) {
if (dateString == null)
return null;
try {
BigDecimal dateValue = new BigDecimal(dateString);
return new Date(dateValue.scaleByPowerOfTen(
AWS_DATE_MILLI_SECOND_PRECISION).longValue());
} catch (NumberFormatException nfe) {
throw new SdkClientException("Unable to parse date : "
+ dateString, nfe);
}
}
|
[
"public",
"static",
"Date",
"parseServiceSpecificDate",
"(",
"String",
"dateString",
")",
"{",
"if",
"(",
"dateString",
"==",
"null",
")",
"return",
"null",
";",
"try",
"{",
"BigDecimal",
"dateValue",
"=",
"new",
"BigDecimal",
"(",
"dateString",
")",
";",
"return",
"new",
"Date",
"(",
"dateValue",
".",
"scaleByPowerOfTen",
"(",
"AWS_DATE_MILLI_SECOND_PRECISION",
")",
".",
"longValue",
"(",
")",
")",
";",
"}",
"catch",
"(",
"NumberFormatException",
"nfe",
")",
"{",
"throw",
"new",
"SdkClientException",
"(",
"\"Unable to parse date : \"",
"+",
"dateString",
",",
"nfe",
")",
";",
"}",
"}"
] |
Parses the given date string returned by the AWS service into a Date
object.
|
[
"Parses",
"the",
"given",
"date",
"string",
"returned",
"by",
"the",
"AWS",
"service",
"into",
"a",
"Date",
"object",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java#L239-L250
|
20,343
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java
|
DateUtils.formatServiceSpecificDate
|
public static String formatServiceSpecificDate(Date date) {
if (date == null)
return null;
BigDecimal dateValue = BigDecimal.valueOf(date.getTime());
return dateValue.scaleByPowerOfTen(0 - AWS_DATE_MILLI_SECOND_PRECISION)
.toPlainString();
}
|
java
|
public static String formatServiceSpecificDate(Date date) {
if (date == null)
return null;
BigDecimal dateValue = BigDecimal.valueOf(date.getTime());
return dateValue.scaleByPowerOfTen(0 - AWS_DATE_MILLI_SECOND_PRECISION)
.toPlainString();
}
|
[
"public",
"static",
"String",
"formatServiceSpecificDate",
"(",
"Date",
"date",
")",
"{",
"if",
"(",
"date",
"==",
"null",
")",
"return",
"null",
";",
"BigDecimal",
"dateValue",
"=",
"BigDecimal",
".",
"valueOf",
"(",
"date",
".",
"getTime",
"(",
")",
")",
";",
"return",
"dateValue",
".",
"scaleByPowerOfTen",
"(",
"0",
"-",
"AWS_DATE_MILLI_SECOND_PRECISION",
")",
".",
"toPlainString",
"(",
")",
";",
"}"
] |
Formats the give date object into an AWS Service format.
|
[
"Formats",
"the",
"give",
"date",
"object",
"into",
"an",
"AWS",
"Service",
"format",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java#L267-L273
|
20,344
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java
|
DateUtils.formatUnixTimestampInMills
|
public static String formatUnixTimestampInMills(Date date) {
if (date == null)
return null;
BigDecimal dateValue = BigDecimal.valueOf(date.getTime());
return dateValue.toPlainString();
}
|
java
|
public static String formatUnixTimestampInMills(Date date) {
if (date == null)
return null;
BigDecimal dateValue = BigDecimal.valueOf(date.getTime());
return dateValue.toPlainString();
}
|
[
"public",
"static",
"String",
"formatUnixTimestampInMills",
"(",
"Date",
"date",
")",
"{",
"if",
"(",
"date",
"==",
"null",
")",
"return",
"null",
";",
"BigDecimal",
"dateValue",
"=",
"BigDecimal",
".",
"valueOf",
"(",
"date",
".",
"getTime",
"(",
")",
")",
";",
"return",
"dateValue",
".",
"toPlainString",
"(",
")",
";",
"}"
] |
Formats the give date object into unit timestamp in milli seconds.
|
[
"Formats",
"the",
"give",
"date",
"object",
"into",
"unit",
"timestamp",
"in",
"milli",
"seconds",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/DateUtils.java#L278-L283
|
20,345
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddExceptionShapes.java
|
AddExceptionShapes.getErrorCode
|
private String getErrorCode(String errorShapeName) {
ErrorTrait errorTrait = getServiceModel().getShapes().get(errorShapeName).getErrorTrait();
if (isErrorCodeOverridden(errorTrait)) {
return errorTrait.getErrorCode();
} else {
return errorShapeName;
}
}
|
java
|
private String getErrorCode(String errorShapeName) {
ErrorTrait errorTrait = getServiceModel().getShapes().get(errorShapeName).getErrorTrait();
if (isErrorCodeOverridden(errorTrait)) {
return errorTrait.getErrorCode();
} else {
return errorShapeName;
}
}
|
[
"private",
"String",
"getErrorCode",
"(",
"String",
"errorShapeName",
")",
"{",
"ErrorTrait",
"errorTrait",
"=",
"getServiceModel",
"(",
")",
".",
"getShapes",
"(",
")",
".",
"get",
"(",
"errorShapeName",
")",
".",
"getErrorTrait",
"(",
")",
";",
"if",
"(",
"isErrorCodeOverridden",
"(",
"errorTrait",
")",
")",
"{",
"return",
"errorTrait",
".",
"getErrorCode",
"(",
")",
";",
"}",
"else",
"{",
"return",
"errorShapeName",
";",
"}",
"}"
] |
The error code may be overridden for query or rest protocols via the error trait on the
exception shape. If the error code isn't overridden and for all other protocols other than
query or rest the error code should just be the shape name
|
[
"The",
"error",
"code",
"may",
"be",
"overridden",
"for",
"query",
"or",
"rest",
"protocols",
"via",
"the",
"error",
"trait",
"on",
"the",
"exception",
"shape",
".",
"If",
"the",
"error",
"code",
"isn",
"t",
"overridden",
"and",
"for",
"all",
"other",
"protocols",
"other",
"than",
"query",
"or",
"rest",
"the",
"error",
"code",
"should",
"just",
"be",
"the",
"shape",
"name"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddExceptionShapes.java#L83-L90
|
20,346
|
aws/aws-sdk-java
|
src/samples/AmazonEC2SpotInstances-GettingStarted/Requests.java
|
Requests.areAnyOpen
|
public boolean areAnyOpen() {
//==========================================================================//
//============== Describe Spot Instance Requests to determine =============//
//==========================================================================//
// Create the describeRequest with tall of the request id to monitor (e.g. that we started).
DescribeSpotInstanceRequestsRequest describeRequest = new DescribeSpotInstanceRequestsRequest();
describeRequest.setSpotInstanceRequestIds(spotInstanceRequestIds);
System.out.println("Checking to determine if Spot Bids have reached the active state...");
// Initialize variables.
instanceIds = new ArrayList<String>();
try
{
// Retrieve all of the requests we want to monitor.
DescribeSpotInstanceRequestsResult describeResult = ec2.describeSpotInstanceRequests(describeRequest);
List<SpotInstanceRequest> describeResponses = describeResult.getSpotInstanceRequests();
// Look through each request and determine if they are all in the active state.
for (SpotInstanceRequest describeResponse : describeResponses) {
System.out.println(" " +describeResponse.getSpotInstanceRequestId() +
" is in the "+describeResponse.getState() + " state.");
// If the state is open, it hasn't changed since we attempted to request it.
// There is the potential for it to transition almost immediately to closed or
// cancelled so we compare against open instead of active.
if (describeResponse.getState().equals("open")) {
return true;
}
// Add the instance id to the list we will eventually terminate.
instanceIds.add(describeResponse.getInstanceId());
}
} catch (AmazonServiceException e) {
// Print out the error.
System.out.println("Error when calling describeSpotInstances");
System.out.println("Caught Exception: " + e.getMessage());
System.out.println("Reponse Status Code: " + e.getStatusCode());
System.out.println("Error Code: " + e.getErrorCode());
System.out.println("Request ID: " + e.getRequestId());
// If we have an exception, ensure we don't break out of the loop.
// This prevents the scenario where there was blip on the wire.
return true;
}
return false;
}
|
java
|
public boolean areAnyOpen() {
//==========================================================================//
//============== Describe Spot Instance Requests to determine =============//
//==========================================================================//
// Create the describeRequest with tall of the request id to monitor (e.g. that we started).
DescribeSpotInstanceRequestsRequest describeRequest = new DescribeSpotInstanceRequestsRequest();
describeRequest.setSpotInstanceRequestIds(spotInstanceRequestIds);
System.out.println("Checking to determine if Spot Bids have reached the active state...");
// Initialize variables.
instanceIds = new ArrayList<String>();
try
{
// Retrieve all of the requests we want to monitor.
DescribeSpotInstanceRequestsResult describeResult = ec2.describeSpotInstanceRequests(describeRequest);
List<SpotInstanceRequest> describeResponses = describeResult.getSpotInstanceRequests();
// Look through each request and determine if they are all in the active state.
for (SpotInstanceRequest describeResponse : describeResponses) {
System.out.println(" " +describeResponse.getSpotInstanceRequestId() +
" is in the "+describeResponse.getState() + " state.");
// If the state is open, it hasn't changed since we attempted to request it.
// There is the potential for it to transition almost immediately to closed or
// cancelled so we compare against open instead of active.
if (describeResponse.getState().equals("open")) {
return true;
}
// Add the instance id to the list we will eventually terminate.
instanceIds.add(describeResponse.getInstanceId());
}
} catch (AmazonServiceException e) {
// Print out the error.
System.out.println("Error when calling describeSpotInstances");
System.out.println("Caught Exception: " + e.getMessage());
System.out.println("Reponse Status Code: " + e.getStatusCode());
System.out.println("Error Code: " + e.getErrorCode());
System.out.println("Request ID: " + e.getRequestId());
// If we have an exception, ensure we don't break out of the loop.
// This prevents the scenario where there was blip on the wire.
return true;
}
return false;
}
|
[
"public",
"boolean",
"areAnyOpen",
"(",
")",
"{",
"//==========================================================================//\r",
"//============== Describe Spot Instance Requests to determine =============//\r",
"//==========================================================================//\r",
"// Create the describeRequest with tall of the request id to monitor (e.g. that we started).\r",
"DescribeSpotInstanceRequestsRequest",
"describeRequest",
"=",
"new",
"DescribeSpotInstanceRequestsRequest",
"(",
")",
";",
"describeRequest",
".",
"setSpotInstanceRequestIds",
"(",
"spotInstanceRequestIds",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Checking to determine if Spot Bids have reached the active state...\"",
")",
";",
"// Initialize variables.\r",
"instanceIds",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"try",
"{",
"// Retrieve all of the requests we want to monitor.\r",
"DescribeSpotInstanceRequestsResult",
"describeResult",
"=",
"ec2",
".",
"describeSpotInstanceRequests",
"(",
"describeRequest",
")",
";",
"List",
"<",
"SpotInstanceRequest",
">",
"describeResponses",
"=",
"describeResult",
".",
"getSpotInstanceRequests",
"(",
")",
";",
"// Look through each request and determine if they are all in the active state.\r",
"for",
"(",
"SpotInstanceRequest",
"describeResponse",
":",
"describeResponses",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\" \"",
"+",
"describeResponse",
".",
"getSpotInstanceRequestId",
"(",
")",
"+",
"\" is in the \"",
"+",
"describeResponse",
".",
"getState",
"(",
")",
"+",
"\" state.\"",
")",
";",
"// If the state is open, it hasn't changed since we attempted to request it.\r",
"// There is the potential for it to transition almost immediately to closed or\r",
"// cancelled so we compare against open instead of active.\r",
"if",
"(",
"describeResponse",
".",
"getState",
"(",
")",
".",
"equals",
"(",
"\"open\"",
")",
")",
"{",
"return",
"true",
";",
"}",
"// Add the instance id to the list we will eventually terminate.\r",
"instanceIds",
".",
"add",
"(",
"describeResponse",
".",
"getInstanceId",
"(",
")",
")",
";",
"}",
"}",
"catch",
"(",
"AmazonServiceException",
"e",
")",
"{",
"// Print out the error.\r",
"System",
".",
"out",
".",
"println",
"(",
"\"Error when calling describeSpotInstances\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Caught Exception: \"",
"+",
"e",
".",
"getMessage",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Reponse Status Code: \"",
"+",
"e",
".",
"getStatusCode",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Error Code: \"",
"+",
"e",
".",
"getErrorCode",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Request ID: \"",
"+",
"e",
".",
"getRequestId",
"(",
")",
")",
";",
"// If we have an exception, ensure we don't break out of the loop.\r",
"// This prevents the scenario where there was blip on the wire.\r",
"return",
"true",
";",
"}",
"return",
"false",
";",
"}"
] |
The areOpen method will determine if any of the requests that were started are still
in the open state. If all of them have transitioned to either active, cancelled, or
closed, then this will return false.
@return
|
[
"The",
"areOpen",
"method",
"will",
"determine",
"if",
"any",
"of",
"the",
"requests",
"that",
"were",
"started",
"are",
"still",
"in",
"the",
"open",
"state",
".",
"If",
"all",
"of",
"them",
"have",
"transitioned",
"to",
"either",
"active",
"cancelled",
"or",
"closed",
"then",
"this",
"will",
"return",
"false",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonEC2SpotInstances-GettingStarted/Requests.java#L143-L192
|
20,347
|
aws/aws-sdk-java
|
src/samples/AmazonEC2SpotInstances-GettingStarted/Requests.java
|
Requests.cleanup
|
public void cleanup () {
//==========================================================================//
//================= Cancel/Terminate Your Spot Request =====================//
//==========================================================================//
try {
// Cancel requests.
System.out.println("Cancelling requests.");
CancelSpotInstanceRequestsRequest cancelRequest = new CancelSpotInstanceRequestsRequest(spotInstanceRequestIds);
ec2.cancelSpotInstanceRequests(cancelRequest);
} catch (AmazonServiceException e) {
// Write out any exceptions that may have occurred.
System.out.println("Error cancelling instances");
System.out.println("Caught Exception: " + e.getMessage());
System.out.println("Reponse Status Code: " + e.getStatusCode());
System.out.println("Error Code: " + e.getErrorCode());
System.out.println("Request ID: " + e.getRequestId());
}
try {
// Terminate instances.
System.out.println("Terminate instances");
TerminateInstancesRequest terminateRequest = new TerminateInstancesRequest(instanceIds);
ec2.terminateInstances(terminateRequest);
} catch (AmazonServiceException e) {
// Write out any exceptions that may have occurred.
System.out.println("Error terminating instances");
System.out.println("Caught Exception: " + e.getMessage());
System.out.println("Reponse Status Code: " + e.getStatusCode());
System.out.println("Error Code: " + e.getErrorCode());
System.out.println("Request ID: " + e.getRequestId());
}
// Delete all requests and instances that we have terminated.
instanceIds.clear();
spotInstanceRequestIds.clear();
}
|
java
|
public void cleanup () {
//==========================================================================//
//================= Cancel/Terminate Your Spot Request =====================//
//==========================================================================//
try {
// Cancel requests.
System.out.println("Cancelling requests.");
CancelSpotInstanceRequestsRequest cancelRequest = new CancelSpotInstanceRequestsRequest(spotInstanceRequestIds);
ec2.cancelSpotInstanceRequests(cancelRequest);
} catch (AmazonServiceException e) {
// Write out any exceptions that may have occurred.
System.out.println("Error cancelling instances");
System.out.println("Caught Exception: " + e.getMessage());
System.out.println("Reponse Status Code: " + e.getStatusCode());
System.out.println("Error Code: " + e.getErrorCode());
System.out.println("Request ID: " + e.getRequestId());
}
try {
// Terminate instances.
System.out.println("Terminate instances");
TerminateInstancesRequest terminateRequest = new TerminateInstancesRequest(instanceIds);
ec2.terminateInstances(terminateRequest);
} catch (AmazonServiceException e) {
// Write out any exceptions that may have occurred.
System.out.println("Error terminating instances");
System.out.println("Caught Exception: " + e.getMessage());
System.out.println("Reponse Status Code: " + e.getStatusCode());
System.out.println("Error Code: " + e.getErrorCode());
System.out.println("Request ID: " + e.getRequestId());
}
// Delete all requests and instances that we have terminated.
instanceIds.clear();
spotInstanceRequestIds.clear();
}
|
[
"public",
"void",
"cleanup",
"(",
")",
"{",
"//==========================================================================//\r",
"//================= Cancel/Terminate Your Spot Request =====================//\r",
"//==========================================================================//\r",
"try",
"{",
"// Cancel requests.\r",
"System",
".",
"out",
".",
"println",
"(",
"\"Cancelling requests.\"",
")",
";",
"CancelSpotInstanceRequestsRequest",
"cancelRequest",
"=",
"new",
"CancelSpotInstanceRequestsRequest",
"(",
"spotInstanceRequestIds",
")",
";",
"ec2",
".",
"cancelSpotInstanceRequests",
"(",
"cancelRequest",
")",
";",
"}",
"catch",
"(",
"AmazonServiceException",
"e",
")",
"{",
"// Write out any exceptions that may have occurred.\r",
"System",
".",
"out",
".",
"println",
"(",
"\"Error cancelling instances\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Caught Exception: \"",
"+",
"e",
".",
"getMessage",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Reponse Status Code: \"",
"+",
"e",
".",
"getStatusCode",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Error Code: \"",
"+",
"e",
".",
"getErrorCode",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Request ID: \"",
"+",
"e",
".",
"getRequestId",
"(",
")",
")",
";",
"}",
"try",
"{",
"// Terminate instances.\r",
"System",
".",
"out",
".",
"println",
"(",
"\"Terminate instances\"",
")",
";",
"TerminateInstancesRequest",
"terminateRequest",
"=",
"new",
"TerminateInstancesRequest",
"(",
"instanceIds",
")",
";",
"ec2",
".",
"terminateInstances",
"(",
"terminateRequest",
")",
";",
"}",
"catch",
"(",
"AmazonServiceException",
"e",
")",
"{",
"// Write out any exceptions that may have occurred.\r",
"System",
".",
"out",
".",
"println",
"(",
"\"Error terminating instances\"",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Caught Exception: \"",
"+",
"e",
".",
"getMessage",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Reponse Status Code: \"",
"+",
"e",
".",
"getStatusCode",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Error Code: \"",
"+",
"e",
".",
"getErrorCode",
"(",
")",
")",
";",
"System",
".",
"out",
".",
"println",
"(",
"\"Request ID: \"",
"+",
"e",
".",
"getRequestId",
"(",
")",
")",
";",
"}",
"// Delete all requests and instances that we have terminated.\r",
"instanceIds",
".",
"clear",
"(",
")",
";",
"spotInstanceRequestIds",
".",
"clear",
"(",
")",
";",
"}"
] |
The cleanup method will cancel and active requests and terminate any running instances
that were created using this object.
|
[
"The",
"cleanup",
"method",
"will",
"cancel",
"and",
"active",
"requests",
"and",
"terminate",
"any",
"running",
"instances",
"that",
"were",
"created",
"using",
"this",
"object",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonEC2SpotInstances-GettingStarted/Requests.java#L198-L233
|
20,348
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/NetworkInterface.java
|
NetworkInterface.setPrivateIpAddresses
|
public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressDetails> privateIpAddresses) {
if (privateIpAddresses == null) {
this.privateIpAddresses = null;
return;
}
this.privateIpAddresses = new java.util.ArrayList<PrivateIpAddressDetails>(privateIpAddresses);
}
|
java
|
public void setPrivateIpAddresses(java.util.Collection<PrivateIpAddressDetails> privateIpAddresses) {
if (privateIpAddresses == null) {
this.privateIpAddresses = null;
return;
}
this.privateIpAddresses = new java.util.ArrayList<PrivateIpAddressDetails>(privateIpAddresses);
}
|
[
"public",
"void",
"setPrivateIpAddresses",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"PrivateIpAddressDetails",
">",
"privateIpAddresses",
")",
"{",
"if",
"(",
"privateIpAddresses",
"==",
"null",
")",
"{",
"this",
".",
"privateIpAddresses",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"privateIpAddresses",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"PrivateIpAddressDetails",
">",
"(",
"privateIpAddresses",
")",
";",
"}"
] |
Other private IP address information of the EC2 instance.
@param privateIpAddresses
Other private IP address information of the EC2 instance.
|
[
"Other",
"private",
"IP",
"address",
"information",
"of",
"the",
"EC2",
"instance",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/NetworkInterface.java#L231-L238
|
20,349
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3ObjectInputStream.java
|
S3ObjectInputStream.wrapWithByteCounting
|
private static boolean wrapWithByteCounting(InputStream in) {
if (!AwsSdkMetrics.isMetricsEnabled()) {
return false; // metrics is disabled
}
if (in instanceof MetricAware) {
MetricAware aware = (MetricAware) in;
// wrap only if not already wrapped in one of it's inner chain of input stream
return !aware.isMetricActivated();
}
return true; // this is a raw input stream so metric wrapping is necessary
}
|
java
|
private static boolean wrapWithByteCounting(InputStream in) {
if (!AwsSdkMetrics.isMetricsEnabled()) {
return false; // metrics is disabled
}
if (in instanceof MetricAware) {
MetricAware aware = (MetricAware) in;
// wrap only if not already wrapped in one of it's inner chain of input stream
return !aware.isMetricActivated();
}
return true; // this is a raw input stream so metric wrapping is necessary
}
|
[
"private",
"static",
"boolean",
"wrapWithByteCounting",
"(",
"InputStream",
"in",
")",
"{",
"if",
"(",
"!",
"AwsSdkMetrics",
".",
"isMetricsEnabled",
"(",
")",
")",
"{",
"return",
"false",
";",
"// metrics is disabled\r",
"}",
"if",
"(",
"in",
"instanceof",
"MetricAware",
")",
"{",
"MetricAware",
"aware",
"=",
"(",
"MetricAware",
")",
"in",
";",
"// wrap only if not already wrapped in one of it's inner chain of input stream\r",
"return",
"!",
"aware",
".",
"isMetricActivated",
"(",
")",
";",
"}",
"return",
"true",
";",
"// this is a raw input stream so metric wrapping is necessary\r",
"}"
] |
Returns true if we should wrap the given input stream with a byte
counting wrapper; false otherwise.
|
[
"Returns",
"true",
"if",
"we",
"should",
"wrap",
"the",
"given",
"input",
"stream",
"with",
"a",
"byte",
"counting",
"wrapper",
";",
"false",
"otherwise",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3ObjectInputStream.java#L57-L67
|
20,350
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentDimensions.java
|
SegmentDimensions.withUserAttributes
|
public SegmentDimensions withUserAttributes(java.util.Map<String, AttributeDimension> userAttributes) {
setUserAttributes(userAttributes);
return this;
}
|
java
|
public SegmentDimensions withUserAttributes(java.util.Map<String, AttributeDimension> userAttributes) {
setUserAttributes(userAttributes);
return this;
}
|
[
"public",
"SegmentDimensions",
"withUserAttributes",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"AttributeDimension",
">",
"userAttributes",
")",
"{",
"setUserAttributes",
"(",
"userAttributes",
")",
";",
"return",
"this",
";",
"}"
] |
Custom segment user attributes.
@param userAttributes
Custom segment user attributes.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"Custom",
"segment",
"user",
"attributes",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentDimensions.java#L283-L286
|
20,351
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/Flow.java
|
Flow.setEntitlements
|
public void setEntitlements(java.util.Collection<Entitlement> entitlements) {
if (entitlements == null) {
this.entitlements = null;
return;
}
this.entitlements = new java.util.ArrayList<Entitlement>(entitlements);
}
|
java
|
public void setEntitlements(java.util.Collection<Entitlement> entitlements) {
if (entitlements == null) {
this.entitlements = null;
return;
}
this.entitlements = new java.util.ArrayList<Entitlement>(entitlements);
}
|
[
"public",
"void",
"setEntitlements",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Entitlement",
">",
"entitlements",
")",
"{",
"if",
"(",
"entitlements",
"==",
"null",
")",
"{",
"this",
".",
"entitlements",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"entitlements",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Entitlement",
">",
"(",
"entitlements",
")",
";",
"}"
] |
The entitlements in this flow.
@param entitlements
The entitlements in this flow.
|
[
"The",
"entitlements",
"in",
"this",
"flow",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/Flow.java#L185-L192
|
20,352
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AbstractPutObjectRequest.java
|
AbstractPutObjectRequest.withKey
|
public <T extends AbstractPutObjectRequest> T withKey(String key) {
setKey(key);
@SuppressWarnings("unchecked") T t = (T)this;
return t;
}
|
java
|
public <T extends AbstractPutObjectRequest> T withKey(String key) {
setKey(key);
@SuppressWarnings("unchecked") T t = (T)this;
return t;
}
|
[
"public",
"<",
"T",
"extends",
"AbstractPutObjectRequest",
">",
"T",
"withKey",
"(",
"String",
"key",
")",
"{",
"setKey",
"(",
"key",
")",
";",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"T",
"t",
"=",
"(",
"T",
")",
"this",
";",
"return",
"t",
";",
"}"
] |
Sets the key under which to store the new object. Returns this object,
enabling additional method calls to be chained together.
@param key
The key under which to store the new object.
@return This {@link AbstractPutObjectRequest}, enabling additional method calls to be
chained together.
@see AbstractPutObjectRequest#getKey()
@see AbstractPutObjectRequest#setKey(String)
|
[
"Sets",
"the",
"key",
"under",
"which",
"to",
"store",
"the",
"new",
"object",
".",
"Returns",
"this",
"object",
"enabling",
"additional",
"method",
"calls",
"to",
"be",
"chained",
"together",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AbstractPutObjectRequest.java#L282-L286
|
20,353
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AbstractPutObjectRequest.java
|
AbstractPutObjectRequest.setSSECustomerKey
|
public void setSSECustomerKey(SSECustomerKey sseKey) {
if (sseKey != null && this.sseAwsKeyManagementParams != null) {
throw new IllegalArgumentException(
"Either SSECustomerKey or SSEAwsKeyManagementParams must not be set at the same time.");
}
this.sseCustomerKey = sseKey;
}
|
java
|
public void setSSECustomerKey(SSECustomerKey sseKey) {
if (sseKey != null && this.sseAwsKeyManagementParams != null) {
throw new IllegalArgumentException(
"Either SSECustomerKey or SSEAwsKeyManagementParams must not be set at the same time.");
}
this.sseCustomerKey = sseKey;
}
|
[
"public",
"void",
"setSSECustomerKey",
"(",
"SSECustomerKey",
"sseKey",
")",
"{",
"if",
"(",
"sseKey",
"!=",
"null",
"&&",
"this",
".",
"sseAwsKeyManagementParams",
"!=",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Either SSECustomerKey or SSEAwsKeyManagementParams must not be set at the same time.\"",
")",
";",
"}",
"this",
".",
"sseCustomerKey",
"=",
"sseKey",
";",
"}"
] |
Sets the optional customer-provided server-side encryption key to use to
encrypt the uploaded object.
@param sseKey
The optional customer-provided server-side encryption key to
use to encrypt the uploaded object.
|
[
"Sets",
"the",
"optional",
"customer",
"-",
"provided",
"server",
"-",
"side",
"encryption",
"key",
"to",
"use",
"to",
"encrypt",
"the",
"uploaded",
"object",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AbstractPutObjectRequest.java#L744-L750
|
20,354
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AbstractPutObjectRequest.java
|
AbstractPutObjectRequest.withSSECustomerKey
|
public <T extends AbstractPutObjectRequest> T withSSECustomerKey(
SSECustomerKey sseKey) {
setSSECustomerKey(sseKey);
@SuppressWarnings("unchecked") T t = (T)this;
return t;
}
|
java
|
public <T extends AbstractPutObjectRequest> T withSSECustomerKey(
SSECustomerKey sseKey) {
setSSECustomerKey(sseKey);
@SuppressWarnings("unchecked") T t = (T)this;
return t;
}
|
[
"public",
"<",
"T",
"extends",
"AbstractPutObjectRequest",
">",
"T",
"withSSECustomerKey",
"(",
"SSECustomerKey",
"sseKey",
")",
"{",
"setSSECustomerKey",
"(",
"sseKey",
")",
";",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"T",
"t",
"=",
"(",
"T",
")",
"this",
";",
"return",
"t",
";",
"}"
] |
Sets the optional customer-provided server-side encryption key to use to
encrypt the uploaded object, and returns the updated request object so
that additional method calls can be chained together.
@param sseKey
The optional customer-provided server-side encryption key to
use to encrypt the uploaded object.
@return This updated request object so that additional method calls can
be chained together.
|
[
"Sets",
"the",
"optional",
"customer",
"-",
"provided",
"server",
"-",
"side",
"encryption",
"key",
"to",
"use",
"to",
"encrypt",
"the",
"uploaded",
"object",
"and",
"returns",
"the",
"updated",
"request",
"object",
"so",
"that",
"additional",
"method",
"calls",
"can",
"be",
"chained",
"together",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AbstractPutObjectRequest.java#L764-L769
|
20,355
|
aws/aws-sdk-java
|
aws-java-sdk-opensdk/src/main/java/com/amazonaws/opensdk/protect/client/SdkSyncClientBuilder.java
|
SdkSyncClientBuilder.getDefaultRetryPolicy
|
private RetryPolicy getDefaultRetryPolicy() {
return RetryPolicyBuilder.standard()
.retryOnExceptions(ConnectException.class, BindException.class, ConnectTimeoutException.class)
.retryOnStatusCodes(429)
.backoffStrategy(PredefinedRetryPolicies.DEFAULT_BACKOFF_STRATEGY_V2)
.maxNumberOfRetries(PredefinedRetryPolicies.DEFAULT_MAX_ERROR_RETRY)
.build();
}
|
java
|
private RetryPolicy getDefaultRetryPolicy() {
return RetryPolicyBuilder.standard()
.retryOnExceptions(ConnectException.class, BindException.class, ConnectTimeoutException.class)
.retryOnStatusCodes(429)
.backoffStrategy(PredefinedRetryPolicies.DEFAULT_BACKOFF_STRATEGY_V2)
.maxNumberOfRetries(PredefinedRetryPolicies.DEFAULT_MAX_ERROR_RETRY)
.build();
}
|
[
"private",
"RetryPolicy",
"getDefaultRetryPolicy",
"(",
")",
"{",
"return",
"RetryPolicyBuilder",
".",
"standard",
"(",
")",
".",
"retryOnExceptions",
"(",
"ConnectException",
".",
"class",
",",
"BindException",
".",
"class",
",",
"ConnectTimeoutException",
".",
"class",
")",
".",
"retryOnStatusCodes",
"(",
"429",
")",
".",
"backoffStrategy",
"(",
"PredefinedRetryPolicies",
".",
"DEFAULT_BACKOFF_STRATEGY_V2",
")",
".",
"maxNumberOfRetries",
"(",
"PredefinedRetryPolicies",
".",
"DEFAULT_MAX_ERROR_RETRY",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Returns the default retry policy for ApiGateway clients.
|
[
"Returns",
"the",
"default",
"retry",
"policy",
"for",
"ApiGateway",
"clients",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-opensdk/src/main/java/com/amazonaws/opensdk/protect/client/SdkSyncClientBuilder.java#L296-L303
|
20,356
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/BasicProfileConfigLoader.java
|
BasicProfileConfigLoader.loadProfiles
|
private AllProfiles loadProfiles(InputStream is) throws IOException {
ProfilesConfigFileLoaderHelper helper = new ProfilesConfigFileLoaderHelper();
Map<String, Map<String, String>> allProfileProperties = helper
.parseProfileProperties(new Scanner(is, StringUtils.UTF8.name()));
// Convert the loaded property map to credential objects
Map<String, BasicProfile> profilesByName = new LinkedHashMap<String, BasicProfile>();
for (Entry<String, Map<String, String>> entry : allProfileProperties.entrySet()) {
String profileName = entry.getKey();
Map<String, String> properties = entry.getValue();
if (profileName.startsWith("profile ")) {
LOG.warn(
"Your profile name includes a 'profile ' prefix. This is considered part of the profile name in the " +
"Java SDK, so you will need to include this prefix in your profile name when you reference this " +
"profile from your Java code.");
}
assertParameterNotEmpty(profileName,
"Unable to load properties from profile: Profile name is empty.");
profilesByName.put(profileName, new BasicProfile(profileName, properties));
}
return new AllProfiles(profilesByName);
}
|
java
|
private AllProfiles loadProfiles(InputStream is) throws IOException {
ProfilesConfigFileLoaderHelper helper = new ProfilesConfigFileLoaderHelper();
Map<String, Map<String, String>> allProfileProperties = helper
.parseProfileProperties(new Scanner(is, StringUtils.UTF8.name()));
// Convert the loaded property map to credential objects
Map<String, BasicProfile> profilesByName = new LinkedHashMap<String, BasicProfile>();
for (Entry<String, Map<String, String>> entry : allProfileProperties.entrySet()) {
String profileName = entry.getKey();
Map<String, String> properties = entry.getValue();
if (profileName.startsWith("profile ")) {
LOG.warn(
"Your profile name includes a 'profile ' prefix. This is considered part of the profile name in the " +
"Java SDK, so you will need to include this prefix in your profile name when you reference this " +
"profile from your Java code.");
}
assertParameterNotEmpty(profileName,
"Unable to load properties from profile: Profile name is empty.");
profilesByName.put(profileName, new BasicProfile(profileName, properties));
}
return new AllProfiles(profilesByName);
}
|
[
"private",
"AllProfiles",
"loadProfiles",
"(",
"InputStream",
"is",
")",
"throws",
"IOException",
"{",
"ProfilesConfigFileLoaderHelper",
"helper",
"=",
"new",
"ProfilesConfigFileLoaderHelper",
"(",
")",
";",
"Map",
"<",
"String",
",",
"Map",
"<",
"String",
",",
"String",
">",
">",
"allProfileProperties",
"=",
"helper",
".",
"parseProfileProperties",
"(",
"new",
"Scanner",
"(",
"is",
",",
"StringUtils",
".",
"UTF8",
".",
"name",
"(",
")",
")",
")",
";",
"// Convert the loaded property map to credential objects",
"Map",
"<",
"String",
",",
"BasicProfile",
">",
"profilesByName",
"=",
"new",
"LinkedHashMap",
"<",
"String",
",",
"BasicProfile",
">",
"(",
")",
";",
"for",
"(",
"Entry",
"<",
"String",
",",
"Map",
"<",
"String",
",",
"String",
">",
">",
"entry",
":",
"allProfileProperties",
".",
"entrySet",
"(",
")",
")",
"{",
"String",
"profileName",
"=",
"entry",
".",
"getKey",
"(",
")",
";",
"Map",
"<",
"String",
",",
"String",
">",
"properties",
"=",
"entry",
".",
"getValue",
"(",
")",
";",
"if",
"(",
"profileName",
".",
"startsWith",
"(",
"\"profile \"",
")",
")",
"{",
"LOG",
".",
"warn",
"(",
"\"Your profile name includes a 'profile ' prefix. This is considered part of the profile name in the \"",
"+",
"\"Java SDK, so you will need to include this prefix in your profile name when you reference this \"",
"+",
"\"profile from your Java code.\"",
")",
";",
"}",
"assertParameterNotEmpty",
"(",
"profileName",
",",
"\"Unable to load properties from profile: Profile name is empty.\"",
")",
";",
"profilesByName",
".",
"put",
"(",
"profileName",
",",
"new",
"BasicProfile",
"(",
"profileName",
",",
"properties",
")",
")",
";",
"}",
"return",
"new",
"AllProfiles",
"(",
"profilesByName",
")",
";",
"}"
] |
Loads the credential profiles from the given input stream.
@param is input stream from where the profile details are read.
|
[
"Loads",
"the",
"credential",
"profiles",
"from",
"the",
"given",
"input",
"stream",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/BasicProfileConfigLoader.java#L83-L108
|
20,357
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/analytics/AnalyticsS3BucketDestination.java
|
AnalyticsS3BucketDestination.setFormat
|
public void setFormat(AnalyticsS3ExportFileFormat format) {
if (format == null) {
setFormat((String) null);
} else {
setFormat(format.toString());
}
}
|
java
|
public void setFormat(AnalyticsS3ExportFileFormat format) {
if (format == null) {
setFormat((String) null);
} else {
setFormat(format.toString());
}
}
|
[
"public",
"void",
"setFormat",
"(",
"AnalyticsS3ExportFileFormat",
"format",
")",
"{",
"if",
"(",
"format",
"==",
"null",
")",
"{",
"setFormat",
"(",
"(",
"String",
")",
"null",
")",
";",
"}",
"else",
"{",
"setFormat",
"(",
"format",
".",
"toString",
"(",
")",
")",
";",
"}",
"}"
] |
Sets the file format used when exporting data to Amazon S3.
|
[
"Sets",
"the",
"file",
"format",
"used",
"when",
"exporting",
"data",
"to",
"Amazon",
"S3",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/analytics/AnalyticsS3BucketDestination.java#L28-L34
|
20,358
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/SpekeKeyProvider.java
|
SpekeKeyProvider.setSystemIds
|
public void setSystemIds(java.util.Collection<String> systemIds) {
if (systemIds == null) {
this.systemIds = null;
return;
}
this.systemIds = new java.util.ArrayList<String>(systemIds);
}
|
java
|
public void setSystemIds(java.util.Collection<String> systemIds) {
if (systemIds == null) {
this.systemIds = null;
return;
}
this.systemIds = new java.util.ArrayList<String>(systemIds);
}
|
[
"public",
"void",
"setSystemIds",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"String",
">",
"systemIds",
")",
"{",
"if",
"(",
"systemIds",
"==",
"null",
")",
"{",
"this",
".",
"systemIds",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"systemIds",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"String",
">",
"(",
"systemIds",
")",
";",
"}"
] |
Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system ids.
Other group types support one system id.
@param systemIds
Relates to SPEKE implementation. DRM system identifiers. DASH output groups support a max of two system
ids. Other group types support one system id.
|
[
"Relates",
"to",
"SPEKE",
"implementation",
".",
"DRM",
"system",
"identifiers",
".",
"DASH",
"output",
"groups",
"support",
"a",
"max",
"of",
"two",
"system",
"ids",
".",
"Other",
"group",
"types",
"support",
"one",
"system",
"id",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/SpekeKeyProvider.java#L139-L146
|
20,359
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentImportResource.java
|
SegmentImportResource.withChannelCounts
|
public SegmentImportResource withChannelCounts(java.util.Map<String, Integer> channelCounts) {
setChannelCounts(channelCounts);
return this;
}
|
java
|
public SegmentImportResource withChannelCounts(java.util.Map<String, Integer> channelCounts) {
setChannelCounts(channelCounts);
return this;
}
|
[
"public",
"SegmentImportResource",
"withChannelCounts",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"Integer",
">",
"channelCounts",
")",
"{",
"setChannelCounts",
"(",
"channelCounts",
")",
";",
"return",
"this",
";",
"}"
] |
The number of channel types in the imported segment.
@param channelCounts
The number of channel types in the imported segment.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"The",
"number",
"of",
"channel",
"types",
"in",
"the",
"imported",
"segment",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentImportResource.java#L77-L80
|
20,360
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.associateRoleToGroup
|
@Override
public AssociateRoleToGroupResult associateRoleToGroup(AssociateRoleToGroupRequest request) {
request = beforeClientExecution(request);
return executeAssociateRoleToGroup(request);
}
|
java
|
@Override
public AssociateRoleToGroupResult associateRoleToGroup(AssociateRoleToGroupRequest request) {
request = beforeClientExecution(request);
return executeAssociateRoleToGroup(request);
}
|
[
"@",
"Override",
"public",
"AssociateRoleToGroupResult",
"associateRoleToGroup",
"(",
"AssociateRoleToGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateRoleToGroup",
"(",
"request",
")",
";",
"}"
] |
Associates a role with a group. Your Greengrass core will use the role to access AWS cloud services. The role's
permissions should allow Greengrass core Lambda functions to perform actions against the cloud.
@param associateRoleToGroupRequest
@return Result of the AssociateRoleToGroup operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.AssociateRoleToGroup
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/AssociateRoleToGroup"
target="_top">AWS API Documentation</a>
|
[
"Associates",
"a",
"role",
"with",
"a",
"group",
".",
"Your",
"Greengrass",
"core",
"will",
"use",
"the",
"role",
"to",
"access",
"AWS",
"cloud",
"services",
".",
"The",
"role",
"s",
"permissions",
"should",
"allow",
"Greengrass",
"core",
"Lambda",
"functions",
"to",
"perform",
"actions",
"against",
"the",
"cloud",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L149-L153
|
20,361
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.associateServiceRoleToAccount
|
@Override
public AssociateServiceRoleToAccountResult associateServiceRoleToAccount(AssociateServiceRoleToAccountRequest request) {
request = beforeClientExecution(request);
return executeAssociateServiceRoleToAccount(request);
}
|
java
|
@Override
public AssociateServiceRoleToAccountResult associateServiceRoleToAccount(AssociateServiceRoleToAccountRequest request) {
request = beforeClientExecution(request);
return executeAssociateServiceRoleToAccount(request);
}
|
[
"@",
"Override",
"public",
"AssociateServiceRoleToAccountResult",
"associateServiceRoleToAccount",
"(",
"AssociateServiceRoleToAccountRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateServiceRoleToAccount",
"(",
"request",
")",
";",
"}"
] |
Associates a role with your account. AWS IoT Greengrass will use the role to access your Lambda functions and AWS
IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in
the policy ''AWSGreengrassResourceAccessRolePolicy''.
@param associateServiceRoleToAccountRequest
@return Result of the AssociateServiceRoleToAccount operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.AssociateServiceRoleToAccount
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/AssociateServiceRoleToAccount"
target="_top">AWS API Documentation</a>
|
[
"Associates",
"a",
"role",
"with",
"your",
"account",
".",
"AWS",
"IoT",
"Greengrass",
"will",
"use",
"the",
"role",
"to",
"access",
"your",
"Lambda",
"functions",
"and",
"AWS",
"IoT",
"resources",
".",
"This",
"is",
"necessary",
"for",
"deployments",
"to",
"succeed",
".",
"The",
"role",
"must",
"have",
"at",
"least",
"minimum",
"permissions",
"in",
"the",
"policy",
"AWSGreengrassResourceAccessRolePolicy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L205-L209
|
20,362
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createConnectorDefinition
|
@Override
public CreateConnectorDefinitionResult createConnectorDefinition(CreateConnectorDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateConnectorDefinition(request);
}
|
java
|
@Override
public CreateConnectorDefinitionResult createConnectorDefinition(CreateConnectorDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateConnectorDefinition(request);
}
|
[
"@",
"Override",
"public",
"CreateConnectorDefinitionResult",
"createConnectorDefinition",
"(",
"CreateConnectorDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateConnectorDefinition",
"(",
"request",
")",
";",
"}"
] |
Creates a connector definition. You may provide the initial version of the connector definition now or use
''CreateConnectorDefinitionVersion'' at a later time.
@param createConnectorDefinitionRequest
@return Result of the CreateConnectorDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateConnectorDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinition"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"connector",
"definition",
".",
"You",
"may",
"provide",
"the",
"initial",
"version",
"of",
"the",
"connector",
"definition",
"now",
"or",
"use",
"CreateConnectorDefinitionVersion",
"at",
"a",
"later",
"time",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L260-L264
|
20,363
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createConnectorDefinitionVersion
|
@Override
public CreateConnectorDefinitionVersionResult createConnectorDefinitionVersion(CreateConnectorDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateConnectorDefinitionVersion(request);
}
|
java
|
@Override
public CreateConnectorDefinitionVersionResult createConnectorDefinitionVersion(CreateConnectorDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateConnectorDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateConnectorDefinitionVersionResult",
"createConnectorDefinitionVersion",
"(",
"CreateConnectorDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateConnectorDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a connector definition which has already been defined.
@param createConnectorDefinitionVersionRequest
@return Result of the CreateConnectorDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateConnectorDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"connector",
"definition",
"which",
"has",
"already",
"been",
"defined",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L314-L318
|
20,364
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createCoreDefinition
|
@Override
public CreateCoreDefinitionResult createCoreDefinition(CreateCoreDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateCoreDefinition(request);
}
|
java
|
@Override
public CreateCoreDefinitionResult createCoreDefinition(CreateCoreDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateCoreDefinition(request);
}
|
[
"@",
"Override",
"public",
"CreateCoreDefinitionResult",
"createCoreDefinition",
"(",
"CreateCoreDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCoreDefinition",
"(",
"request",
")",
";",
"}"
] |
Creates a core definition. You may provide the initial version of the core definition now or use
''CreateCoreDefinitionVersion'' at a later time. Greengrass groups must each contain exactly one Greengrass core.
@param createCoreDefinitionRequest
Information needed to create a core definition.
@return Result of the CreateCoreDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateCoreDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateCoreDefinition"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"core",
"definition",
".",
"You",
"may",
"provide",
"the",
"initial",
"version",
"of",
"the",
"core",
"definition",
"now",
"or",
"use",
"CreateCoreDefinitionVersion",
"at",
"a",
"later",
"time",
".",
"Greengrass",
"groups",
"must",
"each",
"contain",
"exactly",
"one",
"Greengrass",
"core",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L371-L375
|
20,365
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createCoreDefinitionVersion
|
@Override
public CreateCoreDefinitionVersionResult createCoreDefinitionVersion(CreateCoreDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateCoreDefinitionVersion(request);
}
|
java
|
@Override
public CreateCoreDefinitionVersionResult createCoreDefinitionVersion(CreateCoreDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateCoreDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateCoreDefinitionVersionResult",
"createCoreDefinitionVersion",
"(",
"CreateCoreDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCoreDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a core definition that has already been defined. Greengrass groups must each contain exactly
one Greengrass core.
@param createCoreDefinitionVersionRequest
@return Result of the CreateCoreDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateCoreDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateCoreDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"core",
"definition",
"that",
"has",
"already",
"been",
"defined",
".",
"Greengrass",
"groups",
"must",
"each",
"contain",
"exactly",
"one",
"Greengrass",
"core",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L424-L428
|
20,366
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createDeviceDefinition
|
@Override
public CreateDeviceDefinitionResult createDeviceDefinition(CreateDeviceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateDeviceDefinition(request);
}
|
java
|
@Override
public CreateDeviceDefinitionResult createDeviceDefinition(CreateDeviceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateDeviceDefinition(request);
}
|
[
"@",
"Override",
"public",
"CreateDeviceDefinitionResult",
"createDeviceDefinition",
"(",
"CreateDeviceDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDeviceDefinition",
"(",
"request",
")",
";",
"}"
] |
Creates a device definition. You may provide the initial version of the device definition now or use
''CreateDeviceDefinitionVersion'' at a later time.
@param createDeviceDefinitionRequest
@return Result of the CreateDeviceDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateDeviceDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateDeviceDefinition"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"device",
"definition",
".",
"You",
"may",
"provide",
"the",
"initial",
"version",
"of",
"the",
"device",
"definition",
"now",
"or",
"use",
"CreateDeviceDefinitionVersion",
"at",
"a",
"later",
"time",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L532-L536
|
20,367
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createDeviceDefinitionVersion
|
@Override
public CreateDeviceDefinitionVersionResult createDeviceDefinitionVersion(CreateDeviceDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateDeviceDefinitionVersion(request);
}
|
java
|
@Override
public CreateDeviceDefinitionVersionResult createDeviceDefinitionVersion(CreateDeviceDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateDeviceDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateDeviceDefinitionVersionResult",
"createDeviceDefinitionVersion",
"(",
"CreateDeviceDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDeviceDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a device definition that has already been defined.
@param createDeviceDefinitionVersionRequest
@return Result of the CreateDeviceDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateDeviceDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateDeviceDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"device",
"definition",
"that",
"has",
"already",
"been",
"defined",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L585-L589
|
20,368
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createFunctionDefinition
|
@Override
public CreateFunctionDefinitionResult createFunctionDefinition(CreateFunctionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateFunctionDefinition(request);
}
|
java
|
@Override
public CreateFunctionDefinitionResult createFunctionDefinition(CreateFunctionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateFunctionDefinition(request);
}
|
[
"@",
"Override",
"public",
"CreateFunctionDefinitionResult",
"createFunctionDefinition",
"(",
"CreateFunctionDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFunctionDefinition",
"(",
"request",
")",
";",
"}"
] |
Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be
used in a group. You can create an initial version of the definition by providing a list of Lambda functions and
their configurations now, or use ''CreateFunctionDefinitionVersion'' later.
@param createFunctionDefinitionRequest
@return Result of the CreateFunctionDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateFunctionDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateFunctionDefinition"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"Lambda",
"function",
"definition",
"which",
"contains",
"a",
"list",
"of",
"Lambda",
"functions",
"and",
"their",
"configurations",
"to",
"be",
"used",
"in",
"a",
"group",
".",
"You",
"can",
"create",
"an",
"initial",
"version",
"of",
"the",
"definition",
"by",
"providing",
"a",
"list",
"of",
"Lambda",
"functions",
"and",
"their",
"configurations",
"now",
"or",
"use",
"CreateFunctionDefinitionVersion",
"later",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L641-L645
|
20,369
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createFunctionDefinitionVersion
|
@Override
public CreateFunctionDefinitionVersionResult createFunctionDefinitionVersion(CreateFunctionDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateFunctionDefinitionVersion(request);
}
|
java
|
@Override
public CreateFunctionDefinitionVersionResult createFunctionDefinitionVersion(CreateFunctionDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateFunctionDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateFunctionDefinitionVersionResult",
"createFunctionDefinitionVersion",
"(",
"CreateFunctionDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFunctionDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a Lambda function definition that has already been defined.
@param createFunctionDefinitionVersionRequest
Information needed to create a function definition version.
@return Result of the CreateFunctionDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateFunctionDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateFunctionDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"Lambda",
"function",
"definition",
"that",
"has",
"already",
"been",
"defined",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L696-L700
|
20,370
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createGroupCertificateAuthority
|
@Override
public CreateGroupCertificateAuthorityResult createGroupCertificateAuthority(CreateGroupCertificateAuthorityRequest request) {
request = beforeClientExecution(request);
return executeCreateGroupCertificateAuthority(request);
}
|
java
|
@Override
public CreateGroupCertificateAuthorityResult createGroupCertificateAuthority(CreateGroupCertificateAuthorityRequest request) {
request = beforeClientExecution(request);
return executeCreateGroupCertificateAuthority(request);
}
|
[
"@",
"Override",
"public",
"CreateGroupCertificateAuthorityResult",
"createGroupCertificateAuthority",
"(",
"CreateGroupCertificateAuthorityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateGroupCertificateAuthority",
"(",
"request",
")",
";",
"}"
] |
Creates a CA for the group. If a CA already exists, it will rotate the existing CA.
@param createGroupCertificateAuthorityRequest
@return Result of the CreateGroupCertificateAuthority operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.CreateGroupCertificateAuthority
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateGroupCertificateAuthority"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"CA",
"for",
"the",
"group",
".",
"If",
"a",
"CA",
"already",
"exists",
"it",
"will",
"rotate",
"the",
"existing",
"CA",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L807-L811
|
20,371
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createGroupVersion
|
@Override
public CreateGroupVersionResult createGroupVersion(CreateGroupVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateGroupVersion(request);
}
|
java
|
@Override
public CreateGroupVersionResult createGroupVersion(CreateGroupVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateGroupVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateGroupVersionResult",
"createGroupVersion",
"(",
"CreateGroupVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateGroupVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a group which has already been defined.
@param createGroupVersionRequest
@return Result of the CreateGroupVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateGroupVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateGroupVersion" target="_top">AWS
API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"group",
"which",
"has",
"already",
"been",
"defined",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L862-L866
|
20,372
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createLoggerDefinition
|
@Override
public CreateLoggerDefinitionResult createLoggerDefinition(CreateLoggerDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateLoggerDefinition(request);
}
|
java
|
@Override
public CreateLoggerDefinitionResult createLoggerDefinition(CreateLoggerDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateLoggerDefinition(request);
}
|
[
"@",
"Override",
"public",
"CreateLoggerDefinitionResult",
"createLoggerDefinition",
"(",
"CreateLoggerDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateLoggerDefinition",
"(",
"request",
")",
";",
"}"
] |
Creates a logger definition. You may provide the initial version of the logger definition now or use
''CreateLoggerDefinitionVersion'' at a later time.
@param createLoggerDefinitionRequest
@return Result of the CreateLoggerDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateLoggerDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateLoggerDefinition"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"logger",
"definition",
".",
"You",
"may",
"provide",
"the",
"initial",
"version",
"of",
"the",
"logger",
"definition",
"now",
"or",
"use",
"CreateLoggerDefinitionVersion",
"at",
"a",
"later",
"time",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L915-L919
|
20,373
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createLoggerDefinitionVersion
|
@Override
public CreateLoggerDefinitionVersionResult createLoggerDefinitionVersion(CreateLoggerDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateLoggerDefinitionVersion(request);
}
|
java
|
@Override
public CreateLoggerDefinitionVersionResult createLoggerDefinitionVersion(CreateLoggerDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateLoggerDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateLoggerDefinitionVersionResult",
"createLoggerDefinitionVersion",
"(",
"CreateLoggerDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateLoggerDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a logger definition that has already been defined.
@param createLoggerDefinitionVersionRequest
@return Result of the CreateLoggerDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateLoggerDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateLoggerDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"logger",
"definition",
"that",
"has",
"already",
"been",
"defined",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L968-L972
|
20,374
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createResourceDefinition
|
@Override
public CreateResourceDefinitionResult createResourceDefinition(CreateResourceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateResourceDefinition(request);
}
|
java
|
@Override
public CreateResourceDefinitionResult createResourceDefinition(CreateResourceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateResourceDefinition(request);
}
|
[
"@",
"Override",
"public",
"CreateResourceDefinitionResult",
"createResourceDefinition",
"(",
"CreateResourceDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateResourceDefinition",
"(",
"request",
")",
";",
"}"
] |
Creates a resource definition which contains a list of resources to be used in a group. You can create an initial
version of the definition by providing a list of resources now, or use ''CreateResourceDefinitionVersion'' later.
@param createResourceDefinitionRequest
@return Result of the CreateResourceDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateResourceDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinition"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"resource",
"definition",
"which",
"contains",
"a",
"list",
"of",
"resources",
"to",
"be",
"used",
"in",
"a",
"group",
".",
"You",
"can",
"create",
"an",
"initial",
"version",
"of",
"the",
"definition",
"by",
"providing",
"a",
"list",
"of",
"resources",
"now",
"or",
"use",
"CreateResourceDefinitionVersion",
"later",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1023-L1027
|
20,375
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createResourceDefinitionVersion
|
@Override
public CreateResourceDefinitionVersionResult createResourceDefinitionVersion(CreateResourceDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateResourceDefinitionVersion(request);
}
|
java
|
@Override
public CreateResourceDefinitionVersionResult createResourceDefinitionVersion(CreateResourceDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateResourceDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateResourceDefinitionVersionResult",
"createResourceDefinitionVersion",
"(",
"CreateResourceDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateResourceDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a resource definition that has already been defined.
@param createResourceDefinitionVersionRequest
@return Result of the CreateResourceDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateResourceDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"resource",
"definition",
"that",
"has",
"already",
"been",
"defined",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1077-L1081
|
20,376
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createSubscriptionDefinition
|
@Override
public CreateSubscriptionDefinitionResult createSubscriptionDefinition(CreateSubscriptionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateSubscriptionDefinition(request);
}
|
java
|
@Override
public CreateSubscriptionDefinitionResult createSubscriptionDefinition(CreateSubscriptionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeCreateSubscriptionDefinition(request);
}
|
[
"@",
"Override",
"public",
"CreateSubscriptionDefinitionResult",
"createSubscriptionDefinition",
"(",
"CreateSubscriptionDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateSubscriptionDefinition",
"(",
"request",
")",
";",
"}"
] |
Creates a subscription definition. You may provide the initial version of the subscription definition now or use
''CreateSubscriptionDefinitionVersion'' at a later time.
@param createSubscriptionDefinitionRequest
@return Result of the CreateSubscriptionDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateSubscriptionDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSubscriptionDefinition"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"subscription",
"definition",
".",
"You",
"may",
"provide",
"the",
"initial",
"version",
"of",
"the",
"subscription",
"definition",
"now",
"or",
"use",
"CreateSubscriptionDefinitionVersion",
"at",
"a",
"later",
"time",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1191-L1195
|
20,377
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.createSubscriptionDefinitionVersion
|
@Override
public CreateSubscriptionDefinitionVersionResult createSubscriptionDefinitionVersion(CreateSubscriptionDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateSubscriptionDefinitionVersion(request);
}
|
java
|
@Override
public CreateSubscriptionDefinitionVersionResult createSubscriptionDefinitionVersion(CreateSubscriptionDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeCreateSubscriptionDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"CreateSubscriptionDefinitionVersionResult",
"createSubscriptionDefinitionVersion",
"(",
"CreateSubscriptionDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateSubscriptionDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Creates a version of a subscription definition which has already been defined.
@param createSubscriptionDefinitionVersionRequest
@return Result of the CreateSubscriptionDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.CreateSubscriptionDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSubscriptionDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Creates",
"a",
"version",
"of",
"a",
"subscription",
"definition",
"which",
"has",
"already",
"been",
"defined",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1245-L1249
|
20,378
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.deleteConnectorDefinition
|
@Override
public DeleteConnectorDefinitionResult deleteConnectorDefinition(DeleteConnectorDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteConnectorDefinition(request);
}
|
java
|
@Override
public DeleteConnectorDefinitionResult deleteConnectorDefinition(DeleteConnectorDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteConnectorDefinition(request);
}
|
[
"@",
"Override",
"public",
"DeleteConnectorDefinitionResult",
"deleteConnectorDefinition",
"(",
"DeleteConnectorDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteConnectorDefinition",
"(",
"request",
")",
";",
"}"
] |
Deletes a connector definition.
@param deleteConnectorDefinitionRequest
@return Result of the DeleteConnectorDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.DeleteConnectorDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteConnectorDefinition"
target="_top">AWS API Documentation</a>
|
[
"Deletes",
"a",
"connector",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1300-L1304
|
20,379
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.deleteCoreDefinition
|
@Override
public DeleteCoreDefinitionResult deleteCoreDefinition(DeleteCoreDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteCoreDefinition(request);
}
|
java
|
@Override
public DeleteCoreDefinitionResult deleteCoreDefinition(DeleteCoreDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteCoreDefinition(request);
}
|
[
"@",
"Override",
"public",
"DeleteCoreDefinitionResult",
"deleteCoreDefinition",
"(",
"DeleteCoreDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteCoreDefinition",
"(",
"request",
")",
";",
"}"
] |
Deletes a core definition.
@param deleteCoreDefinitionRequest
@return Result of the DeleteCoreDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.DeleteCoreDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteCoreDefinition"
target="_top">AWS API Documentation</a>
|
[
"Deletes",
"a",
"core",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1354-L1358
|
20,380
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.deleteDeviceDefinition
|
@Override
public DeleteDeviceDefinitionResult deleteDeviceDefinition(DeleteDeviceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteDeviceDefinition(request);
}
|
java
|
@Override
public DeleteDeviceDefinitionResult deleteDeviceDefinition(DeleteDeviceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteDeviceDefinition(request);
}
|
[
"@",
"Override",
"public",
"DeleteDeviceDefinitionResult",
"deleteDeviceDefinition",
"(",
"DeleteDeviceDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDeviceDefinition",
"(",
"request",
")",
";",
"}"
] |
Deletes a device definition.
@param deleteDeviceDefinitionRequest
@return Result of the DeleteDeviceDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.DeleteDeviceDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteDeviceDefinition"
target="_top">AWS API Documentation</a>
|
[
"Deletes",
"a",
"device",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1406-L1410
|
20,381
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.deleteFunctionDefinition
|
@Override
public DeleteFunctionDefinitionResult deleteFunctionDefinition(DeleteFunctionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteFunctionDefinition(request);
}
|
java
|
@Override
public DeleteFunctionDefinitionResult deleteFunctionDefinition(DeleteFunctionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteFunctionDefinition(request);
}
|
[
"@",
"Override",
"public",
"DeleteFunctionDefinitionResult",
"deleteFunctionDefinition",
"(",
"DeleteFunctionDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteFunctionDefinition",
"(",
"request",
")",
";",
"}"
] |
Deletes a Lambda function definition.
@param deleteFunctionDefinitionRequest
@return Result of the DeleteFunctionDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.DeleteFunctionDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteFunctionDefinition"
target="_top">AWS API Documentation</a>
|
[
"Deletes",
"a",
"Lambda",
"function",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1459-L1463
|
20,382
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.deleteLoggerDefinition
|
@Override
public DeleteLoggerDefinitionResult deleteLoggerDefinition(DeleteLoggerDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteLoggerDefinition(request);
}
|
java
|
@Override
public DeleteLoggerDefinitionResult deleteLoggerDefinition(DeleteLoggerDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteLoggerDefinition(request);
}
|
[
"@",
"Override",
"public",
"DeleteLoggerDefinitionResult",
"deleteLoggerDefinition",
"(",
"DeleteLoggerDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLoggerDefinition",
"(",
"request",
")",
";",
"}"
] |
Deletes a logger definition.
@param deleteLoggerDefinitionRequest
@return Result of the DeleteLoggerDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.DeleteLoggerDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteLoggerDefinition"
target="_top">AWS API Documentation</a>
|
[
"Deletes",
"a",
"logger",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1565-L1569
|
20,383
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.deleteResourceDefinition
|
@Override
public DeleteResourceDefinitionResult deleteResourceDefinition(DeleteResourceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteResourceDefinition(request);
}
|
java
|
@Override
public DeleteResourceDefinitionResult deleteResourceDefinition(DeleteResourceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteResourceDefinition(request);
}
|
[
"@",
"Override",
"public",
"DeleteResourceDefinitionResult",
"deleteResourceDefinition",
"(",
"DeleteResourceDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteResourceDefinition",
"(",
"request",
")",
";",
"}"
] |
Deletes a resource definition.
@param deleteResourceDefinitionRequest
@return Result of the DeleteResourceDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.DeleteResourceDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteResourceDefinition"
target="_top">AWS API Documentation</a>
|
[
"Deletes",
"a",
"resource",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1618-L1622
|
20,384
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.deleteSubscriptionDefinition
|
@Override
public DeleteSubscriptionDefinitionResult deleteSubscriptionDefinition(DeleteSubscriptionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteSubscriptionDefinition(request);
}
|
java
|
@Override
public DeleteSubscriptionDefinitionResult deleteSubscriptionDefinition(DeleteSubscriptionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeDeleteSubscriptionDefinition(request);
}
|
[
"@",
"Override",
"public",
"DeleteSubscriptionDefinitionResult",
"deleteSubscriptionDefinition",
"(",
"DeleteSubscriptionDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteSubscriptionDefinition",
"(",
"request",
")",
";",
"}"
] |
Deletes a subscription definition.
@param deleteSubscriptionDefinitionRequest
@return Result of the DeleteSubscriptionDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.DeleteSubscriptionDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteSubscriptionDefinition"
target="_top">AWS API Documentation</a>
|
[
"Deletes",
"a",
"subscription",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1672-L1676
|
20,385
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.disassociateRoleFromGroup
|
@Override
public DisassociateRoleFromGroupResult disassociateRoleFromGroup(DisassociateRoleFromGroupRequest request) {
request = beforeClientExecution(request);
return executeDisassociateRoleFromGroup(request);
}
|
java
|
@Override
public DisassociateRoleFromGroupResult disassociateRoleFromGroup(DisassociateRoleFromGroupRequest request) {
request = beforeClientExecution(request);
return executeDisassociateRoleFromGroup(request);
}
|
[
"@",
"Override",
"public",
"DisassociateRoleFromGroupResult",
"disassociateRoleFromGroup",
"(",
"DisassociateRoleFromGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateRoleFromGroup",
"(",
"request",
")",
";",
"}"
] |
Disassociates the role from a group.
@param disassociateRoleFromGroupRequest
@return Result of the DisassociateRoleFromGroup operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.DisassociateRoleFromGroup
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DisassociateRoleFromGroup"
target="_top">AWS API Documentation</a>
|
[
"Disassociates",
"the",
"role",
"from",
"a",
"group",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1728-L1732
|
20,386
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.disassociateServiceRoleFromAccount
|
@Override
public DisassociateServiceRoleFromAccountResult disassociateServiceRoleFromAccount(DisassociateServiceRoleFromAccountRequest request) {
request = beforeClientExecution(request);
return executeDisassociateServiceRoleFromAccount(request);
}
|
java
|
@Override
public DisassociateServiceRoleFromAccountResult disassociateServiceRoleFromAccount(DisassociateServiceRoleFromAccountRequest request) {
request = beforeClientExecution(request);
return executeDisassociateServiceRoleFromAccount(request);
}
|
[
"@",
"Override",
"public",
"DisassociateServiceRoleFromAccountResult",
"disassociateServiceRoleFromAccount",
"(",
"DisassociateServiceRoleFromAccountRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateServiceRoleFromAccount",
"(",
"request",
")",
";",
"}"
] |
Disassociates the service role from your account. Without a service role, deployments will not work.
@param disassociateServiceRoleFromAccountRequest
@return Result of the DisassociateServiceRoleFromAccount operation returned by the service.
@throws InternalServerErrorException
server error
@sample AWSGreengrass.DisassociateServiceRoleFromAccount
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DisassociateServiceRoleFromAccount"
target="_top">AWS API Documentation</a>
|
[
"Disassociates",
"the",
"service",
"role",
"from",
"your",
"account",
".",
"Without",
"a",
"service",
"role",
"deployments",
"will",
"not",
"work",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1782-L1786
|
20,387
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getAssociatedRole
|
@Override
public GetAssociatedRoleResult getAssociatedRole(GetAssociatedRoleRequest request) {
request = beforeClientExecution(request);
return executeGetAssociatedRole(request);
}
|
java
|
@Override
public GetAssociatedRoleResult getAssociatedRole(GetAssociatedRoleRequest request) {
request = beforeClientExecution(request);
return executeGetAssociatedRole(request);
}
|
[
"@",
"Override",
"public",
"GetAssociatedRoleResult",
"getAssociatedRole",
"(",
"GetAssociatedRoleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAssociatedRole",
"(",
"request",
")",
";",
"}"
] |
Retrieves the role associated with a particular group.
@param getAssociatedRoleRequest
@return Result of the GetAssociatedRole operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.GetAssociatedRole
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetAssociatedRole" target="_top">AWS
API Documentation</a>
|
[
"Retrieves",
"the",
"role",
"associated",
"with",
"a",
"particular",
"group",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1839-L1843
|
20,388
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getBulkDeploymentStatus
|
@Override
public GetBulkDeploymentStatusResult getBulkDeploymentStatus(GetBulkDeploymentStatusRequest request) {
request = beforeClientExecution(request);
return executeGetBulkDeploymentStatus(request);
}
|
java
|
@Override
public GetBulkDeploymentStatusResult getBulkDeploymentStatus(GetBulkDeploymentStatusRequest request) {
request = beforeClientExecution(request);
return executeGetBulkDeploymentStatus(request);
}
|
[
"@",
"Override",
"public",
"GetBulkDeploymentStatusResult",
"getBulkDeploymentStatus",
"(",
"GetBulkDeploymentStatusRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetBulkDeploymentStatus",
"(",
"request",
")",
";",
"}"
] |
Returns the status of a bulk deployment.
@param getBulkDeploymentStatusRequest
@return Result of the GetBulkDeploymentStatus operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetBulkDeploymentStatus
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetBulkDeploymentStatus"
target="_top">AWS API Documentation</a>
|
[
"Returns",
"the",
"status",
"of",
"a",
"bulk",
"deployment",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1891-L1895
|
20,389
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getConnectivityInfo
|
@Override
public GetConnectivityInfoResult getConnectivityInfo(GetConnectivityInfoRequest request) {
request = beforeClientExecution(request);
return executeGetConnectivityInfo(request);
}
|
java
|
@Override
public GetConnectivityInfoResult getConnectivityInfo(GetConnectivityInfoRequest request) {
request = beforeClientExecution(request);
return executeGetConnectivityInfo(request);
}
|
[
"@",
"Override",
"public",
"GetConnectivityInfoResult",
"getConnectivityInfo",
"(",
"GetConnectivityInfoRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetConnectivityInfo",
"(",
"request",
")",
";",
"}"
] |
Retrieves the connectivity information for a core.
@param getConnectivityInfoRequest
@return Result of the GetConnectivityInfo operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.GetConnectivityInfo
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectivityInfo" target="_top">AWS
API Documentation</a>
|
[
"Retrieves",
"the",
"connectivity",
"information",
"for",
"a",
"core",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1947-L1951
|
20,390
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getConnectorDefinition
|
@Override
public GetConnectorDefinitionResult getConnectorDefinition(GetConnectorDefinitionRequest request) {
request = beforeClientExecution(request);
return executeGetConnectorDefinition(request);
}
|
java
|
@Override
public GetConnectorDefinitionResult getConnectorDefinition(GetConnectorDefinitionRequest request) {
request = beforeClientExecution(request);
return executeGetConnectorDefinition(request);
}
|
[
"@",
"Override",
"public",
"GetConnectorDefinitionResult",
"getConnectorDefinition",
"(",
"GetConnectorDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetConnectorDefinition",
"(",
"request",
")",
";",
"}"
] |
Retrieves information about a connector definition.
@param getConnectorDefinitionRequest
@return Result of the GetConnectorDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetConnectorDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinition"
target="_top">AWS API Documentation</a>
|
[
"Retrieves",
"information",
"about",
"a",
"connector",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L1999-L2003
|
20,391
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getConnectorDefinitionVersion
|
@Override
public GetConnectorDefinitionVersionResult getConnectorDefinitionVersion(GetConnectorDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeGetConnectorDefinitionVersion(request);
}
|
java
|
@Override
public GetConnectorDefinitionVersionResult getConnectorDefinitionVersion(GetConnectorDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeGetConnectorDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"GetConnectorDefinitionVersionResult",
"getConnectorDefinitionVersion",
"(",
"GetConnectorDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetConnectorDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Retrieves information about a connector definition version, including the connectors that the version contains.
Connectors are prebuilt modules that interact with local infrastructure, device protocols, AWS, and other cloud
services.
@param getConnectorDefinitionVersionRequest
@return Result of the GetConnectorDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetConnectorDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Retrieves",
"information",
"about",
"a",
"connector",
"definition",
"version",
"including",
"the",
"connectors",
"that",
"the",
"version",
"contains",
".",
"Connectors",
"are",
"prebuilt",
"modules",
"that",
"interact",
"with",
"local",
"infrastructure",
"device",
"protocols",
"AWS",
"and",
"other",
"cloud",
"services",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2054-L2058
|
20,392
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getDeploymentStatus
|
@Override
public GetDeploymentStatusResult getDeploymentStatus(GetDeploymentStatusRequest request) {
request = beforeClientExecution(request);
return executeGetDeploymentStatus(request);
}
|
java
|
@Override
public GetDeploymentStatusResult getDeploymentStatus(GetDeploymentStatusRequest request) {
request = beforeClientExecution(request);
return executeGetDeploymentStatus(request);
}
|
[
"@",
"Override",
"public",
"GetDeploymentStatusResult",
"getDeploymentStatus",
"(",
"GetDeploymentStatusRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDeploymentStatus",
"(",
"request",
")",
";",
"}"
] |
Returns the status of a deployment.
@param getDeploymentStatusRequest
@return Result of the GetDeploymentStatus operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetDeploymentStatus
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetDeploymentStatus" target="_top">AWS
API Documentation</a>
|
[
"Returns",
"the",
"status",
"of",
"a",
"deployment",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2214-L2218
|
20,393
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getDeviceDefinition
|
@Override
public GetDeviceDefinitionResult getDeviceDefinition(GetDeviceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeGetDeviceDefinition(request);
}
|
java
|
@Override
public GetDeviceDefinitionResult getDeviceDefinition(GetDeviceDefinitionRequest request) {
request = beforeClientExecution(request);
return executeGetDeviceDefinition(request);
}
|
[
"@",
"Override",
"public",
"GetDeviceDefinitionResult",
"getDeviceDefinition",
"(",
"GetDeviceDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDeviceDefinition",
"(",
"request",
")",
";",
"}"
] |
Retrieves information about a device definition.
@param getDeviceDefinitionRequest
@return Result of the GetDeviceDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetDeviceDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetDeviceDefinition" target="_top">AWS
API Documentation</a>
|
[
"Retrieves",
"information",
"about",
"a",
"device",
"definition",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2266-L2270
|
20,394
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getDeviceDefinitionVersion
|
@Override
public GetDeviceDefinitionVersionResult getDeviceDefinitionVersion(GetDeviceDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeGetDeviceDefinitionVersion(request);
}
|
java
|
@Override
public GetDeviceDefinitionVersionResult getDeviceDefinitionVersion(GetDeviceDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeGetDeviceDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"GetDeviceDefinitionVersionResult",
"getDeviceDefinitionVersion",
"(",
"GetDeviceDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDeviceDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Retrieves information about a device definition version.
@param getDeviceDefinitionVersionRequest
@return Result of the GetDeviceDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetDeviceDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetDeviceDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Retrieves",
"information",
"about",
"a",
"device",
"definition",
"version",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2318-L2322
|
20,395
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getFunctionDefinition
|
@Override
public GetFunctionDefinitionResult getFunctionDefinition(GetFunctionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeGetFunctionDefinition(request);
}
|
java
|
@Override
public GetFunctionDefinitionResult getFunctionDefinition(GetFunctionDefinitionRequest request) {
request = beforeClientExecution(request);
return executeGetFunctionDefinition(request);
}
|
[
"@",
"Override",
"public",
"GetFunctionDefinitionResult",
"getFunctionDefinition",
"(",
"GetFunctionDefinitionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetFunctionDefinition",
"(",
"request",
")",
";",
"}"
] |
Retrieves information about a Lambda function definition, including its creation time and latest version.
@param getFunctionDefinitionRequest
@return Result of the GetFunctionDefinition operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetFunctionDefinition
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetFunctionDefinition"
target="_top">AWS API Documentation</a>
|
[
"Retrieves",
"information",
"about",
"a",
"Lambda",
"function",
"definition",
"including",
"its",
"creation",
"time",
"and",
"latest",
"version",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2372-L2376
|
20,396
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getFunctionDefinitionVersion
|
@Override
public GetFunctionDefinitionVersionResult getFunctionDefinitionVersion(GetFunctionDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeGetFunctionDefinitionVersion(request);
}
|
java
|
@Override
public GetFunctionDefinitionVersionResult getFunctionDefinitionVersion(GetFunctionDefinitionVersionRequest request) {
request = beforeClientExecution(request);
return executeGetFunctionDefinitionVersion(request);
}
|
[
"@",
"Override",
"public",
"GetFunctionDefinitionVersionResult",
"getFunctionDefinitionVersion",
"(",
"GetFunctionDefinitionVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetFunctionDefinitionVersion",
"(",
"request",
")",
";",
"}"
] |
Retrieves information about a Lambda function definition version, including which Lambda functions are included
in the version and their configurations.
@param getFunctionDefinitionVersionRequest
@return Result of the GetFunctionDefinitionVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetFunctionDefinitionVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetFunctionDefinitionVersion"
target="_top">AWS API Documentation</a>
|
[
"Retrieves",
"information",
"about",
"a",
"Lambda",
"function",
"definition",
"version",
"including",
"which",
"Lambda",
"functions",
"are",
"included",
"in",
"the",
"version",
"and",
"their",
"configurations",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2426-L2430
|
20,397
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getGroupCertificateAuthority
|
@Override
public GetGroupCertificateAuthorityResult getGroupCertificateAuthority(GetGroupCertificateAuthorityRequest request) {
request = beforeClientExecution(request);
return executeGetGroupCertificateAuthority(request);
}
|
java
|
@Override
public GetGroupCertificateAuthorityResult getGroupCertificateAuthority(GetGroupCertificateAuthorityRequest request) {
request = beforeClientExecution(request);
return executeGetGroupCertificateAuthority(request);
}
|
[
"@",
"Override",
"public",
"GetGroupCertificateAuthorityResult",
"getGroupCertificateAuthority",
"(",
"GetGroupCertificateAuthorityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetGroupCertificateAuthority",
"(",
"request",
")",
";",
"}"
] |
Retreives the CA associated with a group. Returns the public key of the CA.
@param getGroupCertificateAuthorityRequest
@return Result of the GetGroupCertificateAuthority operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.GetGroupCertificateAuthority
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupCertificateAuthority"
target="_top">AWS API Documentation</a>
|
[
"Retreives",
"the",
"CA",
"associated",
"with",
"a",
"group",
".",
"Returns",
"the",
"public",
"key",
"of",
"the",
"CA",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2534-L2538
|
20,398
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getGroupCertificateConfiguration
|
@Override
public GetGroupCertificateConfigurationResult getGroupCertificateConfiguration(GetGroupCertificateConfigurationRequest request) {
request = beforeClientExecution(request);
return executeGetGroupCertificateConfiguration(request);
}
|
java
|
@Override
public GetGroupCertificateConfigurationResult getGroupCertificateConfiguration(GetGroupCertificateConfigurationRequest request) {
request = beforeClientExecution(request);
return executeGetGroupCertificateConfiguration(request);
}
|
[
"@",
"Override",
"public",
"GetGroupCertificateConfigurationResult",
"getGroupCertificateConfiguration",
"(",
"GetGroupCertificateConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetGroupCertificateConfiguration",
"(",
"request",
")",
";",
"}"
] |
Retrieves the current configuration for the CA used by the group.
@param getGroupCertificateConfigurationRequest
@return Result of the GetGroupCertificateConfiguration operation returned by the service.
@throws BadRequestException
invalid request
@throws InternalServerErrorException
server error
@sample AWSGreengrass.GetGroupCertificateConfiguration
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupCertificateConfiguration"
target="_top">AWS API Documentation</a>
|
[
"Retrieves",
"the",
"current",
"configuration",
"for",
"the",
"CA",
"used",
"by",
"the",
"group",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2590-L2594
|
20,399
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
|
AWSGreengrassClient.getGroupVersion
|
@Override
public GetGroupVersionResult getGroupVersion(GetGroupVersionRequest request) {
request = beforeClientExecution(request);
return executeGetGroupVersion(request);
}
|
java
|
@Override
public GetGroupVersionResult getGroupVersion(GetGroupVersionRequest request) {
request = beforeClientExecution(request);
return executeGetGroupVersion(request);
}
|
[
"@",
"Override",
"public",
"GetGroupVersionResult",
"getGroupVersion",
"(",
"GetGroupVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetGroupVersion",
"(",
"request",
")",
";",
"}"
] |
Retrieves information about a group version.
@param getGroupVersionRequest
@return Result of the GetGroupVersion operation returned by the service.
@throws BadRequestException
invalid request
@sample AWSGreengrass.GetGroupVersion
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupVersion" target="_top">AWS API
Documentation</a>
|
[
"Retrieves",
"information",
"about",
"a",
"group",
"version",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2645-L2649
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.