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
from botocore.credentials import RefreshableCredentials | |
from botocore.session import get_session | |
from boto3 import Session | |
def assumed_session(role_arn, session_name, session=None): | |
"""STS Role assume a boto3.Session | |
With automatic credential renewal. |
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
@Inject | |
public MessagePresenter(final EventBus eventBus, final MyView view, final PlaceManager manager) { | |
super(eventBus, view); | |
PlaceRequest request = new PlaceRequest("album").with("id", "12351232"); | |
InlineHyperlink hyperlink = new InlineHyperlink("album", manager.buildHistoryToken(request)); | |
} |