-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16005 from ewbankkit/b-aws_kinesis_analyltics_app…
…lication-add-and-remove-input-processing_configuration r/aws_kinesis_analytics_application: Correct resource update
- Loading branch information
Showing
5 changed files
with
2,610 additions
and
1,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package finder | ||
|
||
import ( | ||
"github.com/aws/aws-sdk-go/aws" | ||
"github.com/aws/aws-sdk-go/service/kinesisanalytics" | ||
) | ||
|
||
// ApplicationByName returns the application corresponding to the specified name. | ||
func ApplicationByName(conn *kinesisanalytics.KinesisAnalytics, name string) (*kinesisanalytics.ApplicationDetail, error) { | ||
input := &kinesisanalytics.DescribeApplicationInput{ | ||
ApplicationName: aws.String(name), | ||
} | ||
|
||
output, err := conn.DescribeApplication(input) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return output.ApplicationDetail, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.